35 namespace porosityModels
48 const word& modelType,
51 const word& cellZoneName
55 TName_(coeffs_.lookupOrDefault<
word>(
"T",
"T")),
56 alphaName_(coeffs_.lookupOrDefault<
word>(
"alpha",
"none")),
57 rhoName_(coeffs_.lookupOrDefault<
word>(
"rho",
"rho")),
85 apply(Udiag, V, rho, U);
107 apply(Udiag, V, rho, U);
static word group(const word &name)
Return group (extension part of name)
Run-time selectable general function of one variable.
virtual void calcTransformModelData()
Transform the model data wrt mesh changes.
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 correct(fvVectorMatrix &UEqn) const
Add resistance.
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)
virtual void calcForce(const volVectorField &U, const volScalarField &rho, const volScalarField &mu, vectorField &force) const
Calculate the porosity force.
virtual ~solidification()
Destructor.
solidification(const word &name, const word &modelType, const fvMesh &mesh, const dictionary &dict, const word &cellZoneName)
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...
Mesh data needed to do the Finite Volume discretisation.
A special matrix type and solver, designed for finite volume solutions of scalar equations.
bool writeData(Ostream &os) const
Write.
Top level model for porosity models.
const dimensionSet & dimensions() const