Go to the documentation of this file.
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++)
vectorField pointField
pointField is a vectorField.
virtual List< Vb::Point > initialPoints() const
Return the initial points for the conformalVoronoiMesh.
const cellShapeControl & cellShapeControls() const
const backgroundMeshDecomposition & decomposition() const
#define forAll(list, i)
Loop across all elements in list.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
static bool & parRun()
Is this a parallel run?
bodyCentredCubic(const dictionary &initialPointsDict, const Time &runTime, Random &rndGen, const conformationSurfaces &geometryToConformTo, const cellShapeControl &cellShapeControls, const autoPtr< backgroundMeshDecomposition > &decomposition)
Construct from components.
scalar randomPerturbationCoeff_
Randomise the initial positions by fraction of the initialCellSize_.
void cmptMin(FieldField< Field, typename FieldField< Field, Type >::cmptType > &cf, const FieldField< Field, Type > &f)
scalar initialCellSize_
The initial cell spacing.
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
dimensionedScalar y0(const dimensionedScalar &ds)
const point & min() const
Minimum describing the bounding box.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
scalar scalar01()
Scalar [0..1] (so including 0,1)
Macros for easy insertion into run-time selection tables.
Switch randomiseInitialGrid_
Should the initial positions be randomised.
Vector< scalar > vector
A scalar version of the templated Vector.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
scalar minimumSurfaceDistanceCoeffSqr_
Only allow the placement of initial points that are within the.
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if succesful.
const treeBoundBox & procBounds() const
Return the boundBox of this processor.
label k
Boltzmann constant.
vector point
Point is a vector.
defineTypeNameAndDebug(combustionModel, 0)
cachedRandom rndGen(label(0), -1)
stressControl lookup("compactNormalStress") >> compactNormalStress