conformationSurfaces Class Reference

Public Member Functions

 ClassName ("conformationSurfaces")
 Runtime type information. More...
 
 conformationSurfaces (const Time &runTime, Random &rndGen, const searchableSurfaces &allGeometry, const dictionary &surfaceConformationDict)
 Construct from dictionary and references to conformalVoronoiMesh and. More...
 
 conformationSurfaces (const conformationSurfaces &)=delete
 Disallow default bitwise copy construction. More...
 
 ~conformationSurfaces ()
 Destructor. More...
 
const searchableSurfaces & geometry () const
 Return reference to the searchableSurfaces object containing all. More...
 
const PtrList< extendedFeatureEdgeMesh > & features () const
 Return the object holding the feature points and edges. More...
 
const point & locationInMesh () const
 Return the location to mesh. More...
 
const labelList & surfaces () const
 Return the surface indices. More...
 
const List< word > & patchNames () const
 Return the patch names. More...
 
const PtrList< surfaceZonesInfo > & surfZones () const
 Return the surfaceZonesInfo. More...
 
const PtrList< dictionary > & patchInfo () const
 Return the patch info. More...
 
const treeBoundBox & globalBounds () const
 Return the global bounds. More...
 
bool overlaps (const treeBoundBox &bb) const
 Check if the supplied bound box overlaps any part of any of. More...
 
Field< bool > inside (const pointField &samplePts) const
 Check if points are inside surfaces to conform to. More...
 
bool inside (const point &samplePt) const
 Check if point is inside surfaces to conform to. More...
 
Field< bool > outside (const pointField &samplePts) const
 Check if points are outside surfaces to conform to. More...
 
bool outside (const point &samplePt) const
 Check if point is outside surfaces to conform to. More...
 
Field< bool > wellInOutSide (const pointField &samplePts, const scalarField &testDistSqr, bool testForInside) const
 Check if point is closer to the surfaces to conform to than. More...
 
Field< bool > wellInside (const pointField &samplePts, const scalarField &testDistSqr) const
 Check if point is inside surfaces to conform to by at least. More...
 
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. More...
 
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. More...
 
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. More...
 
void findSurfaceNearest (const point &sample, scalar nearestDistSqr, pointIndexHit &surfHit, label &hitSurface) const
 Find the nearest point to the sample and return it to the. More...
 
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. More...
 
void findEdgeNearest (const point &sample, scalar nearestDistSqr, pointIndexHit &edgeHit, label &featureHit) const
 Find the nearest point on any feature edge. More...
 
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. More...
 
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. More...
 
label getPatchID (const label hitSurface, const pointIndexHit &surfHit) const
 Get the region number of a hit surface. More...
 
label findPatch (const point &ptA, const point &ptB) const
 Find which patch is intersected by the line from one point to. More...
 
label findPatch (const point &pt) const
 Find which patch is closest to the point. More...
 
extendedFeatureEdgeMesh::sideVolumeType meshableSide (const label hitSurface, const pointIndexHit &surfHit) const
 Is the surface a baffle. More...
 
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. More...
 
void operator= (const conformationSurfaces &)=delete
 Disallow default bitwise assignment. More...
 

Detailed Description

Constructor & Destructor Documentation

◆ conformationSurfaces() [1/2]

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

Construct from dictionary and references to conformalVoronoiMesh and.

searchableSurfaces

◆ conformationSurfaces() [2/2]

Disallow default bitwise copy construction.

◆ ~conformationSurfaces()

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 28 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 35 of file conformationSurfacesI.H.

◆ locationInMesh()

const Foam::point & locationInMesh ( ) const
inline

Return the location to mesh.

Definition at line 41 of file conformationSurfacesI.H.

◆ surfaces()

const Foam::labelList & surfaces ( ) const
inline

Return the surface indices.

Definition at line 47 of file conformationSurfacesI.H.

◆ patchNames()

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

Return the patch names.

Definition at line 53 of file conformationSurfacesI.H.

◆ surfZones()

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

Return the surfaceZonesInfo.

Definition at line 60 of file conformationSurfacesI.H.

◆ patchInfo()

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

Return the patch info.

Definition at line 67 of file conformationSurfacesI.H.

◆ globalBounds()

const Foam::treeBoundBox & globalBounds ( ) const
inline

Return the global bounds.

Definition at line 73 of file conformationSurfacesI.H.

Referenced by conformalVoronoiMesh::maxSurfaceProtrusion().

Here is the caller graph for this function:

◆ overlaps()

bool overlaps ( const treeBoundBox &  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.

Referenced by conformalVoronoiMesh::maxSurfaceProtrusion().

Here is the caller graph for this function:

◆ 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

◆ 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

◆ 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

◆ operator=()

void operator= ( const conformationSurfaces &  )
delete

Disallow default bitwise assignment.


The documentation for this class was generated from the following files: