Go to the documentation of this file.
33 Foam::porosityModelList::porosityModelList
54 anyOk = anyOk || this->operator[](i).active();
57 if (warn && this->size() && !anyOk)
69 for (
const entry& dEntry :
dict)
80 for (
const entry& dEntry :
dict)
84 const word&
name = dEntry.keyword();
85 const dictionary& modelDict = dEntry.dict();
102 porosityModel& pm = this->operator[](i);
104 allOk = (allOk && ok);
115 this->operator[](i).writeData(
os);
129 this->operator[](i).addResistance(
UEqn);
143 this->operator[](i).addResistance(
UEqn,
rho,
mu);
157 this->operator[](i).addResistance(
UEqn, AU, correctAUprocBC);
167 const porosityModelList& models
170 models.writeData(
os);
A keyword and a list of tokens is an 'entry'.
GeometricField< tensor, fvPatchField, volMesh > volTensorField
void set(List< bool > &bools, const labelRange &range)
A class for handling words, derived from Foam::string.
const dimensionedScalar mu
const word & name() const
void addResistance(fvVectorMatrix &UEqn)
bool active(const bool warn=false) const
Ostream & endl(Ostream &os)
bool good() const noexcept
List container for porosity models.
void reset(const dictionary &dict)
fvMatrix< vector > fvVectorMatrix
patchWriters resize(patchIds.size())
const dictionary & subDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
GeometricField< scalar, fvPatchField, volMesh > volScalarField
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
bool read(const dictionary &dict)
Mesh data needed to do the Finite Volume discretisation.
meshPtr reset(new Foam::fvMesh(Foam::IOobject(regionName, runTime.timeName(), runTime, Foam::IOobject::MUST_READ), false))
Top level model for porosity models.
unsigned int count(const UList< bool > &bools, const bool val=true)
A special matrix type and solver, designed for finite volume solutions of scalar equations....
bool writeData(Ostream &os) const
word name(const expressions::valueTypeCode typeCode)
virtual bool read(const dictionary &dict)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
static autoPtr< porosityModel > New(const word &name, const fvMesh &mesh, const dictionary &dict, const word &cellZoneName=word::null)
Generic GeometricField class.