62 void Foam::fv::semiImplicitSource::readCoeffs()
65 volumeMode_ = volumeModeNames_.read(coeffs().
lookup(
"volumeMode"));
73 case volumeMode::specific:
86 objectFunction1::New<VolField>
109 void Foam::fv::semiImplicitSource::addSupType
112 const word& fieldName
118 <<
">::addSup for source " <<
name() <<
endl;
121 const scalar t =
mesh().time().value();
129 name() + fieldName +
"Su",
147 fieldSu_[fieldName]->value<Type>(t)/VDash_;
153 name() + fieldName +
"Sp",
171 fieldSp_[fieldName]->value(t)/VDash_;
178 void Foam::fv::semiImplicitSource::addSupType
182 const word& fieldName
185 return this->addSup(eqn, fieldName);
190 void Foam::fv::semiImplicitSource::addSupType
195 const word& fieldName
198 return this->addSup(eqn, fieldName);
207 const word& modelType,
212 fvModel(name, modelType, dict, mesh),
213 set_(coeffs(), mesh),
231 return fieldSu_.toc();
250 set_.updateMesh(mpm);
#define IMPLEMENT_FV_MODEL_ADD_ALPHA_RHO_SUP(Type, modelType)
Run-time selectable general function of one variable.
defineTypeNameAndDebug(fixedTemperatureConstraint, 0)
tmp< fvMatrix< Type > > SuSp(const volScalarField::Internal &, const GeometricField< Type, fvPatchField, volMesh > &)
A list of keyword definitions, which are a keyword followed by any number of values (e...
const GeometricField< Type, fvPatchField, volMesh > & psi() const
virtual bool read(const dictionary &dict)
Read source dictionary.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Traits class for primitives.
Finite volume model abstract base class.
Generic GeometricField class.
Generic dimensioned Type class.
Semi-implicit source, described using an input dictionary. The injection rate coefficients are specif...
Initialise the NamedEnum HashTable from the static list of names.
semiImplicitSource(const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from components.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
Macros for easy insertion into run-time selection tables.
const dimensionSet & dimensions() const
Return dimensions.
FOR_ALL_FIELD_TYPES(IMPLEMENT_FV_MODEL_ADD_SUP, fv::semiImplicitSource)
stressControl lookup("compactNormalStress") >> compactNormalStress
virtual bool read(const dictionary &dict)
Read source dictionary.
A class for handling words, derived from string.
A special matrix type and solver, designed for finite volume solutions of scalar equations. Face addressing is used to make all matrix assembly and solution loops vectorise.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
#define IMPLEMENT_FV_MODEL_ADD_SUP(Type, modelType)
word name(const complex &)
Return a string representation of a complex.
const tmp< volScalarField::Internal > & Sp
addToRunTimeSelectionTable(fvConstraint, fixedTemperatureConstraint, dictionary)
tmp< surfaceScalarField > absolute(const tmp< surfaceScalarField > &tphi, const volVectorField &U)
Return the given relative flux in absolute form.
static const NamedEnum< volumeMode, 2 > volumeModeNames_
Property type names.
#define IMPLEMENT_FV_MODEL_ADD_RHO_SUP(Type, modelType)
Mesh data needed to do the Finite Volume discretisation.
A List with indirect addressing.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
A special matrix type and solver, designed for finite volume solutions of scalar equations.
virtual void updateMesh(const mapPolyMesh &)
Update for mesh changes.
const dimensionSet dimVolume
const volScalarField & psi
const tmp< volScalarField::Internal > & Su
virtual ~semiImplicitSource()
Destructor.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
virtual wordList addSupFields() const
Return the list of fields for which the fvModel adds source term.
Calculate the matrix for implicit and explicit sources.
const dimensionSet & dimensions() const