Combines edge or vertex in single label. Used to specify cuts across cell circumference. More...
#include <dynamicMesh/edgeVertex.H>
Combines edge or vertex in single label. Used to specify cuts across cell circumference.
Definition at line 53 of file edgeVertex.H.
Public Member Functions | |
edgeVertex (const polyMesh &mesh) | |
Construct from mesh.
| |
const polyMesh & | mesh () 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 |
Ostream & | writeCut (Ostream &os, const label cut, const scalar) const |
Write cut description to Ostream.
| |
Ostream & | writeCuts (Ostream &os, const labelList &, const scalarField &) const |
Write cut descriptions to Ostream.
| |
Static Public Member Functions | |
static void | updateLabels (const labelList &map, List< refineCell > &) |
Update refine list from map. Used to update cell/face labels.
| |
static void | updateLabels (const labelList &map, Map< label > &) |
Update map from map. Used to update cell/face labels.
| |
static void | updateLabels (const labelList &map, labelHashSet &) |
Update map from map. Used to update cell/face labels.
| |
static bool | isEdge (const primitiveMesh &mesh, const label eVert) |
is eVert an edge?
| |
static label | getEdge (const primitiveMesh &mesh, const label eVert) |
convert eVert to edge label
| |
static label | getVertex (const primitiveMesh &mesh, const label eVert) |
convert eVert to vertex label
| |
static label | vertToEVert (const primitiveMesh &mesh, const label vertI) |
Convert pointI to eVert.
| |
static label | edgeToEVert (const primitiveMesh &mesh, const label edgeI) |
Convert edgeI to eVert.
| |
static point | coord (const primitiveMesh &, const label cut, const scalar weight) |
Return coordinate of cut (uses weight if edgeCut)
| |
static label | cutPairToEdge (const primitiveMesh &, const label cut0, const label cut1) |
Find mesh edge (or -1) between two cuts.
|
edgeVertex | ( | const polyMesh & | mesh ) | [inline]
|
Construct from mesh.
Definition at line 91 of file edgeVertex.H.
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 38 of file edgeVertex.C.
References refineCell::cellNo(), refineCell::direction(), forAll, and List< T >::setSize().
Update map from map. Used to update cell/face labels.
after morphing
Definition at line 65 of file edgeVertex.C.
References HashTable< T, Key, Hash >::begin(), HashTable< T, Key, Hash >::end(), Foam::endl(), HashTable< T, Key, Hash >::size(), and WarningIn.
void updateLabels | ( | const labelList & | map, |
labelHashSet & | cells | ||
) | [static]
|
Update map from map. Used to update cell/face labels.
after morphing
Definition at line 141 of file edgeVertex.C.
References HashTable< T, Key, Hash >::begin(), HashTable< T, Key, Hash >::end(), and HashTable< T, Key, Hash >::size().
const polyMesh& mesh | ( | ) | const [inline]
|
Definition at line 99 of file edgeVertex.H.
static bool isEdge | ( | const primitiveMesh & | mesh, |
const label | eVert | ||
) | [inline, static]
|
is eVert an edge?
Definition at line 108 of file edgeVertex.H.
References Foam::abort(), Foam::FatalError, FatalErrorIn, primitiveMesh::nEdges(), and primitiveMesh::nPoints().
Referenced by edgeVertex::getEdge(), edgeVertex::getVertex(), and edgeVertex::isEdge().
bool isEdge | ( | const label | eVert ) | const [inline]
|
Definition at line 123 of file edgeVertex.H.
References edgeVertex::isEdge().
static label getEdge | ( | const primitiveMesh & | mesh, |
const label | eVert | ||
) | [inline, static]
|
convert eVert to edge label
Definition at line 129 of file edgeVertex.H.
References Foam::abort(), Foam::FatalError, FatalErrorIn, edgeVertex::isEdge(), and primitiveMesh::nPoints().
Referenced by edgeVertex::getEdge().
label getEdge | ( | const label | eVert ) | const [inline]
|
Definition at line 141 of file edgeVertex.H.
References edgeVertex::getEdge().
static label getVertex | ( | const primitiveMesh & | mesh, |
const label | eVert | ||
) | [inline, static]
|
convert eVert to vertex label
Definition at line 147 of file edgeVertex.H.
References Foam::abort(), Foam::FatalError, FatalErrorIn, and edgeVertex::isEdge().
Referenced by edgeVertex::getVertex().
label getVertex | ( | const label | eVert ) | const [inline]
|
Definition at line 159 of file edgeVertex.H.
References edgeVertex::getVertex().
static label vertToEVert | ( | const primitiveMesh & | mesh, |
const label | vertI | ||
) | [inline, static]
|
Convert pointI to eVert.
Definition at line 165 of file edgeVertex.H.
References Foam::abort(), Foam::FatalError, FatalErrorIn, and primitiveMesh::nPoints().
Referenced by edgeVertex::vertToEVert().
label vertToEVert | ( | const label | vertI ) | const [inline]
|
Definition at line 177 of file edgeVertex.H.
References edgeVertex::vertToEVert().
static label edgeToEVert | ( | const primitiveMesh & | mesh, |
const label | edgeI | ||
) | [inline, static]
|
Convert edgeI to eVert.
Definition at line 183 of file edgeVertex.H.
References Foam::abort(), Foam::FatalError, FatalErrorIn, primitiveMesh::nEdges(), and primitiveMesh::nPoints().
Referenced by edgeVertex::edgeToEVert().
label edgeToEVert | ( | const label | edgeI ) | const [inline]
|
Definition at line 195 of file edgeVertex.H.
References edgeVertex::edgeToEVert().
Foam::point coord | ( | const primitiveMesh & | mesh, |
const label | cut, | ||
const scalar | weight | ||
) | [static]
|
Return coordinate of cut (uses weight if edgeCut)
Definition at line 194 of file edgeVertex.C.
References e, primitiveMesh::edges(), edge::end(), primitiveMesh::points(), and edge::start().
Referenced by edgeVertex::coord().
point coord | ( | const label | cut, |
const scalar | weight | ||
) | const [inline]
|
Definition at line 207 of file edgeVertex.H.
References edgeVertex::coord().
Foam::label cutPairToEdge | ( | const primitiveMesh & | mesh, |
const label | cut0, | ||
const label | cut1 | ||
) | [static]
|
Find mesh edge (or -1) between two cuts.
Definition at line 216 of file edgeVertex.C.
References Foam::meshTools::findEdge().
Referenced by edgeVertex::cutPairToEdge().
label cutPairToEdge | ( | const label | cut0, |
const label | cut1 | ||
) | const [inline]
|
Definition at line 219 of file edgeVertex.H.
References edgeVertex::cutPairToEdge().
Foam::Ostream & writeCut | ( | Ostream & | os, |
const label | cut, | ||
const scalar | weight | ||
) | const |
Write cut description to Ostream.
Definition at line 239 of file edgeVertex.C.
References e, primitiveMesh::edges(), and mesh.
Foam::Ostream & writeCuts | ( | Ostream & | os, |
const labelList & | cuts, | ||
const scalarField & | weights | ||
) | const |