16#ifndef Prisme_included
17#define Prisme_included
19#include <Elem_geom_base.h>
31template <
typename _SIZE_>
53 inline int nb_som()
const override {
return 6; }
77template <
typename _SIZE_>
106template <
typename _SIZE_>
117 Cerr <<
"Error, a prism has 2 types of faces and not " << i << finl;
130template <
typename _SIZE_>
141 Cerr <<
"Error, a prism has 2 types of faces and not " << i << finl;
153template <
typename _SIZE_>
173 Cerr <<
"Error in Prisme_32_64<_SIZE_>::face_sommet0" << finl;
186template <
typename _SIZE_>
206 Cerr <<
"Error in Prisme_32_64<_SIZE_>::face_sommet1" << finl;
219template <
typename _SIZE_>
239 Cerr <<
"Error in Prisme_32_64<_SIZE_>::face_sommet2" << finl;
252template <
typename _SIZE_>
269template <
typename _SIZE_>
287template <
typename _SIZE_>
294 return Type_Face::quadrangle_3D;
296 return Type_Face::triangle_3D;
298 Cerr <<
"Error, a prism has 2 types of faces and not " << i << finl;
300 return Type_Face::quadrangle_3D;
class Domaine_32_64 A Domain is a mesh composed of a set of geometric elements of the same type.
Class Elem_geom_base This class is the base class for the definition of elements.
class Nom: a character string for naming TRUST objects.
Class Prisme: represents the geometric element Prism.
bool est_structure() const override
DoubleTab_T< _SIZE_ > DoubleTab_t
const Nom & nom_lml() const override
Returns the LML name of a prism = "PRISM6".
int nb_faces(int=0) const override
Returns the number of faces of the specified type that the geometric element has.
int face_sommet4(int i) const
Returns the index of the i-th vertex of face 4.
IntTab_T< _SIZE_ > IntTab_t
int contient(const SmallArrOfTID_t &soms, int_t elem) const override
DOES NOTHING: TO BE CODED, always returns 0. Returns 1 if the vertices specified by parameter "pos".
int face_sommet(int i, int j) const override
Returns the index of the j-th vertex of the i-th face of the element.
int nb_som_face(int=0) const override
Returns the number of vertices of the faces of the specified type.
int face_sommet2(int i) const
Returns the index of the i-th vertex of face 2.
void reordonner() override
Reorders the vertices of the Prism.
void calculer_volumes(DoubleVect_t &vols) const override
DOES NOTHING: TO BE CODED. Computes the volumes of the elements of the associated domain.
int face_sommet3(int i) const
Returns the index of the i-th vertex of face 3.
SmallArrOfTID_T< _SIZE_ > SmallArrOfTID_t
Type_Face type_face(int=0) const override
Returns the i-th face type.
int face_sommet0(int i) const
Returns the index of the i-th vertex of face 0.
Domaine_32_64< _SIZE_ > Domaine_t
int face_sommet1(int i) const
Returns the index of the i-th vertex of face 1.
int contient(const ArrOfDouble &pos, int_t elem) const override
DOES NOTHING: TO BE CODED; always returns 0.
int nb_type_face() const override
Nb of face types of the elemnt (for example 2 for a prism).
DoubleVect_T< _SIZE_ > DoubleVect_t
int get_tab_faces_sommets_locaux(IntTab &faces_som_local) const override
Fills the array faces_som_local(i,j) giving, for 0 <= i < nb_faces() and 0 <= j < nb_som_face(i),...
int nb_som() const override
Nb of vertices for the element.
static void exit(int exit_code=-1)
Exit routine for TRUST within a Kokkos region.