35 namespace porosityModels
45 Foam::porosityModels::powerLaw::powerLaw
48 const word& modelType,
51 const word& cellZoneName
57 rhoName_(coeffs_.lookupOrDefault<
word>(
"rho",
"rho"))
86 apply(Udiag, V, rho, U);
108 apply(Udiag, V, rho, U);
128 apply(Udiag, V, rho, U);
static word group(const word &name)
Return group (extension part of name)
defineTypeNameAndDebug(powerLawLopesdaCosta, 0)
Ostream & indent(Ostream &os)
Indent stream.
A list of keyword definitions, which are a keyword followed by any number of values (e...
addToRunTimeSelectionTable(porosityModel, powerLawLopesdaCosta, mesh)
const GeometricField< Type, fvPatchField, volMesh > & psi() const
void size(const label)
Override size to be inconsistent with allocated storage.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Macros for easy insertion into run-time selection tables.
virtual void calcTransformModelData()
Transform the model data wrt mesh changes.
A class representing the concept of a GeometricField of 1 used to avoid unnecessary manipulations for...
A class for handling words, derived from string.
static word groupName(Name name, const word &group)
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.
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if successful.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
const dimensionSet dimForce
virtual void calcForce(const volVectorField &U, const volScalarField &rho, const volScalarField &mu, vectorField &force) const
Calculate the porosity force.
virtual ~powerLaw()
Destructor.
virtual void correct(fvVectorMatrix &UEqn) const
Add resistance.
bool writeData(Ostream &os) const
Write.
Mesh data needed to do the Finite Volume discretisation.
A special matrix type and solver, designed for finite volume solutions of scalar equations.
virtual Ostream & write(const token &)=0
Write next token to stream.
Top level model for porosity models.
const dimensionSet & dimensions() const