Professional Documents
Culture Documents
(1) (2)
OpenFOAM initiation
We look for (U,p) solution of this problem. o! can !e solve this problem in a segregated manner " #one equation after the other$ " %irst& !e are going to derive a pressure equation from #'$ and #($& )hen& this system !ill be solved from a predictor*corrector algorithm #e+ , -.S/ for transient solutions& S.0-12 for steady-state simulations& -.0-12 !hich is a mi+ of these t!o algorithms allo!s larger time steps$& .n this section& !e !ill learn ho! to solve NS !ith a -.S/ algorithm& and its implementation in icoFoam
102
OpenFOAM initiation
)o develop the pressure equation& !e !rite the previous equation in a semi-discreti4ed form #implicit 2uler$,
103
Contains the off-diagonal coefficients and the source terms #body forces 6 half of the discreti4ation of the transient term$
OpenFOAM initiation
or
.n this equation& aP et H(U) are evaluated from the velocity field of the previous step.
104
OpenFOAM initiation
:; is predicted solving implicitly the momentum equation !ith the pressure of the previous time step
9uild of the matri+ :2qn. )he convective term is lineari4ed !ith phi evaluated at the previous time step.
105
OpenFOAM initiation
3t least ( iterations are required. )hen one e+it the -.S/ loop and go to the ne+t Cyprien Soulaine cyprien.soulaine@gmail.com time step.
106
OpenFOAM initiation
.nsure mass conservation by ad<usting the in-coming and out-coming flu+ if the 9C are ill-defined #no fixedValue for p for instance$
.f there is no fixedValue among the pressure 9Cs& then the value of p at the cell !ith the reference pRef ell is fi+ed to pRefValue.
3t the previous line U has been calculated point-!ise from p. )he 9Cs do no longer correspond to the ones in !/U. )his function means that the 9Cs of U must be the ones precised in !/U.
107
OpenFOAM initiation
9ibliography,
"olution of t#e $mplicitl% &i'c(eti'ed Fluid Flo) *+uation' ,% Ope(ato(-"plittin. & .ssa& '>?@
/ume(ical Heat 0(an'fe( and Fluid Flo) & -atankar& '>?A omputational Met#od' fo( Fluid &%namic' & %er4iger and -eric& (AA(
108