40 const dictionary& dict,
41 const phaseModel& phase,
42 const velocityGroup& velocityGroup,
53 velocityGroup.phase().name()
57 IOobject::READ_IF_PRESENT,
62 velocityGroup.
f().boundaryField().types()
66 velocityGroup_(velocityGroup),
69 value_(dict.
lookup<scalar>(
"value"))
74 typedef mixedFvPatchField<scalar> mixedFvPatchScalarField;
78 isA<const mixedFvPatchScalarField>(this->boundaryField()[
patchi])
81 mixedFvPatchScalarField&
f =
82 refCast<mixedFvPatchScalarField>
84 this->boundaryFieldRef()[
patchi]
87 f.refValue() = value_;
91 shapeModel_ =
shapeModel::New(velocityGroup_.diameterProperties(), *
this);
107 return autoPtr<sizeGroup>(
nullptr);
115 const populationBalanceModel& popBal =
116 this->
mesh().lookupObject<populationBalanceModel>
118 velocityGroup_.popBalName()
121 forAll(popBal.sizeGroups(), j)
123 if (&popBal.sizeGroups()[j] == &*
this)
125 i_.set(
new label(j));
137 return shapeModel_->a();
144 return shapeModel_->d();
150 shapeModel_->correct();
#define forAll(list, i)
Loop across all elements in list.
FvWallInfoData< WallInfo, label > label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Holds information (coordinate and normal) regarding nearest wall point.
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.
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.
const label & i() const
Return index of the size group within the population balance.