45 const dictionary& initialPointsDict,
46 const searchableSurface&
surface,
47 const scalar& defaultCellSize,
61 coeffsDict().
get<scalar>(
"distanceCoeff") * defaultCellSize
63 distanceSqr_(
sqr(distance_))
80 const scalar distanceCellSize =
81 surfaceCellSizeFunction_().interpolate(pt, hitPt.index());
83 if (sideMode_ == rmBothsides)
88 shapePts[0] = pt -
n*distance_;
89 shapePts[1] = pt +
n*distance_;
91 shapeSizes[0] = distanceCellSize;
92 shapeSizes[1] = distanceCellSize;
94 else if (sideMode_ == smInside)
99 shapePts[0] = pt -
n*distance_;
100 shapeSizes[0] = distanceCellSize;
102 else if (sideMode_ == smOutside)
105 shapeSizes.resize(1);
107 shapePts[0] = pt -
n*distance_;
108 shapeSizes[0] = distanceCellSize;
123 List<pointIndexHit> hits;
137 const point& hitPt = hitInfo.point();
138 const label index = hitInfo.index();
140 if (sideMode_ == rmBothsides)
142 size = surfaceCellSizeFunction_().interpolate(hitPt, index);
149 if (hitInfo.point().dist(pt) < snapToSurfaceTol_)
151 size = surfaceCellSizeFunction_().interpolate(hitPt, index);
157 List<volumeType> vTL;
159 surface_.getVolumeType(ptF, vTL);
161 bool functionApplied =
false;
165 sideMode_ == smInside
169 size = surfaceCellSizeFunction_().interpolate(hitPt, index);
171 functionApplied =
true;
175 sideMode_ == smOutside
179 size = surfaceCellSizeFunction_().interpolate(hitPt, index);
181 functionApplied =
true;
184 return functionApplied;
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
PointIndexHit< point > pointIndexHit
A PointIndexHit with a 3D point.
Macros for easy insertion into run-time selection tables.
vectorField pointField
pointField is a vectorField.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
A location inside the volume.
A location outside the volume.
const wordList surface
Standard surface field types (scalar, vector, tensor, etc)
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
defineTypeNameAndDebug(combustionModel, 0)
vector point
Point is a vector.
List< label > labelList
A List of labels.
addToRunTimeSelectionTable(functionObject, pointHistory, dictionary)