CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Limiting / Ranging values during calculation (https://www.cfd-online.com/Forums/openfoam-solving/107269-limiting-ranging-values-during-calculation.html)

fredo490 September 22, 2012 07:45

Limiting / Ranging values during calculation
 
Hello everyone,
Is there any function in openfoam to limit a value (density, x-velocity, y-velocity, pressure, ...) with upper and lower value at each iteration ?

I am thinking about something like the "Solution Control" + "Limits" that we can find in Fluent.


I am using the rhoPimpleFoam solver now. In my point of view, if I add a cell loop after the "solve", it will only patch the solution after all the iteration of the time step, right ?


Thank you in advance.

fredo490 September 22, 2012 07:59

For the density, there is something like this :

Code:

PIMPLE
{
    momentumPredictor yes;
    nOuterCorrectors 1;
    nCorrectors    2;
    nNonOrthogonalCorrectors 0;
    rhoMin          rhoMin [ 1 -3 0 0 0 ] 0.5;
    rhoMax          rhoMax [ 1 -3 0 0 0 ] 2.0;
}

But I can't find anything for the density and the velocity (in each axis) :(

Edit, this is present in the "fvSolution" file


All times are GMT -4. The time now is 14:41.