44 const dictionary& initialPointsDict,
47 const conformationSurfaces& geometryToConformTo,
48 const cellShapeControl& cellShapeControls,
49 const autoPtr<backgroundMeshDecomposition>& decomposition
62 initialCellSize_(detailsDict().
get<scalar>(
"initialCellSize")),
63 randomiseInitialGrid_(detailsDict().
get<Switch>(
"randomiseInitialGrid")),
64 randomPerturbationCoeff_
66 detailsDict().
get<scalar>(
"randomPerturbationCoeff")
88 scalar x0 = bb.
min().x();
89 scalar xR = bb.max().x() - x0;
90 label ni = label(xR/initialCellSize_);
92 scalar
y0 = bb.min().y();
93 scalar yR = bb.max().y() -
y0;
94 label nj = label(yR/initialCellSize_);
96 scalar z0 = bb.min().z();
97 scalar zR = bb.max().z() - z0;
98 label nk = label(zR/initialCellSize_);
108 for (label i = 0; i < ni; i++)
110 for (label j = 0; j < nj; j++)
120 for (label
k = 0;
k < nk;
k++)
131 if (randomiseInitialGrid_)
152 if (randomiseInitialGrid_)
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void setSize(const label n)
Alias for resize()
Type sample01()
Return a sample whose components lie in the range [0,1].
static bool & parRun() noexcept
Test if this a parallel run.
const treeBoundBox & procBounds() const
Return the boundBox of this processor.
Generate a BCC lattice of points inside the surfaces to be conformed to of the conformalVoronoiMesh.
virtual List< Vb::Point > initialPoints() const
Return the initial points for the conformalVoronoiMesh.
const point & min() const
Minimum describing the bounding box.
scalar minimumSurfaceDistanceCoeffSqr_
Only allow the placement of initial points that are within the.
const conformationSurfaces & geometryToConformTo() const
const cellShapeControl & cellShapeControls() const
const backgroundMeshDecomposition & decomposition() const
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
dimensionedSymmTensor sqr(const dimensionedVector &dv)
dimensionedScalar y0(const dimensionedScalar &ds)
void cmptMin(FieldField< Field, typename FieldField< Field, Type >::cmptType > &cf, const FieldField< Field, Type > &f)
vectorField pointField
pointField is a vectorField.
vector point
Point is a vector.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
#define forAll(list, i)
Loop across all elements in list.