31 template<
class AlphaFieldType,
class RhoFieldType>
32 void Foam::porosityModels::solidification::apply
36 const AlphaFieldType&
alpha,
37 const RhoFieldType&
rho,
52 V[celli]*
alpha[celli]*
rho[celli]*D_->value(
T[celli]);
57 template<
class AlphaFieldType,
class RhoFieldType>
58 void Foam::porosityModels::solidification::apply
61 const AlphaFieldType&
alpha,
62 const RhoFieldType&
rho,
82 template<
class RhoFieldType>
83 void Foam::porosityModels::solidification::apply
87 const RhoFieldType&
rho,
91 if (alphaName_ ==
"none")
93 return apply(Udiag, V, geometricOneField(),
rho,
U);
107 template<
class RhoFieldType>
108 void Foam::porosityModels::solidification::apply
111 const RhoFieldType&
rho,
115 if (alphaName_ ==
"none")
117 return apply(AU, geometricOneField(),
rho,
U);
#define forAll(list, i)
Loop across all elements in list.
static word groupName(Name name, const word &group)
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type and name.
const cellZoneList & cellZones() const
Return cell zones.
const fvMesh & mesh_
Reference to the mesh database.
word zoneName_
Name of cellZone.
volScalarField scalarField(fieldObject, mesh)
volScalarField alpha(IOobject("alpha", runTime.name(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
VolField< vector > volVectorField
List< label > labelList
A List of labels.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
VolField< scalar > volScalarField
Field< tensor > tensorField
Specialisation of Field<T> for tensor.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)