71 #ifndef sizeDistribution_H 72 #define sizeDistribution_H 85 namespace functionObjects
92 class sizeDistribution
94 public fvMeshFunctionObject,
201 const word& functionTypeName,
242 virtual bool write();
tmp< scalarField > filterField(const scalarField &field) const
Filter field according to cellIds.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
pointField bins_
Bins (representative volume/area/diameter)
functionType
Function type enumeration.
const word & name() const
Return the name of this functionObject.
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 ...
virtual ~sizeDistribution()
Destructor.
autoPtr< setWriter< scalar > > scalarFormatter_
Output formatter, set to raw.
label binCmpt_
Bin component used according to chosen coordinate type.
void writeGraph(const coordSet &coords, const word &functionTypeName, const scalarField &values)
Output function for all functionType number/volume.
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/any.
label maxOrder_
Highest moment order.
virtual bool read(const dictionary &)
Read the sizeDistribution data.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
coordinateType coordinateType_
Abscissa type.
void writeStdDev()
Write standard deviation.
Switch normalise_
Normalise number/volume concentrations.
TypeName("sizeDistribution")
Runtime type information.
Holds list of sampling positions.
This function object calculates and outputs volume-averaged information about the size distribution o...
virtual void writeFileHeader(const label i)
Output file header information for functionType moments.
A class for handling words, derived from string.
writeFile(const objectRegistry &obr, const word &prefix)
Construct from objectRegistry and prefix.
virtual bool execute()
Execute, currently does nothing.
coordinateType
Coordinate type enumeration.
virtual bool write()
Calculate and write the size distribution.
static const NamedEnum< coordinateType, 4 > coordinateTypeNames_
Coordinate type names.
sizeDistribution(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
const fvMesh & mesh_
Reference to fvMesh.
scalarField a_
List of volume-averaged surface areas.
void writeDistribution()
Write distribution.
void correctVolAverages()
Correct volume averages.
writeFile file_
File containing data for all functionTypes except moments.
scalarField d_
List of volume-averaged diameters.
void writeMoments()
Write moments.
static const NamedEnum< functionType, 4 > functionTypeNames_
Ordinate type names.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
void operator=(const sizeDistribution &)=delete
Disallow default bitwise assignment.
functionType functionType_
Function to evaluate.
A class for managing temporary objects.
const Foam::diameterModels::populationBalanceModel & popBal_
Reference to populationBalanceModel.
Switch densityFunction_
Determines whether density function is calculated.
virtual bool end()
Execute at the final time-loop, currently does nothing.
Switch geometric_
Geometric standard deviation/density function.
scalarField N_
List of volume-averaged number concentrations.