simpleFoam source code
In simpleFoam source code, what do the following lines (in Ueqn.H) mean?
eqnResidual = solve
( Ueqn() == -fvc::grd(p)
I understand the part Ueqn()== -fvc::grad(p), please someone explain the rest. Thank you
this is for under-relaxing the momentum equation.
Correct me if I am wrong, but I think, the two lines with "initialResidual" are for stopping the whole solution process once the residuals of all equations are low enough.
not exactly. The code
The check, whether the convergence criterion is satisfied is done later (see file convergenceCheck.H).
|All times are GMT -4. The time now is 12:24.|