This diameterModel is intended for use with a populationBalanceModel in order to simulate polydispersed bubbly or particulate flows. It can hold any number of sizeGroups from which the Sauter mean diameter is calculated. It can also be used as a diameterModel without a populationBalance and would then behave like a constantDiameter model. In this case, some arbitrary name must be entered for the populationBalance keyword. More...
Public Member Functions | |
TypeName ("velocityGroup") | |
Runtime type information. More... | |
velocityGroup (const dictionary &diameterProperties, const phaseModel &phase) | |
Construct from components. More... | |
virtual | ~velocityGroup () |
Destructor. More... | |
const word & | popBalName () const |
Return name of populationBalance this velocityGroup belongs to. More... | |
const volScalarField & | f () const |
Return reference field for sizeGroup's. More... | |
const dimensionedScalar & | formFactor () const |
Return the form factor. More... | |
const PtrList< sizeGroup > & | sizeGroups () const |
Return sizeGroups belonging to this velocityGroup. More... | |
const tmp< fv::convectionScheme< scalar > > & | mvConvection () const |
Return const-reference to multivariate convectionScheme. More... | |
const volScalarField & | dmdt () const |
Return const-reference to the mass transfer rate. More... | |
volScalarField & | dmdtRef () |
Return reference to the mass transfer rate. More... | |
void | preSolve () |
Corrections before populationBalanceModel::solve() More... | |
void | postSolve () |
Corrections after populationBalanceModel::solve() More... | |
virtual bool | read (const dictionary &diameterProperties) |
Read diameterProperties dictionary. More... | |
virtual tmp< volScalarField > | d () const |
Return the Sauter-mean diameter. More... | |
Public Member Functions inherited from diameterModel | |
TypeName ("diameterModel") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, diameterModel, dictionary,(const dictionary &dict, const phaseModel &phase),(dict, phase)) | |
diameterModel (const dictionary &dict, const phaseModel &phase) | |
virtual | ~diameterModel ()=default |
Destructor. More... | |
const dictionary & | diameterProperties () const |
Return the phase diameter properties dictionary. More... | |
const phaseModel & | phase () const |
Return the phase. More... | |
virtual tmp< volScalarField > | d () const =0 |
Return the phase mean diameter field. More... | |
virtual void | correct () |
Correct the diameter field. More... | |
virtual bool | read (const dictionary &phaseProperties)=0 |
Read phaseProperties dictionary. More... | |
TypeName ("diameterModel") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, diameterModel, dictionary,(const dictionary &dict, const phaseModel &phase),(dict, phase)) | |
diameterModel (const dictionary &dict, const phaseModel &phase) | |
virtual | ~diameterModel ()=default |
Destructor. More... | |
const dictionary & | diameterProperties () const |
Return the phase diameter properties dictionary. More... | |
const phaseModel & | phase () const |
Return the phase. More... | |
virtual tmp< volScalarField > | d () const =0 |
Return the phase mean diameter field. More... | |
virtual void | correct () |
Correct the diameter field. More... | |
virtual bool | read (const dictionary &dict)=0 |
Read phaseProperties dictionary. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from diameterModel | |
static autoPtr< diameterModel > | New (const dictionary &diameterProperties, const phaseModel &phase) |
static autoPtr< diameterModel > | New (const dictionary &dict, const phaseModel &phase) |
Protected Attributes inherited from diameterModel | |
dictionary | diameterProperties_ |
const phaseModel & | phase_ |
This diameterModel is intended for use with a populationBalanceModel in order to simulate polydispersed bubbly or particulate flows. It can hold any number of sizeGroups from which the Sauter mean diameter is calculated. It can also be used as a diameterModel without a populationBalance and would then behave like a constantDiameter model. In this case, some arbitrary name must be entered for the populationBalance keyword.
Property | Description |
---|---|
populationBalance | Name of the corresponding populationBalance |
formFactor | Form factor for converting diameter into volume |
sizeGroups | List of sizeGroups |
Example
diameterModel velocityGroup; velocityGroupCoeffs { populationBalance bubbles; formFactor 0.5235987756; sizeGroups ( f0{d 1.00e-3; value 0;} f1{d 1.08e-3; value 0;} f2{d 1.16e-3; value 0.25;} f3{d 1.25e-3; value 0.5;} f4{d 1.36e-3; value 0.25;} f5{d 1.46e-3; value 0;} ... ); }
Definition at line 107 of file velocityGroup.H.
velocityGroup | ( | const dictionary & | diameterProperties, |
const phaseModel & | phase | ||
) |
Construct from components.
Definition at line 146 of file velocityGroup.C.
References e, Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, dictionary::getOrDefault(), Foam::mag(), Foam::max(), DimensionedField< Type, GeoMesh >::mesh(), Foam::min(), phaseModel::name(), Foam::nl, diameterModel::phase(), diameterModel::phase_, solution::solverDict(), and DimensionedField< Type, GeoMesh >::weightedAverage().
|
virtual |
Destructor.
Definition at line 277 of file velocityGroup.C.
TypeName | ( | "velocityGroup" | ) |
Runtime type information.
|
inline |
Return name of populationBalance this velocityGroup belongs to.
Definition at line 31 of file velocityGroupI.H.
|
inline |
Return reference field for sizeGroup's.
Definition at line 38 of file velocityGroupI.H.
|
inline |
Return the form factor.
Definition at line 45 of file velocityGroupI.H.
Referenced by sizeDistribution::write().
|
inline |
Return sizeGroups belonging to this velocityGroup.
Definition at line 52 of file velocityGroupI.H.
Referenced by phaseChange::addToDriftRate(), and phaseChange::correct().
|
inline |
Return const-reference to multivariate convectionScheme.
Definition at line 59 of file velocityGroupI.H.
Referenced by populationBalanceModel::solve().
|
inline |
Return const-reference to the mass transfer rate.
Definition at line 65 of file velocityGroupI.H.
Referenced by populationBalanceModel::solve().
|
inline |
Return reference to the mass transfer rate.
Definition at line 72 of file velocityGroupI.H.
void preSolve | ( | ) |
Corrections before populationBalanceModel::solve()
Definition at line 284 of file velocityGroup.C.
void postSolve | ( | ) |
Corrections after populationBalanceModel::solve()
Definition at line 290 of file velocityGroup.C.
References Foam::endl(), Foam::Info, Foam::max(), Foam::min(), and phase::name().
|
virtual |
Read diameterProperties dictionary.
Implements diameterModel.
Definition at line 322 of file velocityGroup.C.
References kEpsilonLopesdaCosta< BasicTurbulenceModel >::read().
|
virtual |
Return the Sauter-mean diameter.
Implements diameterModel.
Definition at line 332 of file velocityGroup.C.