We want to numerically solve a Couette flow with scalar transport. Thus, the equations are :
-
Incompressible Navier-Stokes equations.
-
Transport equation :
$\frac{\partial C}{\partial t} + \vec{U}\cdot \nabla C = - \vec{\nabla \cdot \vec{j}}$
With
The "starting point" solver is icoFoam. In the .C file we have to implement the transport equation, named CEqn. It is also required to declare CEqn's variables in createField.H
We coded the condition