A tetrahedral cell primitive. More...
Public Member Functions | |
tetCell () | |
tetCell (const label a, const label b, const label c, const label d) | |
tetCell (std::initializer_list< label > list) | |
tetCell (const FixedList< label, 4 > &list) | |
tetCell (const labelUList &list, const FixedList< label, 4 > &indices) | |
template<unsigned AnyNum> | |
tetCell (const FixedList< label, AnyNum > &list, const FixedList< label, 4 > &indices) | |
tetCell (Istream &is) | |
Foam::triFace | face (const label facei) const |
label | edgeFace (const label edgei) const |
label | edgeAdjacentFace (const label edgei, const label facei) const |
Foam::edge | edge (const label edgei) const |
Foam::edge | reverseEdge (const label edgei) const |
pointField | points (const UList< point > &meshPoints) const |
cellShape | shape () const |
tetPointRef | tet (const UList< point > &meshPoints) const |
Foam::edge | tetEdge (label edgei) const |
cellShape | tetCellShape () const |
![]() | |
void | writeEntry (const word &keyword, Ostream &os) const |
FixedList ()=default | |
FixedList (const T &val) | |
FixedList (const Foam::zero) | |
FixedList (const T list[N]) | |
FixedList (const FixedList< T, N > &list) | |
FixedList (FixedList< T, N > &&list) | |
FixedList (std::initializer_list< T > list) | |
FixedList (const UList< T > &list) | |
FixedList (const FixedList< T, AnyNum > &list, const FixedList< label, N > &indices) | |
FixedList (const UList< T > &list, const FixedList< label, N > &indices) | |
FixedList (const SLList< T > &list) | |
FixedList (Istream &is) | |
autoPtr< FixedList< T, N > > | clone () const |
const T * | cdata () const noexcept |
T * | data () noexcept |
const char * | cdata_bytes () const noexcept |
char * | data_bytes () noexcept |
T & | first () noexcept |
const T & | first () const noexcept |
T & | last () noexcept |
const T & | last () const noexcept |
label | fcIndex (const label i) const |
const T & | fcValue (const label i) const |
T & | fcValue (const label i) |
label | rcIndex (const label i) const |
const T & | rcValue (const label i) const |
T & | rcValue (const label i) |
void | checkStart (const label start) const |
void | checkSize (const label size) const |
void | checkIndex (const label i) const |
bool | uniform () const |
label | find (const T &val, label pos=0) const |
label | rfind (const T &val, label pos=-1) const |
bool | found (const T &val, label pos=0) const |
void | resize (const label n) |
void | resize_nocopy (const label n) |
void | setSize (const label n) |
void | fill (const T &val) |
void | fill (const Foam::zero) |
void | moveFirst (const label i) |
void | moveLast (const label i) |
void | swapFirst (const label i) |
void | swapLast (const label i) |
void | transfer (FixedList< T, N > &list) |
T & | operator[] (const label i) |
const T & | operator[] (const label i) const |
void | operator= (const T list[N]) |
void | operator= (const UList< T > &list) |
void | operator= (const SLList< T > &list) |
void | operator= (std::initializer_list< T > list) |
void | operator= (const T &val) |
void | operator= (const Foam::zero) |
void | operator= (const FixedList< T, N > &list) |
void | operator= (FixedList< T, N > &&list) |
iterator | begin () noexcept |
const_iterator | begin () const noexcept |
iterator | end () noexcept |
const_iterator | end () const noexcept |
const_iterator | cbegin () const noexcept |
const_iterator | cend () const noexcept |
reverse_iterator | rbegin () |
const_reverse_iterator | rbegin () const |
reverse_iterator | rend () |
const_reverse_iterator | rend () const |
const_reverse_iterator | crbegin () const |
const_reverse_iterator | crend () const |
void | swap (FixedList< T, N > &other) |
bool | operator== (const FixedList< T, N > &list) const |
bool | operator!= (const FixedList< T, N > &list) const |
bool | operator< (const FixedList< T, N > &list) const |
bool | operator> (const FixedList< T, N > &list) const |
bool | operator<= (const FixedList< T, N > &list) const |
bool | operator>= (const FixedList< T, N > &list) const |
Istream & | readList (Istream &is) |
Ostream & | writeList (Ostream &os, const label shortLen=0) const |
Static Public Member Functions | |
static constexpr label | nPoints () noexcept |
static constexpr label | nEdges () noexcept |
static constexpr label | nFaces () noexcept |
static const Foam::faceList & | modelFaces () |
static const Foam::edgeList & | modelEdges () |
![]() | |
static const FixedList< T, N > & | null () |
static std::streamsize | size_bytes () noexcept |
static std::streamsize | byteSize () |
static constexpr bool | empty () noexcept |
static constexpr label | size () noexcept |
static constexpr unsigned | max_size () noexcept |
Additional Inherited Members | |
![]() | |
typedef T | value_type |
typedef T * | pointer |
typedef T & | reference |
typedef T * | iterator |
typedef label | size_type |
typedef label | difference_type |
typedef std::reverse_iterator< iterator > | reverse_iterator |
typedef std::reverse_iterator< const_iterator > | const_reverse_iterator |
![]() | |
const typedef T * | const_pointer |
const typedef T & | const_reference |
const typedef T * | const_iterator |
![]() | |
void | writeEntry (Ostream &os) const |
A tetrahedral cell primitive.
It is important that the face/edge ordering is identical for a tetrahedron class, a tetrahedron cell shape model and a tetCell
|
inline |
Definition at line 24 of file tetCellI.H.
|
inline |
Definition at line 31 of file tetCellI.H.
References Foam::constant::physicoChemical::b, and Foam::constant::universal::c.
|
inlineexplicit |
Definition at line 45 of file tetCellI.H.
Definition at line 51 of file tetCellI.H.
|
inline |
Definition at line 58 of file tetCellI.H.
Definition at line 69 of file tetCellI.H.
Definition at line 78 of file tetCellI.H.
|
inlinestaticconstexprnoexcept |
|
inlinestaticconstexprnoexcept |
Definition at line 123 of file tetCell.H.
Referenced by tetCell::edge(), tetCell::edgeAdjacentFace(), tetCell::edgeFace(), and tetCell::modelEdges().
|
inlinestaticconstexprnoexcept |
Definition at line 129 of file tetCell.H.
Referenced by tetCell::edgeAdjacentFace(), tetCell::face(), and tetCell::modelFaces().
|
static |
Definition at line 57 of file tetCell.C.
References f(), and tetCell::nFaces().
|
static |
Definition at line 79 of file tetCell.C.
References Foam::constant::electromagnetic::e, and tetCell::nEdges().
|
inline |
Definition at line 86 of file tetCellI.H.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, tetCell::nFaces(), and triFace().
|
inline |
Definition at line 106 of file tetCellI.H.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, and tetCell::nEdges().
|
inline |
Definition at line 126 of file tetCellI.H.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, tetCell::nEdges(), and tetCell::nFaces().
|
inline |
Definition at line 163 of file tetCellI.H.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, and tetCell::nEdges().
Referenced by tetCell::tetEdge().
|
inline |
Definition at line 182 of file tetCellI.H.
References edge::reverseEdge().
|
inline |
Definition at line 190 of file tetCellI.H.
Foam::cellShape shape | ( | ) | const |
Foam::faceList Foam::tetCell::faces() const { Foam::faceList theFaces(tetCell::nFaces(), Foam::face(3));
label facei = 0; for (auto& f : theFaces) { f[0] = (*this)[modelFaces_[facei][0]]; f[1] = (*this)[modelFaces_[facei][1]]; f[2] = (*this)[modelFaces_[facei][2]]; ++facei; }
return theFaces; }
Foam::edgeList Foam::tetCell::edges() const { Foam::edgeList theEdges(tetCell::nEdges());
label edgei = 0; for (auto& e : theEdges) { e[0] = (*this)[modelEdges_[edgei][0]]; e[1] = (*this)[modelEdges_[edgei][1]]; ++edgei; }
return theEdges; }
Definition at line 135 of file tetCell.C.
References cellModel::ptr(), and cellModel::TET.
|
inline |
Definition at line 199 of file tetCellI.H.
|
inline |
Definition at line 176 of file tetCell.H.
References tetCell::edge().
Foam::cellShape tetCellShape | ( | ) | const |
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.