39 const word otherFieldName =
48 return NullObjectRef<VolField<Type>>();
61 <<
"field=" << field.
name()
62 <<
", eqnField=" << eqn.
psi().name() <<
endl;
73 <<
"Cannot add a phase transfer for field " << field.
name()
88 <<
"alphaOrRho=" << alphaOrRho.
name()
89 <<
", field=" << field.
name()
90 <<
", eqnField=" << eqn.
psi().name() <<
endl;
92 const label i = index(alphaNames(), alphaOrRho.
name());
98 && i == index(phaseNames(), field.
group())
111 if (&field == &eqn.
psi())
128 eqn += rhoEqn/
rho(i);
146 <<
"Cannot add a phase transfer for field " << field.
name()
162 <<
"alpha=" <<
alpha.name()
163 <<
", rho=" <<
rho.name()
164 <<
", field=" << field.
name()
165 <<
", eqnField=" << eqn.
psi().name() <<
endl;
167 const label i = index(alphaNames(),
alpha.name());
173 && i == index(rhoNames(),
rho.name())
174 && i == index(phaseNames(), field.
group())
187 if (&field == &eqn.
psi())
207 <<
"Cannot add a phase transfer for field " << field.
name()
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const dimensionSet & dimensions() const
Return dimensions.
Generic GeometricField class.
static word member(const word &name)
Return member (name without the extension)
static word group(const word &name)
Return group (extension part of name)
const word & name() const
Return name.
static word groupName(Name name, const word &group)
A special matrix type and solver, designed for finite volume solutions of scalar equations....
const dimensionSet & dimensions() const
const fvMesh & mesh() const
Return const access to the mesh database.
void addSupType(const VolField< Type > &field, fvMatrix< Type > &eqn) const
Add a source term to an equation.
void addSupType(const VolField< Type > &field, fvMatrix< Type > &eqn) const
Add a source term to an equation.
const Pair< word > & phaseNames() const
Return the names of the phases.
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.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type and name.
A class for handling words, derived from string.
static const word null
An empty word.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
A special matrix type and solver, designed for finite volume solutions of scalar equations.
volScalarField alpha(IOobject("alpha", runTime.name(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
#define DebugInFunction
Report an information message using Foam::Info.
tmp< fvMatrix< Type > > S(const Pair< tmp< volScalarField::Internal >> &, const VolField< Type > &)
tmp< fvMatrix< Type > > Sp(const volScalarField::Internal &, const VolField< Type > &)
tmp< fvMatrix< Type > > SuSp(const volScalarField::Internal &, const VolField< Type > &)
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.
Ostream & endl(Ostream &os)
Add newline and flush stream.
dimensionedScalar negPart(const dimensionedScalar &ds)
const dimensionSet dimDensity
bool isNull(const T &t)
Return true if t is a reference to the nullObject of type T.
dimensionedScalar posPart(const dimensionedScalar &ds)