Public Member Functions | List of all members
extendedEdgeMeshFormat Class Reference

Provide a means of reading/writing the single-file OpenFOAM extendedEdgeMesh format. More...

Inheritance diagram for extendedEdgeMeshFormat:
Inheritance graph
[legend]
Collaboration diagram for extendedEdgeMeshFormat:
Collaboration graph
[legend]

Public Member Functions

 extendedEdgeMeshFormat (const fileName &)
 
virtual ~extendedEdgeMeshFormat ()=default
 
virtual bool read (const fileName &)
 
- Public Member Functions inherited from extendedEdgeMesh
 TypeName ("extendedEdgeMesh")
 
 extendedEdgeMesh ()
 
 extendedEdgeMesh (const extendedEdgeMesh &fem)
 
 extendedEdgeMesh (const fileName &name)
 
 extendedEdgeMesh (const fileName &name, const word &fileType)
 
 extendedEdgeMesh (Istream &is)
 
 extendedEdgeMesh (const pointField &points, const edgeList &edges)
 
 extendedEdgeMesh (pointField &&points, edgeList &&edges)
 
 extendedEdgeMesh (const surfaceFeatures &sFeat, const boolList &surfBaffleRegions)
 
 extendedEdgeMesh (const PrimitivePatch< faceList, pointField > &surf, const labelUList &featureEdges, const labelUList &regionFeatureEdges, const labelUList &featurePoints)
 
 extendedEdgeMesh (const pointField &pts, const edgeList &eds, label concaveStart, label mixedStart, label nonFeatureStart, label internalStart, label flatStart, label openStart, label multipleStart, const vectorField &normals, const List< sideVolumeType > &normalVolumeTypes, const vectorField &edgeDirections, const labelListList &normalDirections, const labelListList &edgeNormals, const labelListList &featurePointNormals, const labelListList &featurePointEdges, const labelList &regionEdges)
 
 declareRunTimeSelectionTable (autoPtr, extendedEdgeMesh, fileExtension,(const fileName &name),(name))
 
 ~extendedEdgeMesh ()=default
 
void nearestFeaturePoint (const point &sample, scalar searchDistSqr, pointIndexHit &info) const
 
void nearestFeatureEdge (const point &sample, scalar searchDistSqr, pointIndexHit &info) const
 
void nearestFeatureEdge (const pointField &samples, const scalarField &searchDistSqr, List< pointIndexHit > &info) const
 
void nearestFeatureEdgeByType (const point &sample, const scalarField &searchDistSqr, List< pointIndexHit > &info) const
 
void allNearestFeaturePoints (const point &sample, scalar searchRadiusSqr, List< pointIndexHit > &info) const
 
void allNearestFeatureEdges (const point &sample, const scalar searchRadiusSqr, List< pointIndexHit > &info) const
 
label convexStart () const
 
label concaveStart () const
 
label mixedStart () const
 
label nonFeatureStart () const
 
label externalStart () const
 
label internalStart () const
 
label flatStart () const
 
label openStart () const
 
label multipleStart () const
 
bool featurePoint (label ptI) const
 
const vectorFieldnormals () const
 
const List< sideVolumeType > & normalVolumeTypes () const
 
const vectorFieldedgeDirections () const
 
const labelListListnormalDirections () const
 
vector edgeDirection (label edgeI, label ptI) const
 
const labelListListedgeNormals () const
 
vectorField edgeNormals (const labelList &edgeNormIs) const
 
vectorField edgeNormals (label edgeI) const
 
const labelListListfeaturePointNormals () const
 
vectorField featurePointNormals (label ptI) const
 
const labelListListfeaturePointEdges () const
 
const labelListregionEdges () const
 
pointStatus getPointStatus (label ptI) const
 
edgeStatus getEdgeStatus (label edgeI) const
 
PackedList< 2 > edgeBaffles (label edgeI) const
 
const indexedOctree< treeDataPoint > & pointTree () const
 
const indexedOctree< treeDataEdge > & edgeTree () const
 
const PtrList< indexedOctree< treeDataEdge > > & edgeTreesByType () const
 
void transfer (extendedEdgeMesh &mesh)
 
virtual void clear ()
 
void add (const extendedEdgeMesh &fem)
 
void flipNormals ()
 
void autoMap (const pointField &subPoints, const edgeList &subEdges, const labelList &pointMap, const labelList &edgeMap)
 
void trim (const searchableSurface &surf, const volumeType volType, labelList &pointMap, labelList &edgeMap)
 
void setFromStatus (const List< extendedEdgeMesh::pointStatus > &pointStat, const List< extendedEdgeMesh::edgeStatus > &edgeStat, labelList &sortedToOriginalPoint, labelList &sortedToOriginalEdge)
 
bool mergePointsAndSort (const scalar mergeDist, labelList &pointMap, labelList &edgeMap)
 
bool read (const fileName &name, const word &ext)
 
void writeObj (const fileName &prefix) const
 
virtual void writeStats (Ostream &os) const
 
- Public Member Functions inherited from edgeMesh
 edgeMesh (const faMesh &mesh)
 
label size () const
 
const edgeVectorFieldC () const
 
 TypeName ("edgeMesh")
 
 edgeMesh ()
 
 edgeMesh (const edgeMesh &em)
 
 edgeMesh (edgeMesh &&em)
 
 edgeMesh (const pointField &points, const edgeList &edges)
 
 edgeMesh (pointField &&pointLst, edgeList &&edgeLst)
 
 edgeMesh (const fileName &name)
 
 edgeMesh (const fileName &name, const word &fileType)
 
 declareRunTimeSelectionTable (autoPtr, edgeMesh, fileExtension,(const fileName &name),(name))
 
virtual ~edgeMesh ()=default
 
 declareMemberFunctionSelectionTable (void, edgeMesh, write, fileExtension,(const fileName &name, const edgeMesh &mesh, IOstreamOption streamOpt, const dictionary &options),(name, mesh, streamOpt, options))
 
void transfer (edgeMesh &mesh)
 
bool read (const fileName &name, const word &fileType)
 
const pointFieldpoints () const noexcept
 
const edgeListedges () const noexcept
 
const labelListListpointEdges () const
 
label regions (labelList &edgeRegion) const
 
virtual void scalePoints (const scalar scaleFactor)
 
virtual void mergePoints (const scalar mergeDist)
 
virtual void mergeEdges ()
 
virtual void write (const fileName &name, IOstreamOption streamOpt=IOstreamOption(), const dictionary &options=dictionary::null) const
 
virtual void write (const fileName &name, const word &fileType, IOstreamOption streamOpt=IOstreamOption(), const dictionary &options=dictionary::null) const
 
void operator= (const edgeMesh &rhs)
 
void operator= (edgeMesh &&rhs)
 
- Public Member Functions inherited from GeoMesh< faMesh >
 GeoMesh (const faMesh &mesh)
 
bool hasDb () const
 
const objectRegistrythisDb () const
 
const faMeshoperator() () const
 

Additional Inherited Members

- Public Types inherited from extendedEdgeMesh
enum  pointStatus { CONVEX, CONCAVE, MIXED, NONFEATURE }
 
enum  edgeStatus {
  EXTERNAL, INTERNAL, FLAT, OPEN,
  MULTIPLE, NONE
}
 
enum  sideVolumeType { INSIDE = 0, OUTSIDE = 1, BOTH = 2, NEITHER = 3 }
 
- Public Types inherited from GeoMesh< faMesh >
typedef faMesh Mesh
 
typedef faMesh ::BoundaryMesh BoundaryMesh
 
- Static Public Member Functions inherited from extendedEdgeMesh
static wordHashSet readTypes ()
 
static wordHashSet writeTypes ()
 
static bool canReadType (const word &fileType, bool verbose=false)
 
static bool canWriteType (const word &fileType, bool verbose=false)
 
static bool canRead (const fileName &name, bool verbose=false)
 
static autoPtr< extendedEdgeMeshNew (const fileName &name, const word &fileType)
 
static autoPtr< extendedEdgeMeshNew (const fileName &name)
 
static edgeStatus classifyEdge (const List< vector > &norms, const labelList &edNorms, const vector &fC0tofC1)
 
static void sortedOrder (const List< extendedEdgeMesh::pointStatus > &pointStat, const List< extendedEdgeMesh::edgeStatus > &edgeStat, labelList &sortedToOriginalPoint, labelList &sortedToOriginalEdge, label &pointConcaveStart, label &pointMixedStart, label &pointNonFeatStart, label &edgeInternalStart, label &edgeFlatStart, label &edgeOpenStart, label &edgeMultipleStart)
 
- Static Public Member Functions inherited from edgeMesh
static label size (const Mesh &mesh)
 
static wordHashSet readTypes ()
 
static wordHashSet writeTypes ()
 
static bool canReadType (const word &fileType, bool verbose=false)
 
static bool canWriteType (const word &fileType, bool verbose=false)
 
static bool canRead (const fileName &name, bool verbose=false)
 
static autoPtr< edgeMeshNew (const fileName &name, const word &fileType)
 
static autoPtr< edgeMeshNew (const fileName &name)
 
static void write (const fileName &name, const edgeMesh &mesh, IOstreamOption streamOpt=IOstreamOption(), const dictionary &options=dictionary::null)
 
static void write (const fileName &name, const word &fileType, const edgeMesh &mesh, IOstreamOption streamOpt=IOstreamOption(), const dictionary &options=dictionary::null)
 
- Static Public Attributes inherited from extendedEdgeMesh
static const Enum< pointStatuspointStatusNames_
 
static const Enum< edgeStatusedgeStatusNames_
 
static const Enum< sideVolumeTypesideVolumeTypeNames_
 
static scalar cosNormalAngleTol_
 
static constexpr label nPointTypes = 4
 
static constexpr label nEdgeTypes = 5
 
- Protected Member Functions inherited from extendedEdgeMesh
 extendedEdgeMesh (class one::minus)
 
pointStatus classifyFeaturePoint (label ptI) const
 
void cut (const searchableSurface &, labelList &pMap, labelList &eMap, labelList &pointsFromEdge, labelList &oldEdge, labelList &surfTri)
 
void select (const searchableSurface &surf, const volumeType volType, labelList &pMap, labelList &eMap)
 
template<class Patch >
void sortPointsAndEdges (const Patch &, const labelUList &featureEdges, const labelUList &regionFeatureEdges, const labelUList &feaurePoints)
 
- Protected Member Functions inherited from edgeMesh
pointFieldstoredPoints () noexcept
 
edgeListstoredEdges () noexcept
 
- Protected Attributes inherited from extendedEdgeMesh
label concaveStart_
 
label mixedStart_
 
label nonFeatureStart_
 
label internalStart_
 
label flatStart_
 
label openStart_
 
label multipleStart_
 
vectorField normals_
 
List< sideVolumeTypenormalVolumeTypes_
 
vectorField edgeDirections_
 
labelListList normalDirections_
 
labelListList edgeNormals_
 
labelListList featurePointNormals_
 
labelListList featurePointEdges_
 
labelList regionEdges_
 
unique_ptr< indexedOctree< treeDataPoint > > pointTree_
 
unique_ptr< indexedOctree< treeDataEdge > > edgeTree_
 
PtrList< indexedOctree< treeDataEdge > > edgeTreesByType_
 
- Protected Attributes inherited from GeoMesh< faMesh >
const faMeshmesh_
 
- Static Protected Attributes inherited from extendedEdgeMesh
static label convexStart_ = 0
 
static label externalStart_ = 0
 

Detailed Description

Provide a means of reading/writing the single-file OpenFOAM extendedEdgeMesh format.

Source files

Definition at line 50 of file extendedEdgeMeshFormat.H.

Constructor & Destructor Documentation

◆ extendedEdgeMeshFormat()

extendedEdgeMeshFormat ( const fileName filename)

Definition at line 30 of file extendedEdgeMeshFormat.C.

References Foam::blockMeshTools::read().

Here is the call graph for this function:

◆ ~extendedEdgeMeshFormat()

virtual ~extendedEdgeMeshFormat ( )
virtualdefault

Member Function Documentation

◆ read()

bool read ( const fileName filename)
virtual

Reimplemented from extendedEdgeMesh.

Definition at line 41 of file extendedEdgeMeshFormat.C.

References clear(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, IOstream::good(), Foam::New(), IOobject::readHeader(), and IOobject::typeHeaderOk().

Here is the call graph for this function:

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