43 const dictionary& initialPointsDict,
46 const conformationSurfaces& geometryToConformTo,
47 const cellShapeControl& cellShapeControls,
48 const autoPtr<backgroundMeshDecomposition>& decomposition
62 randomiseInitialGrid_(detailsDict().
lookup(
"randomiseInitialGrid")),
63 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++)
128 if (randomiseInitialGrid_)
152 y0 + (j + 0.5)*
delta.y(),
156 if (randomiseInitialGrid_)
179 x0 + (i + 0.5)*
delta.x(),
184 if (randomiseInitialGrid_)
207 x0 + (i + 0.5)*
delta.x(),
208 y0 + (j + 0.5)*
delta.y(),
212 if (randomiseInitialGrid_)
236 Field<bool> insidePoints =
cachedRandom rndGen(label(0),-1)
#define forAll(list, i)
Loop across all elements in list.
const cellShapeControl & cellShapeControls() const
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 List< Vb::Point > initialPoints() const
Return the initial points for the conformalVoronoiMesh.
const point & min() const
Minimum describing the bounding box.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
virtual List< Vb::Point > initialPoints() const
Return the initial points for the conformalVoronoiMesh.
dimensionedScalar y0(const dimensionedScalar &ds)
Vector< scalar > vector
A scalar version of the templated Vector.
label k
Boltzmann constant.
Macros for easy insertion into run-time selection tables.
vectorField pointField
pointField is a vectorField.
stressControl lookup("compactNormalStress") >> compactNormalStress
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if succesful.
faceCentredCubic(const dictionary &initialPointsDict, const Time &runTime, Random &rndGen, const conformationSurfaces &geometryToConformTo, const cellShapeControl &cellShapeControls, const autoPtr< backgroundMeshDecomposition > &decomposition)
Construct from components.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
static bool & parRun()
Is this a parallel run?
vector point
Point is a vector.
const conformationSurfaces & geometryToConformTo() const
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.
const backgroundMeshDecomposition & decomposition() const
scalar scalar01()
Scalar [0..1] (so including 0,1)
scalar minimumSurfaceDistanceCoeffSqr_
Only allow the placement of initial points that are within the.