Version: 5.1.6

INTERP_KERNEL.CellModel Class Reference

#include <CellModel.hxx>

Public Member Functions

INTERPKERNEL_EXPORT const char * getRepr () const
INTERPKERNEL_EXPORT bool isDynamic () const
INTERPKERNEL_EXPORT bool isQuadratic () const
INTERPKERNEL_EXPORT unsigned getDimension () const
INTERPKERNEL_EXPORT bool isCompatibleWith (NormalizedCellType type) const
INTERPKERNEL_EXPORT bool isSimplex () const
INTERPKERNEL_EXPORT const
unsigned * 
getNodesConstituentTheSon (unsigned sonId) const
 sonId is in C format.
INTERPKERNEL_EXPORT unsigned getNumberOfNodes () const
INTERPKERNEL_EXPORT unsigned getNumberOfSons () const
INTERPKERNEL_EXPORT unsigned getNumberOfSons2 (const int *conn, int lgth) const
INTERPKERNEL_EXPORT unsigned getNumberOfNodesConstituentTheSon (unsigned sonId) const
INTERPKERNEL_EXPORT unsigned getNumberOfNodesConstituentTheSon2 (unsigned sonId, const int *nodalConn, int lgth) const
 Return number of nodes in sonId-th son of a Dynamic() cell.
INTERPKERNEL_EXPORT
NormalizedCellType 
getExtrudedType () const
INTERPKERNEL_EXPORT
NormalizedCellType 
getLinearType () const
INTERPKERNEL_EXPORT
NormalizedCellType 
getQuadraticType () const
INTERPKERNEL_EXPORT
NormalizedCellType 
getSonType (unsigned sonId) const
INTERPKERNEL_EXPORT
NormalizedCellType 
getSonType2 (unsigned sonId) const
INTERPKERNEL_EXPORT unsigned fillSonCellNodalConnectivity (int sonId, const int *nodalConn, int *sonNodalConn) const
INTERPKERNEL_EXPORT unsigned fillSonCellNodalConnectivity2 (int sonId, const int *nodalConn, int lgth, int *sonNodalConn, NormalizedCellType &typeOfSon) const

Static Public Member Functions

static INTERPKERNEL_EXPORT
const CellModel
GetCellModel (NormalizedCellType type)

Static Public Attributes

static const unsigned MAX_NB_OF_SONS = 8
static const unsigned MAX_NB_OF_NODES_PER_ELEM = 30

Private Member Functions

 CellModel (NormalizedCellType type)

Static Private Member Functions

static void buildUniqueInstance ()

Private Attributes

bool _dyn
bool _quadratic
bool _is_simplex
unsigned _dim
unsigned _nb_of_pts
unsigned _nb_of_sons
NormalizedCellType _type
NormalizedCellType _extruded_type
NormalizedCellType _linear_type
NormalizedCellType _quadratic_type
unsigned _sons_con [MAX_NB_OF_SONS][MAX_NB_OF_NODES_PER_ELEM]
unsigned _nb_of_sons_con [MAX_NB_OF_SONS]
NormalizedCellType _sons_type [MAX_NB_OF_SONS]

Static Private Attributes

static std::map
< NormalizedCellType,
CellModel
_map_of_unique_instance
static const char * CELL_TYPES_REPR []

Detailed Description

This class descibes all static elements (different from polygons and polyhedron) 3D, 2D and 1D.


Constructor & Destructor Documentation

INTERP_KERNEL.CellModel::CellModel ( NormalizedCellType  type  )  [private]

Member Function Documentation

void INTERP_KERNEL.CellModel::buildUniqueInstance (  )  [static, private]
const CellModel & INTERP_KERNEL.CellModel::GetCellModel ( NormalizedCellType  type  )  [static]
const char * INTERP_KERNEL.CellModel::getRepr (  )  const
INTERPKERNEL_EXPORT bool INTERP_KERNEL.CellModel.isDynamic (  )  const
INTERPKERNEL_EXPORT bool INTERP_KERNEL.CellModel.isQuadratic (  )  const
INTERPKERNEL_EXPORT unsigned INTERP_KERNEL.CellModel.getDimension (  )  const
bool INTERP_KERNEL.CellModel::isCompatibleWith ( NormalizedCellType  type  )  const
INTERPKERNEL_EXPORT bool INTERP_KERNEL.CellModel.isSimplex (  )  const
INTERPKERNEL_EXPORT const unsigned* INTERP_KERNEL.CellModel.getNodesConstituentTheSon ( unsigned  sonId  )  const

sonId is in C format.

References INTERP_KERNEL.CellModel._sons_con.

INTERPKERNEL_EXPORT unsigned INTERP_KERNEL.CellModel.getNumberOfNodes (  )  const
INTERPKERNEL_EXPORT unsigned INTERP_KERNEL.CellModel.getNumberOfSons (  )  const
unsigned INTERP_KERNEL.CellModel::getNumberOfSons2 ( const int conn,
int  lgth 
) const

Equivalent to getNumberOfSons except that this method deals with dynamic type.

References INTERP_KERNEL.CellModel._dim, INTERP_KERNEL.CellModel.getNumberOfSons(), and INTERP_KERNEL.CellModel.isDynamic().

INTERPKERNEL_EXPORT unsigned INTERP_KERNEL.CellModel.getNumberOfNodesConstituentTheSon ( unsigned  sonId  )  const
unsigned INTERP_KERNEL.CellModel::getNumberOfNodesConstituentTheSon2 ( unsigned  sonId,
const int nodalConn,
int  lgth 
) const

Return number of nodes in sonId-th son of a Dynamic() cell.

References INTERP_KERNEL.CellModel._dim, INTERP_KERNEL.CellModel.getNumberOfNodesConstituentTheSon(), and INTERP_KERNEL.CellModel.isDynamic().

INTERPKERNEL_EXPORT NormalizedCellType INTERP_KERNEL.CellModel.getExtrudedType (  )  const
INTERPKERNEL_EXPORT NormalizedCellType INTERP_KERNEL.CellModel.getLinearType (  )  const
INTERPKERNEL_EXPORT NormalizedCellType INTERP_KERNEL.CellModel.getQuadraticType (  )  const
INTERPKERNEL_EXPORT NormalizedCellType INTERP_KERNEL.CellModel.getSonType ( unsigned  sonId  )  const
NormalizedCellType INTERP_KERNEL.CellModel::getSonType2 ( unsigned  sonId  )  const

Equivalent to getSonType except that this method deals with dynamic type.

References INTERP_KERNEL.CellModel._dim, INTERP_KERNEL.CellModel.getSonType(), INTERP_KERNEL.CellModel.isDynamic(), INTERP_KERNEL.NORM_POLYGON, and INTERP_KERNEL.NORM_SEG2.

unsigned INTERP_KERNEL.CellModel::fillSonCellNodalConnectivity ( int  sonId,
const int nodalConn,
int sonNodalConn 
) const

WARNING this method do not manage correctly types that return true at the call of isDynamic. Use fillSonCellNodalConnectivity2 instead.

References INTERP_KERNEL.CellModel._nb_of_sons_con, and INTERP_KERNEL.CellModel._sons_con.

unsigned INTERP_KERNEL.CellModel::fillSonCellNodalConnectivity2 ( int  sonId,
const int nodalConn,
int  lgth,
int sonNodalConn,
NormalizedCellType typeOfSon 
) const

Field Documentation

const unsigned INTERP_KERNEL.CellModel.MAX_NB_OF_SONS = 8 [static]
unsigned INTERP_KERNEL.CellModel._dim [private]
const char * INTERP_KERNEL.CellModel::CELL_TYPES_REPR [static, private]
Initial value:
{"NORM_POINT1", "NORM_SEG2", "NORM_SEG3", "NORM_TRI3", "NORM_QUAD4",
                                            "NORM_POLYGON", "NORM_TRI6", "" , "NORM_QUAD8", "",
                                            "", "", "", "", "NORM_TETRA4",
                                            "NORM_PYRA5", "NORM_PENTA6", "", "NORM_HEXA8", "",
                                            "NORM_TETRA10", "", "NORM_HEXGP12", "NORM_PYRA13", "",
                                            "NORM_PENTA15", "", "", "", "",
                                            "NORM_HEXA20", "NORM_POLYHED", "", "", "",
                                            "", "", "", "", "",
                                            "NORM_ERROR"}