Go to the documentation of this file.
45 const dictionary& initialPointsDict,
46 const searchableSurface& surface,
47 const scalar& defaultCellSize,
59 referencePoint_(coeffsDict().
lookup(
"referencePoint")),
65 direction_(coeffsDict().
lookup(
"direction")),
68 direction_ /=
mag(direction_);
148 bool functionApplied =
false;
158 functionApplied =
true;
168 functionApplied =
true;
171 return functionApplied;
vectorField pointField
pointField is a vectorField.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
point referencePoint_
Reference point for spatial size grading.
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.
virtual bool sizeLocations(const pointIndexHit &hitPt, const vector &n, pointField &shapePts, scalarField &shapeSizes) const
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
sideMode sideMode_
Mode of size specification, i.e. inside, outside or bothSides.
dimensioned< scalar > mag(const dimensioned< Type > &)
vector direction_
Direction of cell size grading, stored as unit vector, may be.
scalar cellSizeGradient_
Gradient of cell size change in direction of direction_.
linearSpatial(const dictionary &initialPointsDict, const searchableSurface &surface, const scalar &defaultCellSize, const labelList regionIndices)
Construct from components.
virtual bool cellSize(const point &pt, scalar &size) const
Modify scalar argument to the cell size specified by function.
scalar referenceCellSize_
Cell size at reference point.
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.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
PointIndexHit< point > pointIndexHit
scalar sizeFunction(const point &pt) const
Calculate the cell size as a function of the given position.
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if succesful.
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.
stressControl lookup("compactNormalStress") >> compactNormalStress