Code_Saturne
CFD tool
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
ecs_post.h
Go to the documentation of this file.
1 #ifndef _ECS_POST_H_
2 #define _ECS_POST_H_
3 
4 /*============================================================================
5  * Définition de types énumérés pour post-traitement
6  *============================================================================*/
7 
8 /*
9  This file is part of Code_Saturne, a general-purpose CFD tool.
10 
11  Copyright (C) 1998-2012 EDF S.A.
12 
13  This program is free software; you can redistribute it and/or modify it under
14  the terms of the GNU General Public License as published by the Free Software
15  Foundation; either version 2 of the License, or (at your option) any later
16  version.
17 
18  This program is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
20  FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
21  details.
22 
23  You should have received a copy of the GNU General Public License along with
24  this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
25  Street, Fifth Floor, Boston, MA 02110-1301, USA.
26 */
27 
28 /*----------------------------------------------------------------------------*/
29 
30 /*============================================================================
31  * Visibilité
32  *============================================================================*/
33 
34 #include "cs_config.h"
35 
36 
37 /*----------------------------------------------------------------------------
38  * Fichiers `include' librairie standard C
39  *----------------------------------------------------------------------------*/
40 
41 
42 /*----------------------------------------------------------------------------
43  * Fichiers `include' publics du paquetage global "Utilitaire"
44  *----------------------------------------------------------------------------*/
45 
46 #include "ecs_def.h"
47 
48 
49 /*----------------------------------------------------------------------------
50  * Fichiers `include' publics des paquetages visibles
51  *----------------------------------------------------------------------------*/
52 
53 
54 /*----------------------------------------------------------------------------
55  * Fichiers `include' publics du paquetage courant
56  *----------------------------------------------------------------------------*/
57 
58 #include "ecs_post_ens.h"
59 #include "ecs_med.h"
60 #include "ecs_post_cgns.h"
61 
62 
63 /*============================================================================
64  * Définitions d'énumerations
65  *============================================================================*/
66 
67 /* Définition d'énumération liée au type de post-traitement */
68 
69 typedef enum {
70 
71  ECS_POST_TYPE_VOLUME, /* maillage volumique (initial) */
72  ECS_POST_TYPE_ERREUR /* maillage d'une zone avec erreur */
73 
75 
76 
77 /*============================================================================
78  * Structures de données
79  *============================================================================*/
80 
81 /* Structure liée aux cas de post-traitement */
82 
83 typedef struct {
84 
85  char *nom_cas; /* Nom du cas par défaut */
86 
87  bool opt_ens[2]; /* Indicateur de sortie par type */
88  ecs_post_ens_t *cas_ens; /* Cas EnSight associé */
89 
90 #if defined(HAVE_CGNS)
91 
92  bool opt_cgns[2]; /* Indicateur de sortie par type */
93  ecs_post_cgns_t *cas_cgns; /* Cas CGNS associé */
94 
95 #endif
96 
97 #if defined(HAVE_MED)
98 
99  bool opt_med[2]; /* Indicateur de sortie par type */
100  ecs_med_t *cas_med; /* Cas MED associé */
101 
102 #endif
103 
104 } ecs_post_t;
105 
106 /*============================================================================
107  * Prototypes de fonctions publiques
108  *============================================================================*/
109 
110 /*----------------------------------------------------------------------------
111  * Fonction initialisant une structure `ecs_post_t`
112  *----------------------------------------------------------------------------*/
113 
114 ecs_post_t *
115 ecs_post__cree_cas(const char *nom_cas);
116 
117 /*----------------------------------------------------------------------------
118  * Fonction détruisant une structure `ecs_post_t`
119  *----------------------------------------------------------------------------*/
120 
121 ecs_post_t *
123 
124 /*----------------------------------------------------------------------------*/
125 
126 #endif /* _ECS_POST_H_ */
ecs_med_t * cas_med
Definition: ecs_post.h:100
Definition: ecs_post_ens_priv.h:92
Definition: ecs_post_cgns_priv.h:101
ecs_post_type_t
Definition: ecs_post.h:69
ecs_post_ens_t * cas_ens
Definition: ecs_post.h:88
char * nom_cas
Definition: ecs_post.h:85
Definition: ecs_post.h:71
ecs_post_t * ecs_post__detruit_cas(ecs_post_t *cas)
Definition: ecs_post.c:115
Definition: ecs_post.h:72
Definition: ecs_med_priv.h:150
ecs_post_t * ecs_post__cree_cas(const char *nom_cas)
Definition: ecs_post.c:74
ecs_post_cgns_t * cas_cgns
Definition: ecs_post.h:93
Definition: ecs_post.h:83