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