43 const dictionary& initialPointsDict,
46 const conformationSurfaces& geometryToConformTo,
47 const cellShapeControl& cellShapeControls,
48 const autoPtr<backgroundMeshDecomposition>& decomposition
61 initialCellSize_(detailsDict().
lookup<scalar>(
"initialCellSize")),
62 randomiseInitialGrid_(detailsDict().
lookup(
"randomiseInitialGrid")),
63 randomPerturbationCoeff_
65 detailsDict().
lookup<scalar>(
"randomPerturbationCoeff")
87 scalar x0 = bb.
min().
x();
88 scalar xR = bb.max().x() - x0;
91 scalar y0 = bb.min().y();
92 scalar yR = bb.max().y() -
y0;
95 scalar z0 = bb.min().z();
96 scalar zR = bb.max().z() - z0;
107 for (
label i = 0; i < ni; i++)
109 for (
label j = 0; j < nj; j++)
130 if (randomiseInitialGrid_)
151 if (randomiseInitialGrid_)
175 Field<bool> insidePoints =
#define forAll(list, i)
Loop across all elements in list.
FvWallInfoData< WallInfo, label > label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
virtual List< Vb::Point > initialPoints() const
Return the initial points for the conformalVoronoiMesh.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
dimensionedScalar y0(const dimensionedScalar &ds)
Vector< scalar > vector
A scalar version of the templated Vector.
label k
Boltzmann constant.
const cellShapeControl & cellShapeControls() const
Macros for easy insertion into run-time selection tables.
bodyCentredCubic(const dictionary &initialPointsDict, const Time &runTime, Random &rndGen, const conformationSurfaces &geometryToConformTo, const cellShapeControl &cellShapeControls, const autoPtr< backgroundMeshDecomposition > &decomposition)
Construct from components.
vectorField pointField
pointField is a vectorField.
stressControl lookup("compactNormalStress") >> compactNormalStress
virtual List< Vb::Point > initialPoints() const
Return the initial points for the conformalVoronoiMesh.
const backgroundMeshDecomposition & decomposition() const
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
const conformationSurfaces & geometryToConformTo() const
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
static bool & parRun()
Is this a parallel run?
vector point
Point is a vector.
const point & min() const
Minimum point defining the bounding box.
void cmptMin(FieldField< Field, typename FieldField< Field, Type >::cmptType > &cf, const FieldField< Field, Type > &f)
const treeBoundBox & procBounds() const
Return the boundBox of this processor.
scalar scalar01()
Advance the state and return a scalar sample from a uniform.
scalar minimumSurfaceDistanceCoeffSqr_
Only allow the placement of initial points that are within the.