1
#ifndef _ECS_ELT_TYP_LISTE_H_
2
#define _ECS_ELT_TYP_LISTE_H_
4
/*============================================================================
5
* Définition d'un tableau constant statique
6
* définissant les types des éléments reconnus par le code
7
*============================================================================*/
10
This file is part of Code_Saturne, a general-purpose CFD tool.
12
Copyright (C) 1998-2011 EDF S.A.
14
This program is free software; you can redistribute it and/or modify it under
15
the terms of the GNU General Public License as published by the Free Software
16
Foundation; either version 2 of the License, or (at your option) any later
19
This program is distributed in the hope that it will be useful, but WITHOUT
20
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
21
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
24
You should have received a copy of the GNU General Public License along with
25
this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
26
Street, Fifth Floor, Boston, MA 02110-1301, USA.
29
/*----------------------------------------------------------------------------*/
31
/*============================================================================
33
*============================================================================*/
35
/*----------------------------------------------------------------------------
36
* Fichiers `include' librairie standard C
37
*----------------------------------------------------------------------------*/
40
/*----------------------------------------------------------------------------
41
* Fichiers `include' publics du paquetage global "Utilitaire"
42
*----------------------------------------------------------------------------*/
47
/*============================================================================
48
* Définition du tableau constant statique
49
*============================================================================*/
54
int som[4] ; /* 4 sommets max. pour les sous-éléments */
61
char nom[11] ; /* Nom le plus long: polyhedron */
64
ecs_sous_elt_t sous_elt[6] ; /* 6 sous-éléments max. */
68
static const ecs_fic_elt_typ_t ecs_fic_elt_typ_liste_c[ECS_ELT_TYP_FIN] = {
70
{ /* ECS_ELT_TYP_NUL 0 */
79
{ /* ECS_ELT_TYP_FAC_TRIA 1 */
88
{ /* ECS_ELT_TYP_FAC_QUAD 2 */
90
4 , /* 4 x-------x 3 */
97
{ /* ECS_ELT_TYP_CEL_TETRA 3 */
102
{ECS_ELT_TYP_FAC_TRIA, { 1 , 3 , 2 }} , /* / | \ */
103
{ECS_ELT_TYP_FAC_TRIA, { 1 , 2 , 4 }} , /* 1 x- -|- -x 3 */
104
{ECS_ELT_TYP_FAC_TRIA, { 1 , 4 , 3 }} , /* \ | / */
105
{ECS_ELT_TYP_FAC_TRIA, { 2 , 3 , 4 }} /* \ | / */
109
{ /* ECS_ELT_TYP_CEL_PYRAM 4 */
114
{ECS_ELT_TYP_FAC_TRIA, { 1 , 2 , 5 } } , /* // | \ */
115
{ECS_ELT_TYP_FAC_TRIA, { 1 , 5 , 4 } } , /* 4 x/--|---x 3 */
116
{ECS_ELT_TYP_FAC_TRIA, { 2 , 3 , 5 } } , /* // | / */
117
{ECS_ELT_TYP_FAC_TRIA, { 3 , 4 , 5 } } , /* // | / */
118
{ECS_ELT_TYP_FAC_QUAD, { 1 , 4 , 3 , 2 }} /* 1 x-------x 2 */
122
{ /* ECS_ELT_TYP_CEL_PRISM 5 */
124
6 , /* 4 x-------x 6 */
127
{ECS_ELT_TYP_FAC_TRIA, { 1 , 3 , 2 } } , /* 1 x- \-/ -x 3 */
128
{ECS_ELT_TYP_FAC_TRIA, { 4 , 5 , 6 } } , /* \ 5x / */
129
{ECS_ELT_TYP_FAC_QUAD, { 1 , 2 , 5 , 4 }} , /* \ | / */
130
{ECS_ELT_TYP_FAC_QUAD, { 1 , 4 , 6 , 3 }} , /* \|/ */
131
{ECS_ELT_TYP_FAC_QUAD, { 2 , 3 , 6 , 5 }} /* x 2 */
135
{ /* ECS_ELT_TYP_CEL_HEXA 6 */
138
6 , /* 8 x-------x 7 */
140
{ECS_ELT_TYP_FAC_QUAD, { 1 , 4 , 3 , 2 }} , /* / | / | */
141
{ECS_ELT_TYP_FAC_QUAD, { 1 , 2 , 6 , 5 }} , /* 5 x-------x6 | */
142
{ECS_ELT_TYP_FAC_QUAD, { 1 , 5 , 8 , 4 }} , /* | 4x----|--x 3 */
143
{ECS_ELT_TYP_FAC_QUAD, { 2 , 3 , 7 , 6 }} , /* | / | / */
144
{ECS_ELT_TYP_FAC_QUAD, { 3 , 4 , 8 , 7 }} , /* |/ |/ */
145
{ECS_ELT_TYP_FAC_QUAD, { 5 , 6 , 7 , 8 }} /* 1 x-------x 2 */
149
{ /* ECS_ELT_TYP_FAC_POLY 7 */
158
{ /* ECS_ELT_TYP_CEL_POLY 8 */
169
/*----------------------------------------------------------------------------*/
171
#endif /* _ECS_ELT_TYP_LISTE_H_ */