113#ifndef Foam_functionObjects_sizeDistribution_H
114#define Foam_functionObjects_sizeDistribution_H
301 virtual bool write();
Enum is a wrapper around a list of names/values that represent particular enumeration (or int) values...
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
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,...
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
fvMeshFunctionObject(const fvMeshFunctionObject &)=delete
No copy construct.
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 the function-object 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.
sizeDistribution(const word &name, const Time &runTime, const dictionary &dict)
Construct from name, Time and dictionary.
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 the function-object operations.
virtual bool write()
Write the function-object results.
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.
writeFile(const objectRegistry &obr, const fileName &prefix, const word &name="undefined", const bool writeToFile=true, const string &ext=".dat")
Construct from objectRegistry, prefix, fileName.
Mesh data needed to do the Finite Volume discretisation.
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
Function objects are OpenFOAM utilities to ease workflow configurations and enhance workflows.
Type & refCast(U &obj)
A dynamic_cast (for references) to Type reference.
List< label > labelList
A List of labels.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.