CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [swak4Foam] control iteration convergence groovybc (https://www.cfd-online.com/Forums/openfoam-community-contributions/155322-control-iteration-convergence-groovybc.html)

ancolli June 28, 2015 18:13

control iteration convergence groovybc
 
I am learning how to use groovybc in laplacianFoam in steady state.

bcwall1
{
type groovyBC;
value uniform 10;
valueExpression "1+0.5*T";
}

in laplacianFoam, if I set nNonOrthogonalCorrectors = 1 inside fvSolution the valueExpresion will be 6 (after 1 iterarion). if I set nNonOrthogonalCorrectors = n this value will tend to 2 as n increases.

while (simple.correctNonOrthogonal())
{
solve
(
fvm::ddt(T) - fvm::laplacian(DT, T)
);
}

my doubt is how to control the convergence over the bc whitout trial and error of n.


All times are GMT -4. The time now is 20:06.