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);
bool writeData(Ostream &os) const
Write data to Ostream.
bool read(const dictionary &dict)
Read dictionary.
patchWriters resize(patchIds.size())
A list of keyword definitions, which are a keyword followed by a number of values (eg...
GeometricField< tensor, fvPatchField, volMesh > volTensorField
constexpr char nl
The newline '\n' character (0x0a)
Ostream & endl(Ostream &os)
Add newline and flush stream.
static autoPtr< porosityModel > New(const word &name, const fvMesh &mesh, const dictionary &dict, const wordRe &cellZoneName=wordRe::null)
Selector.
const dictionary & subDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary.
#define forAll(list, i)
Loop across all elements in list.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
unsigned int count(const UList< bool > &bools, const bool val=true)
Count number of 'true' entries.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
void reset(const dictionary &dict)
Reset the source list.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
const dimensionedScalar mu
Atomic mass unit.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers...
bool good() const noexcept
True if next operation might succeed.
Mesh data needed to do the Finite Volume discretisation.
fvMatrix< vector > fvVectorMatrix
messageStream Info
Information stream (stdout output on master, null elsewhere)
bool active(const bool warn=false) const
Return active status.
void addResistance(fvVectorMatrix &UEqn)
Add resistance.
Top level model for porosity models.