46 const dictionary& initialPointsDict,
47 const searchableSurface& surface,
48 const scalar& defaultCellSize,
65bool uniform::sizeLocations
67 const pointIndexHit& hitPt,
70 scalarField& shapeSizes
74 shapeSizes.setSize(0);
86 List<pointIndexHit> hits;
100 const point& hitPt = hitInfo.hitPoint();
101 const label index = hitInfo.index();
103 if (sideMode_ == rmBothsides)
105 size = surfaceCellSizeFunction_().interpolate(hitPt, index);
112 List<pointIndexHit> closeToSurfaceHits;
126 if (closeToSurface.hit())
128 size = surfaceCellSizeFunction_().interpolate(hitPt, index);
134 List<volumeType> vTL(1);
136 surface_.getVolumeType(ptF, vTL);
138 bool functionApplied =
false;
142 sideMode_ == smInside
143 && vTL[0] == volumeType::INSIDE
146 size = surfaceCellSizeFunction_().interpolate(hitPt, index);
148 functionApplied =
true;
152 sideMode_ == smOutside
153 && vTL[0] == volumeType::OUTSIDE
156 size = surfaceCellSizeFunction_().interpolate(hitPt, index);
158 functionApplied =
true;
161 return functionApplied;
168bool uniform::setCellSize
170 const pointField& pts
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
const wordList surface
Standard surface field types (scalar, vector, tensor, etc)
List< label > labelList
A List of labels.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
PointIndexHit< point > pointIndexHit
A PointIndexHit for 3D points.
vectorField pointField
pointField is a vectorField.
vector point
Point is a vector.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.