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;
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
linearSpatial(const dictionary &initialPointsDict, const searchableSurface &surface, const scalar &defaultCellSize, const labelList regionIndices)
Construct from components.
PointIndexHit< point > pointIndexHit
A PointIndexHit with a 3D point.
virtual bool cellSize(const point &pt, scalar &size) const
Modify scalar argument to the cell size specified by function.
Macros for easy insertion into run-time selection tables.
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
A location inside the volume.
A location outside the volume.
const wordList surface
Standard surface field types (scalar, vector, tensor, etc)
defineTypeNameAndDebug(combustionModel, 0)
vector point
Point is a vector.
List< label > labelList
A List of labels.
addToRunTimeSelectionTable(functionObject, pointHistory, dictionary)