37 const volScalarField&
rho,
38 const volVectorField&
U,
39 const surfaceScalarField&
phi
42 const word modelType(
dict.get<word>(
"PDRDragModel"));
44 Info<<
"Selecting drag model " << modelType <<
endl;
46 auto* ctorPtr = dictionaryConstructorTable(modelType);
55 *dictionaryConstructorTablePtr_
59 return autoPtr<PDRDragModel>
static autoPtr< PDRDragModel > New(const dictionary &PDRProperties, const compressible::RASModel &turbulence, const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi)
Return a reference to the selected Xi model.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
compressible::turbulenceModel & turbulence
messageStream Info
Information stream (stdout output on master, null elsewhere).
Ostream & endl(Ostream &os)
Add newline and flush stream.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...
errorManipArg< error, int > exit(error &err, const int errNo=1)