42 interRegionExplicitPorositySource,
57 const word zoneName(name_ +
":porous");
89 "void Foam::fv::interRegionExplicitPorositySource::initialise()" 91 <<
"Unable to create porous cellZone " << zoneName
92 <<
": zone already exists" 113 Foam::fv::interRegionExplicitPorositySource::interRegionExplicitPorositySource
116 const word& modelType,
124 UName_(coeffs_.lookupOrDefault<
word>(
"UName",
"U")),
125 muName_(coeffs_.lookupOrDefault<
word>(
"muName",
"thermo:mu"))
129 fieldNames_.setSize(1, UName_);
130 applied_.setSize(1,
false);
164 meshInterp().mapSrcToTgt
173 porosityPtr_->addResistance(nbrEqn);
180 Udiag.setSize(eqn.
diag().size(), 0.0);
218 meshInterp().mapSrcToTgt
259 meshInterp().mapSrcToTgt
263 rhoNbr.internalField()
267 meshInterp().mapSrcToTgt
271 muNbr.internalField()
274 porosityPtr_->addResistance(nbrEqn, rhoNbr, muNbr);
281 Udiag.setSize(eqn.
diag().size(), 0.0);
295 coeffs_.readIfPresent(
"UName", UName_);
296 coeffs_.readIfPresent(
"muName", muName_);
const cellZoneMesh & cellZones() const
Return cell zone mesh.
defineTypeNameAndDebug(cellSetOption, 0)
void setSize(const label)
Reset size of PtrList. If extending the PtrList, new entries are.
const dimensionedScalar mu
Atomic mass unit.
Mesh data needed to do the Finite Volume discretisation.
const dimensionSet & dimensions() const
label size() const
Return the number of elements in the PtrList.
bool set(const label) const
Is element set.
virtual bool read(const dictionary &dict)
Read dictionary.
void initialise()
Initialise.
static autoPtr< porosityModel > New(const word &name, const fvMesh &mesh, const dictionary &dict, const word &cellZoneName=word::null)
Selector.
A class for handling words, derived from string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
static word timeName(const scalar, const int precision=precision_)
Return time name of given scalar time.
void size(const label)
Override size to be inconsistent with allocated storage.
InternalField & internalField()
Return internal field.
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.
const dimensionSet dimDensity
A list of keyword definitions, which are a keyword followed by any number of values (e...
const Time & time() const
Return the top-level database.
Base class for inter-region exchange.
virtual void addSup(fvMatrix< vector > &eqn, const label fieldI)
Vector.
void clearAddressing()
Clear addressing.
const GeometricField< Type, fvPatchField, volMesh > & psi() const
void setSize(const label)
Reset size of List.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
addToRunTimeSelectionTable(option, fixedTemperatureConstraint, dictionary)
const dimensionSet dimViscosity
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.
dimensioned< vector > dimensionedVector
Dimensioned vector obtained from generic dimensioned type.
errorManip< error > abort(error &err)
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
label findZoneID(const word &zoneName) const
Find zone index given a name.
virtual const labelList & faceNeighbour() const
Return face neighbour.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
virtual bool read(const dictionary &dict)
Read dictionary.
A special matrix type and solver, designed for finite volume solutions of scalar equations.