30#include "diameterModel.H"
34#include "surfaceInterpolate.H"
41 const word& phaseName,
50 IOobject::groupName(
"alpha", phaseName),
59 phaseDict_(phaseDict),
100 IOobject::groupName(
"DDtU", phaseName),
111 IOobject::groupName(
"alphaPhi", phaseName),
133 Info<<
"Reading face flux field " << phiName <<
endl;
153 Info<<
"Calculating face flux field " << phiName <<
endl;
158 calculatedFvPatchScalarField::typeName
170 phiTypes[i] = fixedValueFvPatchScalarField::typeName;
224 phaseDict_ = phaseDict;
229 phaseDict_.readEntry(
"kappa", kappa_.value());
230 phaseDict_.readEntry(
"Cp", Cp_.value());
231 phaseDict_.readEntry(
"rho", rho_.value());
246 forAll(alphaPhiBf, patchi)
252 alphaPhip = phiBf[patchi]*alphaBf[patchi];
const Mesh & mesh() const
Return mesh.
void setOriented(const bool oriented=true) noexcept
Set the oriented flag.
Boundary & boundaryFieldRef(const bool updateAccessTime=true)
Return a reference to the boundary field.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
bool typeHeaderOk(const bool checkType=true, const bool search=true, const bool verbose=true)
Read header (uses typeFilePath to find file) and check its info.
static word groupName(StringType base, const word &group)
Create dot-delimited name.group string.
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
static word timeName(const scalar t, const int precision=precision_)
label size() const noexcept
The number of elements in the list.
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,...
bool readEntry(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX, bool mandatory=true) const
Dimension set for the base types, which can be used to implement rigorous dimension checking for alge...
const Time & time() const
Return reference to time.
Mesh data needed to do the Finite Volume discretisation.
virtual bool coupled() const
Return true if this patch field is coupled.
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...
void correct()
Correct the phase properties.
virtual ~phaseModel()
Destructor.
tmp< volScalarField > d() const
autoPtr< phaseModel > clone() const
Return clone.
void correctInflowOutflow(surfaceScalarField &alphaPhi) const
Ensure that the flux at inflow/outflow BCs is preserved.
virtual bool read()
Read phase properties dictionary.
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
Calculate the face-flux of the given field.
tmp< surfaceScalarField > flux(const volVectorField &vvf)
Return the face-flux field obtained from the given volVectorField.
const dimensionSet dimViscosity
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
const dimensionSet dimVelocity
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
const dimensionSet dimSpecificHeatCapacity(dimGasConstant)
const dimensionSet dimDensity
#define forAll(list, i)
Loop across all elements in list.
surfaceScalarField alphaPhi(phi.name()+alpha1.name(), fvc::flux(phi, alpha1, alphaScheme))