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_);
266 virtual bool write();
label momentOrder_
Write moments up to specified order with respect to abszissaType.
scalar volume_
Total volume of the evaluated selection.
const labelList & cellId() const
Return the local list of cell IDs.
static const Enum< functionTypes > functionTypeNames_
Function type names.
scalar volume() const
Calculate and return volume of the evaluated cell zone.
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 ...
static const Enum< abszissaTypes > abszissaTypeNames_
Abszissa type names.
scalar sumN_
Sum of number concentrations.
void writeFileHeader(const label i=0)
Output file header information.
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, any/none. Also accepts 0/1 as a string and shortcuts t/f, y/n.
virtual bool execute()
Execute.
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 word & name() const noexcept
Return the name of this functionObject.
const dictionary & dict() const
Return the reference to the construction dictionary.
virtual ~sizeDistribution()
Destructor.
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.
A class for handling words, derived from Foam::string.
labelList cellId_
Local list of cell IDs.
const fvMesh & mesh() const
Helper function to return the reference to the mesh.
selectionModeTypes
Selection mode type enumeration.
sizeDistribution(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
label nCells_
Global number of cells.
selectionModeTypes selectionModeType_
Selection mode type.
void setCellZoneCells()
Set cells to evaluate based on a cell zone.
word selectionModeTypeName_
Name of selection.
virtual bool write()
Write.
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
tmp< scalarField > filterField(const scalarField &field) const
Filter field according to cellIds.
static const Enum< selectionModeTypes > selectionModeTypeNames_
Selection mode type names.
A class for managing temporary objects.
const Foam::diameterModels::populationBalanceModel & popBal_
PopulationBalance.
functionTypes
Function type enumeration.