30 #include "twoPhaseSystem.H" 31 #include "diameterModel.H" 34 #include "dragModel.H" 35 #include "heatTransferModel.H" 41 #include "surfaceInterpolate.H" 57 IOobject::groupName(
"alpha", phaseName),
76 fluid.subDict(phaseName)
78 alphaMax_(phaseDict_.getOrDefault<scalar>(
"alphaMax", 1)),
96 IOobject::groupName(
"alphaPhi", name_),
107 IOobject::groupName(
"alphaRhoPhi", name_),
118 thermo_->validate(
"phaseModel " + name_,
"h",
"e");
132 Info<<
"Reading face flux field " << phiName <<
endl;
152 Info<<
"Calculating face flux field " << phiName <<
endl;
157 calculatedFvPatchScalarField::typeName
169 phiTypes[i] = fixedValueFvsPatchScalarField::typeName;
246 return dPtr_->correct();
252 phaseDict_ = phaseProperties.subDict(name_);
253 return dPtr_->read(phaseDict_);
263 forAll(alphaPhiBf, patchi)
267 if (!alphaPhip.coupled())
269 alphaPhip = phiBf[patchi]*alphaBf[patchi];
fvsPatchField< scalar > fvsPatchScalarField
void correctInflowOutflow(surfaceScalarField &alphaPhi) const
Ensure that the flux at inflow/outflow BCs is preserved.
const phaseModel & otherPhase() const
Return the other phase in this two-phase system.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
tmp< surfaceScalarField > flux(const volVectorField &vvf)
Return the face-flux field obtained from the given volVectorField.
Helper class to manage multi-specie phase properties.
const PhaseCompressibleTurbulenceModel< phaseModel > & turbulence() const
Return the turbulence model.
Ostream & endl(Ostream &os)
Add newline and flush stream.
GeometricBoundaryField< scalar, fvsPatchField, surfaceMesh > Boundary
Type of boundary fields.
const dimensionSet dimless
Dimensionless.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
const Time & time() const
Return the top-level database.
const surfaceScalarField & phi() const
Class which solves the volume fraction equations for two phases.
#define forAll(list, i)
Loop across all elements in list.
static word groupName(StringType base, const word &group)
Create dot-delimited name.group string.
Dimension set for the base types, which can be used to implement rigorous dimension checking for alge...
A class for handling words, derived from Foam::string.
Calculate the face-flux of the given field.
static autoPtr< PhaseCompressibleTurbulenceModel > New(const alphaField &alpha, const volScalarField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transportModel, const word &propertiesName=turbulenceModel::propertiesName)
Return a reference to the selected turbulence model.
label size() const noexcept
The number of elements in the list.
static autoPtr< diameterModel > New(const dictionary &diameterProperties, const phaseModel &phase)
void setOriented(bool on=true) noexcept
Set the oriented flag: on/off.
void correct()
Correct the phase properties.
static word timeName(const scalar t, const int precision=precision_)
Return time name of given scalar time formatted with the given precision.
phaseModel(const word &phaseName, const dictionary &phaseDict, const fvMesh &mesh)
Automatically write from objectRegistry::writeObject()
Boundary & boundaryFieldRef(const bool updateAccessTime=true)
Return a reference to the boundary field.
Basic thermodynamic properties based on density.
messageStream Info
Information stream (stdout output on master, null elsewhere)
A class for managing temporary objects.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
surfaceScalarField alphaPhi(phi.name()+alpha1.name(), fvc::flux(phi, alpha1, alphaScheme))
virtual bool read()
Read phase properties dictionary.
Defines the attributes of an object for which implicit objectRegistry management is supported...
tmp< volScalarField > d() const
const fvMesh & mesh() const
Return the mesh.
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...
const Boundary & boundaryField() const noexcept
Return const-reference to the boundary field.
virtual ~phaseModel()
Destructor.
static constexpr const zero Zero
Global zero (0)