Mesh data needed to do the Finite Area discretisation. More...
Public Member Functions | |
edgeMesh (const faMesh &mesh) | |
label | size () const |
const edgeVectorField & | C () |
TypeName ("edgeMesh") | |
Runtime type information. More... | |
edgeMesh () | |
Default construct. More... | |
edgeMesh (const edgeMesh &em) | |
Copy construct. More... | |
edgeMesh (edgeMesh &&em) | |
Move construct. More... | |
edgeMesh (const pointField &points, const edgeList &edges) | |
Copy construct from components. More... | |
edgeMesh (pointField &&pointLst, edgeList &&edgeLst) | |
Move construct from components. More... | |
edgeMesh (const fileName &name) | |
Construct from file name (uses extension to determine type) More... | |
edgeMesh (const fileName &name, const word &fileType) | |
Construct from file name with specified type. More... | |
declareRunTimeSelectionTable (autoPtr, edgeMesh, fileExtension,(const fileName &name),(name)) | |
virtual | ~edgeMesh ()=default |
Destructor. More... | |
declareMemberFunctionSelectionTable (void, edgeMesh, write, fileExtension,(const fileName &name, const edgeMesh &mesh),(name, mesh)) | |
void | transfer (edgeMesh &mesh) |
Transfer the contents of the argument and annul the argument. More... | |
bool | read (const fileName &name, const word &fileType) |
Read from file. Chooses reader based on explicit extension. More... | |
virtual bool | read (const fileName &name) |
Read from file. Chooses reader based on detected extension. More... | |
const pointField & | points () const |
Return points. More... | |
const edgeList & | edges () const |
Return edges. More... | |
const labelListList & | pointEdges () const |
Return edges. More... | |
label | regions (labelList &edgeRegion) const |
Find connected regions. Set region number per edge. More... | |
virtual void | clear () |
Clear all storage. More... | |
virtual void | scalePoints (const scalar scaleFactor) |
Scale points. A non-positive factor is ignored. More... | |
virtual void | mergePoints (const scalar mergeDist) |
Geometric merge points (points within mergeDist) prior to. More... | |
virtual void | mergeEdges () |
Merge duplicate edges and eliminate unused points. More... | |
virtual void | writeStats (Ostream &) const |
virtual void | write (const fileName &name) const |
Generic write routine. Chooses writer based on extension. More... | |
virtual void | write (const fileName &name, const word &fileType) const |
Generic write routine. Chooses writer based on extension. More... | |
void | operator= (const edgeMesh &rhs) |
Copy assignment. More... | |
void | operator= (edgeMesh &&rhs) |
Move assignment. More... | |
Public Member Functions inherited from GeoMesh< faMesh > | |
GeoMesh (const faMesh &mesh) | |
Construct from MESH. More... | |
bool | hasDb () const |
Return true if thisDb() is a valid DB - here = false. More... | |
const objectRegistry & | thisDb () const |
Return the object registry. More... | |
const faMesh & | operator() () const |
Return reference to polyMesh. More... | |
Static Public Member Functions | |
static label | size (const Mesh &mesh) |
static wordHashSet | readTypes () |
Summary of supported read file types. More... | |
static wordHashSet | writeTypes () |
Summary of supported write file types. More... | |
static bool | canReadType (const word &fileType, bool verbose=false) |
Can we read this file format? More... | |
static bool | canWriteType (const word &fileType, bool verbose=false) |
Can we write this file format type? More... | |
static bool | canRead (const fileName &name, bool verbose=false) |
Can we read this file format? More... | |
static autoPtr< edgeMesh > | New (const fileName &name, const word &fileType) |
Read construct from filename with given format. More... | |
static autoPtr< edgeMesh > | New (const fileName &name) |
Select constructed from filename (implicit extension) More... | |
static void | write (const fileName &name, const edgeMesh &mesh) |
Write to file (format implicit in the extension) More... | |
static void | write (const fileName &name, const word &fileType, const edgeMesh &mesh) |
Write to file, with given format. More... | |
Protected Member Functions | |
pointField & | storedPoints () |
Non-const access to global points. More... | |
edgeList & | storedEdges () |
Non-const access to the edges. More... | |
Friends | |
Ostream & | operator<< (Ostream &os, const edgeMesh &em) |
Istream & | operator>> (Istream &is, edgeMesh &em) |
Additional Inherited Members | |
Public Types inherited from GeoMesh< faMesh > | |
typedef faMesh | Mesh |
typedef faMesh ::BoundaryMesh | BoundaryMesh |
Protected Attributes inherited from GeoMesh< faMesh > | |
const faMesh & | mesh_ |
Reference to Mesh. More... | |
Mesh data needed to do the Finite Area discretisation.
Points connected by edges.
Author Zeljko Tukovic, FMENA Hrvoje Jasak, Wikki Ltd.
Can be read from fileName based on extension. Uses New factory method to select the reader and transfer the result.
Definition at line 52 of file edgeFaMesh.H.
Definition at line 59 of file edgeFaMesh.H.
|
inline |
Default construct.
Definition at line 45 of file edgeMeshI.H.
Copy construct.
Definition at line 54 of file edgeMeshI.H.
Move construct.
Definition at line 63 of file edgeMeshI.H.
References edgeMesh::transfer().
|
inline |
Copy construct from components.
Definition at line 72 of file edgeMeshI.H.
|
inline |
Move construct from components.
Definition at line 85 of file edgeMeshI.H.
Construct from file name (uses extension to determine type)
Definition at line 49 of file edgeMeshIO.C.
References Foam::name(), and edgeMesh::read().
Construct from file name with specified type.
Definition at line 36 of file edgeMeshIO.C.
References Foam::name(), and Foam::blockMeshTools::read().
|
virtualdefault |
Destructor.
|
inline |
Definition at line 64 of file edgeFaMesh.H.
References GeoMesh< faMesh >::mesh_.
|
inlinestatic |
Definition at line 69 of file edgeFaMesh.H.
References mesh.
|
inline |
Definition at line 74 of file edgeFaMesh.H.
References faMesh::edgeCentres(), and GeoMesh< faMesh >::mesh_.
|
inlineprotected |
Non-const access to global points.
Definition at line 31 of file edgeMeshI.H.
Referenced by OBJedgeFormat::read().
|
inlineprotected |
Non-const access to the edges.
Definition at line 37 of file edgeMeshI.H.
Referenced by OBJedgeFormat::read().
TypeName | ( | "edgeMesh" | ) |
Runtime type information.
|
static |
Summary of supported read file types.
Definition at line 49 of file edgeMesh.C.
|
static |
Summary of supported write file types.
Definition at line 55 of file edgeMesh.C.
Can we read this file format?
Definition at line 61 of file edgeMesh.C.
Can we write this file format type?
Definition at line 73 of file edgeMesh.C.
Can we read this file format?
Definition at line 85 of file edgeMesh.C.
References word::ext(), word::lessExt(), and Foam::name().
declareRunTimeSelectionTable | ( | autoPtr | , |
edgeMesh | , | ||
fileExtension | , | ||
(const fileName &name) | , | ||
(name) | |||
) |
|
static |
Read construct from filename with given format.
Definition at line 34 of file edgeMeshNew.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::flatOutput(), Foam::name(), and Foam::nl.
Referenced by edgeMesh::New().
|
static |
Select constructed from filename (implicit extension)
Definition at line 55 of file edgeMeshNew.C.
References word::ext(), word::lessExt(), Foam::name(), and edgeMesh::New().
declareMemberFunctionSelectionTable | ( | void | , |
edgeMesh | , | ||
write | , | ||
fileExtension | , | ||
(const fileName &name, const edgeMesh &mesh) | , | ||
(name, mesh) | |||
) |
Write to file (format implicit in the extension)
Definition at line 112 of file edgeMeshIO.C.
References word::ext(), mesh, Foam::name(), and Foam::vtk::write().
Referenced by edgeMesh::write(), and extendedEdgeMesh::writeObj().
Write to file, with given format.
Definition at line 87 of file edgeMeshIO.C.
References DebugInFunction, Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInLookup, mesh, and Foam::name().
void transfer | ( | edgeMesh & | mesh | ) |
Transfer the contents of the argument and annul the argument.
Definition at line 124 of file edgeMesh.C.
References mesh.
Referenced by extendedEdgeMesh::add(), edgeMesh::edgeMesh(), extendedEdgeMesh::flipNormals(), and extendedEdgeMesh::transfer().
Read from file. Chooses reader based on explicit extension.
Definition at line 75 of file edgeMeshIO.C.
References Foam::name(), and Foam::New().
Referenced by edgeMesh::edgeMesh().
Read from file. Chooses reader based on detected extension.
Reimplemented in extendedEdgeMesh, STARCDedgeFormat, NASedgeFormat, edgeMeshFormat, VTKedgeFormat, OBJedgeFormat, extendedFeatureEdgeMeshFormat, and extendedEdgeMeshFormat.
Definition at line 61 of file edgeMeshIO.C.
References word::ext(), fileName::ext(), word::lessExt(), Foam::name(), and Foam::read().
|
inline |
Return points.
Definition at line 99 of file edgeMeshI.H.
Referenced by extendedEdgeMesh::add(), refinementFeatures::checkSizes(), extendedFeatureEdgeMesh::extendedFeatureEdgeMesh(), featureEdgeMesh::featureEdgeMesh(), Foam::operator<<(), refinementFeatures::regionEdgeTrees(), searchableExtrudedCircle::searchableExtrudedCircle(), VTKedgeFormat::write(), and Foam::edgeMeshTools::writeStats().
|
inline |
Return edges.
Definition at line 105 of file edgeMeshI.H.
Referenced by extendedEdgeMesh::add(), Foam::calcProximityOfFeatureEdges(), extendedFeatureEdgeMesh::extendedFeatureEdgeMesh(), featureEdgeMesh::featureEdgeMesh(), Foam::operator<<(), refinementFeatures::regionEdgeTrees(), searchableExtrudedCircle::searchableExtrudedCircle(), VTKedgeFormat::write(), and Foam::edgeMeshTools::writeStats().
|
inline |
Return edges.
Definition at line 111 of file edgeMeshI.H.
Foam::label regions | ( | labelList & | edgeRegion | ) | const |
Find connected regions. Set region number per edge.
Returns number of regions.
Definition at line 137 of file edgeMesh.C.
References List< T >::append(), Foam::constant::electromagnetic::e, forAll, List< T >::setSize(), and List< T >::transfer().
|
virtual |
Clear all storage.
Reimplemented in extendedEdgeMesh.
Definition at line 116 of file edgeMesh.C.
Referenced by extendedEdgeMesh::clear(), and OBJedgeFormat::read().
|
virtual |
Scale points. A non-positive factor is ignored.
Definition at line 203 of file edgeMesh.C.
|
virtual |
Geometric merge points (points within mergeDist) prior to.
automatically calling mergeEdges().
Definition at line 213 of file edgeMesh.C.
References Foam::constant::electromagnetic::e, forAll, Foam::mergePoints(), and VectorSpace< Vector< scalar >, scalar, 3 >::zero.
|
virtual |
Merge duplicate edges and eliminate unused points.
Definition at line 247 of file edgeMesh.C.
References Foam::expressions::patchExpr::debug, Foam::constant::electromagnetic::e, Foam::endl(), forAll, and Foam::Info.
|
virtual |
Reimplemented in extendedEdgeMesh.
Definition at line 121 of file edgeMeshIO.C.
References Foam::endl(), Foam::indent(), Foam::nl, and points.
Referenced by extendedEdgeMesh::writeStats().
|
inlinevirtual |
Generic write routine. Chooses writer based on extension.
Reimplemented in edgeMeshFormat, STARCDedgeFormat, VTKedgeFormat, and OBJedgeFormat.
Definition at line 263 of file edgeMesh.H.
References Foam::name(), and edgeMesh::write().
Generic write routine. Chooses writer based on extension.
Definition at line 269 of file edgeMesh.H.
References Foam::name(), and edgeMesh::write().
|
inline |
Copy assignment.
Definition at line 123 of file edgeMeshI.H.
|
inline |
Move assignment.
Definition at line 131 of file edgeMeshI.H.