OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

edgeVertex Class Reference

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

Inheritance diagram for edgeVertex:
Collaboration diagram for edgeVertex:

List of all members.


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.

Detailed Description

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

Source files

Definition at line 48 of file edgeVertex.H.


Constructor & Destructor Documentation

edgeVertex ( const polyMesh &  mesh  )  [inline]

Construct from mesh.

Definition at line 94 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 31 of file edgeVertex.C.

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

Here is the call 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 58 of file edgeVertex.C.

void updateLabels ( const labelList &  map,
labelHashSet &  cells 
) [static]

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

after morphing

Definition at line 134 of file edgeVertex.C.

const polyMesh& mesh (  )  const [inline]

Definition at line 102 of file edgeVertex.H.

static bool isEdge ( const primitiveMesh &  mesh,
const label  eVert 
) [inline, static]

is eVert an edge?

Definition at line 111 of file edgeVertex.H.

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

Here is the call graph for this function:

bool isEdge ( const label  eVert  )  const [inline]

Definition at line 126 of file edgeVertex.H.

static label getEdge ( const primitiveMesh &  mesh,
const label  eVert 
) [inline, static]

convert eVert to edge label

Definition at line 132 of file edgeVertex.H.

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

Here is the call graph for this function:

label getEdge ( const label  eVert  )  const [inline]

Definition at line 144 of file edgeVertex.H.

static label getVertex ( const primitiveMesh &  mesh,
const label  eVert 
) [inline, static]

convert eVert to vertex label

Definition at line 150 of file edgeVertex.H.

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

Referenced by edgeVertex::cutPairToEdge().

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 162 of file edgeVertex.H.

static label vertToEVert ( const primitiveMesh &  mesh,
const label  vertI 
) [inline, static]

Convert pointI to eVert.

Definition at line 168 of file edgeVertex.H.

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

Here is the call graph for this function:

label vertToEVert ( const label  vertI  )  const [inline]

Definition at line 180 of file edgeVertex.H.

static label edgeToEVert ( const primitiveMesh &  mesh,
const label  edgeI 
) [inline, static]

Convert edgeI to eVert.

Definition at line 186 of file edgeVertex.H.

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

Here is the call graph for this function:

label edgeToEVert ( const label  edgeI  )  const [inline]

Definition at line 198 of file edgeVertex.H.

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

Return coordinate of cut (uses weight if edgeCut).

Definition at line 187 of file edgeVertex.C.

Referenced by cellCuts::flip().

Here is the caller graph for this function:

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

Definition at line 210 of file edgeVertex.H.

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

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

Definition at line 209 of file edgeVertex.C.

References edgeVertex::getVertex().

Here is the call graph for this function:

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

Definition at line 222 of file edgeVertex.H.

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

Write cut description to Ostream.

Definition at line 232 of file edgeVertex.C.

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

Write cut descriptions to Ostream.

Definition at line 257 of file edgeVertex.C.


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd