52 const word& modelType,
75 porosityPtr_->addResistance(porosityEqn);
88 porosityPtr_->addResistance(porosityEqn);
102 porosityPtr_->addResistance(porosityEqn);
103 eqn -=
alpha*porosityEqn;
111 if (!coeffs_.readIfPresent(
"UNames", fieldNames_))
113 fieldNames_.resize(1);
114 fieldNames_.first() = coeffs_.getOrDefault<
word>(
"U",
"U");
A list of keyword definitions, which are a keyword followed by a number of values (eg...
defineTypeNameAndDebug(atmAmbientTurbSource, 0)
const fvMesh & mesh_
Reference to the mesh database.
virtual bool read(const dictionary &dict)
Read source dictionary.
static autoPtr< porosityModel > New(const word &name, const fvMesh &mesh, const dictionary &dict, const wordRe &cellZoneName=wordRe::null)
Selector.
Macros for easy insertion into run-time selection tables.
const GeometricField< Type, fvPatchField, volMesh > & psi(const label i=0) const
Return psi.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
const word name_
Source name.
A class for handling words, derived from Foam::string.
const wordRe & zoneName() const
Return const access to the first set/zone name.
virtual bool read(const dictionary &dict)
Read dictionary.
explicitPorositySource(const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from components.
virtual void addSup(fvMatrix< vector > &eqn, const label fieldi)
Add implicit contribution to momentum equation.
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.
addToRunTimeSelectionTable(option, atmAmbientTurbSource, dictionary)
const dimensionSet & dimensions() const noexcept
Mesh data needed to do the Finite Volume discretisation.
void resetApplied()
Resize/reset applied flag list for all fieldNames_ entries.
A special matrix type and solver, designed for finite volume solutions of scalar equations.
autoPtr< porosityModel > porosityPtr_
Run-time selectable porosity model.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
dictionary coeffs_
Dictionary containing source coefficients.