Public Member Functions | Private Types | Private Member Functions | Private Attributes
conformationSurfaces Class Reference
Collaboration diagram for conformationSurfaces:
Collaboration graph
[legend]

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 ()
 Destructor. More...
 
const searchableSurfacesgeometry () 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 pointlocationInMesh () const
 Return the location to mesh. More...
 
const labelListsurfaces () 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 treeBoundBoxglobalBounds () 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...
 

Private Types

typedef extendedFeatureEdgeMesh::sideVolumeType sideVolumeType
 

Private Member Functions

void hasBoundedVolume (List< volumeType > &referenceVolumeTypes) const
 
void readFeatures (const label surfI, const dictionary &featureDict, const word &surfaceName, label &featureIndex)
 Read into features_ from a dictionary. More...
 
void readFeatures (const dictionary &featureDict, const word &surfaceName, label &featureIndex)
 
 conformationSurfaces (const conformationSurfaces &)
 Disallow default bitwise copy construct. More...
 
void operator= (const conformationSurfaces &)
 Disallow default bitwise assignment. More...
 

Private Attributes

const TimerunTime_
 
RandomrndGen_
 
const searchableSurfacesallGeometry_
 Reference to the searchableSurfaces object holding all geometry data. More...
 
PtrList< extendedFeatureEdgeMeshfeatures_
 A list of extendedFeatureEdgeMesh. More...
 
point locationInMesh_
 The location in the mesh that specifies which portion of surfaces is. More...
 
labelList surfaces_
 Indices of surfaces in allGeometry that are to be conformed to. More...
 
labelList allGeometryToSurfaces_
 Reverse mapping, which entry in surfaces corresponds to the surface. More...
 
List< sideVolumeTypenormalVolumeTypes_
 A boolean value for each surface to be conformed to specifying if it. More...
 
List< wordpatchNames_
 A flat list of all of the names of the patches from all of the. More...
 
PtrList< surfaceZonesInfosurfZones_
 List of surface zone (face and cell zone) information. More...
 
labelList regionOffset_
 The offset between the patch indices of the individual surface and. More...
 
PtrList< dictionarypatchInfo_
 From global region number to patchType. More...
 
treeBoundBox globalBounds_
 The overall boundBox of all of the surfaces to be conformed to. More...
 
List< volumeTypereferenceVolumeTypes_
 The pattern/signature of volumeTypes representing a point in the. More...
 

Detailed Description

Source files

Definition at line 53 of file conformationSurfaces.H.

Member Typedef Documentation

◆ sideVolumeType

Definition at line 55 of file conformationSurfaces.H.

Constructor & Destructor Documentation

◆ conformationSurfaces() [1/2]

Disallow default bitwise copy construct.

◆ conformationSurfaces() [2/2]

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

Construct from dictionary and references to conformalVoronoiMesh and.

searchableSurfaces

◆ ~conformationSurfaces()

Destructor.

Member Function Documentation

◆ hasBoundedVolume()

void hasBoundedVolume ( List< volumeType > &  referenceVolumeTypes) const
private

◆ readFeatures() [1/2]

void readFeatures ( const label  surfI,
const dictionary featureDict,
const word surfaceName,
label featureIndex 
)
private

Read into features_ from a dictionary.

◆ readFeatures() [2/2]

void readFeatures ( const dictionary featureDict,
const word surfaceName,
label featureIndex 
)
private

◆ operator=()

void operator= ( const conformationSurfaces )
private

Disallow default bitwise assignment.

◆ 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.

References conformationSurfaces::allGeometry_.

◆ 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.

◆ 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.

◆ 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

Field Documentation

◆ runTime_

const Time& runTime_
private

Definition at line 59 of file conformationSurfaces.H.

◆ rndGen_

Random& rndGen_
private

Definition at line 61 of file conformationSurfaces.H.

◆ allGeometry_

const searchableSurfaces& allGeometry_
private

Reference to the searchableSurfaces object holding all geometry data.

Definition at line 64 of file conformationSurfaces.H.

Referenced by conformationSurfaces::geometry().

◆ features_

PtrList<extendedFeatureEdgeMesh> features_
private

A list of extendedFeatureEdgeMesh.

Definition at line 67 of file conformationSurfaces.H.

◆ locationInMesh_

point locationInMesh_
private

The location in the mesh that specifies which portion of surfaces is.

to be meshed.

Definition at line 71 of file conformationSurfaces.H.

◆ surfaces_

labelList surfaces_
private

Indices of surfaces in allGeometry that are to be conformed to.

Definition at line 74 of file conformationSurfaces.H.

◆ allGeometryToSurfaces_

labelList allGeometryToSurfaces_
private

Reverse mapping, which entry in surfaces corresponds to the surface.

in allGeometry specified by the list index. -1 for a surface that isn't used.

Definition at line 79 of file conformationSurfaces.H.

◆ normalVolumeTypes_

List<sideVolumeType> normalVolumeTypes_
private

A boolean value for each surface to be conformed to specifying if it.

is to be treated as a baffle

Definition at line 83 of file conformationSurfaces.H.

◆ patchNames_

List<word> patchNames_
private

A flat list of all of the names of the patches from all of the.

surfaces to be reproduced in the meshed geometry

Definition at line 87 of file conformationSurfaces.H.

◆ surfZones_

PtrList<surfaceZonesInfo> surfZones_
private

List of surface zone (face and cell zone) information.

Definition at line 90 of file conformationSurfaces.H.

◆ regionOffset_

labelList regionOffset_
private

The offset between the patch indices of the individual surface and.

the entry in the overall patch list

Definition at line 94 of file conformationSurfaces.H.

◆ patchInfo_

PtrList<dictionary> patchInfo_
private

From global region number to patchType.

Definition at line 97 of file conformationSurfaces.H.

◆ globalBounds_

treeBoundBox globalBounds_
private

The overall boundBox of all of the surfaces to be conformed to.

Definition at line 100 of file conformationSurfaces.H.

◆ referenceVolumeTypes_

List<volumeType> referenceVolumeTypes_
private

The pattern/signature of volumeTypes representing a point in the.

domain to be meshed

Definition at line 104 of file conformationSurfaces.H.


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