programmer's documentation
cs_rad_transfer.h
Go to the documentation of this file.
1 #ifndef __CS_RAD_TRANSFER_H__
2 #define __CS_RAD_TRANSFER_H__
3 
4 /*============================================================================
5  * Radiation solver operations.
6  *============================================================================*/
7 
8 /*
9  This file is part of Code_Saturne, a general-purpose CFD tool.
10 
11  Copyright (C) 1998-2016 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 #include "cs_halo.h"
36 
37 /*----------------------------------------------------------------------------*/
38 
40 
41 /*=============================================================================
42  * Local Macro definitions
43  *============================================================================*/
44 
45 /*============================================================================
46  * Type definition
47  *============================================================================*/
48 
49 /*============================================================================
50  * Global variables
51  *============================================================================*/
52 
53 typedef struct {
54 
59  int iirayo;
60 
63  int nrphas;
64 
66  int iimpar;
67 
73  int iimlum;
74 
78  int imodak;
79 
84  int imoadf;
85 
87  int iwrp1t;
88 
92  int imfsck;
93 
99  double xnp1mx;
100 
106  int idiver;
107 
120 
121  //> Parameter assiociated to the Tn
122  int ndirec;
123 
124  //> For the Tn quadrature, \ref ndirec squared
125  int ndirs;
126 
127  //--> directions of angular values of the quadrature sx, sy, sz
128  // and weight of the solid angle associated
129 
132 
134  int restart;
135 
136  //> Period of the radiation module.
137  //> The radiation module is called every \ref nfreqr time steps (more precisely,
138  //> every time \ref optcal::ntcabs "ntcabs" is a multiple of \ref nfreqr).
139  //> Also, in order to have proper initialization of the variables, whatever
140  //> the value of \ref nfreqr, the radiation module is called at
141  //> the first time step of a calculation (restart or not).
142  //> Useful if and only if the radiation module is activated}
143  int nfreqr;
144 
145  //> Spectral radiation models (ADF and FSCK)
146  //> Number of ETRs to solve
147  int nwsgg;
148  //> Weights of the Gaussian quadrature
150 
151  //--> Informations sur les zones frontieres
152 
153  // NBZRDM Nombre max. de zones frontieres
154  // NOZRDM Numero max. des zones frontieres
155 
156  int nbzrdm;
157 
158  int nozrdm;
159 
160  // NZFRAD Nombre de zones de bord (sur le proc courant)
161  // ILZRAY Liste des numeros de zone de bord (du proc courant)
162  // NOZARM Numero de zone de bord atteint max
163  // exemple zones 1 4 2 : NZFRAD=3,NOZARM=4
164 
165  int nozarm;
166  int nzfrad;
167  int *ilzrad;
168 
169  //--> Types de condition pour les temperatures de paroi :
170  // ITPIMP Profil de temperature imposee
171  // IPGRNO Parois grises ou noires
172  // IPREFL Parois reflechissante
173  // IFGRNO Flux de conduction impose dans la paroi
174  // ET paroi non reflechissante (EPS non nul)
175  // IFREFL Flux de conduction impose dans la paroi
176  // ET paroi reflechissante (EPS = 0)
177  // ITPT1D Resolution de l'equation de la chaleur (module tp1d)
178 
179  int itpimp, ipgrno, iprefl, ifgrno, ifrefl, itpt1d;
180 
182 
184 
185 /*=============================================================================
186  * Public function prototypes
187  *============================================================================*/
188 
189 /*----------------------------------------------------------------------------*/
193 /*----------------------------------------------------------------------------*/
194 
195 void
197 
198 /*----------------------------------------------------------------------------*/
199 
201 
202 #endif /* __CS_RAD_TRANSFER_H__ */
int ndirs
Definition: cs_rad_transfer.h:125
cs_real_3_t * sxyz
Definition: cs_rad_transfer.h:130
int iwrp1t
Definition: cs_rad_transfer.h:87
int ndirec
Definition: cs_rad_transfer.h:122
int restart
Definition: cs_rad_transfer.h:134
int imfsck
Definition: cs_rad_transfer.h:92
cs_real_t * angsol
Definition: cs_rad_transfer.h:131
int itpt1d
Definition: cs_rad_transfer.h:179
#define BEGIN_C_DECLS
Definition: cs_defs.h:448
int iimlum
Definition: cs_rad_transfer.h:73
int nozrdm
Definition: cs_rad_transfer.h:158
cs_real_t * wq
Definition: cs_rad_transfer.h:149
double cs_real_t
Floating-point value.
Definition: cs_defs.h:296
Definition: cs_rad_transfer.h:53
int i_quadrature
Definition: cs_rad_transfer.h:119
void cs_rad_transfer_finalize(void)
Finalize radiative transfer module.
Definition: cs_rad_transfer.c:163
int nzfrad
Definition: cs_rad_transfer.h:166
int nbzrdm
Definition: cs_rad_transfer.h:156
int nozarm
Definition: cs_rad_transfer.h:165
int idiver
Definition: cs_rad_transfer.h:106
int imodak
Definition: cs_rad_transfer.h:78
int nfreqr
Definition: cs_rad_transfer.h:143
cs_real_t cs_real_3_t[3]
vector of 3 floating-point values
Definition: cs_defs.h:308
int nrphas
Definition: cs_rad_transfer.h:63
double xnp1mx
Definition: cs_rad_transfer.h:99
int * ilzrad
Definition: cs_rad_transfer.h:167
cs_rad_transfer_params_t * cs_glob_rad_transfer_params
#define END_C_DECLS
Definition: cs_defs.h:449
int iirayo
Definition: cs_rad_transfer.h:59
int iimpar
Definition: cs_rad_transfer.h:66
int nwsgg
Definition: cs_rad_transfer.h:147
int imoadf
Definition: cs_rad_transfer.h:84