30 template<
class RhoFieldType>
31 void Foam::porosityModels::powerLawLopesdaCosta::apply
35 const RhoFieldType& rho,
39 const scalar C1m1b2 = (C1_ - 1.0)/2.0;
47 const label celli = cells[i];
57 template<
class RhoFieldType>
58 void Foam::porosityModels::powerLawLopesdaCosta::apply
61 const RhoFieldType& rho,
65 const scalar C1m1b2 = (C1_ - 1.0)/2.0;
73 const label celli = cells[i];
79 0.5*rho[celli]*Cd_*
Sigma_[i]
#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.
volVectorField vectorField(fieldObject, mesh)
static const Identity< scalar > I
const cellZoneMesh & cellZones() const
Return cell zone mesh.
List< label > labelList
A List of labels.
dimensioned< scalar > magSqr(const dimensioned< Type > &)
volScalarField scalarField(fieldObject, mesh)
const fvMesh & mesh_
Reference to the mesh database.
scalarField Sigma_
Porosity surface area per unit volume zone field.
labelList cellZoneIDs_
Cell zone IDs.
Field< tensor > tensorField
Specialisation of Field<T> for tensor.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
Field< vector > vectorField
Specialisation of Field<T> for vector.