OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

meshEdgeCuts Class Reference

Inheritance diagram for meshEdgeCuts:

Inheritance graph
[legend]
Collaboration diagram for meshEdgeCuts:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 62 of file meshEdgeCuts.H.


Public Member Functions

 meshEdgeCuts (const primitiveMesh &mesh, const labelList &cells, const labelList &meshVerts, const labelList &meshEdges, const scalarField &meshEdgeWeights)
 Construct from components.
const primitiveMesh & mesh () const
const labelList & cells () const
const labelList & meshVerts () const
const labelList & meshEdges () const
const scalarField & meshEdgeWeights () const
label size () const

Static Protected Member Functions

static void mark (const label elem, labelHashSet &markedElems)
 Mark element in a hashSet.
static void mark (const labelList &elems, labelHashSet &markedElems)
 Mark list of elements in a hashSet.
static bool crosses (const scalar isoVal, const scalar val0, const scalar val1, scalar &weight)
 Return true and set weight if linear interpolation between.

Protected Attributes

labelList cells_
 List of cells containing the cuts.
labelList meshVerts_
 Points exactly cut by cuts.
labelList meshEdges_
 List of edge labels cut.
scalarField meshEdgeWeights_
 Positions on edges.

Constructor & Destructor Documentation

meshEdgeCuts ( const primitiveMesh &  mesh,
const labelList &  cells,
const labelList &  meshVerts,
const labelList &  meshEdges,
const scalarField &  meshEdgeWeights 
)

Construct from components.


Member Function Documentation

static void mark ( const label  elem,
labelHashSet &  markedElems 
) [static, protected]

Mark element in a hashSet.

static void mark ( const labelList &  elems,
labelHashSet &  markedElems 
) [static, protected]

Mark list of elements in a hashSet.

static bool crosses ( const scalar  isoVal,
const scalar  val0,
const scalar  val1,
scalar &  weight 
) [static, protected]

Return true and set weight if linear interpolation between.

val0 and val1 crosses isoVal. weight=1 if isoVal==val1

const primitiveMesh& mesh (  )  const [inline]

Definition at line 129 of file meshEdgeCuts.H.

References meshEdgeCuts::meshVerts_.

const labelList& cells (  )  const [inline]

Definition at line 134 of file meshEdgeCuts.H.

References meshEdgeCuts::meshEdges_.

const labelList& meshVerts (  )  const [inline]

Definition at line 139 of file meshEdgeCuts.H.

References meshEdgeCuts::meshEdgeWeights_.

const labelList& meshEdges (  )  const [inline]

Definition at line 144 of file meshEdgeCuts.H.

References meshEdgeCuts::meshEdges_, meshEdgeCuts::meshVerts_, and UList::size().

Here is the call graph for this function:

const scalarField& meshEdgeWeights (  )  const [inline]

Definition at line 149 of file meshEdgeCuts.H.

label size (  )  const [inline]

Reimplemented in cellDecompCuts, and faceDecompCuts.

Definition at line 154 of file meshEdgeCuts.H.


Member Data Documentation

labelList cells_ [protected]

List of cells containing the cuts.

Definition at line 80 of file meshEdgeCuts.H.

labelList meshVerts_ [protected]

Points exactly cut by cuts.

Definition at line 83 of file meshEdgeCuts.H.

Referenced by meshEdgeCuts::mesh(), and meshEdgeCuts::meshEdges().

labelList meshEdges_ [protected]

List of edge labels cut.

Definition at line 86 of file meshEdgeCuts.H.

Referenced by meshEdgeCuts::cells(), and meshEdgeCuts::meshEdges().

Positions on edges.

Definition at line 89 of file meshEdgeCuts.H.

Referenced by meshEdgeCuts::meshVerts().


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