Public Member Functions | Friends | List of all members
cellShape Class Reference

An analytical geometric cellShape. More...

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

Public Member Functions

constexpr cellShape () noexcept
 
 cellShape (const cellModel &model, const labelUList &labels, const bool doCollapse=false)
 
template<unsigned N>
 cellShape (const cellModel &model, const FixedList< label, N > &labels, const bool doCollapse=false)
 
 cellShape (const cellModel &model, labelList &&labels, const bool doCollapse=false)
 
 cellShape (const word &modelName, const labelUList &labels, const bool doCollapse=false)
 
 cellShape (Istream &is)
 
autoPtr< cellShapeclone () const
 
const cellModelmodel () const
 
label nPoints () const noexcept
 
label nEdges () const
 
label nFaces () const
 
pointField points (const UList< point > &meshPoints) const
 
labelList meshFaces (const faceList &allFaces, const cell &cFaces) const
 
labelList meshEdges (const edgeList &allEdges, const labelList &cEdges) const
 
Foam::face face (const label modelFacei) const
 
faceList faces () const
 
faceList collapsedFaces () const
 
Foam::edge edge (const label modelEdgei) const
 
edgeList edges () const
 
point centre (const UList< point > &points) const
 
scalar mag (const UList< point > &points) const
 
void reset (const cellModel &model, const labelUList &labels, const bool doCollapse=false)
 
template<unsigned N>
void reset (const cellModel &model, const FixedList< label, N > &labels, const bool doCollapse=false)
 
void collapse ()
 
Foam::InfoProxy< cellShapeinfo () const
 
- Public Member Functions inherited from List
constexpr List () noexcept
 
 List (const label len)
 
 List (const label len, const T &val)
 
 List (const label len, const Foam::zero)
 
 List (const Foam::one, const T &val)
 
 List (const Foam::one, T &&val)
 
 List (const Foam::one, const Foam::zero)
 
 List (const List< T > &a)
 
 List (const UList< T > &a)
 
 List (List< T > &a, bool reuse)
 
 List (const UList< T > &list, const labelUList &indices)
 
template<unsigned N>
 List (const UList< T > &list, const FixedList< label, N > &indices)
 
template<unsigned N>
 List (const FixedList< T, N > &list)
 
 List (const PtrList< T > &list)
 
 List (const SLList< T > &list)
 
template<class Addr >
 List (const IndirectListBase< T, Addr > &list)
 
 List (std::initializer_list< T > list)
 
 List (List< T > &&list)
 
template<int SizeMin>
 List (DynamicList< T, SizeMin > &&list)
 
 List (SortableList< T > &&list)
 
 List (SLList< T > &&list)
 
 List (Istream &is)
 
autoPtr< List< T > > clone () const
 
 ~List ()
 
void clear ()
 
void resize (const label len)
 
void resize (const label len, const T &val)
 
void resize_nocopy (const label len)
 
void setSize (const label n)
 
void setSize (const label n, const T &val)
 
void append (const T &val)
 
void append (T &&val)
 
void append (const UList< T > &list)
 
template<class Addr >
void append (const IndirectListBase< T, Addr > &list)
 
label appendUniq (const T &val)
 
void transfer (List< T > &list)
 
template<int SizeMin>
void transfer (DynamicList< T, SizeMin > &list)
 
void transfer (SortableList< T > &list)
 
TnewElmt (const label i)
 
void operator= (const UList< T > &a)
 
void operator= (const List< T > &list)
 
void operator= (const SLList< T > &list)
 
template<class Addr >
void operator= (const IndirectListBase< T, Addr > &list)
 
template<unsigned N>
void operator= (const FixedList< T, N > &list)
 
void operator= (std::initializer_list< T > list)
 
void operator= (const T &val)
 
void operator= (const Foam::zero)
 
void operator= (List< T > &&list)
 
template<int SizeMin>
void operator= (DynamicList< T, SizeMin > &&list)
 
void operator= (SortableList< T > &&list)
 
void operator= (SLList< T > &&list)
 
IstreamreadList (Istream &is)
 
void shallowCopy (const UList< T > &)=delete
 
template<class TypeT = T>
std::enable_if< std::is_same< bool, TypeT >::value, bool >::type set (const label i, bool val=true)
 
template<class T >
 List (const label len)
 
template<class T >
 List (const label len, const T &val)
 
template<class T >
 List (const label len, const Foam::zero)
 
template<class T >
 List (const Foam::one, const T &val)
 
template<class T >
 List (const Foam::one, T &&val)
 
template<class T >
 List (const Foam::one, const Foam::zero)
 
template<class T >
 List (const UList< T > &a)
 
template<class T >
 List (const List< T > &a)
 
template<class T >
 List (List< T > &a, bool reuse)
 
template<class T >
 List (const UList< T > &list, const labelUList &indices)
 
template<class T >
 List (const PtrList< T > &list)
 
template<class T >
 List (const SLList< T > &list)
 
template<class T >
 List (std::initializer_list< T > list)
 
template<class T >
 List (List< T > &&list)
 
template<class T >
 List (SortableList< T > &&list)
 
template<class T >
 List (SLList< T > &&list)
 
template<class T >
void transfer (List< T > &list)
 
template<class T >
void transfer (SortableList< T > &list)
 
template<class T >
void operator= (const UList< T > &a)
 
template<class T >
void operator= (const List< T > &list)
 
template<class T >
void operator= (const SLList< T > &list)
 
template<class T >
void operator= (std::initializer_list< T > list)
 
template<class T >
void operator= (List< T > &&list)
 
template<class T >
void operator= (SortableList< T > &&list)
 
template<class T >
void operator= (SLList< T > &&list)
 
IstreamreadList (Istream &is)
 
template<class T >
constexpr List () noexcept
 
void resize (const label newLen)
 
template<class T >
void append (const T &val)
 
template<class T >
void append (T &&val)
 
template<class T >
void append (const UList< T > &list)
 
template<class T >
void operator= (const T &val)
 
template<class T >
void operator= (const Foam::zero)
 
template<class T >
 List (Istream &is)
 
IstreamreadList (Istream &is)
 

Friends

bool operator== (const cellShape &a, const cellShape &b)
 
Istreamoperator>> (Istream &is, cellShape &s)
 
Ostreamoperator<< (Ostream &os, const cellShape &s)
 

Additional Inherited Members

- Public Types inherited from List
typedef SubList< TsubList
 
- Static Public Member Functions inherited from List
static const List< T > & null ()
 

Detailed Description

An analytical geometric cellShape.

The optional collapse functionality changes the cellModel to the correct type after removing any duplicate points.

Source files

Definition at line 65 of file cellShape.H.

Constructor & Destructor Documentation

◆ cellShape() [1/6]

constexpr cellShape ( )
inlineconstexprnoexcept

Definition at line 29 of file cellShapeI.H.

◆ cellShape() [2/6]

cellShape ( const cellModel model,
const labelUList labels,
const bool  doCollapse = false 
)
inline

Definition at line 37 of file cellShapeI.H.

◆ cellShape() [3/6]

cellShape ( const cellModel model,
const FixedList< label, N > &  labels,
const bool  doCollapse = false 
)
inline

Definition at line 55 of file cellShapeI.H.

◆ cellShape() [4/6]

cellShape ( const cellModel model,
labelList &&  labels,
const bool  doCollapse = false 
)
inline

Definition at line 72 of file cellShapeI.H.

◆ cellShape() [5/6]

cellShape ( const word modelName,
const labelUList labels,
const bool  doCollapse = false 
)
inline

Definition at line 89 of file cellShapeI.H.

◆ cellShape() [6/6]

cellShape ( Istream is)
inlineexplicit

Definition at line 105 of file cellShapeI.H.

Member Function Documentation

◆ clone()

Foam::autoPtr< Foam::cellShape > clone ( ) const
inline

Definition at line 111 of file cellShapeI.H.

References autoPtr::New().

Here is the call graph for this function:

◆ model()

const Foam::cellModel & model ( ) const
inline

Definition at line 119 of file cellShapeI.H.

Referenced by Foam::operator<<(), vtuSizing::reset(), and vtuSizing::resetShapes().

Here is the caller graph for this function:

◆ nPoints()

Foam::label nPoints ( ) const
inlinenoexcept

Definition at line 125 of file cellShapeI.H.

◆ nEdges()

Foam::label nEdges ( ) const
inline

Definition at line 131 of file cellShapeI.H.

◆ nFaces()

Foam::label nFaces ( ) const
inline

Definition at line 137 of file cellShapeI.H.

◆ points()

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

Definition at line 144 of file cellShapeI.H.

Referenced by voxelMeshSearch::makeMesh().

Here is the caller graph for this function:

◆ meshFaces()

Foam::labelList meshFaces ( const faceList allFaces,
const cell cFaces 
) const
inline

Definition at line 153 of file cellShapeI.H.

References forAll.

◆ meshEdges()

Foam::labelList meshEdges ( const edgeList allEdges,
const labelList cEdges 
) const
inline

Definition at line 184 of file cellShapeI.H.

References Foam::constant::electromagnetic::e, and forAll.

◆ face()

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

Definition at line 214 of file cellShapeI.H.

References face::face().

Here is the call graph for this function:

◆ faces()

Foam::faceList faces ( ) const
inline

Definition at line 220 of file cellShapeI.H.

◆ collapsedFaces()

Foam::faceList collapsedFaces ( ) const
inline

Definition at line 226 of file cellShapeI.H.

References f(), and List::resize().

Referenced by degenerateMatcher::match().

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

◆ edge()

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

Definition at line 268 of file cellShapeI.H.

References edge::edge().

Here is the call graph for this function:

◆ edges()

Foam::edgeList edges ( ) const
inline

Definition at line 274 of file cellShapeI.H.

◆ centre()

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

Definition at line 280 of file cellShapeI.H.

References Vector< Cmpt >::centre(), and points.

Here is the call graph for this function:

◆ mag()

Foam::scalar mag ( const UList< point > &  points) const
inline

Definition at line 286 of file cellShapeI.H.

References points.

◆ reset() [1/2]

void reset ( const cellModel model,
const labelUList labels,
const bool  doCollapse = false 
)
inline

Definition at line 293 of file cellShapeI.H.

Referenced by prismMatcher::matches(), tetWedgeMatcher::matches(), wedgeMatcher::matches(), tetMatcher::matches(), hexMatcher::matches(), and pyrMatcher::matches().

Here is the caller graph for this function:

◆ reset() [2/2]

void reset ( const cellModel model,
const FixedList< label, N > &  labels,
const bool  doCollapse = false 
)
inline

Definition at line 311 of file cellShapeI.H.

◆ collapse()

void collapse ( )

Definition at line 26 of file cellShape.C.

References List::operator=().

Here is the call graph for this function:

◆ info()

Foam::InfoProxy<cellShape> info ( ) const
inline

Definition at line 195 of file cellShape.H.

Friends And Related Function Documentation

◆ operator==

bool operator== ( const cellShape a,
const cellShape b 
)
friend

◆ operator>>

Istream& operator>> ( Istream is,
cellShape s 
)
friend

◆ operator<<

Ostream& operator<< ( Ostream os,
const cellShape s 
)
friend

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