Code_Saturne
CFD tool
cs_gui_variables.h
Go to the documentation of this file.
1 #ifndef __CS_GUI_VARIABLES_H__
2 #define __CS_GUI_VARIABLES_H__
3 
4 /*============================================================================
5  * Management of the GUI parameters file: variables
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  * Local headers
32  *----------------------------------------------------------------------------*/
33 
34 #include "cs_base.h"
35 
36 /*----------------------------------------------------------------------------*/
37 
39 
40 /*============================================================================
41  * Type definitions
42  *============================================================================*/
43 
44 /*----------------------------------------------------------------------------
45  * Variables and scalars management structure
46  *----------------------------------------------------------------------------*/
47 
48 typedef struct {
49  char *model; /* predifined physics model */
50  char *model_value; /* predifined physics model value */
51  char **head; /* name of the head */
52  char **type; /* type of markup: 'variable' or 'scalar' */
53  char **name; /* variables name and scalars label */
54  char **label; /* scalars label */
55  int *rtp; /* variables position in fortran array RTP */
56  int *rphas; /* phase number for rtp variables */
57  int *pphas; /* phase number for propce variables */
58  int nvar; /* total number of variables and scalars */
59  int nscaus; /* number of user scalars */
60  int nscapp; /* number of specific physics scalars */
61  int nprop; /* number of properties */
62  int nsalpp; /* number of predifined physics properties */
63  int nprayc; /* number of cell's radiative properties */
64  int nprayb; /* number of boundary face's radiative properties */
65  int ntimaver; /* number of time averages */
66  char **properties_name; /* label of properties */
67  int *properties_ipp; /* properties position for post-processing */
68  int *propce; /* properties position in fortran array PROPCE */
69  char **b_prop_name; /* label of boundary faces properties */
70  int *b_prop_ipp; /* boundary faces prop position for post */
71  int *propfb; /* bound faces prop position in fortran array PROPFB */
72 } cs_var_t;
73 
74 
75 typedef struct {
79 } cs_label_t;
80 
81 /*============================================================================
82  * Static global variables
83  *============================================================================*/
84 
85 extern cs_var_t *cs_glob_var; /* Pointer to main variables structure */
86 extern cs_label_t *cs_glob_label; /* Pointer to main label structure */
87 
88 /*============================================================================
89  * Public function prototypes for Fortran API
90  *============================================================================*/
91 
92 /*=============================================================================
93  * Public function prototypes
94  *============================================================================*/
95 
96 /*----------------------------------------------------------------------------*/
97 
99 
100 #endif /* __CS_GUI_VARIABLES_H__ */
char ** name
Definition: cs_gui_variables.h:53
char ** b_prop_name
Definition: cs_gui_variables.h:69
int * rtp
Definition: cs_gui_variables.h:55
Definition: cs_gui_variables.h:48
#define BEGIN_C_DECLS
Definition: cs_defs.h:365
int _cs_gui_last_var
Definition: cs_gui_variables.h:77
int * rphas
Definition: cs_gui_variables.h:56
char ** label
Definition: cs_gui_variables.h:54
int * properties_ipp
Definition: cs_gui_variables.h:67
cs_var_t * cs_glob_var
Definition: cs_gui.c:134
int nscaus
Definition: cs_gui_variables.h:59
int nsalpp
Definition: cs_gui_variables.h:62
char ** _cs_gui_var_name
Definition: cs_gui_variables.h:78
cs_label_t * cs_glob_label
Definition: cs_gui.c:135
int * b_prop_ipp
Definition: cs_gui_variables.h:70
Definition: cs_gui_variables.h:75
int nscapp
Definition: cs_gui_variables.h:60
int nprop
Definition: cs_gui_variables.h:61
char * model_value
Definition: cs_gui_variables.h:50
int * pphas
Definition: cs_gui_variables.h:57
int _cs_gui_max_vars
Definition: cs_gui_variables.h:76
char * model
Definition: cs_gui_variables.h:49
int * propfb
Definition: cs_gui_variables.h:71
char ** head
Definition: cs_gui_variables.h:51
char ** properties_name
Definition: cs_gui_variables.h:66
#define END_C_DECLS
Definition: cs_defs.h:366
int * propce
Definition: cs_gui_variables.h:68
int nvar
Definition: cs_gui_variables.h:58
int ntimaver
Definition: cs_gui_variables.h:65
int nprayc
Definition: cs_gui_variables.h:63
int nprayb
Definition: cs_gui_variables.h:64
char ** type
Definition: cs_gui_variables.h:52