Public Member Functions | Static Public Member Functions | List of all members
edgeVertex Class Reference

Combines edge or vertex in single label. Used to specify cuts across cell circumference. More...

Inheritance diagram for edgeVertex:
Inheritance graph
[legend]

Public Member Functions

 edgeVertex (const polyMesh &mesh)
 
const polyMeshmesh () const
 
bool isEdge (const label eVert) const
 
label getEdge (const label eVert) const
 
label getVertex (const label eVert) const
 
label vertToEVert (const label vertI) const
 
label edgeToEVert (const label edgeI) const
 
point coord (const label cut, const scalar weight) const
 
label cutPairToEdge (const label cut0, const label cut1) const
 
OstreamwriteCut (Ostream &os, const label cut, const scalar) const
 
OstreamwriteCuts (Ostream &os, const labelList &, const scalarField &) const
 

Static Public Member Functions

static void updateLabels (const labelList &map, List< refineCell > &)
 
static void updateLabels (const labelList &map, Map< label > &)
 
static void updateLabels (const labelList &map, labelHashSet &)
 
static bool isEdge (const primitiveMesh &mesh, const label eVert)
 
static label getEdge (const primitiveMesh &mesh, const label eVert)
 
static label getVertex (const primitiveMesh &mesh, const label eVert)
 
static label vertToEVert (const primitiveMesh &mesh, const label vertI)
 
static label edgeToEVert (const primitiveMesh &mesh, const label edgeI)
 
static point coord (const primitiveMesh &, const label cut, const scalar weight)
 
static label cutPairToEdge (const primitiveMesh &, const label cut0, const label cut1)
 

Detailed Description

Combines edge or vertex in single label. Used to specify cuts across cell circumference.

Source files

Definition at line 51 of file edgeVertex.H.

Constructor & Destructor Documentation

◆ edgeVertex()

edgeVertex ( const polyMesh mesh)
inlineexplicit

Definition at line 89 of file edgeVertex.H.

Member Function Documentation

◆ updateLabels() [1/3]

void updateLabels ( const labelList map,
List< refineCell > &  refCells 
)
static

Definition at line 30 of file edgeVertex.C.

References refineCell::cellNo(), refineCell::direction(), forAll, and List::setSize().

Here is the call graph for this function:

◆ updateLabels() [2/3]

void updateLabels ( const labelList map,
Map< label > &  cellPairs 
)
static

Definition at line 57 of file edgeVertex.C.

References Foam::endl(), forAllConstIters(), and WarningInFunction.

Here is the call graph for this function:

◆ updateLabels() [3/3]

void updateLabels ( const labelList map,
labelHashSet cells 
)
static

Definition at line 120 of file edgeVertex.C.

References cells, and HashSet::insert().

Here is the call graph for this function:

◆ mesh()

const polyMesh& mesh ( ) const
inline

Definition at line 97 of file edgeVertex.H.

Referenced by edgeVertex::edgeToEVert(), edgeVertex::getEdge(), edgeVertex::getVertex(), edgeVertex::isEdge(), and edgeVertex::vertToEVert().

Here is the caller graph for this function:

◆ isEdge() [1/2]

static bool isEdge ( const primitiveMesh mesh,
const label  eVert 
)
inlinestatic

Definition at line 106 of file edgeVertex.H.

References Foam::abort(), Foam::FatalError, FatalErrorInFunction, edgeVertex::mesh(), primitiveMesh::nEdges(), and primitiveMesh::nPoints().

Referenced by edgeVertex::getEdge(), edgeVertex::getVertex(), and edgeVertex::isEdge().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isEdge() [2/2]

bool isEdge ( const label  eVert) const
inline

Definition at line 119 of file edgeVertex.H.

References edgeVertex::isEdge().

Here is the call graph for this function:

◆ getEdge() [1/2]

static label getEdge ( const primitiveMesh mesh,
const label  eVert 
)
inlinestatic

Definition at line 125 of file edgeVertex.H.

References Foam::abort(), Foam::FatalError, FatalErrorInFunction, edgeVertex::isEdge(), edgeVertex::mesh(), and primitiveMesh::nPoints().

Referenced by edgeVertex::getEdge().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getEdge() [2/2]

label getEdge ( const label  eVert) const
inline

Definition at line 135 of file edgeVertex.H.

References edgeVertex::getEdge().

Here is the call graph for this function:

◆ getVertex() [1/2]

static label getVertex ( const primitiveMesh mesh,
const label  eVert 
)
inlinestatic

Definition at line 141 of file edgeVertex.H.

References Foam::abort(), Foam::FatalError, FatalErrorInFunction, edgeVertex::isEdge(), and edgeVertex::mesh().

Referenced by edgeVertex::getVertex().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getVertex() [2/2]

label getVertex ( const label  eVert) const
inline

Definition at line 151 of file edgeVertex.H.

References edgeVertex::getVertex().

Here is the call graph for this function:

◆ vertToEVert() [1/2]

static label vertToEVert ( const primitiveMesh mesh,
const label  vertI 
)
inlinestatic

Definition at line 157 of file edgeVertex.H.

References Foam::abort(), Foam::FatalError, FatalErrorInFunction, edgeVertex::mesh(), and primitiveMesh::nPoints().

Referenced by edgeVertex::vertToEVert().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vertToEVert() [2/2]

label vertToEVert ( const label  vertI) const
inline

Definition at line 167 of file edgeVertex.H.

References edgeVertex::vertToEVert().

Here is the call graph for this function:

◆ edgeToEVert() [1/2]

static label edgeToEVert ( const primitiveMesh mesh,
const label  edgeI 
)
inlinestatic

Definition at line 173 of file edgeVertex.H.

References Foam::abort(), Foam::FatalError, FatalErrorInFunction, edgeVertex::mesh(), primitiveMesh::nEdges(), and primitiveMesh::nPoints().

Referenced by edgeVertex::edgeToEVert().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ edgeToEVert() [2/2]

label edgeToEVert ( const label  edgeI) const
inline

Definition at line 183 of file edgeVertex.H.

References edgeVertex::edgeToEVert().

Here is the call graph for this function:

◆ coord() [1/2]

Foam::point coord ( const primitiveMesh mesh,
const label  cut,
const scalar  weight 
)
static

Definition at line 163 of file edgeVertex.C.

References Foam::constant::electromagnetic::e, and mesh.

Referenced by edgeVertex::coord().

Here is the caller graph for this function:

◆ coord() [2/2]

point coord ( const label  cut,
const scalar  weight 
) const
inline

Definition at line 195 of file edgeVertex.H.

References edgeVertex::coord().

Here is the call graph for this function:

◆ cutPairToEdge() [1/2]

Foam::label cutPairToEdge ( const primitiveMesh mesh,
const label  cut0,
const label  cut1 
)
static

Definition at line 185 of file edgeVertex.C.

References Foam::meshTools::findEdge(), and mesh.

Referenced by edgeVertex::cutPairToEdge().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ cutPairToEdge() [2/2]

label cutPairToEdge ( const label  cut0,
const label  cut1 
) const
inline

Definition at line 207 of file edgeVertex.H.

References edgeVertex::cutPairToEdge().

Here is the call graph for this function:

◆ writeCut()

Foam::Ostream & writeCut ( Ostream os,
const label  cut,
const scalar  weight 
) const

Definition at line 208 of file edgeVertex.C.

References Foam::constant::electromagnetic::e, mesh, and os().

Here is the call graph for this function:

◆ writeCuts()

Foam::Ostream & writeCuts ( Ostream os,
const labelList cuts,
const scalarField weights 
) const

Definition at line 233 of file edgeVertex.C.

References forAll, and os().

Here is the call graph for this function:

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