36 #ifndef massTransfer_H
37 #define massTransfer_H
160 const word& modelType,
Generic GeometricField class.
A list of keyword definitions, which are a keyword followed by any number of values (e....
A special matrix type and solver, designed for finite volume solutions of scalar equations....
Mesh data needed to do the Finite Volume discretisation.
const fvMesh & mesh() const
Return const access to the mesh database.
const word & name() const
Return const access to the source name.
static const word & fieldName()
Return the name of the field associated with a source term. Special.
Base class for sources which are specified as a specific value (e.g., mass flow rate per unit volume)...
Base class for mass transfers between phases.
void addSupType(const VolField< Type > &field, fvMatrix< Type > &eqn) const
Add a source term to an equation.
TypeName("massTransfer")
Runtime type information.
const Pair< word > lookupPhaseFieldNames(const word &name) const
Lookup the phase field names.
FOR_ALL_FIELD_TYPES(DEFINE_FV_MODEL_ADD_FIELD_SUP)
Add a source term to an equation.
virtual bool read(const dictionary &dict)
Read source dictionary.
const Pair< word > & phaseNames() const
Return the names of the phases.
tmp< volScalarField::Internal > rho(const label i) const
Return the density.
massTransfer(const word &name, const word &modelType, const fvMesh &mesh, const dictionary &dict)
Construct from explicit source name and mesh.
const Pair< word > & alphaNames() const
Return the names of the volume fraction fields.
static label sign(const Pair< word > &names, const word &name)
Get the sign associated with the name in the given pair; i.e., -1.
virtual void addSup(fvMatrix< scalar > &eqn) const
Add a source term to a field-less proxy equation.
const Pair< word > & rhoNames() const
Return the names of the density fields.
const Pair< word > lookupPhaseNames() const
Lookup the phase names.
virtual tmp< DimensionedField< scalar, volMesh > > mDot() const =0
Return the mass transfer rate.
virtual bool addsSupToField(const word &fieldName) const
Return true if the fvModel adds a source term to the given.
virtual tmp< DimensionedField< scalar, volMesh > > S(const word &fieldName) const
Return the source value.
static label index(const Pair< word > &names, const word &name)
Get the index of the name in the given pair, or -1.
const VolField< Type > & otherField(const VolField< Type > &field) const
Return the corresponding field in the other phase, or a null.
A class for managing temporary objects.
A class for handling words, derived from string.
#define DEFINE_FV_MODEL_ADD_ALPHA_RHO_FIELD_SUP(Type, nullArg)
#define DEFINE_FV_MODEL_ADD_RHO_FIELD_SUP(Type, nullArg)
#define DEFINE_FV_MODEL_ADD_FIELD_SUP(Type, nullArg)
volScalarField alpha(IOobject("alpha", runTime.name(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.