39 surfaceCellSizeFunction,
50 const dictionary& cellSizeFunctionDict,
51 const searchableSurface& surface,
52 const scalar& defaultCellSize
55 surfaceCellSizeFunction
62 surfaceTriMesh_(
refCast<const triSurfaceMesh>(surface)),
63 cellSizeCalculationType_
65 cellSizeCalculationType::
New 76 "pointCellSize.cellSize",
77 surfaceTriMesh_.searchableSurface::time().constant(),
79 surfaceTriMesh_.searchableSurface::time(),
90 pointCellSize_ = cellSizeCalculationType_().load();
93 <<
indent <<
" Minimum: " <<
min(pointCellSize_).value() <<
nl 95 <<
indent <<
" Maximum: " <<
max(pointCellSize_).value() <<
endl;
109 const face& faceHitByPt = surfaceTriMesh_.triSurface::operator[](index);
111 const pointField& pts = surfaceTriMesh_.points();
126 return pointCellSize_[faceHitByPt[0]]*bary[0]
127 + pointCellSize_[faceHitByPt[1]]*bary[1]
128 + pointCellSize_[faceHitByPt[2]]*bary[2];
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & indent(Ostream &os)
Indent stream.
Barycentric2D< scalar > barycentric2D
A scalar version of the templated Barycentric2D.
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
To & refCast(From &r)
Reference type cast template function.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Macros for easy insertion into run-time selection tables.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
vectorField pointField
pointField is a vectorField.
dimensioned< Type > average(const DimensionedField< Type, GeoMesh > &df)
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
vector point
Point is a vector.
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
triangle< point, const point & > triPointRef
Ostream & incrIndent(Ostream &os)
Increment the indent level.