45 const scalar defaultCellSize
48 scalar minDist = defaultCellSize;
53 hI1 < hitList.
size() - 1;
74 minDist =
min(curDist, minDist);
88 const scalar defaultCellSize
91 scalar minDist = defaultCellSize;
96 hI1 < hitList.
size() - 1;
109 hI2 < hitList.
size();
125 minDist =
min(curDist, minDist);
144 const scalar searchDistance
150 Info<<
"Extracting proximity of close feature points and "
151 <<
"edges to the surface" <<
endl;
158 const scalar radiusSqr =
min
193 const word& basename,
196 const scalar searchDistance
199 Info<<
nl <<
"Extracting curvature of surface at the points."
204 edgeMeshTools::featureProximity(emesh, surf, searchDistance);
211 basename +
".featureProximity",
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Defines the attributes of an object for which implicit objectRegistry management is supported,...
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
This class describes the interaction of (usually) a face and a point. It carries the info of a succes...
label index() const noexcept
Return the hit index.
bool hit() const noexcept
Is there a hit?
const point_type & hitPoint() const
Return hit point. Fatal if not hit.
const Field< point_type > & points() const noexcept
Return reference to global points.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
void swap(UList< T > &list)
Swap content with another UList of the same type in constant time.
void size(const label n)
Older name for setAddressableSize.
Mesh data needed to do the Finite Area discretisation.
const edgeList & edges() const noexcept
Return edges.
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
bool connects(const edge &other) const
Do the edges share a common vertex index?
Description of feature edges and points.
void allNearestFeaturePoints(const point &sample, scalar searchRadiusSqr, List< pointIndexHit > &info) const
Find all the feature points within searchDistSqr of sample.
void allNearestFeatureEdges(const point &sample, const scalar searchRadiusSqr, List< pointIndexHit > &info) const
Find all the feature edges within searchDistSqr of sample.
virtual bool write(const bool valid=true) const
Write using setting from DB.
A class for managing temporary objects.
Triangulated surface description with patch information.
A triangle primitive used to calculate face normals and swept volumes.
Point circumCentre() const
Return circum-centre.
scalar circumRadius() const
Return circum-radius.
A class for handling words, derived from Foam::string.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
static scalar calcProximityOfFeaturePoints(const List< pointIndexHit > &hitList, const scalar defaultCellSize)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
scalar calcProximityOfFeatureEdges(const edgeMesh &emesh, const List< pointIndexHit > &hitList, const scalar defaultCellSize)
constexpr char nl
The newline '\n' character (0x0a)
#define forAll(list, i)
Loop across all elements in list.