67 edgeVertex(
const edgeVertex&) =
delete;
70 void operator=(
const edgeVertex&) =
delete;
113 if (eVert < 0 || eVert >= (
mesh.nPoints() +
mesh.nEdges()))
116 <<
"EdgeVertex " << eVert <<
" out of range "
117 <<
mesh.nPoints() <<
" to "
118 << (
mesh.nPoints() +
mesh.nEdges() - 1)
122 return eVert >=
mesh.nPoints();
124 bool isEdge(
const label eVert)
const
135 <<
"EdgeVertex " << eVert <<
" not an edge"
138 return eVert -
mesh.nPoints();
140 label
getEdge(
const label eVert)
const
146 static label
getVertex(
const primitiveMesh&
mesh,
const label eVert)
151 <<
"EdgeVertex " << eVert <<
" not a vertex"
164 if ((vertI < 0) || (vertI >=
mesh.nPoints()))
167 <<
"Illegal vertex number " << vertI
180 if ((edgeI < 0) || (edgeI >=
mesh.nEdges()))
183 <<
"Illegal edge number " << edgeI
186 return mesh.nPoints() + edgeI;
212 label
cutPairToEdge(
const label cut0,
const label cut1)
const
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A HashTable to objects of type <T> with a label key.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
label getEdge(const label eVert) const
Ostream & writeCuts(Ostream &os, const labelList &, const scalarField &) const
Write cut descriptions to Ostream.
label getVertex(const label eVert) const
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).
label vertToEVert(const label vertI) const
const polyMesh & mesh() const
static bool isEdge(const primitiveMesh &mesh, const label eVert)
Is eVert an edge?
static label vertToEVert(const primitiveMesh &mesh, const label vertI)
Convert pointi to eVert.
static label getEdge(const primitiveMesh &mesh, const label eVert)
Convert eVert to edge label.
edgeVertex(const polyMesh &mesh)
Construct from mesh.
point coord(const label cut, const scalar weight) const
static void updateLabels(const labelList &map, List< refineCell > &)
Update refine list from map. Used to update cell/face labels.
label cutPairToEdge(const label cut0, const label cut1) const
label edgeToEVert(const label edgeI) const
Ostream & writeCut(Ostream &os, const label cut, const scalar) const
Write cut description to Ostream.
static label cutPairToEdge(const primitiveMesh &, const label cut0, const label cut1)
Find mesh edge (or -1) between two cuts.
bool isEdge(const label eVert) const
static label getVertex(const primitiveMesh &mesh, const label eVert)
Convert eVert to vertex label.
Mesh consisting of general polyhedral cells.
Cell-face mesh analysis engine.
Container with cells to refine. Refinement given as single direction.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
OBJstream os(runTime.globalPath()/outputName)
List< label > labelList
A List of labels.
HashSet< label, Hash< label > > labelHashSet
A HashSet of labels, uses label hasher.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
errorManip< error > abort(error &err)
vector point
Point is a vector.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...