77 #ifndef functionObjects_sizeDistribution_H 78 #define functionObjects_sizeDistribution_H 92 namespace functionObjects
99 class sizeDistribution
101 public fvMeshFunctionObject,
253 return refCast<const fvMesh>(
obr_);
263 virtual bool write();
label momentOrder_
Write moments up to specified order with respect to abszissaType.
scalar volume_
Total volume of the evaluated region.
tmp< scalarField > filterField(const scalarField &field) const
Filter field according to cellIds.
const labelList & cellId() const
Return the local list of cell IDs.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const word & name() const
Return the name of this functionObject.
static const NamedEnum< regionTypes, 2 > regionTypeNames_
Region type names.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Class that solves the univariate population balance equation by means of a class method (also called ...
scalar sumN_
Sum of number concentrations.
virtual ~sizeDistribution()
Destructor.
regionTypes regionType_
Region type.
static const NamedEnum< functionTypes, 4 > functionTypeNames_
Function type names.
void combineFields(scalarField &field)
Combine fields from all processor domains into single field.
A simple wrapper around bool so that it can be read as a word: true/false, on/off, yes/no, y/n, t/f, or none.
static const NamedEnum< abszissaTypes, 2 > abszissaTypeNames_
Abszissa type names.
virtual bool read(const dictionary &dict)
Read from dictionary.
void initialise(const dictionary &dict)
Initialise, e.g. cell addressing.
const Switch normalize_
Normalization switch.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
const dictionary & dict() const
Return the reference to the construction dictionary.
regionTypes
Region type enumeration.
bool writeVolume_
Optionally write the volume of the sizeDistribution.
List< scalar > N_
Number concentrations.
TypeName("sizeDistribution")
Runtime type information.
functionTypes functionType_
Function type.
dictionary dict_
Construction dictionary.
scalar sumV_
Volumertic sum.
virtual void writeFileHeader(const label i)
Output file header information.
A class for handling words, derived from string.
scalar volume() const
Calculate and return volume of the evaluated cell zone.
labelList cellId_
Local list of cell IDs.
const fvMesh & mesh() const
Helper function to return the reference to the mesh.
virtual bool execute()
Execute.
virtual bool write()
Write.
sizeDistribution(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
label nCells_
Global number of cells.
void setCellZoneCells()
Set cells to evaluate based on a cell zone.
Mesh data needed to do the Finite Volume discretisation.
const objectRegistry & obr_
Reference to the region objectRegistry.
abszissaTypes abszissaType_
Abszissa type.
abszissaTypes
abszissa type enumeration
word regionName_
Name of region.
A class for managing temporary objects.
const Foam::diameterModels::populationBalanceModel & popBal_
PopulationBalance.
functionTypes
Function type enumeration.