26 #include "phaseModel.H" 27 #include "diameterModel.H" 31 #include "surfaceInterpolate.H" 38 const word& phaseName,
39 const dictionary& phaseDict,
47 IOobject::groupName(
"alpha", phaseName),
56 phaseDict_(phaseDict),
60 dimensionSet(0, 2, -1, 0, 0),
66 dimensionSet(1, 1, -3, -1, 0),
72 dimensionSet(0, 2, -2, -1, 0),
85 IOobject::groupName(
"U", phaseName),
97 IOobject::groupName(
"DDtU", phaseName),
108 IOobject::groupName(
"alphaPhi", phaseName),
121 mesh.time().timeName(),
128 Info<<
"Reading face flux field " << phiName <<
endl;
137 mesh.time().timeName(),
148 Info<<
"Calculating face flux field " << phiName <<
endl;
153 calculatedFvPatchScalarField::typeName
165 phiTypes[i] = fixedValueFvPatchScalarField::typeName;
176 mesh.time().timeName(),
206 return autoPtr<phaseModel>(
nullptr);
219 phaseDict_ = phaseDict;
223 phaseDict_.lookup(
"nu") >> nu_.value();
224 phaseDict_.lookup(
"kappa") >> kappa_.value();
225 phaseDict_.lookup(
"Cp") >> Cp_.value();
226 phaseDict_.lookup(
"rho") >> rho_.value();
241 surfaceScalarField::Boundary& alphaPhiBf = alphaPhi.boundaryFieldRef();
242 const volScalarField::Boundary& alphaBf = boundaryField();
249 if (!alphaPhip.coupled())
fvsPatchField< scalar > fvsPatchScalarField
void correctInflowOutflow(surfaceScalarField &alphaPhi) const
Ensure that the flux at inflow/outflow BCs is preserved.
#define forAll(list, i)
Loop across all elements in list.
const surfaceScalarField & phi() const
Return the volumetric flux.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
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.
dimensioned< vector > dimensionedVector
Dimensioned vector obtained from generic dimensioned type.
Ostream & endl(Ostream &os)
Add newline and flush stream.
autoPtr< phaseModel > clone() const
Return clone.
tmp< volScalarField > d() const
phaseModel(const word &phaseName, const volScalarField &p, const volScalarField &T)
Construct from components.
static autoPtr< diameterModel > New(const dictionary &dict, const phaseModel &phase)
dictionary()
Construct top-level dictionary null.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
virtual ~phaseModel()
Destructor.
virtual bool read()
Read phase properties dictionary.
Calculate the face-flux of the given field.
static word groupName(Name name, const word &group)
void correct()
Correct the laminar viscosity.
const dimensionSet dimDensity
List< word > wordList
A List of words.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A class for managing temporary objects.
tmp< surfaceScalarField > flux(const volVectorField &vvf)
Return the face-flux field obtained from the given volVectorField.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
const dimensionSet dimVelocity