35 namespace porosityModels
45 Foam::porosityModels::solidification::solidification
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);
127 apply(Udiag, V, rho, U);
static word group(const word &name)
Return group (extension part of name)
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
virtual void calcTransformModelData()
Transform the model data wrt mesh changes.
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.
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.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
const dimensionSet dimForce
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.
bool writeData(Ostream &os) const
Write.
Top level model for porosity models.
const dimensionSet & dimensions() const