33Foam::porosityModelList::porosityModelList
54 anyOk = anyOk || this->operator[](i).active();
57 if (warn && this->size() && !anyOk)
69 for (
const entry& dEntry :
dict)
103 bool ok = pm.read(
dict.subDict(pm.name()));
104 allOk = (allOk && ok);
157 this->operator[](i).addResistance(
UEqn, AU, correctAUprocBC);
164Foam::Ostream& Foam::operator<<
170 models.writeData(
os);
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
const porosityModel * set(const label i) const
constexpr PtrList() noexcept
const porosityModel & operator[](const label i) const
label size() const noexcept
label count() const noexcept
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A keyword and a list of tokens is an 'entry'.
Mesh data needed to do the Finite Volume discretisation.
List container for porosity models.
void addResistance(fvVectorMatrix &UEqn)
Add resistance.
void reset(const dictionary &dict)
Reset the source list.
const fvMesh & mesh_
Reference to the mesh database.
bool writeData(Ostream &os) const
Write data to Ostream.
bool read(const dictionary &dict)
Read dictionary.
bool active(const bool warn=false) const
Return active status.
Top level model for porosity models.
virtual bool read(const dictionary &dict)
Read porosity dictionary.
static autoPtr< porosityModel > New(const word &name, const fvMesh &mesh, const dictionary &dict, const wordRe &cellZoneName=wordRe::null)
Selector.
const word & name() const
Return const access to the porosity model name.
A class for handling words, derived from Foam::string.
patchWriters resize(patchIds.size())
OBJstream os(runTime.globalPath()/outputName)
void set(List< bool > &bools, const labelUList &locations)
Set the listed locations (assign 'true').
unsigned int count(const UList< bool > &bools, const bool val=true)
Count number of 'true' entries.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
messageStream Info
Information stream (stdout output on master, null elsewhere).
Ostream & endl(Ostream &os)
Add newline and flush stream.
GeometricField< tensor, fvPatchField, volMesh > volTensorField
fvMatrix< vector > fvVectorMatrix
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
constexpr char nl
The newline '\n' character (0x0a).
#define forAll(list, i)
Loop across all elements in list.