42 const dictionary& dict,
43 const phaseModel& phase,
44 const velocityGroup& velocityGroup,
55 velocityGroup.phase().name()
59 IOobject::READ_IF_PRESENT,
64 velocityGroup.
f().boundaryField().types()
68 velocityGroup_(velocityGroup),
71 value_(dict.
lookup<scalar>(
"value"))
76 typedef mixedFvPatchField<scalar> mixedFvPatchScalarField;
80 isA<mixedFvPatchScalarField>(this->boundaryFieldRef()[
patchi])
83 mixedFvPatchScalarField&
f =
84 refCast<mixedFvPatchScalarField>
86 this->boundaryFieldRef()[
patchi]
89 f.refValue() = value_;
93 shapeModel_ =
shapeModel::New(velocityGroup_.diameterProperties(), *
this);
109 return autoPtr<sizeGroup>(
nullptr);
117 const populationBalanceModel& popBal =
118 this->
mesh().lookupObject<populationBalanceModel>
120 velocityGroup_.popBalName()
123 forAll(popBal.sizeGroups(), j)
125 if (&popBal.sizeGroups()[j] == &*
this)
127 i_.set(
new label(j));
139 return shapeModel_->a();
146 return shapeModel_->d();
152 shapeModel_->correct();
#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.
sizeGroup(const word &name, const dictionary &dict, const phaseModel &phase, const velocityGroup &velocityGroup, const fvMesh &mesh)
const tmp< volScalarField > d() const
Return representative diameter of the sizeGroup.
const dimensionSet dimless
const dimensionSet dimLength
GeometricField< scalar, fvPatchField, volMesh > volScalarField
void correct()
Correct secondary properties.
const tmp< volScalarField > a() const
Return representative surface area of the sizeGroup.
virtual ~sizeGroup()
Destructor.
autoPtr< sizeGroup > clone() const
Return clone.
stressControl lookup("compactNormalStress") >> compactNormalStress
static autoPtr< shapeModel > New(const dictionary &dict, const sizeGroup &group)
dimensionedScalar pow3(const dimensionedScalar &ds)
#define notImplemented(functionName)
Issue a FatalErrorIn for a function not currently implemented.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const autoPtr< label > & i() const
Return label of the sizeGroup within the population balance.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A class for managing temporary objects.