Loading...
Searching...
No Matches
conformationSurfaces Class Reference

#include <conformationSurfaces.H>

Public Member Functions

 ClassName ("conformationSurfaces")
 Runtime type information.
 conformationSurfaces (const Time &runTime, Random &rndGen, const searchableSurfaces &allGeometry, const dictionary &surfaceConformationDict)
 Construct from dictionary and references to conformalVoronoiMesh and.
 ~conformationSurfaces ()=default
 Destructor.
const searchableSurfacesgeometry () const
 Return reference to the searchableSurfaces object containing all.
const PtrList< extendedFeatureEdgeMesh > & features () const
 Return the object holding the feature points and edges.
const pointlocationInMesh () const
 Return the location to mesh.
const labelListsurfaces () const
 Return the surface indices.
const List< word > & patchNames () const
 Return the patch names.
const PtrList< surfaceZonesInfo > & surfZones () const
 Return the surfaceZonesInfo.
const PtrList< dictionary > & patchInfo () const
 Return the patch info.
const treeBoundBoxglobalBounds () const
 Return the global bounds.
bool overlaps (const boundBox &bb) const
 Check if the supplied bound box overlaps any part of any of.
Field< bool > inside (const pointField &samplePts) const
 Check if points are inside surfaces to conform to.
bool inside (const point &samplePt) const
 Check if point is inside surfaces to conform to.
Field< bool > outside (const pointField &samplePts) const
 Check if points are outside surfaces to conform to.
bool outside (const point &samplePt) const
 Check if point is outside surfaces to conform to.
Field< bool > wellInOutSide (const pointField &samplePts, const scalarField &testDistSqr, bool testForInside) const
 Check if point is closer to the surfaces to conform to than.
Field< bool > wellInside (const pointField &samplePts, const scalarField &testDistSqr) const
 Check if point is inside surfaces to conform to by at least.
bool wellInside (const point &samplePt, scalar testDistSqr) const
Field< bool > wellOutside (const pointField &samplePts, const scalarField &testDistSqr) const
 Check if point is outside surfaces to conform to by at least.
bool wellOutside (const point &samplePt, scalar testDistSqr) const
bool findSurfaceAnyIntersection (const point &start, const point &end) const
void findSurfaceAnyIntersection (const point &start, const point &end, pointIndexHit &surfHit, label &hitSurface) const
 Finding if the line joining start and end intersects the surface.
void findSurfaceAllIntersections (const point &start, const point &end, List< pointIndexHit > &surfHit, labelList &hitSurface) const
void findSurfaceNearestIntersection (const point &start, const point &end, pointIndexHit &surfHit, label &hitSurface) const
 Finding the nearestIntersection of the surface to start.
void findSurfaceNearest (const point &sample, scalar nearestDistSqr, pointIndexHit &surfHit, label &hitSurface) const
 Find the nearest point to the sample and return it to the.
void findSurfaceNearest (const pointField &samples, const scalarField &nearestDistSqr, List< pointIndexHit > &hitInfo, labelList &hitSurfaces) const
void findFeaturePointNearest (const point &sample, scalar nearestDistSqr, pointIndexHit &fpHit, label &featureHit) const
 Find the nearest point on any feature edge.
void findEdgeNearest (const point &sample, scalar nearestDistSqr, pointIndexHit &edgeHit, label &featureHit) const
 Find the nearest point on any feature edge.
void findEdgeNearest (const pointField &samples, const scalarField &nearestDistsSqr, List< pointIndexHit > &edgeHits, labelList &featuresHit) const
void findEdgeNearestByType (const point &sample, scalar nearestDistSqr, List< pointIndexHit > &edgeHit, List< label > &featuresHit) const
 Find the nearest point on each type of feature edge.
void findAllNearestEdges (const point &sample, const scalar searchRadiusSqr, List< List< pointIndexHit > > &edgeHitsByFeature, List< label > &featuresHit) const
 Find the nearest points on each feature edge that is within.
label getPatchID (const label hitSurface, const pointIndexHit &surfHit) const
 Get the region number of a hit surface.
label findPatch (const point &ptA, const point &ptB) const
 Find which patch is intersected by the line from one point to.
label findPatch (const point &pt) const
 Find which patch is closest to the point.
extendedFeatureEdgeMesh::sideVolumeType meshableSide (const label hitSurface, const pointIndexHit &surfHit) const
 Is the surface a baffle.
void getNormal (const label hitSurface, const List< pointIndexHit > &surfHit, vectorField &normal) const
void writeFeatureObj (const fileName &prefix) const
 Write all components of all the extendedFeatureEdgeMeshes as.

Detailed Description

Constructor & Destructor Documentation

◆ conformationSurfaces()

conformationSurfaces ( const Time & runTime,
Random & rndGen,
const searchableSurfaces & allGeometry,
const dictionary & surfaceConformationDict )

Construct from dictionary and references to conformalVoronoiMesh and.

searchableSurfaces

References rndGen, and runTime.

◆ ~conformationSurfaces()

~conformationSurfaces ( )
default

Destructor.

Member Function Documentation

◆ ClassName()

ClassName ( "conformationSurfaces" )

Runtime type information.

◆ geometry()

const Foam::searchableSurfaces & geometry ( ) const
inline

Return reference to the searchableSurfaces object containing all.

of the geometry

Definition at line 23 of file conformationSurfacesI.H.

◆ features()

const Foam::PtrList< Foam::extendedFeatureEdgeMesh > & features ( ) const
inline

Return the object holding the feature points and edges.

Definition at line 30 of file conformationSurfacesI.H.

◆ locationInMesh()

const Foam::point & locationInMesh ( ) const
inline

Return the location to mesh.

Definition at line 36 of file conformationSurfacesI.H.

◆ surfaces()

const Foam::labelList & surfaces ( ) const
inline

Return the surface indices.

Definition at line 42 of file conformationSurfacesI.H.

◆ patchNames()

const Foam::List< Foam::word > & patchNames ( ) const
inline

Return the patch names.

Definition at line 48 of file conformationSurfacesI.H.

◆ surfZones()

const Foam::PtrList< Foam::surfaceZonesInfo > & surfZones ( ) const
inline

Return the surfaceZonesInfo.

Definition at line 55 of file conformationSurfacesI.H.

◆ patchInfo()

const Foam::PtrList< Foam::dictionary > & patchInfo ( ) const
inline

Return the patch info.

Definition at line 62 of file conformationSurfacesI.H.

◆ globalBounds()

const Foam::treeBoundBox & globalBounds ( ) const
inline

Return the global bounds.

Definition at line 68 of file conformationSurfacesI.H.

◆ overlaps()

bool overlaps ( const boundBox & bb) const

Check if the supplied bound box overlaps any part of any of.

the surfaces

◆ inside() [1/2]

Field< bool > inside ( const pointField & samplePts) const

Check if points are inside surfaces to conform to.

◆ inside() [2/2]

bool inside ( const point & samplePt) const

Check if point is inside surfaces to conform to.

◆ outside() [1/2]

Field< bool > outside ( const pointField & samplePts) const

Check if points are outside surfaces to conform to.

◆ outside() [2/2]

bool outside ( const point & samplePt) const

Check if point is outside surfaces to conform to.

◆ wellInOutSide()

Field< bool > wellInOutSide ( const pointField & samplePts,
const scalarField & testDistSqr,
bool testForInside ) const

Check if point is closer to the surfaces to conform to than.

testDistSqr, in which case return false, otherwise assess in or outside and return a result depending on the testForInside flag

◆ wellInside() [1/2]

Field< bool > wellInside ( const pointField & samplePts,
const scalarField & testDistSqr ) const

Check if point is inside surfaces to conform to by at least.

testDistSqr

◆ wellInside() [2/2]

bool wellInside ( const point & samplePt,
scalar testDistSqr ) const

◆ wellOutside() [1/2]

Field< bool > wellOutside ( const pointField & samplePts,
const scalarField & testDistSqr ) const

Check if point is outside surfaces to conform to by at least.

testDistSqr

◆ wellOutside() [2/2]

bool wellOutside ( const point & samplePt,
scalar testDistSqr ) const

◆ findSurfaceAnyIntersection() [1/2]

bool findSurfaceAnyIntersection ( const point & start,
const point & end ) const

◆ findSurfaceAnyIntersection() [2/2]

void findSurfaceAnyIntersection ( const point & start,
const point & end,
pointIndexHit & surfHit,
label & hitSurface ) const

Finding if the line joining start and end intersects the surface.

and returning the hit and surface information

◆ findSurfaceAllIntersections()

void findSurfaceAllIntersections ( const point & start,
const point & end,
List< pointIndexHit > & surfHit,
labelList & hitSurface ) const

◆ findSurfaceNearestIntersection()

void findSurfaceNearestIntersection ( const point & start,
const point & end,
pointIndexHit & surfHit,
label & hitSurface ) const

Finding the nearestIntersection of the surface to start.

◆ findSurfaceNearest() [1/2]

void findSurfaceNearest ( const point & sample,
scalar nearestDistSqr,
pointIndexHit & surfHit,
label & hitSurface ) const

Find the nearest point to the sample and return it to the.

pointIndexHit

◆ findSurfaceNearest() [2/2]

void findSurfaceNearest ( const pointField & samples,
const scalarField & nearestDistSqr,
List< pointIndexHit > & hitInfo,
labelList & hitSurfaces ) const

References samples().

Here is the call graph for this function:

◆ findFeaturePointNearest()

void findFeaturePointNearest ( const point & sample,
scalar nearestDistSqr,
pointIndexHit & fpHit,
label & featureHit ) const

Find the nearest point on any feature edge.

◆ findEdgeNearest() [1/2]

void findEdgeNearest ( const point & sample,
scalar nearestDistSqr,
pointIndexHit & edgeHit,
label & featureHit ) const

Find the nearest point on any feature edge.

◆ findEdgeNearest() [2/2]

void findEdgeNearest ( const pointField & samples,
const scalarField & nearestDistsSqr,
List< pointIndexHit > & edgeHits,
labelList & featuresHit ) const

References samples().

Here is the call graph for this function:

◆ findEdgeNearestByType()

void findEdgeNearestByType ( const point & sample,
scalar nearestDistSqr,
List< pointIndexHit > & edgeHit,
List< label > & featuresHit ) const

Find the nearest point on each type of feature edge.

◆ findAllNearestEdges()

void findAllNearestEdges ( const point & sample,
const scalar searchRadiusSqr,
List< List< pointIndexHit > > & edgeHitsByFeature,
List< label > & featuresHit ) const

Find the nearest points on each feature edge that is within.

a given distance from the sample point. Will need to check for a hit or a miss because near edges may not have a nearest point on them which is perpendicular to the sample point.

◆ getPatchID()

label getPatchID ( const label hitSurface,
const pointIndexHit & surfHit ) const

Get the region number of a hit surface.

◆ findPatch() [1/2]

label findPatch ( const point & ptA,
const point & ptB ) const

Find which patch is intersected by the line from one point to.

another

◆ findPatch() [2/2]

label findPatch ( const point & pt) const

Find which patch is closest to the point.

◆ meshableSide()

extendedFeatureEdgeMesh::sideVolumeType meshableSide ( const label hitSurface,
const pointIndexHit & surfHit ) const

Is the surface a baffle.

◆ getNormal()

void getNormal ( const label hitSurface,
const List< pointIndexHit > & surfHit,
vectorField & normal ) const

◆ writeFeatureObj()

void writeFeatureObj ( const fileName & prefix) const

Write all components of all the extendedFeatureEdgeMeshes as.

an obj file


The documentation for this class was generated from the following files:
  • applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformationSurfaces/conformationSurfaces.H
  • applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformationSurfaces/conformationSurfacesI.H