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)
 Construct from mesh. More...
 
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
 Write cut description to Ostream. More...
 
OstreamwriteCuts (Ostream &os, const labelList &, const scalarField &) const
 Write cut descriptions to Ostream. More...
 

Static Public Member Functions

static void updateLabels (const labelList &map, List< refineCell > &)
 Update refine list from map. Used to update cell/face labels. More...
 
static void updateLabels (const labelList &map, Map< label > &)
 Update map from map. Used to update cell/face labels. More...
 
static void updateLabels (const labelList &map, labelHashSet &)
 Update map from map. Used to update cell/face labels. More...
 
static bool isEdge (const primitiveMesh &mesh, const label eVert)
 Is eVert an edge? More...
 
static label getEdge (const primitiveMesh &mesh, const label eVert)
 Convert eVert to edge label. More...
 
static label getVertex (const primitiveMesh &mesh, const label eVert)
 Convert eVert to vertex label. More...
 
static label vertToEVert (const primitiveMesh &mesh, const label vertI)
 Convert pointI to eVert. More...
 
static label edgeToEVert (const primitiveMesh &mesh, const label edgeI)
 Convert edgeI to eVert. More...
 
static point coord (const primitiveMesh &, const label cut, const scalar weight)
 Return coordinate of cut (uses weight if edgeCut) More...
 
static label cutPairToEdge (const primitiveMesh &, const label cut0, const label cut1)
 Find mesh edge (or -1) between two cuts. More...
 

Detailed Description

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

Source files

Definition at line 52 of file edgeVertex.H.

Constructor & Destructor Documentation

edgeVertex ( const polyMesh mesh)
inline

Construct from mesh.

Definition at line 90 of file edgeVertex.H.

Member Function Documentation

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

Update refine list from map. Used to update cell/face labels.

after morphing

Definition at line 36 of file edgeVertex.C.

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

Referenced by edgeVertex::updateLabels().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Update map from map. Used to update cell/face labels.

after morphing

Definition at line 63 of file edgeVertex.C.

References Foam::endl(), forAllConstIter(), HashTable< T, Key, Hash >::size(), edgeVertex::updateLabels(), and WarningIn.

Here is the call graph for this function:

void updateLabels ( const labelList map,
labelHashSet cells 
)
static

Update map from map. Used to update cell/face labels.

after morphing

Definition at line 129 of file edgeVertex.C.

References edgeVertex::coord(), forAllConstIter(), and HashTable< T, Key, Hash >::size().

Here is the call graph for this function:

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

Is eVert an edge?

Definition at line 107 of file edgeVertex.H.

References Foam::abort(), Foam::FatalError, FatalErrorIn, primitiveMesh::nEdges(), and primitiveMesh::nPoints().

Referenced by geomCellLooper::cut(), edgeVertex::getEdge(), edgeVertex::getVertex(), edgeVertex::isEdge(), meshCutAndRemove::setRefinement(), and meshCutter::setRefinement().

Here is the call graph for this function:

Here is the caller graph for this function:

bool isEdge ( const label  eVert) const
inline

Definition at line 122 of file edgeVertex.H.

References edgeVertex::isEdge().

Here is the call graph for this function:

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

Convert eVert to edge label.

Definition at line 128 of file edgeVertex.H.

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

Referenced by edgeVertex::getEdge(), meshCutAndRemove::setRefinement(), and meshCutter::setRefinement().

Here is the call graph for this function:

Here is the caller graph for this function:

label getEdge ( const label  eVert) const
inline

Definition at line 140 of file edgeVertex.H.

References edgeVertex::getEdge().

Here is the call graph for this function:

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

Convert eVert to vertex label.

Definition at line 146 of file edgeVertex.H.

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

Referenced by edgeVertex::getVertex(), meshCutAndRemove::setRefinement(), and meshCutter::setRefinement().

Here is the call graph for this function:

Here is the caller graph for this function:

label getVertex ( const label  eVert) const
inline

Definition at line 158 of file edgeVertex.H.

References edgeVertex::getVertex().

Here is the call graph for this function:

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

Convert pointI to eVert.

Definition at line 164 of file edgeVertex.H.

References Foam::abort(), Foam::FatalError, FatalErrorIn, and primitiveMesh::nPoints().

Referenced by geomCellLooper::cut(), and edgeVertex::vertToEVert().

Here is the call graph for this function:

Here is the caller graph for this function:

label vertToEVert ( const label  vertI) const
inline

Definition at line 176 of file edgeVertex.H.

References edgeVertex::vertToEVert().

Here is the call graph for this function:

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

Convert edgeI to eVert.

Definition at line 182 of file edgeVertex.H.

References Foam::abort(), Foam::FatalError, FatalErrorIn, primitiveMesh::nEdges(), and primitiveMesh::nPoints().

Referenced by geomCellLooper::cut(), and edgeVertex::edgeToEVert().

Here is the call graph for this function:

Here is the caller graph for this function:

label edgeToEVert ( const label  edgeI) const
inline

Definition at line 194 of file edgeVertex.H.

References edgeVertex::coord(), and edgeVertex::edgeToEVert().

Here is the call graph for this function:

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

Return coordinate of cut (uses weight if edgeCut)

Definition at line 172 of file edgeVertex.C.

References edgeVertex::cutPairToEdge(), Foam::constant::electromagnetic::e, primitiveMesh::edges(), edge::end(), primitiveMesh::points(), and edge::start().

Referenced by edgeVertex::coord(), geomCellLooper::cut(), edgeVertex::edgeToEVert(), and edgeVertex::updateLabels().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 206 of file edgeVertex.H.

References edgeVertex::coord(), and edgeVertex::cutPairToEdge().

Here is the call graph for this function:

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

Find mesh edge (or -1) between two cuts.

Definition at line 194 of file edgeVertex.C.

References Foam::meshTools::findEdge(), and edgeVertex::writeCut().

Referenced by edgeVertex::coord(), and edgeVertex::cutPairToEdge().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 218 of file edgeVertex.H.

References edgeVertex::cutPairToEdge(), edgeVertex::writeCut(), and edgeVertex::writeCuts().

Here is the call graph for this function:

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

Write cut description to Ostream.

Definition at line 217 of file edgeVertex.C.

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

Referenced by geomCellLooper::cut(), and edgeVertex::cutPairToEdge().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Write cut descriptions to Ostream.

Definition at line 242 of file edgeVertex.C.

References forAll.

Referenced by edgeVertex::cutPairToEdge(), meshCutAndRemove::setRefinement(), meshCutter::setRefinement(), and edgeVertex::writeCut().

Here is the caller graph for this function:


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