62 void Foam::fv::semiImplicitSource::readCoeffs()
75 new unknownTypeFunction1
78 mesh().time().userUnits(),
85 new unknownTypeFunction1
88 mesh().time().userUnits(),
97 void Foam::fv::semiImplicitSource::addSupType
99 const VolField<Type>& field,
104 fieldSu_[field.name()]->template setValueUnits<Type>
108 fieldSp_[field.name()]->template setValueUnits<scalar>
110 eqn.dimensions()/eqn.psi().dimensions()
113 const scalar t = mesh().time().value();
115 const VolField<Type>&
psi = eqn.psi();
117 VolInternalField<Type>
Su
121 name() + field.name() +
"Su",
122 mesh().time().
name(),
144 case volumeMode::specific:
150 UIndirectList<Type>(
Su, set_.cells()) =
151 fieldSu_[field.name()]->template value<Type>(t)/VDash;
157 name() + field.name() +
"Sp",
158 mesh().time().
name(),
167 Su.dimensions()/
psi.dimensions(),
174 UIndirectList<scalar>(
Sp, set_.cells()) =
175 fieldSp_[field.name()]->template value<scalar>(t)/VDash;
182 void Foam::fv::semiImplicitSource::addSupType
185 const VolField<Type>& field,
189 return addSup(field, eqn);
194 void Foam::fv::semiImplicitSource::addSupType
198 const VolField<Type>& field,
202 return addSup(field, eqn);
211 const word& modelType,
217 set_(mesh, coeffs()),
234 return fieldSu_.toc();
241 fv::semiImplicitSource
248 fv::semiImplicitSource
255 fv::semiImplicitSource
268 set_.topoChange(map);
283 set_.distribute(map);
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
Macros for easy insertion into run-time selection tables.
DimensionedField< Type, GeoMesh > Internal
Type of the internal field from which this GeometricField is derived.
Initialise the NamedEnum HashTable from the static list of names.
Enum read(Istream &) const
Read a word from Istream and return the corresponding.
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.
Finite volume model abstract base class.
const dictionary & coeffs() const
Return dictionary.
virtual bool read(const dictionary &dict)
Read source dictionary.
const fvMesh & mesh() const
Return const access to the mesh database.
Semi-implicit source, described using an input dictionary. The injection rate coefficients are specif...
virtual wordList addSupFields() const
Return the list of fields for which the fvModel adds source term.
virtual void topoChange(const polyTopoChangeMap &)
Update topology using the given map.
virtual void distribute(const polyDistributionMap &)
Redistribute or update using the given distribution map.
virtual bool movePoints()
Add a source term to an equation.
virtual bool read(const dictionary &dict)
Read source dictionary.
virtual ~semiImplicitSource()
Destructor.
virtual void mapMesh(const polyMeshMap &)
Update from another mesh using the given map.
volumeMode
Enumeration for volume types.
semiImplicitSource(const word &name, const word &modelType, const fvMesh &mesh, const dictionary &dict)
Construct from components.
static const NamedEnum< volumeMode, 2 > volumeModeNames_
Property type names.
Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of me...
Class containing mesh-to-mesh mapping information.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
A class for handling words, derived from string.
A special matrix type and solver, designed for finite volume solutions of scalar equations.
#define IMPLEMENT_FV_MODEL_ADD_FIELD_SUP(Type, modelType)
#define IMPLEMENT_FV_MODEL_ADD_ALPHA_RHO_FIELD_SUP(Type, modelType)
#define IMPLEMENT_FV_MODEL_ADD_RHO_FIELD_SUP(Type, modelType)
Calculate the matrix for implicit and explicit sources.
const volScalarField & psi
volScalarField alpha(IOobject("alpha", runTime.name(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
addToRunTimeSelectionTable(fvConstraint, bound, dictionary)
defineTypeNameAndDebug(bound, 0)
tmp< VolField< Type > > Su(const VolField< Type > &su, const VolField< Type > &vf)
tmp< VolField< Type > > Sp(const volScalarField &sp, const VolField< Type > &vf)
tmp< surfaceScalarField > absolute(const tmp< surfaceScalarField > &tphi, const volVectorField &U)
Return the given relative flux in absolute form.
tmp< fvMatrix< Type > > SuSp(const volScalarField::Internal &, const VolField< Type > &)
word name(const bool)
Return a word representation of a bool.
const dimensionSet dimVolume
VolField< scalar > volScalarField
FOR_ALL_FIELD_TYPES(makeFieldSourceTypedef)