36 const bool pRefRequired
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";
115 const bool pRefRequired
Generic GeometricField class.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Provides controls for the pressure reference in closed-volume simulations.
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.
Find the reference cell nearest (in index) to the given cell but which is not on a cyclic,...
errorManipArg< error, int > exit(error &err, const int errNo=1)
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.