84 #ifndef solidification_H
85 #define solidification_H
94 namespace porosityModels
123 template<
class AlphaFieldType,
class RhoFieldType>
128 const AlphaFieldType&
alpha,
129 const RhoFieldType&
rho,
134 template<
class AlphaFieldType,
class RhoFieldType>
138 const AlphaFieldType&
alpha,
139 const RhoFieldType&
rho,
144 template<
class RhoFieldType>
149 const RhoFieldType&
rho,
154 template<
class RhoFieldType>
158 const RhoFieldType&
rho,
176 const word& cellZoneName
Generic GeometricField class.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
A special matrix type and solver, designed for finite volume solutions of scalar equations....
Mesh data needed to do the Finite Volume discretisation.
const word & name() const
Return const access to the porosity model name.
virtual tmp< vectorField > force(const volVectorField &U, const volScalarField &rho, const volScalarField &mu) const
Return the force over the cell zone(s)
Simple solidification porosity model.
TypeName("solidification")
Runtime type information.
virtual void calcForce(const volVectorField &U, const volScalarField &rho, const volScalarField &mu, vectorField &force) const
Calculate the porosity force.
solidification(const word &name, const fvMesh &mesh, const dictionary &dict, const dictionary &coeffDict, const word &cellZoneName)
virtual ~solidification()
Destructor.
virtual void correct(fvVectorMatrix &UEqn) const
Add resistance.
virtual void calcTransformModelData()
Transform the model data wrt mesh changes.
void operator=(const solidification &)=delete
Disallow default bitwise assignment.
A class for handling words, derived from string.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
volScalarField alpha(IOobject("alpha", runTime.name(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
const dimensionedScalar mu
Atomic mass unit.