44 const dictionary& initialPointsDict,
45 const searchableSurface& surface,
46 const scalar& defaultCellSize,
60 coeffsDict().
lookup<scalar>(
"distanceCoeff")*defaultCellSize
62 distanceSqr_(
sqr(distance_))
79 const scalar distanceCellSize =
87 shapePts[0] = pt - n*distance_;
88 shapeSizes[0] = distanceCellSize;
90 shapePts[1] = pt + n*distance_;
91 shapeSizes[1] = distanceCellSize;
98 shapePts[0] = pt - n*distance_;
99 shapeSizes[0] = distanceCellSize;
104 shapeSizes.resize(1);
106 shapePts[0] = pt - n*distance_;
107 shapeSizes[0] = distanceCellSize;
122 List<pointIndexHit> hits;
136 const point& hitPt = hitInfo.hitPoint();
137 const label index = hitInfo.index();
156 List<volumeType> vTL;
160 bool functionApplied =
false;
170 functionApplied =
true;
180 functionApplied =
true;
183 return functionApplied;
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
autoPtr< surfaceCellSizeFunction > surfaceCellSizeFunction_
dimensionedSymmTensor sqr(const dimensionedVector &dv)
PointIndexHit< point > pointIndexHit
Vector< scalar > vector
A scalar version of the templated Vector.
Macros for easy insertion into run-time selection tables.
const labelList regionIndices_
Index of the region of the surface that this cell size function.
vectorField pointField
pointField is a vectorField.
stressControl lookup("compactNormalStress") >> compactNormalStress
virtual void findNearest(const pointField &sample, const scalarField &nearestDistSqr, List< pointIndexHit > &) const =0
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
List< label > labelList
A List of labels.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
vector point
Point is a vector.
virtual void getVolumeType(const pointField &, List< volumeType > &) const =0
Determine type (inside/outside) for point. unknown if.
static scalar snapToSurfaceTol_
Point closeness tolerance to a surface where the function "snaps" to.
dimensioned< scalar > mag(const dimensioned< Type > &)
const searchableSurface & surface_
Reference to the searchableSurface that cellSizeFunction.
sideMode sideMode_
Mode of size specification, i.e. inside, outside or bothSides.