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,
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.
Base class for inter-region exchange.
virtual bool read(const dictionary &dict)
Read dictionary.
const GeometricField< Type, fvPatchField, volMesh > & psi() const
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.
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.
Macros for easy insertion into run-time selection tables.
virtual bool read(const dictionary &dict)
Read dictionary.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
label findZoneID(const word &zoneName) const
Find zone index given a name.
const dimensionSet & dimensions() const
A class for handling words, derived from string.
bool set(const label) const
Is element set.
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.
void setSize(const label)
Reset size of List.
const cellZoneMesh & cellZones() const
Return cell zone mesh.
virtual const labelList & faceNeighbour() const
Return face neighbour.
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 Time & time() const
Return the top-level database.
label size() const
Return the number of elements in the UPtrList.