49 const scalar& defaultCellSize,
66bool uniform::sizeLocations
68 const pointIndexHit& hitPt,
71 scalarField& shapeSizes
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
144 && vTL[0] == volumeType::INSIDE
147 size = surfaceCellSizeFunction_().interpolate(hitPt, index);
149 functionApplied =
true;
153 sideMode_ == smOutside
154 && vTL[0] == volumeType::OUTSIDE
157 size = surfaceCellSizeFunction_().interpolate(hitPt, index);
159 functionApplied =
true;
162 return functionApplied;
169bool uniform::setCellSize
171 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.
Abstract base class for specifying target cell sizes.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
void clear()
Clear the dictionary.
Base class of (analytical or triangulated) surface. Encapsulates all the search routines....
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)
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
const word GlobalIOList< Tuple2< scalar, vector > >::typeName("scalarVectorTable")
vector point
Point is a vector.
vectorField pointField
pointField is a vectorField.
PointIndexHit< point > pointIndexHit
A PointIndexHit with a 3D point.