31 template<
class AlphaFieldType,
class RhoFieldType>
32 void Foam::porosityModels::solidification::apply
36 const AlphaFieldType&
alpha,
37 const RhoFieldType&
rho,
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,
74 forAll(cellZoneIDs_, zoneI)
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);
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);
#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 meshCellZones & cellZones() const
Return cell zones.
const fvMesh & mesh_
Reference to the mesh database.
labelList cellZoneIDs_
Cell zone IDs.
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)