Go to the documentation of this file.
79 #ifndef functionObjects_sizeDistribution_H
80 #define functionObjects_sizeDistribution_H
95 namespace functionObjects
102 class sizeDistribution
104 public fvMeshFunctionObject,
256 return refCast<const fvMesh>(
obr_);
260 virtual bool read(
const dictionary&
dict);
266 virtual bool write();
const Switch normalize_
Normalization switch.
const objectRegistry & obr_
Reference to the region objectRegistry.
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from Foam::string.
virtual ~sizeDistribution()
Destructor.
A class for managing temporary objects.
bool writeVolume_
Optionally write the volume of the sizeDistribution.
virtual bool read(const dictionary &dict)
Read from dictionary.
void combineFields(scalarField &field)
Combine fields from all processor domains into single field.
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
scalar volume_
Total volume of the evaluated selection.
List< scalar > N_
Number concentrations.
TypeName("sizeDistribution")
Runtime type information.
dictionary dict_
Construction dictionary.
This function object calculates and outputs information about the size distribution of the dispersed ...
scalar sumV_
Volumertic sum.
static const Enum< functionTypes > functionTypeNames_
Function type names.
static const Enum< selectionModeTypes > selectionModeTypeNames_
Selection mode type names.
functionTypes
Function type enumeration.
void setCellZoneCells()
Set cells to evaluate based on a cell zone.
scalar sumN_
Sum of number concentrations.
const labelList & cellId() const
Return the local list of cell IDs.
scalar volume() const
Calculate and return volume of the evaluated cell zone.
selectionModeTypes
Selection mode type enumeration.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Class that solves the univariate population balance equation by means of a class method (also called ...
void initialise(const dictionary &dict)
Initialise, e.g. cell addressing.
tmp< scalarField > filterField(const scalarField &field) const
Filter field according to cellIds.
label nCells_
Global number of cells.
Mesh data needed to do the Finite Volume discretisation.
sizeDistribution(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
selectionModeTypes selectionModeType_
Selection mode type.
const dictionary & dict() const
Return the reference to the construction dictionary.
virtual bool write()
Write.
static const Enum< abszissaTypes > abszissaTypeNames_
Abszissa type names.
abszissaTypes abszissaType_
Abszissa type.
const word & name() const noexcept
Return the name of this functionObject.
abszissaTypes
abszissa type enumeration
word selectionModeTypeName_
Name of selection.
labelList cellId_
Local list of cell IDs.
const fvMesh & mesh() const
Helper function to return the reference to the mesh.
Base class for writing single files from the function objects.
void writeFileHeader(const label i=0)
Output file header information.
functionTypes functionType_
Function type.
virtual bool execute()
Execute.
label momentOrder_
Write moments up to specified order with respect to abszissaType.
const Foam::diameterModels::populationBalanceModel & popBal_
PopulationBalance.