35 namespace porosityModels
48 const word& modelType,
51 const word& cellZoneName
55 C0_(coeffs_.lookup<scalar>(
"C0")),
56 C1_(coeffs_.lookup<scalar>(
"C1")),
57 rhoName_(coeffs_.lookupOrDefault<
word>(
"rho",
"rho"))
86 apply(Udiag, V, rho, U);
108 apply(Udiag, V, rho, U);
static word group(const word &name)
Return group (extension part of name)
virtual Ostream & write(const char)=0
Write character.
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...
powerLaw(const word &name, const word &modelType, const fvMesh &mesh, const dictionary &dict, const word &cellZoneName)
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.
const dimensionSet dimForce
An Ostream is an abstract base class for all output systems (streams, files, token lists...
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.
Top level model for porosity models.
const dimensionSet & dimensions() const