Go to the documentation of this file.
172 #ifndef functionObjects_regionSizeDistribution_H
173 #define functionObjects_regionSizeDistribution_H
191 namespace functionObjects
198 class regionSizeDistribution
200 public fvMeshFunctionObject,
227 autoPtr<writer<scalar>> formatterPtr_;
230 autoPtr<coordinateSystem> csysPtr_;
245 scalar nDownstreamBins_;
248 scalar maxDownstream_;
257 Map<Type> regionSum(
const regionSplit&,
const Field<Type>&)
const;
261 List<Type> extractData(
const labelUList& keys,
const Map<Type>&)
const;
265 const coordSet& coords,
266 const word& valueName,
272 void writeAlphaFields
274 const regionSplit& regions,
275 const Map<label>& keepRegions,
276 const Map<scalar>& regionVolume,
281 Map<label> findPatchRegions(
const regionSplit&)
const;
289 const word& fieldName,
293 const coordSet& coords
299 const word& fieldName,
301 const regionSplit& regions,
306 const coordSet& coords
347 virtual bool write();
virtual bool write()
Calculate the regionSizeDistribution and write.
List< label > labelList
A List of labels.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from Foam::string.
A class for managing temporary objects.
List< T > values(const HashTable< T, Key, Hash > &tbl, const bool doSort=false)
List of values from HashTable, optionally sorted.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
A HashTable to objects of type <T> with a label key.
TypeName("regionSizeDistribution")
Runtime type information.
regionSizeDistribution(const word &name, const Time &runTime, const dictionary &)
Construct for given objectRegistry and dictionary.
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
virtual bool read(const dictionary &)
Read the regionSizeDistribution data.
Creates a droplet size distribution via interrogating a continuous phase fraction field.
Generic templated field type.
This class separates the mesh into distinct unconnected regions, each of which is then given a label ...
GeometricField< scalar, fvPatchField, volMesh > volScalarField
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Holds list of sampling positions.
Vector< scalar > vector
A scalar version of the templated Vector.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
const word & name() const noexcept
Return the name of this functionObject.
A List of wordRe with additional matching capabilities.
virtual bool execute()
Do nothing.
Base class for writing single files from the function objects.
UList< label > labelUList
A UList of labels.
void operator=(const regionSizeDistribution &)=delete
No copy assignment.
virtual ~regionSizeDistribution()=default