label volRes_
How fine should the initial sample of the volume a box be to.
Simple random number generator.
const cellShapeControl & cellShapeControls() const
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from string.
const backgroundMeshDecomposition & decomposition() const
A class for handling file names.
bool fillBox(DynamicList< Vb::Point > &initialPoints, const treeBoundBox &bb, bool overlapping) const
Fill the given box, optionally filling surface overlapping boxes.
const fileName & name() const
Return the dictionary name.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
Standard boundBox + extra functionality for use in octree.
virtual List< Vb::Point > initialPoints() const
Return the initial points for the conformalVoronoiMesh.
void writeOBJ(const treeBoundBox &bb, fileName name) const
Write boundBox as obj.
bool combinedOverlaps(const treeBoundBox &box) const
Check if the given box overlaps the geometry or, in parallel, the.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const conformationSurfaces & geometryToConformTo() const
Pre-declare SubField and related Field type.
A list of keyword definitions, which are a keyword followed by any number of values (e....
virtual ~autoDensity()
Destructor.
label minLevels_
Minimum normal level of recursion, can be more if a high density.
Abstract base class for generating initial points for a conformalVoronoiMesh.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
label globalTrialPoints_
Trial points attempted to be placed in all boxes.
scalar minCellSizeLimit_
Smallest minimum cell size allowed, i.e. to avoid high initial.
scalar maxSizeRatio_
Maximum allowed ratio of cell size in a box.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
bool combinedInside(const point &p) const
Check if the given point is inside the geometry and, in parallel,.
autoDensity(const dictionary &initialPointsDict, const Time &runTime, Random &rndGen, const conformationSurfaces &geometryToConformTo, const cellShapeControl &cellShapeControls, const autoPtr< backgroundMeshDecomposition > &decomposition)
Construct from components.
TypeName("autoDensity")
Runtime type information.
label surfRes_
How fine should the initial sample of the surface of a box be to.
Field< bool > combinedWellInside(const pointField &pts, const scalarField &sizes) const
Check if the given points are wellInside the geometry and, in.
Choose random points inside the domain and place them with a probability proportional to the target d...
label recurseAndFill(DynamicList< Vb::Point > &initialPoints, const treeBoundBox &bb, label levelLimit, word recursionName) const
Descend into octants of the supplied bound box.