49 void Foam::fv::reactionDrivenPhaseChange::readCoeffs(
const dictionary&
dict)
60 const word& modelType,
71 readSpecies(coeffs(modelType,
dict), true)
74 phase1_(fluid_.phases()[phaseNames().
first()]),
75 phase2_(fluid_.phases()[phaseNames().
second()])
85 <<
"Model " <<
name <<
" of type " << modelType
86 <<
" applied to two pure phases " << phase1_.
name()
99 const labelPair specieis = this->specieis(mDoti);
107 name() +
":mDot_" + species()[mDoti],
114 tResult.ref() += alpha1*phase1_.R(specieis.
first());
119 tResult.ref() -= alpha2*phase2_.R(specieis.
second());
130 readCoeffs(coeffs(
dict));
Macros for easy insertion into run-time selection tables.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
static tmp< DimensionedField< Type, GeoMesh, PrimitiveField > > New(const word &name, const Mesh &mesh, const dimensionSet &, const PrimitiveField< Type > &)
Return a temporary field constructed from name, mesh,.
const Type & second() const
Return second.
const Type & first() const
Return first.
Class containing a pair of thermo references. Handles down-casting to more specific thermo types by c...
const Pair< bool > & valid() const
Access the validity flags.
bool either() const
Return if either validity flag is set.
ThermoRefPair< OtherThermoType > thermos() const
Cast to a different thermo type, with error checking.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Mesh data needed to do the Finite Volume discretisation.
Finite volume model abstract base class.
static const dictionary & coeffs(const word &modelType, const dictionary &)
Return the coefficients sub-dictionary for a given model type.
const word & name() const
Return const access to the source name.
Base class for phase change models.
void reReadSpecies(const dictionary &dict) const
Re-read the names of the transferring species.
virtual tmp< DimensionedField< scalar, volMesh > > mDot() const
Return the total phase change rate.
virtual bool read(const dictionary &dict)
Read source dictionary.
const ThermoRefPair< basicThermo > & thermos() const
Return the thermo references.
Model for mass-diffusion rate limited phase change between two phases.
virtual bool read(const dictionary &dict)
Read source dictionary.
reactionDrivenPhaseChange(const word &name, const word &modelType, const fvMesh &mesh, const dictionary &dict)
Construct from explicit source name and mesh.
Base-class for multi-component thermodynamic properties.
const word & name() const
Return the name of this phase.
Class to represent a system of phases.
A class for managing temporary objects.
A class for handling words, derived from string.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
#define WarningInFunction
Report a warning using Foam::Warning.
addToRunTimeSelectionTable(fvConstraint, bound, dictionary)
defineTypeNameAndDebug(bound, 0)
errorManipArg< error, int > exit(error &err, const int errNo=1)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
labelList second(const UList< labelPair > &p)
labelList first(const UList< labelPair > &p)
const dimensionSet dimTime
const dimensionSet dimDensity
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.