To provide more flexibility, extensibility, run-time modifiability and
consistency the handling of optional pressure limits has been moved from
pressureControl (settings in system/fvSolution) to the new limitPressure
fvConstraint (settings in system/fvConstraints).
All tutorials have been updated which provides guidance when upgrading cases but
also helpful error messages are generated for cases using the old settings
providing specific details as to how the case should be updated, e.g. for the
tutorials/compressible/rhoSimpleFoam/squareBend case which has the pressure
limit specification:
SIMPLE
{
...
pMinFactor 0.1;
pMaxFactor 2;
...
generates the error message
--> FOAM FATAL IO ERROR:
Pressure limits should now be specified in fvConstraints:
limitp
{
type limitPressure;
minFactor 0.1;
maxFactor 2;
}
file: /home/dm2/henry/OpenFOAM/OpenFOAM-dev/tutorials/compressible/rhoSimpleFoam/squareBend/system/fvSolution/SIMPLE from line 41 to line 54.
105 lines
1.8 KiB
C++
105 lines
1.8 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
========= |
|
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
\\ / O peration | Website: https://openfoam.org
|
|
\\ / A nd | Version: dev
|
|
\\/ M anipulation |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
version 2.0;
|
|
format ascii;
|
|
class dictionary;
|
|
location "system";
|
|
object fvSolution;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
solvers
|
|
{
|
|
"rho.*"
|
|
{
|
|
solver diagonal;
|
|
}
|
|
|
|
p
|
|
{
|
|
solver GAMG;
|
|
smoother DICGaussSeidel;
|
|
|
|
tolerance 1e-6;
|
|
relTol 0.05;
|
|
}
|
|
|
|
pFinal
|
|
{
|
|
$p;
|
|
relTol 0;
|
|
}
|
|
|
|
Phi
|
|
{
|
|
$p;
|
|
}
|
|
|
|
"(U|k|omega)"
|
|
{
|
|
solver smoothSolver;
|
|
smoother symGaussSeidel;
|
|
|
|
tolerance 1e-6;
|
|
relTol 0.1;
|
|
}
|
|
|
|
"(U|k|omega)Final"
|
|
{
|
|
$U;
|
|
relTol 0;
|
|
}
|
|
|
|
"(Yi|O2|N2|H2O).*"
|
|
{
|
|
solver PBiCGStab;
|
|
preconditioner DILU;
|
|
|
|
tolerance 1e-6;
|
|
relTol 0;
|
|
}
|
|
|
|
h
|
|
{
|
|
$Yi;
|
|
relTol 0.1;
|
|
}
|
|
|
|
hFinal
|
|
{
|
|
$Yi;
|
|
}
|
|
}
|
|
|
|
potentialFlow
|
|
{
|
|
// Used for potentialFoam initialisation
|
|
nNonOrthogonalCorrectors 5;
|
|
}
|
|
|
|
PIMPLE
|
|
{
|
|
nOuterCorrectors 1;
|
|
nCorrectors 3;
|
|
nNonOrthogonalCorrectors 0;
|
|
momentumPredictor yes;
|
|
}
|
|
|
|
relaxationFactors
|
|
{
|
|
equations
|
|
{
|
|
".*" 1;
|
|
}
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|