This function object calculates and outputs information about the size distribution of the dispersed phase, such as the number density function or its moments. It is designed to be used exclusively with the population balance modeling functionality of the reactingEulerFoam solvers. It can be applied to a specific cellZone or the entire domain. More...
Public Types | |
enum | selectionModeTypes { rtCellZone, rtAll } |
enum | functionTypes { ftNdf, ftVdf, ftNc, ftMom } |
enum | abszissaTypes { atDiameter, atVolume } |
Public Member Functions | |
TypeName ("sizeDistribution") | |
sizeDistribution (const word &name, const Time &runTime, const dictionary &dict) | |
virtual | ~sizeDistribution () |
const dictionary & | dict () const |
const labelList & | cellId () const |
const fvMesh & | mesh () const |
virtual bool | read (const dictionary &dict) |
virtual bool | execute () |
virtual bool | write () |
![]() | |
TypeName ("fvMeshFunctionObject") | |
fvMeshFunctionObject (const word &name, const Time &runTime, const dictionary &dict) | |
fvMeshFunctionObject (const word &name, const objectRegistry &obr, const dictionary &dict) | |
virtual | ~fvMeshFunctionObject ()=default |
![]() | |
TypeName ("regionFunctionObject") | |
regionFunctionObject (const word &name, const Time &runTime, const dictionary &dict) | |
regionFunctionObject (const word &name, const objectRegistry &obr, const dictionary &dict) | |
virtual | ~regionFunctionObject ()=default |
template<class ObjectType > | |
const ObjectType * | lookupObjectPtr (const word &fieldName) const |
template<class ObjectType > | |
ObjectType * | lookupObjectRefPtr (const word &fieldName) const |
![]() | |
stateFunctionObject (const word &name, const Time &runTime) | |
virtual | ~stateFunctionObject ()=default |
dictionary & | propertyDict () |
bool | foundProperty (const word &entryName) const |
void | clearTrigger () |
label | getTrigger () const |
bool | setTrigger (const label triggeri, bool increaseOnly=true) |
bool | getDict (const word &entryName, dictionary &dict) const |
bool | getObjectDict (const word &objectName, const word &entryName, dictionary &dict) const |
template<class Type > | |
Type | getProperty (const word &entryName, const Type &defaultValue=Type(Zero)) const |
template<class Type > | |
bool | getProperty (const word &entryName, Type &value) const |
template<class Type > | |
void | setProperty (const word &entryName, const Type &value) |
template<class Type > | |
Type | getObjectProperty (const word &objectName, const word &entryName, const Type &defaultValue=Type(Zero)) const |
template<class Type > | |
bool | getObjectProperty (const word &objectName, const word &entryName, Type &value) const |
template<class Type > | |
void | setObjectProperty (const word &objectName, const word &entryName, const Type &value) |
template<class Type > | |
void | setResult (const word &entryName, const Type &value) |
template<class Type > | |
void | setObjectResult (const word &objectName, const word &entryName, const Type &value) |
template<class Type > | |
Type | getResult (const word &entryName, const Type &defaultValue=Type(Zero)) const |
template<class Type > | |
Type | getObjectResult (const word &objectName, const word &entryName, const Type &defaultValue=Type(Zero)) const |
template<class Type > | |
bool | getObjectResult (const word &objectName, const word &entryName, Type &value) const |
word | resultType (const word &entryName) const |
word | objectResultType (const word &objectName, const word &entryName) const |
wordList | objectResultEntries () const |
wordList | objectResultEntries (const word &objectName) const |
void | writeResultEntries (Ostream &os) const |
void | writeResultEntries (const word &objectName, Ostream &os) const |
void | writeAllResultEntries (Ostream &os) const |
![]() | |
timeFunctionObject (const word &name, const Time &runTime) | |
virtual | ~timeFunctionObject ()=default |
const Time & | time () const |
objectRegistry & | storedObjects () |
const objectRegistry & | storedObjects () const |
![]() | |
declareRunTimeSelectionTable (autoPtr, functionObject, dictionary,(const word &name, const Time &runTime, const dictionary &dict),(name, runTime, dict)) | |
functionObject (const word &name, const bool withNamePrefix=defaultUseNamePrefix) | |
autoPtr< functionObject > | clone () const |
virtual | ~functionObject ()=default |
virtual const word & | type () const =0 |
const word & | name () const noexcept |
bool | useNamePrefix () const noexcept |
bool | useNamePrefix (bool on) noexcept |
virtual bool | execute (const label subIndex) |
virtual bool | end () |
virtual bool | adjustTimeStep () |
virtual bool | filesModified () const |
virtual void | updateMesh (const mapPolyMesh &mpm) |
virtual void | movePoints (const polyMesh &mesh) |
![]() | |
writeFile (const objectRegistry &obr, const fileName &prefix, const word &name="undefined", const bool writeToFile=true) | |
writeFile (const objectRegistry &obr, const fileName &prefix, const word &name, const dictionary &dict, const bool writeToFile=true) | |
writeFile (const writeFile &wf) | |
virtual | ~writeFile ()=default |
virtual OFstream & | file () |
virtual bool | writeToFile () const |
virtual bool | canWriteHeader () const |
virtual label | charWidth () const |
virtual void | writeCommented (Ostream &os, const string &str) const |
virtual void | writeTabbed (Ostream &os, const string &str) const |
virtual void | writeHeader (Ostream &os, const string &str) const |
virtual void | writeCurrentTime (Ostream &os) const |
virtual void | writeBreak (Ostream &os) const |
template<class Type > | |
void | writeHeaderValue (Ostream &os, const string &property, const Type &value) const |
Static Public Attributes | |
static const Enum< selectionModeTypes > | selectionModeTypeNames_ |
static const Enum< functionTypes > | functionTypeNames_ |
static const Enum< abszissaTypes > | abszissaTypeNames_ |
![]() | |
static int | debug |
static bool | postProcess |
static bool | defaultUseNamePrefix |
static word | outputPrefix |
![]() | |
static label | addChars = 8 |
Protected Member Functions | |
void | initialise (const dictionary &dict) |
void | setCellZoneCells () |
scalar | volume () const |
void | combineFields (scalarField &field) |
tmp< scalarField > | filterField (const scalarField &field) const |
void | writeFileHeader (const label i=0) |
![]() | |
fvMeshFunctionObject (const fvMeshFunctionObject &)=delete | |
void | operator= (const fvMeshFunctionObject &)=delete |
![]() | |
virtual const objectRegistry & | obr () const |
template<class ObjectType > | |
bool | foundObject (const word &fieldName) const |
template<class ObjectType > | |
const ObjectType * | cfindObject (const word &fieldName) const |
template<class ObjectType > | |
const ObjectType * | findObject (const word &fieldName) const |
template<class ObjectType > | |
ObjectType * | findObject (const word &fieldName) |
template<class ObjectType > | |
ObjectType * | getObjectPtr (const word &fieldName) const |
template<class ObjectType > | |
const ObjectType & | lookupObject (const word &fieldName) const |
template<class ObjectType > | |
ObjectType & | lookupObjectRef (const word &fieldName) const |
template<class ObjectType > | |
bool | store (word &fieldName, const tmp< ObjectType > &tfield, bool cacheable=false) |
template<class ObjectType > | |
bool | storeInDb (const word &fieldName, const tmp< ObjectType > &tfield, const objectRegistry &obr) |
bool | writeObject (const word &fieldName) |
bool | clearObject (const word &fieldName) |
void | clearObjects (const wordList &objNames) |
regionFunctionObject (const regionFunctionObject &)=delete | |
void | operator= (const regionFunctionObject &)=delete |
![]() | |
const functionObjects::properties & | stateDict () const |
functionObjects::properties & | stateDict () |
stateFunctionObject (const stateFunctionObject &)=delete | |
void | operator= (const stateFunctionObject &)=delete |
![]() | |
void | clearOutputObjects (const wordList &objNames) |
timeFunctionObject (const timeFunctionObject &)=delete | |
void | operator= (const timeFunctionObject &)=delete |
![]() | |
word | scopedName (const word &name) const |
![]() | |
void | initStream (Ostream &os) const |
fileName | baseFileDir () const |
fileName | baseTimeDir () const |
virtual autoPtr< OFstream > | createFile (const word &name, scalar timeValue) const |
virtual autoPtr< OFstream > | createFile (const word &name) const |
virtual void | resetFile (const word &name) |
Omanip< int > | valueWidth (const label offset=0) const |
void | operator= (const writeFile &)=delete |
Protected Attributes | |
dictionary | dict_ |
selectionModeTypes | selectionModeType_ |
word | selectionModeTypeName_ |
functionTypes | functionType_ |
abszissaTypes | abszissaType_ |
label | nCells_ |
labelList | cellId_ |
scalar | volume_ |
bool | writeVolume_ |
const Foam::diameterModels::populationBalanceModel & | popBal_ |
List< scalar > | N_ |
label | momentOrder_ |
const Switch | normalize_ |
scalar | sumN_ |
scalar | sumV_ |
![]() | |
const fvMesh & | mesh_ |
![]() | |
word | subRegistryName_ |
const objectRegistry & | obr_ |
const objectRegistry * | obrPtr_ |
![]() | |
const Time & | time_ |
![]() | |
const objectRegistry & | fileObr_ |
const fileName | prefix_ |
word | fileName_ |
autoPtr< OFstream > | filePtr_ |
label | writePrecision_ |
bool | writeToFile_ |
bool | updateHeader_ |
bool | writtenHeader_ |
bool | useUserTime_ |
scalar | startTime_ |
Additional Inherited Members | |
![]() | |
static autoPtr< functionObject > | New (const word &name, const Time &runTime, const dictionary &dict) |
![]() | |
bool | log |
This function object calculates and outputs information about the size distribution of the dispersed phase, such as the number density function or its moments. It is designed to be used exclusively with the population balance modeling functionality of the reactingEulerFoam solvers. It can be applied to a specific cellZone or the entire domain.
Example of function object specification:
box.all.numberDensity.volume.bubbles { type sizeDistribution; libs (reactingEulerFoamFunctionObjects); writeControl outputTime; writeInterval 1; log true; ... functionType numberDensity; abszissaType volume; selectionMode all; populationBalanceModel bubbles; normalize true; }
Property | Description | Required | Default value |
---|---|---|---|
type | type name: sizeDistribution | yes | |
functionType | numberDensity, volumeDensity, numberConcentration, | ||
moments | yes | ||
abszissaType | volume, diameter | yes | |
momentOrder | Write moment up to given order | no | 0 |
selectionMode | Evaluate for cellZone or entire mesh | yes | |
cellZone | Required if selectionMode is cellZone | ||
populationBalanceModel | Respective populationBalanceModel | yes | |
normalize | Normalization | no |
Definition at line 144 of file sizeDistribution.H.
enum selectionModeTypes |
Enumerator | |
---|---|
rtCellZone | |
rtAll |
Definition at line 155 of file sizeDistribution.H.
enum functionTypes |
Enumerator | |
---|---|
ftNdf | |
ftVdf | |
ftNc | |
ftMom |
Definition at line 166 of file sizeDistribution.H.
enum abszissaTypes |
Enumerator | |
---|---|
atDiameter | |
atVolume |
Definition at line 179 of file sizeDistribution.H.
sizeDistribution | ( | const word & | name, |
const Time & | runTime, | ||
const dictionary & | dict | ||
) |
Definition at line 339 of file sizeDistribution.C.
References dict, Foam::name(), and Foam::read().
|
virtual |
Definition at line 380 of file sizeDistribution.C.
|
protected |
Definition at line 77 of file sizeDistribution.C.
References dict, Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, FatalIOErrorInLookup, Foam::Info, Foam::name(), Foam::nl, and Foam::fieldTypes::volume.
|
protected |
Definition at line 161 of file sizeDistribution.C.
References sizeDistribution::cellId_, polyMesh::cellZones(), sizeDistribution::dict(), sizeDistribution::dict_, Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, FatalIOErrorInLookup, ZoneMesh::findZoneID(), Foam::identity(), sizeDistribution::mesh(), ZoneMesh::names(), sizeDistribution::nCells_, Foam::nl, word::null, dictionary::readEntry(), Foam::returnReduce(), sizeDistribution::rtAll, sizeDistribution::rtCellZone, sizeDistribution::selectionModeType_, sizeDistribution::selectionModeTypeName_, and sizeDistribution::selectionModeTypeNames_.
|
protected |
Definition at line 207 of file sizeDistribution.C.
References Foam::gSum(), and mesh.
|
protected |
Definition at line 213 of file sizeDistribution.C.
References field(), Pstream::gatherList(), UPstream::master(), UPstream::myProcNo(), and UPstream::nProcs().
|
protected |
Definition at line 235 of file sizeDistribution.C.
References field().
|
protected |
Definition at line 244 of file sizeDistribution.C.
References sizeGroup::d(), Foam::endl(), forAll, Foam::tab, dimensioned::value(), Foam::writeHeader(), and sizeGroup::x().
TypeName | ( | "sizeDistribution" | ) |
|
inline |
Definition at line 284 of file sizeDistribution.H.
References sizeDistribution::dict_.
Referenced by sizeDistribution::setCellZoneCells().
|
inline |
Definition at line 290 of file sizeDistribution.H.
References sizeDistribution::cellId_.
|
inline |
Definition at line 296 of file sizeDistribution.H.
References regionFunctionObject::obr_.
Referenced by sizeDistribution::setCellZoneCells().
|
virtual |
Reimplemented from writeFile.
Definition at line 386 of file sizeDistribution.C.
References dict, regionFunctionObject::read(), and writeFile::read().
|
virtual |
Implements functionObject.
Definition at line 402 of file sizeDistribution.C.
|
virtual |
Implements functionObject.
Definition at line 408 of file sizeDistribution.C.
References Foam::constant::atomic::alpha, sizeGroup::d(), delta, Foam::endl(), forAll, velocityGroup::formFactor(), Log, UPstream::master(), mesh, Foam::name(), Foam::nl, diameterModel::phase(), Foam::pow(), Foam::sum(), Foam::tab, Foam::type(), dimensioned::value(), Foam::HashTableOps::values(), sizeGroup::VelocityGroup(), and sizeGroup::x().
|
static |
Definition at line 162 of file sizeDistribution.H.
Referenced by sizeDistribution::setCellZoneCells().
|
static |
Definition at line 175 of file sizeDistribution.H.
|
static |
Definition at line 186 of file sizeDistribution.H.
|
protected |
Definition at line 194 of file sizeDistribution.H.
Referenced by sizeDistribution::dict(), and sizeDistribution::setCellZoneCells().
|
protected |
Definition at line 197 of file sizeDistribution.H.
Referenced by sizeDistribution::setCellZoneCells().
|
protected |
Definition at line 200 of file sizeDistribution.H.
Referenced by sizeDistribution::setCellZoneCells().
|
protected |
Definition at line 203 of file sizeDistribution.H.
|
protected |
Definition at line 206 of file sizeDistribution.H.
|
protected |
Definition at line 209 of file sizeDistribution.H.
Referenced by sizeDistribution::setCellZoneCells().
|
protected |
Definition at line 212 of file sizeDistribution.H.
Referenced by sizeDistribution::cellId(), and sizeDistribution::setCellZoneCells().
|
protected |
Definition at line 215 of file sizeDistribution.H.
|
protected |
Definition at line 218 of file sizeDistribution.H.
|
protected |
Definition at line 221 of file sizeDistribution.H.
|
protected |
Definition at line 224 of file sizeDistribution.H.
|
protected |
Definition at line 227 of file sizeDistribution.H.
|
protected |
Definition at line 230 of file sizeDistribution.H.
|
protected |
Definition at line 233 of file sizeDistribution.H.
|
protected |
Definition at line 236 of file sizeDistribution.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.