33 template<
class AlphaFieldType,
class RhoFieldType>
34 void Foam::porosityModels::solidification::apply
38 const AlphaFieldType&
alpha,
39 const RhoFieldType&
rho,
52 for (
const label celli :
cells)
55 V[celli]*
alpha[celli]*
rho[celli]*D_->value(
T[celli]);
61 template<
class AlphaFieldType,
class RhoFieldType>
62 void Foam::porosityModels::solidification::apply
65 const AlphaFieldType&
alpha,
66 const RhoFieldType&
rho,
75 for (
const label zonei : cellZoneIDs_)
79 for (
const label celli :
cells)
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);
const Type & lookupObject(const word &name, const bool recursive=false) const
Lookup and return const reference to the object of the given Type. Fatal if not found or the wrong ty...
static void apply(bitSet &selection, const Detail::parcelSelection::actionType action, const Predicate &accept, const UList< Type > &list, const AccessOp &aop)
GeometricField< vector, fvPatchField, volMesh > volVectorField
GeometricField< scalar, fvPatchField, volMesh > volScalarField
static word groupName(StringType base, const word &group)
Create dot-delimited name.group string.
static const Identity< scalar > I
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
const fvMesh & mesh_
Reference to the mesh database.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
labelList cellZoneIDs_
Cell zone IDs.
Field< tensor > tensorField
Specialisation of Field<T> for tensor.
const cellZoneMesh & cellZones() const noexcept
Return cell zone mesh.
List< label > labelList
A List of labels.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].