Go to the documentation of this file.
37 IStringStream(
"(absolute specific)")()
50 forAll(volumeModeTypeNames_, i)
52 if (vmtName == volumeModeTypeNames_[i])
59 <<
"Unknown volumeMode type " << vmtName
60 <<
". Valid volumeMode types are:" <<
nl << volumeModeTypeNames_
73 if (vmtType > volumeModeTypeNames_.size())
79 return volumeModeTypeNames_[vmtType];
87 fieldNames_.setSize(
dict.toc().size());
88 injectionRate_.setSize(fieldNames_.size());
90 applied_.setSize(fieldNames_.size(),
false);
95 fieldNames_[i] = iter().keyword();
96 dict.lookup(iter().keyword()) >> injectionRate_[i];
101 if (volumeMode_ == vmAbsolute)
114 const word& modelType,
120 volumeMode_(vmAbsolute),
140 <<
">::addSup for source " << name_ <<
endl;
149 name_ + fieldNames_[fieldI] +
"Su",
150 mesh_.time().timeName(),
171 name_ + fieldNames_[fieldI] +
"Sp",
172 mesh_.time().timeName(),
181 Su.dimensions()/
psi.dimensions(),
204 <<
">::addSup for source " << name_ <<
endl;
207 return this->addSup(eqn, fieldI);
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
A class for handling words, derived from string.
Cell-set options abtract base class. Provides a base set of controls, e.g.
#define forAll(list, i)
Loop across all elements in list.
bool read(const char *, int32_t &)
virtual void addSup(fvMatrix< Type > &eqn, const label fieldI)
Add explicit contribution to equation.
const dimensionSet & dimensions() const
Ostream & endl(Ostream &os)
Add newline and flush stream.
const GeometricField< Type, fvPatchField, volMesh > & psi() const
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
tmp< GeometricField< Type, fvPatchField, volMesh > > SuSp(const volScalarField &sp, const GeometricField< Type, fvPatchField, volMesh > &vf)
A special matrix type and solver, designed for finite volume solutions of scalar equations.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
tmp< GeometricField< Type, fvPatchField, volMesh > > Su(const GeometricField< Type, fvPatchField, volMesh > &su, const GeometricField< Type, fvPatchField, volMesh > &vf)
word volumeModeTypeToWord(const volumeModeType &vtType) const
Helper function to convert from a volumeModeType to a word.
static const wordList volumeModeTypeNames_
Word list of volume mode type names.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Mesh data needed to do the Finite Volume discretisation.
Calculate the matrix for implicit and explicit sources.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
void setFieldData(const dictionary &dict)
Set the local field data.
const volScalarField & psi
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Traits class for primitives.
A List with indirect addressing.
T & first()
Return the first element of the list.
SemiImplicitSource(const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from components.
tmp< GeometricField< Type, fvPatchField, volMesh > > Sp(const volScalarField &sp, const GeometricField< Type, fvPatchField, volMesh > &vf)
const dimensionSet dimVolume(pow3(dimLength))
Generic GeometricField class.
word name(const complex &)
Return a string representation of a complex.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
volumeModeType
Enumeration for volume types.
volumeModeType wordToVolumeModeType(const word &vtName) const
Helper function to convert from a word to a volumeModeType.