Public Member Functions | Protected Attributes | Friends
partTet Class Reference

Public Member Functions

 partTet ()
 Null construct. More...
 
 partTet (const label a, const label b, const label c, const label d)
 Construct from point labels. More...
 
 ~partTet ()
 
label a () const
 Return vertices. More...
 
label b () const
 
label c () const
 
label d () const
 
label size () const
 
label whichPosition (const label) const
 find position of the node in the partTet More...
 
template<class PointField >
vector Sa (const PointField &) const
 Return face normal. More...
 
template<class PointField >
vector Sb (const PointField &) const
 
template<class PointField >
vector Sc (const PointField &) const
 
template<class PointField >
vector Sd (const PointField &) const
 
template<class PointField >
scalar mag (const PointField &) const
 Return volume. More...
 
template<class PointField >
point crcmCentre (const PointField &) const
 Return circum-centre. More...
 
template<class PointField >
scalar crcmRadius (const PointField &) const
 
template<class PointField >
point centroid (const PointField &) const
 Return centroid of the tetrahedron. More...
 
FixedList< edge, 6 > edges () const
 Return edges. More...
 
edge getEdge (const label) const
 Return edge. More...
 
label operator[] (const label) const
 
void operator= (const partTet &)
 
bool operator== (const partTet &) const
 
bool operator!= (const partTet &) const
 

Protected Attributes

label data_ [4]
 

Friends

Ostreamoperator<< (Ostream &, const partTet &)
 

Detailed Description

Definition at line 53 of file partTet.H.

Constructor & Destructor Documentation

◆ partTet() [1/2]

partTet ( )
inline

Null construct.

Definition at line 39 of file partTetI.H.

◆ partTet() [2/2]

partTet ( const label  a,
const label  b,
const label  c,
const label  d 
)
inline

Construct from point labels.

Definition at line 44 of file partTetI.H.

References Foam::constant::physicoChemical::b, and Foam::constant::universal::c.

◆ ~partTet()

~partTet ( )
inline

Definition at line 57 of file partTetI.H.

Member Function Documentation

◆ a()

label a ( ) const
inline

◆ b()

label b ( ) const
inline

◆ c()

label c ( ) const
inline

◆ d()

label d ( ) const
inline

◆ size()

label size ( ) const
inline

Definition at line 83 of file partTetI.H.

◆ whichPosition()

label whichPosition ( const label  pointI) const
inline

find position of the node in the partTet

Definition at line 88 of file partTetI.H.

References partTet::data_.

Referenced by voronoiMeshExtractor::createAddressing(), and partTetMeshSimplex::partTetMeshSimplex().

Here is the caller graph for this function:

◆ Sa()

vector Sa ( const PointField &  points) const
inline

Return face normal.

Definition at line 98 of file partTetI.H.

References partTet::data_, triangle::normal(), and points.

Here is the call graph for this function:

◆ Sb()

vector Sb ( const PointField &  points) const
inline

Definition at line 112 of file partTetI.H.

References partTet::data_, triangle::normal(), and points.

Here is the call graph for this function:

◆ Sc()

vector Sc ( const PointField &  points) const
inline

Definition at line 126 of file partTetI.H.

References partTet::data_, triangle::normal(), and points.

Here is the call graph for this function:

◆ Sd()

vector Sd ( const PointField &  points) const
inline

Definition at line 140 of file partTetI.H.

References partTet::data_, triangle::normal(), and points.

Referenced by partTetMesh::updateVertex(), and partTetMesh::updateVerticesSMP().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mag()

scalar mag ( const PointField &  points) const
inline

Return volume.

Definition at line 154 of file partTetI.H.

References partTet::data_, tetrahedron::mag(), and points.

Referenced by volumeOptimizer::optimiseSteepestDescent(), partTetMesh::updateVertex(), and partTetMesh::updateVerticesSMP().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ crcmCentre()

point crcmCentre ( const PointField &  points) const
inline

Return circum-centre.

Definition at line 169 of file partTetI.H.

References tetrahedron::circumCentre(), partTet::data_, and points.

Here is the call graph for this function:

◆ crcmRadius()

scalar crcmRadius ( const PointField &  points) const
inline

Definition at line 183 of file partTetI.H.

References tetrahedron::circumRadius(), partTet::data_, and points.

Here is the call graph for this function:

◆ centroid()

point centroid ( const PointField &  points) const
inline

Return centroid of the tetrahedron.

Definition at line 197 of file partTetI.H.

References partTet::data_, p, and points.

Referenced by partTetMesh::updateVertex(), and partTetMesh::updateVerticesSMP().

Here is the caller graph for this function:

◆ edges()

FixedList< edge, 6 > edges ( ) const
inline

Return edges.

Definition at line 207 of file partTetI.H.

References partTet::data_.

Referenced by voronoiMeshExtractor::createAddressing().

Here is the caller graph for this function:

◆ getEdge()

edge getEdge ( const label  eI) const
inline

Return edge.

Definition at line 220 of file partTetI.H.

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

Here is the call graph for this function:

◆ operator[]()

label operator[] ( const label  i) const
inline

Definition at line 256 of file partTetI.H.

References partTet::data_.

◆ operator=()

void operator= ( const partTet tet)
inline

Definition at line 261 of file partTetI.H.

References partTet::data_.

◆ operator==()

bool operator== ( const partTet tet) const
inline

Definition at line 267 of file partTetI.H.

References partTet::a(), partTet::b(), partTet::c(), and partTet::d().

Referenced by partTet::operator!=().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator!=()

bool operator!= ( const partTet tet) const
inline

Definition at line 281 of file partTetI.H.

References partTet::operator==().

Here is the call graph for this function:

Friends And Related Function Documentation

◆ operator<<

Ostream& operator<< ( Ostream os,
const partTet t 
)
friend

Definition at line 288 of file partTetI.H.

Field Documentation

◆ data_

label data_[4]
protected

The documentation for this class was generated from the following files: