31 template<
class RhoFieldType>
32 void Foam::porosityModels::powerLaw::apply
36 const RhoFieldType&
rho,
40 const scalar C0 = C0_;
41 const scalar C1m1b2 = (C1_ - 1.0)/2.0;
47 for (
const label celli :
cells)
56 template<
class RhoFieldType>
57 void Foam::porosityModels::powerLaw::apply
60 const RhoFieldType&
rho,
64 const scalar C0 = C0_;
65 const scalar C1m1b2 = (C1_ - 1.0)/2.0;
67 for (
const label zonei : cellZoneIDs_)
71 for (
const label celli :
cells)
static const Identity< scalar > I
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
const fvMesh & mesh_
Reference to the mesh database.
labelList cellZoneIDs_
Cell zone IDs.
Field< tensor > tensorField
Specialisation of Field<T> for tensor.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
const cellZoneMesh & cellZones() const noexcept
Return cell zone mesh.
Field< vector > vectorField
Specialisation of Field<T> for vector.
List< label > labelList
A List of labels.
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)