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);
bool good() const noexcept
True if next operation might succeed.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
virtual bool read()
Re-read model coefficients if they have changed.
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const dictionary & subDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary.
void reset()
Reset to defaults.
A keyword and a list of tokens is an 'entry'.
A special matrix type and solver, designed for finite volume solutions of scalar equations....
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.
bool writeData(Ostream &os) const
Write data to Ostream.
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.
const word & name() const
Return const access to the porosity model name.
A class for handling words, derived from Foam::string.
const volScalarField & mu
patchWriters resize(patchIds.size())
OBJstream os(runTime.globalPath()/outputName)
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
constexpr char nl
The newline '\n' character (0x0a)
#define forAll(list, i)
Loop across all elements in list.