Go to the documentation of this file.
107 #ifndef regionSizeDistribution_H
108 #define regionSizeDistribution_H
125 class objectRegistry;
135 class regionSizeDistribution
137 public functionObjectFile
144 const objectRegistry&
obr_;
183 Map<Type>
regionSum(
const regionSplit&,
const Field<Type>&)
const;
192 const coordSet& coords,
193 const word& valueName,
216 const word& fieldName,
226 const word& fieldName,
260 const bool loadFromFiles =
false
290 virtual void write();
Map< label > findPatchRegions(const polyMesh &, const regionSplit &) const
Mark all regions starting at patches.
regionSizeDistribution(const regionSizeDistribution &)
Disallow default bitwise copy construct.
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
Map< Type > regionSum(const regionSplit &, const Field< Type > &) const
scalar threshold_
Clip value.
static tmp< scalarField > divide(const scalarField &, const scalarField &)
Helper: divide if denom != 0.
const objectRegistry & obr_
A class for handling words, derived from string.
autoPtr< coordinateSystem > coordSysPtr_
Optional coordinate system.
A class for managing temporary objects.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
word name_
Name of this set of regionSizeDistribution objects.
void writeGraphs(const word &fieldName, const labelList &indices, const scalarField &sortedField, const scalarField &binCount, const coordSet &coords) const
Given per-region data calculate per-bin average/deviation and graph.
List< wordRe > wordReList
A List of wordRe (word or regular expression)
A HashTable to objects of type <T> with a label key.
virtual void timeSet()
Called when time was set at the end of the Time::operator++.
virtual ~regionSizeDistribution()
void writeAlphaFields(const regionSplit ®ions, const Map< label > &keepRegions, const Map< scalar > ®ionVolume, const volScalarField &alpha) const
Write volfields with the parts of alpha which are not.
Mesh consisting of general polyhedral cells.
label nBins_
Mumber of bins.
Registry of regIOobjects.
void operator=(const regionSizeDistribution &)
Disallow default bitwise assignment.
virtual void execute()
Execute, currently does nothing.
TypeName("regionSizeDistribution")
Runtime type information.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
virtual void updateMesh(const mapPolyMesh &)
Update for changes of mesh.
autoPtr< writer< scalar > > formatterPtr_
Output formatter to write.
This class separates the mesh into distinct unconnected regions, each of which is then given a label ...
virtual void movePoints(const polyMesh &)
Update for changes of mesh.
wordReList patchNames_
Patches to walk from.
A list of keyword definitions, which are a keyword followed by any number of values (e....
wordReList fields_
Names of fields to sample on regions.
Holds list of sampling positions.
virtual void end()
Execute at the final time-loop, currently does nothing.
virtual const word & name() const
Return name of the set of regionSizeDistribution.
bool active_
on/off switch
scalar maxDiam_
Maximum droplet diameter.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Base class for output file data handling.
virtual void read(const dictionary &)
Read the regionSizeDistribution data.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
scalar minDiam_
Minimum droplet diameter.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
word alphaName_
Name of field.
virtual void write()
Calculate the regionSizeDistribution and write.
This function object creates a size distribution via interrogating a continuous phase fraction field.
Generic GeometricField class.
Switch log_
Switch to send output to Info as well as to file.
void writeGraph(const coordSet &coords, const word &valueName, const scalarField &values) const
List< Type > extractData(const UList< label > &keys, const Map< Type > &) const
Get data in order.