42 interRegionExplicitPorositySource,
57 const word zoneName(name_ +
":porous");
88 <<
"Unable to create porous cellZone " << zoneName
89 <<
": zone already exists" 110 Foam::fv::interRegionExplicitPorositySource::interRegionExplicitPorositySource
113 const word& modelType,
119 porosityPtr_(
nullptr),
121 UName_(coeffs_.lookupOrDefault<
word>(
"U",
"U")),
122 muName_(coeffs_.lookupOrDefault<
word>(
"mu",
"thermo:mu"))
126 fieldNames_.setSize(1, UName_);
127 applied_.setSize(1,
false);
161 meshInterp().mapSrcToTgt
170 porosityPtr_->addResistance(nbrEqn);
177 Udiag.setSize(eqn.
diag().size(), 0.0);
215 meshInterp().mapSrcToTgt
256 meshInterp().mapSrcToTgt
260 rhoNbr.primitiveFieldRef()
264 meshInterp().mapSrcToTgt
268 muNbr.primitiveFieldRef()
271 porosityPtr_->addResistance(nbrEqn, rhoNbr, muNbr);
278 Udiag.setSize(eqn.
diag().size(), 0.0);
292 coeffs_.readIfPresent(
"U", UName_);
293 coeffs_.readIfPresent(
"mu", muName_);
defineTypeNameAndDebug(option, 0)
void clearAddressing()
Clear addressing.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
bool set(const label) const
Is element set.
Base class for inter-region exchange.
virtual bool read(const dictionary &dict)
Read dictionary.
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual const labelList & faceNeighbour() const
Return face neighbour.
const GeometricField< Type, fvPatchField, volMesh > & psi() const
void size(const label)
Override size to be inconsistent with allocated storage.
virtual void addSup(fvMatrix< vector > &eqn, const label fieldi)
Vector.
const dimensionSet dimViscosity
dimensioned< vector > dimensionedVector
Dimensioned vector obtained from generic dimensioned type.
addToRunTimeSelectionTable(option, fixedTemperatureConstraint, dictionary)
const Internal::FieldType & primitiveField() const
Return a const-reference to the internal field.
static word timeName(const scalar, const int precision=precision_)
Return time name of given scalar time.
const Time & time() const
Return the top-level database.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
Macros for easy insertion into run-time selection tables.
virtual bool read(const dictionary &dict)
Read dictionary.
label findZoneID(const word &zoneName) const
Find zone index given a name.
A class for handling words, derived from string.
const cellZoneMesh & cellZones() const
Return cell zone mesh.
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.
errorManip< error > abort(error &err)
void setSize(const label)
Reset size of PtrList. If extending the PtrList, new entries are.
Internal::FieldType & primitiveFieldRef()
Return a reference to the internal field.
void initialise()
Initialise.
const dimensionSet dimDensity
const dimensionedScalar mu
Atomic mass unit.
label size() const
Return the number of elements in the UPtrList.
void setSize(const label)
Reset size of List.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
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.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
const dimensionSet & dimensions() const