36 const bool pRefRequired
45 setRefCell(p, pRef, dict, refCell_, refValue_);
53 || dict.
found(
"pMinFactor")
54 || dict.
found(
"pMaxFactor")
55 || dict.
found(
"rhoMin")
56 || dict.
found(
"rhoMax")
60 <<
"Pressure limits should now be specified in fvConstraints:\n\n" 63 " type limitPressure;\n" 66 if (dict.
found(
"pMin"))
69 <<
" min " << dict.
lookup<scalar>(
"pMin")
73 if (dict.
found(
"pMax"))
76 <<
" max " << dict.
lookup<scalar>(
"pMax")
80 if (dict.
found(
"pMinFactor"))
83 <<
" minFactor " << dict.
lookup<scalar>(
"pMinFactor")
87 if (dict.
found(
"pMaxFactor"))
90 <<
" maxFactor " << dict.
lookup<scalar>(
"pMaxFactor")
99 || dict.
found(
"rhoMax")
103 <<
"\nrhoMin and rhoMax are no longer supported.\n";
106 FatalIOError <<
exit(FatalIOError);
115 const bool pRefRequired
pressureReference & pressureReference
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
Find the reference cell nearest (in index) to the given cell but which is not on a cyclic...
pressureReference(const volScalarField &p, const volScalarField &pRef, const dictionary &dict, const bool pRefRequired=true)
Construct from the simple/pimple sub-dictionary.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
bool setRefCell(const volScalarField &field, const volScalarField &fieldRef, const dictionary &dict, label &refCelli, scalar &refValue, const bool forceReference=false)
If the field fieldRef needs referencing find the reference cell nearest.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.