Public Member Functions | Static Public Member Functions | List of all members
hexCell Class Reference

A hexahedral cell primitive. More...

Inheritance diagram for hexCell:
Inheritance graph
[legend]
Collaboration diagram for hexCell:
Collaboration graph
[legend]

Public Member Functions

 hexCell ()
 
 hexCell (std::initializer_list< label > list)
 
 hexCell (const FixedList< label, 8 > &list)
 
 hexCell (const labelUList &list, const FixedList< label, 8 > &indices)
 
template<unsigned AnyNum>
 hexCell (const FixedList< label, AnyNum > &list, const FixedList< label, 8 > &indices)
 
 hexCell (Istream &is)
 
Foam::face face (const label facei) const
 
Foam::edge edge (const label edgei) const
 
Foam::edge reverseEdge (const label edgei) const
 
Foam::faceList faces () const
 
Foam::edgeList edges () const
 
point centre (const UList< point > &meshPoints) const
 
pointField points (const UList< point > &meshPoints) const
 
cellShape shape (const bool doCollapse=false) const
 
- Public Member Functions inherited from FixedList< label, 8 >
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 Tcdata () const noexcept
 
Tdata () noexcept
 
const char * cdata_bytes () const noexcept
 
char * data_bytes () noexcept
 
Tfirst () noexcept
 
const Tfirst () const noexcept
 
Tlast () noexcept
 
const Tlast () const noexcept
 
label fcIndex (const label i) const
 
const TfcValue (const label i) const
 
TfcValue (const label i)
 
label rcIndex (const label i) const
 
const TrcValue (const label i) const
 
TrcValue (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)
 
Toperator[] (const label i)
 
const Toperator[] (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
 
IstreamreadList (Istream &is)
 
OstreamwriteList (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::faceListmodelFaces ()
 
static const Foam::edgeListmodelEdges ()
 
- Static Public Member Functions inherited from FixedList< label, 8 >
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

- Public Types inherited from FixedList< label, 8 >
typedef T value_type
 
typedef Tpointer
 
typedef Treference
 
typedef Titerator
 
typedef label size_type
 
typedef label difference_type
 
typedef std::reverse_iterator< iteratorreverse_iterator
 
typedef std::reverse_iterator< const_iteratorconst_reverse_iterator
 
- Public Attributes inherited from FixedList< label, 8 >
const typedef Tconst_pointer
 
const typedef Tconst_reference
 
const typedef Tconst_iterator
 
- Protected Member Functions inherited from FixedList< label, 8 >
void writeEntry (Ostream &os) const
 

Detailed Description

A hexahedral cell primitive.

It is important that the face/edge ordering is identical for a hexahedral cell shape model and a hexCell

Source files

Definition at line 56 of file hexCell.H.

Constructor & Destructor Documentation

◆ hexCell() [1/6]

hexCell ( )
inline

Definition at line 34 of file hexCellI.H.

◆ hexCell() [2/6]

hexCell ( std::initializer_list< label >  list)
inlineexplicit

Definition at line 40 of file hexCellI.H.

◆ hexCell() [3/6]

hexCell ( const FixedList< label, 8 > &  list)
inline

Definition at line 46 of file hexCellI.H.

◆ hexCell() [4/6]

hexCell ( const labelUList list,
const FixedList< label, 8 > &  indices 
)
inline

Definition at line 53 of file hexCellI.H.

◆ hexCell() [5/6]

hexCell ( const FixedList< label, AnyNum > &  list,
const FixedList< label, 8 > &  indices 
)
inline

Definition at line 64 of file hexCellI.H.

◆ hexCell() [6/6]

hexCell ( Istream is)
inlineexplicit

Definition at line 73 of file hexCellI.H.

Member Function Documentation

◆ nPoints()

static constexpr label nPoints ( )
inlinestaticconstexprnoexcept

Definition at line 110 of file hexCell.H.

◆ nEdges()

static constexpr label nEdges ( )
inlinestaticconstexprnoexcept

Definition at line 116 of file hexCell.H.

Referenced by hexCell::edge(), hexCell::edges(), and hexCell::modelEdges().

Here is the caller graph for this function:

◆ nFaces()

static constexpr label nFaces ( )
inlinestaticconstexprnoexcept

Definition at line 122 of file hexCell.H.

Referenced by hexCell::face(), hexCell::faces(), and hexCell::modelFaces().

Here is the caller graph for this function:

◆ modelFaces()

const Foam::faceList & modelFaces ( )
static

Definition at line 64 of file hexCell.C.

References f(), and hexCell::nFaces().

Here is the call graph for this function:

◆ modelEdges()

const Foam::edgeList & modelEdges ( )
static

Definition at line 87 of file hexCell.C.

References Foam::constant::electromagnetic::e, and hexCell::nEdges().

Referenced by blockDescriptor::edgePointsWeights(), and blockDescriptor::edgesPointsWeights().

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

◆ face()

Foam::face face ( const label  facei) const
inline

Definition at line 81 of file hexCellI.H.

References Foam::abort(), f(), Foam::FatalError, FatalErrorInFunction, and hexCell::nFaces().

Here is the call graph for this function:

◆ edge()

Foam::edge edge ( const label  edgei) const
inline

Definition at line 99 of file hexCellI.H.

References Foam::abort(), Foam::FatalError, FatalErrorInFunction, and hexCell::nEdges().

Here is the call graph for this function:

◆ reverseEdge()

Foam::edge reverseEdge ( const label  edgei) const
inline

Definition at line 118 of file hexCellI.H.

References edge::reverseEdge().

Here is the call graph for this function:

◆ faces()

Foam::faceList faces ( ) const

Definition at line 110 of file hexCell.C.

References f(), and hexCell::nFaces().

Here is the call graph for this function:

◆ edges()

Foam::edgeList edges ( ) const

Definition at line 125 of file hexCell.C.

References Foam::constant::electromagnetic::e, and hexCell::nEdges().

Here is the call graph for this function:

◆ centre()

Foam::point centre ( const UList< point > &  meshPoints) const
inline

Definition at line 126 of file hexCellI.H.

References Foam::Zero.

◆ points()

Foam::pointField points ( const UList< point > &  meshPoints) const
inline

Definition at line 147 of file hexCellI.H.

◆ shape()

Foam::cellShape shape ( const bool  doCollapse = false) const

Definition at line 141 of file hexCell.C.

References cellModel::HEX, and cellModel::ptr().

Here is the call graph for this function:

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