Go to the documentation of this file.
33 Foam::porosityModelList::porosityModelList
54 anyOk = anyOk || this->operator[](i).active();
57 if (warn && this->size() && !anyOk)
59 Info<<
"No porosity models active" <<
endl;
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);
170 models.writeData(
os);
A keyword and a list of tokens is an 'entry'.
void set(List< bool > &bools, const labelRange &range)
Set the specified range 'on' in a boolList.
A class for handling words, derived from Foam::string.
const dimensionedScalar mu
Atomic mass unit.
const word & name() const
Return const access to the porosity model name.
void addResistance(fvVectorMatrix &UEqn)
Add resistance.
bool active(const bool warn=false) const
Return active status.
Ostream & endl(Ostream &os)
Add newline and flush stream.
#define forAll(list, i)
Loop across all elements in list.
bool good() const noexcept
True if next operation might succeed.
List container for porosity models.
void reset(const dictionary &dict)
Reset the source list.
patchWriters resize(patchIds.size())
messageStream Info
Information stream (stdout output on master, null elsewhere)
const dictionary & subDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary.
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)
Read dictionary.
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)
Count number of 'true' entries.
A special matrix type and solver, designed for finite volume solutions of scalar equations....
bool writeData(Ostream &os) const
Write data to Ostream.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
virtual bool read(const dictionary &dict)
Read porosity dictionary.
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)
Selector.