Go to the documentation of this file.
26 #include "phaseModel.H"
27 #include "diameterModel.H"
37 const word& phaseName,
38 const dictionary& phaseDict,
46 IOobject::groupName(
"alpha", phaseName),
55 phaseDict_(phaseDict),
59 dimensionSet(0, 2, -1, 0, 0),
65 dimensionSet(1, 1, -3, -1, 0),
71 dimensionSet(0, 2, -2, -1, 0),
84 IOobject::groupName(
"U", phaseName),
96 IOobject::groupName(
"DDtU", phaseName),
107 IOobject::groupName(
"alphaPhi", phaseName),
120 mesh.time().timeName(),
125 if (phiHeader.headerOk())
127 Info<<
"Reading face flux field " << phiName <<
endl;
136 mesh.time().timeName(),
147 Info<<
"Calculating face flux field " << phiName <<
endl;
152 calculatedFvPatchScalarField::typeName
164 phiTypes[i] = fixedValueFvPatchScalarField::typeName;
175 mesh.time().timeName(),
205 return autoPtr<phaseModel>(NULL);
218 phaseDict_ = phaseDict;
222 phaseDict_.lookup(
"nu") >> nu_.value();
223 phaseDict_.lookup(
"kappa") >> kappa_.value();
224 phaseDict_.lookup(
"Cp") >> Cp_.value();
225 phaseDict_.lookup(
"rho") >> rho_.value();
static word groupName(Name name, const word &group)
#define forAll(list, i)
Loop across all elements in list.
A class for managing temporary objects.
const volVectorField & U_
const dimensionSet dimVelocity
const dimensionSet dimDensity
virtual ~phaseModel()
Destructor.
virtual bool read()
Read phase properties dictionary.
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > interpolate(const GeometricField< Type, fvPatchField, volMesh > &vf, const surfaceScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
GeometricBoundaryField & boundaryField()
Return reference to GeometricBoundaryField.
Ostream & endl(Ostream &os)
Add newline and flush stream.
dimensioned< vector > dimensionedVector
Dimensioned vector obtained from generic dimensioned type.
List< word > wordList
A List of words.
tmp< volScalarField > d() const
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
phaseModel(const word &phaseName, const volScalarField &p, const volScalarField &T)
Construct from components.
autoPtr< phaseModel > clone() const
Return clone.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Vector< scalar > vector
A scalar version of the templated Vector.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
IOobject(const word &name, const fileName &instance, const objectRegistry ®istry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true)
Construct from name, instance, registry, io options.
static autoPtr< diameterModel > New(const dictionary &dict, const phaseModel &phase)