Go to the documentation of this file.
94 #ifndef solidificationMeltingSource_H
95 #define solidificationMeltingSource_H
113 class solidificationMeltingSource
181 tmp<volScalarField>
Cp()
const;
190 template<
class RhoFieldType>
203 TypeName(
"solidificationMeltingSource");
212 const word& modelType,
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
scalar q_
Coefficient used in porosity calc - default = 0.001.
A class for handling words, derived from string.
Cell-set options abtract base class. Provides a base set of controls, e.g.
A class for managing temporary objects.
scalar relax_
Phase fraction under-relaxation coefficient.
scalarField deltaT_
Temperature change cached for source calculation when alpha1 updated.
vector g() const
Return the gravity vector.
label curTimeIndex_
Current time index (used for updating)
scalar beta_
Thermal expansion coefficient [1/K].
void update(const volScalarField &Cp)
Update the model.
word phiName_
Name of flux field - default = "phi" (optional)
static const NamedEnum< thermoMode, 2 > thermoModeTypeNames_
word CpName_
Name of specific heat capacity field - default = "Cp" (optional)
word UName_
Name of velocity field - default = "U" (optional)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
tmp< volScalarField > Cp() const
Return the specific heat capacity field.
A list of keyword definitions, which are a keyword followed by any number of values (e....
solidificationMeltingSource(const solidificationMeltingSource &)
Disallow default bitwise copy construct.
Mesh data needed to do the Finite Volume discretisation.
TypeName("solidificationMeltingSource")
Runtime type information.
Vector< scalar > vector
A scalar version of the templated Vector.
word TName_
Name of temperature field - default = "T" (optional)
thermoMode mode_
Thermodynamics mode.
scalar Tmelt_
Temperature at which melting occurs [K].
volScalarField alpha1_
Phase fraction indicator field.
virtual void addSup(fvMatrix< scalar > &eqn, const label fieldI)
Add explicit contribution to enthalpy equation.
virtual bool read(const dictionary &dict)
Read source dictionary.
void operator=(const solidificationMeltingSource &)
Disallow default bitwise assignment.
scalar L_
Latent heat of fusion [J/kg].
scalar Cu_
Mushy region momentum sink coefficient [1/s]; default = 10^5.
const fvMesh & mesh() const
Return const access to the mesh database.
A special matrix type and solver, designed for finite volume solutions of scalar equations....
void apply(const RhoFieldType &rho, fvMatrix< scalar > &eqn)
Helper function to apply to the energy equation.
Generic GeometricField class.
scalar rhoRef_
Reference density - typically the solid density.
This source is designed to model the effect of solidification and melting processes,...