31 template<
class MomentumTransportModel>
34 const typename MomentumTransportModel::alphaField&
alpha,
35 const typename MomentumTransportModel::rhoField&
rho,
49 const word modelType =
55 typename MomentumTransportModel::dictionaryConstructorTable::iterator
57 MomentumTransportModel::dictionaryConstructorTablePtr_->find(modelType);
62 == MomentumTransportModel::dictionaryConstructorTablePtr_->
end()
67 << modelType <<
nl <<
nl
69 << MomentumTransportModel::dictionaryConstructorTablePtr_
Generic GeometricField class.
IOdictionary(const IOobject &io, const word &wantedType)
Construct given an IOobject, supply wanted typeName.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
const objectRegistry & db() const
Return the local objectRegistry.
static word group(const word &name)
Return group (extension part of name)
fileName objectPath(const bool global) const
Return complete path + object name including the processor.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
const volVectorField & U() const
Access function to velocity field.
static typeIOobject< IOdictionary > readModelDict(const objectRegistry &obr, const word &group, bool registerObject=false)
static autoPtr< MomentumTransportModel > New(const typename MomentumTransportModel::alphaField &alpha, const typename MomentumTransportModel::rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const viscosity &viscosity)
virtual tmp< surfaceScalarField > phi() const
Return the volumetric flux field.
const surfaceScalarField & alphaRhoPhi() const
Access function to phase flux field.
Enables the printing of a dictionary and subsequently looked-up defaulted entries.
Abstract base class for all fluid physical properties.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
volScalarField alpha(IOobject("alpha", runTime.name(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
errorManipArg< error, int > exit(error &err, const int errNo=1)
Ostream & endl(Ostream &os)
Add newline and flush stream.
String typeName(const std::type_info &info)
Return the un-mangled name given the standard type info.
Ostream & indentOrNl(Ostream &os)
Indent stream or add newline if indent level == 0.
Info<< "Reading field U\n"<< endl;volVectorField U(IOobject("U", runTime.name(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);Info<< "Creating face flux\n"<< endl;surfaceScalarField phi(IOobject("phi", runTime.name(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), mesh, dimensionedScalar(mesh.Sf().dimensions() *U.dimensions(), 0));autoPtr< viscosityModel > viscosity(viscosityModel::New(mesh))