47 const dictionary& initialPointsDict,
48 const searchableSurface&
surface,
49 const scalar& defaultCellSize,
87 List<pointIndexHit> hits;
101 const point& hitPt = hitInfo.point();
102 const label index = hitInfo.index();
104 if (sideMode_ == rmBothsides)
106 size = surfaceCellSizeFunction_().interpolate(hitPt, index);
113 List<pointIndexHit> closeToSurfaceHits;
127 if (closeToSurface.hit())
129 size = surfaceCellSizeFunction_().interpolate(hitPt, index);
135 List<volumeType> vTL(1);
137 surface_.getVolumeType(ptF, vTL);
139 bool functionApplied =
false;
143 sideMode_ == smInside
147 size = surfaceCellSizeFunction_().interpolate(hitPt, index);
149 functionApplied =
true;
153 sideMode_ == smOutside
157 size = surfaceCellSizeFunction_().interpolate(hitPt, index);
159 functionApplied =
true;
162 return functionApplied;
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)
label size() const noexcept
The number of elements in the container.
defineTypeNameAndDebug(combustionModel, 0)
vector point
Point is a vector.
List< label > labelList
A List of labels.
addToRunTimeSelectionTable(functionObject, pointHistory, dictionary)