Mass conservation (continuity):
Motion quantity conservaton:
We use Backward Differentiation Formula (BDF) of order 1 or 2 to approximate the time derivative in the motion quantity equation:
To relax the incompressibility constraint embodied by the mass conservation equation, we use instead:
With
The convective term of the motion equation, which introduces non-linearity in the PDE system, is approximated by a linear scheme, the Newton approximation:
It has been observed that, at the outlet, where no specific boundary condition is defined, the back-flow phenomenon can make the simulation diverge. To avoid this, a term is added in the weak formulation, this terms reads:
With
gamma * dot(Constant(0.5) * (dot(u, n) - abs(dot(u, normal))) * u), v) * ds
On the inlet and walls, we have a simple Dirichlet condition on velocity:
On the cylinders, the Dirichlet condition simulate each cylinder rotating on its respective axis, assuming a no-slip condition:
On the outlet, the boundary condition is the one described previously, but it is not specified in FEniCS as a Dirichlet boundary condition, it is directly introduced in the weak formulation.
Considering everything described above, the weak formulation reads:
with