Go to the documentation of this file.
46 const dictionary& initialPointsDict,
47 const searchableSurface& surface,
48 const scalar& defaultCellSize,
62 coeffsDict().
get<
point>(
"referencePoint")
66 coeffsDict().
get<scalar>(
"referenceCellSizeCoeff") * defaultCellSize
70 coeffsDict().
get<
vector>(
"direction").normalise()
74 coeffsDict().
get<scalar>(
"cellSizeGradient")
81 Foam::scalar Foam::linearSpatial::sizeFunction(
const point& pt)
const
85 + ((pt - referencePoint_) & direction_)*cellSizeGradient_;
100 if (sideMode_ == rmBothsides)
103 else if (sideMode_ == smInside)
106 else if (sideMode_ == smOutside)
120 if (sideMode_ == rmBothsides)
122 size = sizeFunction(pt);
129 List<pointIndexHit> hits;
145 size = sizeFunction(pt);
151 List<volumeType> vTL;
153 surface_.getVolumeType(ptF, vTL);
155 bool functionApplied =
false;
159 sideMode_ == smInside
163 size = sizeFunction(pt);
165 functionApplied =
true;
169 sideMode_ == smOutside
173 size = sizeFunction(pt);
175 functionApplied =
true;
178 return functionApplied;
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
List< label > labelList
A List of labels.
vectorField pointField
pointField is a vectorField.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
virtual bool sizeLocations(const pointIndexHit &hitPt, const vector &n, pointField &shapePts, scalarField &shapeSizes) const
linearSpatial(const dictionary &initialPointsDict, const searchableSurface &surface, const scalar &defaultCellSize, const labelList regionIndices)
virtual bool cellSize(const point &pt, scalar &size) const
Macros for easy insertion into run-time selection tables.
Vector< scalar > vector
A scalar version of the templated Vector.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
PointIndexHit< point > pointIndexHit
A PointIndexHit for 3D points.
@ INSIDE
A location inside the volume.
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
vector point
Point is a vector.
defineTypeNameAndDebug(combustionModel, 0)
@ OUTSIDE
A location outside the volume.