|
DCS
a Driven-Cavity Open source Simulator code
|
Brief review of the models used
The 2D incompressible Navier-Stokes equations are written into the non dimensional streamfunction (s) and vorticty (v) formulation:

where
is the Reynolds number and
are the Cartesian coordinates of the inertial frame of reference. Applying central differencing the Laplacian operator of the streamfunction can be discretized as following:

where
is the uniform space spacing. Re-ordering LHS it is obtained an approximation of the stream function:

The streamfunction equation is solved by means of Successive Over Relaxation (SOR) method to obtain the steady state solution:

where
is the over-relaxation parameter. After the (iterative) value of the streamfunction has been computed by means of the above SOR approach, the vorticity is computed similarly:
![$v_{i,j}=\beta\left[\frac{v_{i+1,j}+s_{i-1,j}+s_{i,j+1}+s_{i,j-1}}{4}+ Re\frac{\left(s_{i,j+1}-s_{i,j-1}\right)\left(v_{i+1,j}-v_{i-1,j}\right)- \left(s_{i+1,j}-s_{i-1,j}\right)\left(v_{i,j+1}-v_{i,j-1}\right)}{16}\right]+ \left(1-\beta\right)v_{i,j}$](../../form_8.png)
where central differencing has been used also for first order partial derivative.
The above SOR equation for
and
are coupled with suitable boundary conditions, see T. Stortkuhl, C. Zenger and S. Zimmer. The iteration on each cell
ends when the residuals become lower than a user-defined threshold value.