31 Foam::porosityModelList::porosityModelList
62 if (warn && this->
size() && !a)
64 Info<<
"No porosity models active" <<
endl;
108 allOk = (allOk && ok);
147 this->
operator[](i).addResistance(UEqn, rho, mu);
161 this->
operator[](i).addResistance(UEqn, AU, correctAUprocBC);
174 models.writeData(os);
bool read(const dictionary &dict)
Read dictionary.
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A list of keyword definitions, which are a keyword followed by any number of values (e...
const fvMesh & mesh_
Reference to the mesh database.
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
bool active(const bool active=false) const
Return active status.
bool good() const
Return true if next operation might succeed.
Ostream & endl(Ostream &os)
Add newline and flush stream.
~porosityModelList()
Destructor.
bool writeData(Ostream &os) const
Write data to Ostream.
A class for handling words, derived from string.
void reset(const dictionary &dict)
Reset the source list.
A special matrix type and solver, designed for finite volume solutions of scalar equations. Face addressing is used to make all matrix assembly and solution loops vectorise.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
void setSize(const label)
Reset size of PtrList. If extending the PtrList, new entries are.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
const word & name() const
Return const access to the porosity model name.
word name(const complex &)
Return a string representation of a complex.
const T & operator[](const label) const
Return element const reference.
Mesh data needed to do the Finite Volume discretisation.
List container for porosity models.
static autoPtr< porosityModel > New(const word &name, const fvMesh &mesh, const dictionary &dict, const word &cellZoneName=word::null)
Selector.
void addResistance(fvVectorMatrix &UEqn)
Add resistance.
virtual bool read(const dictionary &dict)
Read porosity dictionary.
Top level model for porosity models.
label size() const
Return the number of elements in the UPtrList.