diff --git a/src/mesh/conformalVoronoiMesh/initialPointsMethod/hierarchicalDensityWeightedStochastic/hierarchicalDensityWeightedStochastic.C b/src/mesh/conformalVoronoiMesh/initialPointsMethod/hierarchicalDensityWeightedStochastic/hierarchicalDensityWeightedStochastic.C index c37161f675..92fa817b0f 100644 --- a/src/mesh/conformalVoronoiMesh/initialPointsMethod/hierarchicalDensityWeightedStochastic/hierarchicalDensityWeightedStochastic.C +++ b/src/mesh/conformalVoronoiMesh/initialPointsMethod/hierarchicalDensityWeightedStochastic/hierarchicalDensityWeightedStochastic.C @@ -246,7 +246,7 @@ bool Foam::hierarchicalDensityWeightedStochastic::fillBox forAll(insideCorners, i) { // Use the sizes to improve the min/max cell size estimate - scalar& s = cornerSizes[i]; + scalar s = cornerSizes[i]; if (s > maxCellSize) { @@ -357,7 +357,7 @@ bool Foam::hierarchicalDensityWeightedStochastic::fillBox forAll(insideLines, i) { // Use the sizes to improve the min/max cell size estimate - scalar& s = lineSizes[i]; + scalar s = lineSizes[i]; if (s > maxCellSize) { @@ -459,7 +459,7 @@ bool Foam::hierarchicalDensityWeightedStochastic::fillBox { nInside++; - scalar& s = sampleSizes[i]; + scalar s = sampleSizes[i]; if (s > maxCellSize) { diff --git a/src/mesh/conformalVoronoiMesh/initialPointsMethod/hierarchicalDensityWeightedStochastic/hierarchicalDensityWeightedStochastic.H b/src/mesh/conformalVoronoiMesh/initialPointsMethod/hierarchicalDensityWeightedStochastic/hierarchicalDensityWeightedStochastic.H index 81c497ef6e..d2ea77281d 100644 --- a/src/mesh/conformalVoronoiMesh/initialPointsMethod/hierarchicalDensityWeightedStochastic/hierarchicalDensityWeightedStochastic.H +++ b/src/mesh/conformalVoronoiMesh/initialPointsMethod/hierarchicalDensityWeightedStochastic/hierarchicalDensityWeightedStochastic.H @@ -64,7 +64,7 @@ private: // population of areas of small size scalar minCellSizeLimit_; - //- Maximum normal level of recursion, can be more if a high density + //- Minimum normal level of recursion, can be more if a high density // ratio is detected label minLevels_; @@ -72,13 +72,16 @@ private: scalar maxSizeRatio_; //- How fine should the initial sample of the volume a box be to - // investigate it cell sizes and volume fraction + // investigate its cell sizes and volume fraction label volRes_; //- How fine should the initial sample of the surface of a box be to // investigate if it is near to a the geometry. label surfRes_; + + // Private Member Functions + //- Write boundBox as obj void writeOBJ ( diff --git a/src/mesh/conformalVoronoiMesh/initialPointsMethod/initialPointsMethod/initialPointsMethod.H b/src/mesh/conformalVoronoiMesh/initialPointsMethod/initialPointsMethod/initialPointsMethod.H index c65c53ebe9..47a089c3e7 100644 --- a/src/mesh/conformalVoronoiMesh/initialPointsMethod/initialPointsMethod/initialPointsMethod.H +++ b/src/mesh/conformalVoronoiMesh/initialPointsMethod/initialPointsMethod/initialPointsMethod.H @@ -61,7 +61,7 @@ protected: // Protected data - //- Reference to the conformalVoronoiMesh holding this cvControls object + //- Reference to the conformalVoronoiMesh holding this object const conformalVoronoiMesh& cvMesh_; //- Method details dictionary