42 explicitPorositySource,
51 void Foam::fv::explicitPorositySource::readCoeffs()
53 if (coeffs().
found(
"UNames"))
59 UNames_ =
wordList(1, coeffs().lookupOrDefault<word>(
"U",
"U"));
81 const word& modelType,
86 fvModel(name, modelType, dict, mesh),
106 const word& fieldName
110 porosityPtr_->addResistance(porosityEqn);
119 const word& fieldName
123 porosityPtr_->addResistance(porosityEqn);
133 const word& fieldName
137 porosityPtr_->addResistance(porosityEqn);
138 eqn -= alpha*porosityEqn;
144 set_.updateMesh(mpm);
defineTypeNameAndDebug(fixedTemperatureConstraint, 0)
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.
Finite volume model abstract base class.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
Macros for easy insertion into run-time selection tables.
virtual void addSup(fvMatrix< vector > &eqn, const word &fieldName) const
Add implicit contribution to momentum equation.
stressControl lookup("compactNormalStress") >> compactNormalStress
virtual wordList addSupFields() const
Return the list of fields for which the fvModel adds source term.
A class for handling words, derived from string.
virtual bool read(const dictionary &dict)
Read dictionary.
explicitPorositySource(const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from components.
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.
virtual void updateMesh(const mapPolyMesh &)
Update for mesh changes.
word name(const complex &)
Return a string representation of a complex.
addToRunTimeSelectionTable(fvConstraint, fixedTemperatureConstraint, dictionary)
List< word > wordList
A List of words.
Mesh data needed to do the Finite Volume discretisation.
A special matrix type and solver, designed for finite volume solutions of scalar equations.
static autoPtr< porosityModel > New(const word &name, const fvMesh &mesh, const dictionary &dict, const word &cellZoneName=word::null)
Selector.
const dimensionSet & dimensions() const