Viscous term in NS

Hi everyone,

I’m trying to solve the term

\nabla\cdot(\nu_t(\nabla\mathbf{u}+\nabla\mathbf{u}^T))

and extract the x and y component but I’m struggling with implementation. I guess it’s best to use varf but I’m pretty new to FreeFem and have no idea how to do this.
Thank you

In the FreeFem documentation you can look at the section “The system of elasticity” to see how such term is handled.