89 allOk = (allOk && ok);
128 this->
operator[](i).addResistance(UEqn, AU, correctAUprocBC);
141 models.writeData(os);
bool writeData(Ostream &os) const
Write data to Ostream.
bool read(const dictionary &dict)
Read dictionary.
#define forAll(list, i)
Loop across all elements in list.
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
const fvMesh & mesh_
Reference to the mesh database.
const T & operator[](const label) const
Return element const reference.
porosityModelList(const fvMesh &mesh, const dictionary &dict)
label count(const ListType &l, typename ListType::const_reference x)
Count the number of occurrences of a value in a list.
~porosityModelList()
Destructor.
bool good() const
Return true if next operation might succeed.
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
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.
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...
word name(const complex &)
Return a string representation of a complex.
const word & name() const
Return const access to the porosity model name.
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.