42 const dictionary& dict,
43 const phaseModel& phase,
44 const velocityGroup& velocityGroup,
57 velocityGroup.phase().name(),
58 velocityGroup.popBalName()
63 IOobject::READ_IF_PRESENT,
68 velocityGroup.
f().boundaryField().types()
72 velocityGroup_(velocityGroup),
74 x_(
"x",
pi/6.0*
pow3(dSph_)),
75 value_(dict.
lookup<scalar>(
"value"))
80 typedef mixedFvPatchField<scalar> mixedFvPatchScalarField;
84 isA<mixedFvPatchScalarField>(this->boundaryFieldRef()[
patchi])
87 mixedFvPatchScalarField&
f =
88 refCast<mixedFvPatchScalarField>
90 this->boundaryFieldRef()[
patchi]
93 f.refValue() = value_;
97 shapeModel_ =
shapeModel::New(velocityGroup_.diameterProperties(), *
this);
113 return autoPtr<sizeGroup>(
nullptr);
121 const populationBalanceModel& popBal =
122 this->
mesh().lookupObject<populationBalanceModel>
124 velocityGroup_.popBalName()
127 forAll(popBal.sizeGroups(), j)
129 if (&popBal.sizeGroups()[j] == &*
this)
131 i_.set(
new label(j));
143 return shapeModel_->a();
150 return shapeModel_->d();
156 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.
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.
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
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.