33#include "surfaceInterpolate.H"
67 const word modelType(
dict.get<word>(
"type"));
69 Info<<
"Selecting liftModel for "
70 << pair <<
": " << modelType <<
endl;
72 auto* ctorPtr = dictionaryConstructorTable(modelType);
81 *dictionaryConstructorTablePtr_
85 return ctorPtr(
dict, pair);
95 *pair_.continuous().rho()
97 pair_.Ur() ^
fvc::curl(pair_.continuous().U())
104 return pair_.dispersed()*Fi();
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Dimension set for the base types, which can be used to implement rigorous dimension checking for alge...
virtual tmp< surfaceScalarField > Ff() const
Return face lift force.
virtual tmp< volVectorField > F() const
Return lift force.
static autoPtr< liftModel > New(const dictionary &dict, const phasePair &pair)
liftModel(const dictionary &dict, const phasePair &pair)
Construct from a dictionary and a phase pair.
virtual tmp< volVectorField > Fi() const
Return phase-intensive lift force.
static const dimensionSet dimF
Force dimensions.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
Calculate the curl of the given volField by constructing the Hodge-dual of the symmetric part of the ...
Calculate the face-flux of the given field.
static tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > interpolate(const GeometricField< Type, fvPatchField, volMesh > &tvf, const surfaceScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
tmp< GeometricField< Type, fvPatchField, volMesh > > curl(const GeometricField< Type, fvPatchField, volMesh > &vf)
tmp< surfaceScalarField > flux(const volVectorField &vvf)
Return the face-flux field obtained from the given volVectorField.
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)
#define defineRunTimeSelectionTable(baseType, argNames)
Define run-time selection table.