CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   convergence criteria in openfoam (https://www.cfd-online.com/Forums/openfoam/100088-convergence-criteria-openfoam.html)

aban April 20, 2012 02:23

convergence criteria in openfoam
 
hi
i am new to the openfoam, iwant to simulate the reactive flows in a catalytic convertor . i think the reactingFoam suits the best for my simulation. but iam not able to set the convergence criteria. can anybody help in this issue

nimasam April 20, 2012 04:11

1) when you use a solver for example icoFoam, the residuals will be written in terminal
but first you should redirect it into .txt file then use the command "foamlog" to extract the residual in separate files in logs folder. then use a plot software for example gnuplot to plot the residual,
Code:

icoFoam > log
foamLog log
cd logs
gnuplot
plot "./....."

2)if you want to just set a convergence criteria you can add the "convergence" in fvSolution in PISO or PIMPLE or SIMPLE dictionary;

antonyab April 20, 2012 05:35

in the fvSolution how can we set the convergence criteria. is it by setting the residual controls?

antonyab April 20, 2012 05:44

in the fvSolution how can we set the convergence criteria. is it by setting the residual controls?

nimasam April 20, 2012 15:41

something like this:
Code:

SIMPLE
{
    momentumPredictor yes;
    nNonOrthogonalCorrectors 0;
    pRefCell        0;
    pRefValue      0;
    convergence    1e-04;
}


antonyab April 22, 2012 03:35

thank u for your response, i have tried this and results best


All times are GMT -4. The time now is 23:42.