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();
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)
const dimensionedScalar alpha
A HashTable to objects of type <T> with a label key.
TypeName("regionSizeDistribution")
regionSizeDistribution(const word &name, const Time &runTime, const dictionary &)
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
virtual bool read(const dictionary &)
Creates a droplet size distribution via interrogating a continuous phase fraction field.
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
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
A List of wordRe with additional matching capabilities.
Base class for writing single files from the function objects.
UList< label > labelUList
A UList of labels.
Generic GeometricField class.
void operator=(const regionSizeDistribution &)=delete
virtual ~regionSizeDistribution()=default