8.1
general documentation
cs_gui_specific_physics.h
Go to the documentation of this file.
1 #ifndef __CS_GUI_SPECIFIC_PHYSICS_H__
2 #define __CS_GUI_SPECIFIC_PHYSICS_H__
3 
4 /*============================================================================
5  * Management of the GUI parameters file: specific physics
6  *============================================================================*/
7 
8 /*
9  This file is part of code_saturne, a general-purpose CFD tool.
10 
11  Copyright (C) 1998-2023 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  * Public Fortran function prototypes
46  *============================================================================*/
47 
48 /*----------------------------------------------------------------------------
49  * Density under relaxation
50  *
51  * Fortran Interface:
52  *
53  * subroutine uicpi1 (srrom)
54  * *****************
55  * double precision srrom <-- density relaxation
56  *----------------------------------------------------------------------------*/
57 
58 void CS_PROCF (uicpi1, UICPI1) (double *const srrom);
59 
60 /*----------------------------------------------------------------------------
61  * Temperature for D3P Gas Combustion
62  *
63  * Fortran Interface:
64  *
65  * SUBROUTINE UICPI2 (SRROM)
66  * *****************
67  * DOUBLE PRECISION Toxy <-- Oxydant temperature
68  * DOUBLE PRECISION Tfuel <-- Fuel temperature
69  *----------------------------------------------------------------------------*/
70 
71 void CS_PROCF (uicpi2, UICPI2) (double *const toxy,
72  double *const tfuel);
73 
74 /*----------------------------------------------------------------------------
75  * Indirection between the solver numbering and the XML one
76  * for physical properties of the activated specific physics
77  * (pulverized solid fuels)
78  *----------------------------------------------------------------------------*/
79 
80 void CS_PROCF (uisofu, UISOFU) (const int *iirayo,
81  const int *ncharm,
82  int *ncharb,
83  int *nclpch,
84  int *nclacp,
85  const int *ncpcmx,
86  int *ichcor,
87  double *diam20,
88  double *cch,
89  double *hch,
90  double *och,
91  double *nch,
92  double *sch,
93  int *ipci,
94  double *pcich,
95  double *cp2ch,
96  double *rho0ch,
97  double *thcdch,
98  double *cck,
99  double *hck,
100  double *ock,
101  double *nck,
102  double *sck,
103  double *xashch,
104  double *xashsec,
105  double *xwatch,
106  double *h0ashc,
107  double *cpashc,
108  int *iy1ch,
109  double *y1ch,
110  int *iy2ch,
111  double *y2ch,
112  double *a1ch,
113  double *a2ch,
114  double *e1ch,
115  double *e2ch,
116  double *crepn1,
117  double *crepn2,
118  double *ahetch,
119  double *ehetch,
120  int *iochet,
121  double *ahetc2,
122  double *ehetc2,
123  int *ioetc2,
124  double *ahetwt,
125  double *ehetwt,
126  int *ioetwt,
127  int *ieqnox,
128  int *ieqco2,
129  int *imdnox,
130  int *irb,
131  int *ihtco2,
132  int *ihth2o,
133  double *qpr,
134  double *fn,
135  double *ckabs1,
136  int *noxyd,
137  double *oxyo2,
138  double *oxyn2,
139  double *oxyh2o,
140  double *oxyco2,
141  double *repnck,
142  double *repnle,
143  double *repnlo);
144 
145 /*----------------------------------------------------------------------------
146  * Copy name of thermophysical data file from C to Fortran
147  *----------------------------------------------------------------------------*/
148 
149 void CS_PROCF(cfnmtd, CFNMTD) (char *fstr, /* --> Fortran string */
150  int *len /* --> String Length */
152 
153 /*=============================================================================
154  * Public function prototypes
155  *============================================================================*/
156 
157 /*-----------------------------------------------------------------------------
158  * Activate specific physical models based on XML settings.
159  *----------------------------------------------------------------------------*/
160 
161 void
163 
164 /*----------------------------------------------------------------------------
165  * Electrical model: read parameters
166  *----------------------------------------------------------------------------*/
167 
168 void
169 cs_gui_elec_model(void);
170 
171 /*----------------------------------------------------------------------------
172  * Electrical model: define plane for elreca
173  *----------------------------------------------------------------------------*/
174 
175 void
177 
178 /*-----------------------------------------------------------------------------
179  * Return the name of a thermophysical model.
180  *
181  * parameter:
182  * model_thermo --> thermophysical model category
183  *----------------------------------------------------------------------------*/
184 
185 const char *
186 cs_gui_get_thermophysical_model(const char *model_thermo);
187 
188 /*----------------------------------------------------------------------------
189  * groundwater model : read parameters
190  *
191  * parameters:
192  * permeability <-- permeability type
193  * unsteady <-- steady flow
194  * unsaturated <-- take into account unsaturated zone
195  *----------------------------------------------------------------------------*/
196 
197 void
198 cs_gui_gwf_model(int *permeability,
199  int *unsteady,
200  int *unsaturated);
201 
202 /*----------------------------------------------------------------------------
203  * Combustion model: read reference values
204  *----------------------------------------------------------------------------*/
205 
206 void
208 
209 /*----------------------------------------------------------------------------*/
210 
212 
213 #endif /* __CS_GUI_SPECIFIC_PHYSICS_H__ */
#define BEGIN_C_DECLS
Definition: cs_defs.h:514
#define CS_PROCF(x, y)
Definition: cs_defs.h:528
#define END_C_DECLS
Definition: cs_defs.h:515
#define CS_ARGF_SUPP_CHAINE
Definition: cs_defs.h:540
void uicpi2(double *const toxy, double *const tfuel)
Definition: cs_gui_specific_physics.c:673
void uisofu(const int *iirayo, const int *ncharm, int *ncharb, int *nclpch, int *nclacp, const int *ncpcmx, int *ichcor, double *diam20, double *cch, double *hch, double *och, double *nch, double *sch, int *ipci, double *pcich, double *cp2ch, double *rho0ch, double *thcdch, double *cck, double *hck, double *ock, double *nck, double *sck, double *xashch, double *xashsec, double *xwatch, double *h0ashc, double *cpashc, int *iy1ch, double *y1ch, int *iy2ch, double *y2ch, double *a1ch, double *a2ch, double *e1ch, double *e2ch, double *crepn1, double *crepn2, double *ahetch, double *ehetch, int *iochet, double *ahetc2, double *ehetc2, int *ioetc2, double *ahetwt, double *ehetwt, int *ioetwt, int *ieqnox, int *ieqco2, int *imdnox, int *irb, int *ihtco2, int *ihth2o, double *qpr, double *fn, double *ckabs1, int *noxyd, double *oxyo2, double *oxyn2, double *oxyh2o, double *oxyco2, double *repnck, double *repnle, double *repnlo)
Definition: cs_gui_specific_physics.c:691
void cs_gui_elec_model(void)
Definition: cs_gui_specific_physics.c:1423
void cfnmtd(char *fstr, int *len CS_ARGF_SUPP_CHAINE)
Definition: cs_gui_specific_physics.c:1134
void cs_gui_combustion_ref_values(void)
Definition: cs_gui_specific_physics.c:1651
void cs_gui_physical_model_select(void)
Definition: cs_gui_specific_physics.c:1243
void cs_gui_gwf_model(int *permeability, int *unsteady, int *unsaturated)
Definition: cs_gui_specific_physics.c:1572
const char * cs_gui_get_thermophysical_model(const char *model_thermo)
Definition: cs_gui_specific_physics.c:1545
void cs_gui_elec_model_rec(void)
Definition: cs_gui_specific_physics.c:1506
void uicpi1(double *const srrom)
Definition: cs_gui_specific_physics.c:651
double precision, save srrom
with gas combustion, or pulverised coal, srrom is the sub-relaxation coefficient for the density,...
Definition: ppincl.f90:682
integer ncharm
maximum number of coals
Definition: ppppar.f90:51
integer ncpcmx
maximum number of coals classes
Definition: ppppar.f90:53
integer(c_int), pointer, save iirayo
Activation of the radiative transfer module:
Definition: radiat.f90:45
real(c_double), pointer, save ckabs1
Absorption coefficient of gas mixture.
Definition: ppthch.f90:153
double precision, dimension(ncharm), save cch
Definition: cpincl.f90:96
real(c_double), dimension(:), pointer, save xashch
Definition: cpincl.f90:117
double precision, dimension(ncharm), save sch
Definition: cpincl.f90:96
double precision, dimension(ncharm), save y2ch
Definition: cpincl.f90:154
double precision, dimension(ncharm), save cpashc
Definition: cpincl.f90:96
integer, dimension(ncharm), save ioetwt
Definition: cpincl.f90:153
real(c_double), dimension(:), pointer, save diam20
Definition: cpincl.f90:198
integer(c_int), pointer, save nclacp
Definition: cpincl.f90:185
double precision, dimension(ncharm), save och
Definition: cpincl.f90:96
double precision, dimension(ncharm), save cck
Definition: cpincl.f90:96
integer(c_int), dimension(:), pointer, save nclpch
Number of classes per coal.
Definition: cpincl.f90:58
integer, dimension(ncharm), save iy1ch
Definition: cpincl.f90:152
double precision, dimension(ncharm), save thcdch
Definition: cpincl.f90:96
double precision, dimension(ncharm), save hck
Definition: cpincl.f90:96
integer, dimension(ncharm), save ioetc2
Definition: cpincl.f90:153
double precision, dimension(ncharm), save e1ch
Definition: cpincl.f90:154
double precision, dimension(ncharm), save ehetwt
Definition: cpincl.f90:154
double precision, dimension(ncharm), save y1ch
Definition: cpincl.f90:154
double precision, dimension(2, ncharm), save crepn2
Definition: cpincl.f90:96
double precision, dimension(ncharm), save ahetc2
Definition: cpincl.f90:154
double precision, dimension(ncharm), save nck
Definition: cpincl.f90:96
double precision, dimension(ncharm), save a1ch
Definition: cpincl.f90:154
integer, dimension(ncharm), save iochet
Definition: cpincl.f90:153
double precision, dimension(ncharm), save ock
Definition: cpincl.f90:96
real(c_double), dimension(:), pointer, save cp2ch
Definition: cpincl.f90:117
double precision, dimension(2, ncharm), save crepn1
Definition: cpincl.f90:96
double precision, dimension(ncharm), save ehetc2
Definition: cpincl.f90:154
real(c_double), dimension(:), pointer, save xwatch
Definition: cpincl.f90:117
double precision, dimension(ncharm), save ahetch
Definition: cpincl.f90:154
double precision, dimension(ncharm), save ehetch
Definition: cpincl.f90:154
integer(c_int), pointer, save ncharb
Number of coals.
Definition: cpincl.f90:51
double precision, dimension(ncharm), save sck
Definition: cpincl.f90:96
integer(c_int), dimension(:), pointer, save ichcor
Definition: cpincl.f90:197
double precision, dimension(ncharm), save rho0ch
Definition: cpincl.f90:96
double precision, dimension(ncharm), save pcich
Definition: cpincl.f90:96
double precision, dimension(ncharm), save a2ch
Definition: cpincl.f90:154
double precision, dimension(ncharm), save ahetwt
Definition: cpincl.f90:154
double precision, dimension(ncharm), save h0ashc
Definition: cpincl.f90:96
double precision, dimension(ncharm), save hch
Definition: cpincl.f90:96
double precision, dimension(ncharm), save nch
Definition: cpincl.f90:96
integer, dimension(ncharm), save iy2ch
Definition: cpincl.f90:152
double precision, dimension(ncharm), save e2ch
Definition: cpincl.f90:154
double precision, dimension(ncharm), save xashsec
Definition: cs_coal_incl.f90:42
double precision, dimension(ncharm), save repnck
Definition: cs_coal_incl.f90:79
double precision, dimension(ncharm), save repnlo
Definition: cs_coal_incl.f90:79
double precision, dimension(ncharm), save qpr
Definition: cs_coal_incl.f90:42
double precision, dimension(ncharm), save fn
Definition: cs_coal_incl.f90:42
double precision, dimension(ncharm), save repnle
Definition: cs_coal_incl.f90:79
integer, dimension(ncharm), save ipci
Definition: cs_coal_incl.f90:36
integer, save ihth2o
Definition: cs_coal_incl.f90:36
integer, save noxyd
Definition: ppcpfu.f90:172
integer(c_int), pointer, save ieqco2
Definition: ppcpfu.f90:66
real(c_double), dimension(:), pointer, save oxyco2
Definition: ppcpfu.f90:184
integer, save irb
Definition: ppcpfu.f90:106
real(c_double), dimension(:), pointer, save oxyn2
Definition: ppcpfu.f90:184
integer(c_int), pointer, save ieqnox
Definition: ppcpfu.f90:105
integer, save ihtco2
Definition: ppcpfu.f90:74
real(c_double), dimension(:), pointer, save oxyo2
Definition: ppcpfu.f90:184
real(c_double), dimension(:), pointer, save oxyh2o
Definition: ppcpfu.f90:184
integer, save imdnox
Definition: ppcpfu.f90:106