31 template<
class AlphaFieldType,
class RhoFieldType>
32 void Foam::porosityModels::solidification::apply
36 const AlphaFieldType& alpha,
37 const RhoFieldType& rho,
52 const label celli = cells[i];
54 V[celli]*alpha[celli]*rho[celli]*D_->
value(T[celli]);
60 template<
class AlphaFieldType,
class RhoFieldType>
61 void Foam::porosityModels::solidification::apply
64 const AlphaFieldType& alpha,
65 const RhoFieldType& rho,
80 const label celli = cells[i];
88 template<
class RhoFieldType>
89 void Foam::porosityModels::solidification::apply
93 const RhoFieldType& rho,
97 if (alphaName_ ==
"none")
99 return apply(Udiag, V, geometricOneField(), rho, U);
108 return apply(Udiag, V, alpha, rho, U);
113 template<
class RhoFieldType>
114 void Foam::porosityModels::solidification::apply
117 const RhoFieldType& rho,
121 if (alphaName_ ==
"none")
123 return apply(AU, geometricOneField(), rho, U);
132 return apply(AU, alpha, rho, U);
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const meshCellZones & cellZones() const
Return cell zones.
GeometricField< vector, fvPatchField, volMesh > volVectorField
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
virtual Type value(const scalar x) const =0
Return value as a function of scalar x.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
static word groupName(Name name, const word &group)
List< label > labelList
A List of labels.
volScalarField scalarField(fieldObject, mesh)
const fvMesh & mesh_
Reference to the mesh database.
labelList cellZoneIDs_
Cell zone IDs.
Field< tensor > tensorField
Specialisation of Field<T> for tensor.