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()])
82 <<
"Model " <<
name <<
" of type " << modelType
83 <<
" requires the first phase (i.e., " << phase1_.
name()
96 const labelPair specieis = this->specieis(mDoti);
101 name() +
":mDot_" + species()[mDoti],
106 tResult.
ref() += alpha1*phase1_.R(specieis.
first());
116 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 GeoMesh &mesh, const dimensionSet &, const PrimitiveField< Type > &)
Return a temporary field constructed from name, mesh,.
const Type & first() const
Return first.
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, fvMesh > > mDot() const
Return the total phase change rate.
virtual bool read(const dictionary &dict)
Read source dictionary.
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.
virtual bool inert() const =0
Return whether the phase is inert (i.e., not reacting)
const word & name() const
Return the name of this phase.
Class to represent a system of phases.
A class for managing temporary objects.
T & ref() const
Return non-const reference or generate a fatal error.
A class for handling words, derived from string.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
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.