Version: 6.3.1
Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes

INTERP_KERNEL.CellModel Class Reference

#include <CellModel.hxx>

Public Member Functions

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

Static Public Member Functions

static const CellModelGetCellModel (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
bool INTERP_KERNEL.CellModel.isDynamic ( ) const
bool INTERP_KERNEL.CellModel.isQuadratic ( ) const
unsigned INTERP_KERNEL.CellModel.getDimension ( ) const
bool INTERP_KERNEL.CellModel::isCompatibleWith ( NormalizedCellType  type) const
bool INTERP_KERNEL.CellModel.isSimplex ( ) const
const unsigned* INTERP_KERNEL.CellModel.getNodesConstituentTheSon ( unsigned  sonId) const

sonId is in C format.

References INTERP_KERNEL.CellModel._sons_con.

unsigned INTERP_KERNEL.CellModel.getNumberOfNodes ( ) const
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().

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().

NormalizedCellType INTERP_KERNEL.CellModel.getExtrudedType ( ) const
NormalizedCellType INTERP_KERNEL.CellModel.getLinearType ( ) const
NormalizedCellType INTERP_KERNEL.CellModel.getQuadraticType ( ) const
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]
dn46 SALOME series6x631 MED Mandriva2010 MED_SRC src INTERP_KERNEL CellModel cxx 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"}
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS