Combines edge or vertex in single label. Used to specify cuts across cell circumference. More...
Public Member Functions | |
edgeVertex (const polyMesh &mesh) | |
Construct from mesh. More... | |
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. More... | |
Ostream & | writeCuts (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... | |
Private Member Functions | |
edgeVertex (const edgeVertex &) | |
Disallow default bitwise copy construct. More... | |
void | operator= (const edgeVertex &) |
Disallow default bitwise assignment. More... | |
Private Attributes | |
const polyMesh & | mesh_ |
Reference to mesh. (could be primitive mesh but keeping polyMesh. More... | |
Combines edge or vertex in single label. Used to specify cuts across cell circumference.
Definition at line 52 of file edgeVertex.H.
|
private |
Disallow default bitwise copy construct.
|
inline |
Construct from mesh.
Definition at line 90 of file edgeVertex.H.
|
private |
Disallow default bitwise assignment.
|
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::setSize().
Update map from map. Used to update cell/face labels.
after morphing
Definition at line 63 of file edgeVertex.C.
References Foam::endl(), forAllConstIter(), and WarningInFunction.
|
static |
Update map from map. Used to update cell/face labels.
after morphing
Definition at line 126 of file edgeVertex.C.
References cells, forAllConstIter(), and HashSet< Key, Hash >::insert().
|
inline |
Definition at line 98 of file edgeVertex.H.
References edgeVertex::mesh_.
Referenced by meshCutAndRemove::addEdgeCutsToFace(), cellCuts::calcFaceCuts(), edgeVertex::edgeToEVert(), edgeVertex::getEdge(), edgeVertex::getVertex(), edgeVertex::isEdge(), geomCellLooper::minEdgeLen(), wallLayerCells::usesCoupledPatch(), and edgeVertex::vertToEVert().
|
inlinestatic |
Is eVert an edge?
Definition at line 107 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().
|
inline |
Definition at line 120 of file edgeVertex.H.
References edgeVertex::isEdge(), and edgeVertex::mesh_.
|
inlinestatic |
Convert eVert to edge label.
Definition at line 126 of file edgeVertex.H.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, edgeVertex::isEdge(), edgeVertex::mesh(), and primitiveMesh::nPoints().
Referenced by edgeVertex::getEdge().
Definition at line 136 of file edgeVertex.H.
References edgeVertex::getEdge(), and edgeVertex::mesh_.
|
inlinestatic |
Convert eVert to vertex label.
Definition at line 142 of file edgeVertex.H.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, edgeVertex::isEdge(), and edgeVertex::mesh().
Referenced by edgeVertex::getVertex().
Definition at line 152 of file edgeVertex.H.
References edgeVertex::getVertex(), and edgeVertex::mesh_.
|
inlinestatic |
Convert pointI to eVert.
Definition at line 158 of file edgeVertex.H.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, edgeVertex::mesh(), and primitiveMesh::nPoints().
Referenced by cellCuts::calcFaceCuts(), and edgeVertex::vertToEVert().
Definition at line 168 of file edgeVertex.H.
References edgeVertex::mesh_, and edgeVertex::vertToEVert().
|
inlinestatic |
Convert edgeI to eVert.
Definition at line 174 of file edgeVertex.H.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, edgeVertex::mesh(), primitiveMesh::nEdges(), and primitiveMesh::nPoints().
Referenced by cellCuts::calcFaceCuts(), and edgeVertex::edgeToEVert().
Definition at line 184 of file edgeVertex.H.
References edgeVertex::edgeToEVert(), and edgeVertex::mesh_.
|
static |
Return coordinate of cut (uses weight if edgeCut)
Definition at line 169 of file edgeVertex.C.
References Foam::constant::electromagnetic::e, and mesh.
Referenced by edgeVertex::coord().
Definition at line 196 of file edgeVertex.H.
References edgeVertex::coord(), and edgeVertex::mesh_.
|
static |
Find mesh edge (or -1) between two cuts.
Definition at line 191 of file edgeVertex.C.
References Foam::meshTools::findEdge(), and mesh.
Referenced by edgeVertex::cutPairToEdge().
Definition at line 208 of file edgeVertex.H.
References edgeVertex::cutPairToEdge(), and edgeVertex::mesh_.
Foam::Ostream & writeCut | ( | Ostream & | os, |
const label | cut, | ||
const scalar | weight | ||
) | const |
Write cut description to Ostream.
Definition at line 214 of file edgeVertex.C.
References Foam::constant::electromagnetic::e, and mesh.
Foam::Ostream & writeCuts | ( | Ostream & | os, |
const labelList & | cuts, | ||
const scalarField & | weights | ||
) | const |
|
private |
Reference to mesh. (could be primitive mesh but keeping polyMesh.
here saves storing reference at higher levels where we do need it)
Definition at line 58 of file edgeVertex.H.
Referenced by edgeVertex::coord(), edgeVertex::cutPairToEdge(), edgeVertex::edgeToEVert(), edgeVertex::getEdge(), edgeVertex::getVertex(), edgeVertex::isEdge(), edgeVertex::mesh(), and edgeVertex::vertToEVert().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.