Go to the documentation of this file.
47 const dictionary& initialPointsDict,
48 const searchableSurface& surface,
49 const scalar& defaultCellSize,
70 distanceSqr_(
sqr(distance_))
83 const scalar interpolatedSize
90 scalar size = gradient*d + interpolatedSize;
111 shapeSizes.resize(2);
122 shapeSizes.resize(1);
130 shapeSizes.resize(1);
158 const point& hitPt = hitInfo.hitPoint();
159 const label hitIndex = hitInfo.index();
161 const scalar dist =
mag(pt - hitPt);
184 bool functionApplied =
false;
194 functionApplied =
true;
204 functionApplied =
true;
207 return functionApplied;
vectorField pointField
pointField is a vectorField.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
const labelList regionIndices_
Index of the region of the surface that this cell size function.
const searchableSurface & surface_
Reference to the searchableSurface that cellSizeFunction.
List< label > labelList
A List of labels.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
sideMode sideMode_
Mode of size specification, i.e. inside, outside or bothSides.
dimensioned< scalar > mag(const dimensioned< Type > &)
virtual bool cellSize(const point &pt, scalar &size) const
Modify scalar argument to the cell size specified by function.
scalar distance_
Distance from the surface to control over.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
virtual bool sizeLocations(const pointIndexHit &hitPt, const vector &n, pointField &shapePts, scalarField &shapeSizes) const
static scalar snapToSurfaceTol_
Point closeness tolerance to a surface where the function "snaps" to.
Macros for easy insertion into run-time selection tables.
virtual void findNearest(const pointField &sample, const scalarField &nearestDistSqr, List< pointIndexHit > &) const =0
Vector< scalar > vector
A scalar version of the templated Vector.
scalar distanceSqr_
Distance squared.
scalar sizeFunction(const point &pt, scalar d, label index) const
Calculate the cell size as a function of the given distance.
virtual bool setCellSize(const pointField &pts)
Adapt local cell size. Return true if anything changed.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
PointIndexHit< point > pointIndexHit
scalar distanceCellSize_
Cell size at distance_ from the surface.
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if succesful.
linearDistance(const dictionary &initialPointsDict, const searchableSurface &surface, const scalar &defaultCellSize, const labelList regionIndices)
Construct from components.
vector point
Point is a vector.
defineTypeNameAndDebug(combustionModel, 0)
virtual void getVolumeType(const pointField &, List< volumeType > &) const =0
Determine type (inside/outside) for point. unknown if.
autoPtr< surfaceCellSizeFunction > surfaceCellSizeFunction_
stressControl lookup("compactNormalStress") >> compactNormalStress