30#include "twoPhaseSystem.H"
31#include "diameterModel.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];
void setOriented(const bool oriented=true) noexcept
Set the oriented flag.
Boundary & boundaryFieldRef(const bool updateAccessTime=true)
Return a reference to the boundary field.
GeometricBoundaryField< scalar, fvsPatchField, surfaceMesh > Boundary
Type of boundary fields.
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.
Templated abstract base class for multiphase compressible turbulence models.
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.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Dimension set for the base types, which can be used to implement rigorous dimension checking for alge...
const Time & time() const
Return the top-level database.
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...
const PhaseCompressibleTurbulenceModel< phaseModel > & turbulence() const
Return the turbulence model.
void correct()
Correct the phase properties.
virtual ~phaseModel()
Destructor.
const surfaceScalarField & phi() const
const phaseModel & otherPhase() const
Return the other phase in this two-phase system.
tmp< volScalarField > d() const
void correctInflowOutflow(surfaceScalarField &alphaPhi) const
Ensure that the flux at inflow/outflow BCs is preserved.
virtual bool read()
Read phase properties dictionary.
Helper class to manage multi-specie phase properties.
const fvMesh & mesh() const
Return the mesh.
Basic thermodynamic properties based on density.
A class for managing temporary objects.
Class which solves the volume fraction equations for two phases.
A class for handling words, derived from Foam::string.
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 dimless
Dimensionless.
messageStream Info
Information stream (stdout output on master, null elsewhere)
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
Ostream & endl(Ostream &os)
Add newline and flush stream.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh > > &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
fvsPatchField< scalar > fvsPatchScalarField
#define forAll(list, i)
Loop across all elements in list.
surfaceScalarField alphaPhi(phi.name()+alpha1.name(), fvc::flux(phi, alpha1, alphaScheme))