programmer's documentation
cs_lagr.h
Go to the documentation of this file.
1 #ifndef __CS_LAGR_H__
2 #define __CS_LAGR_H__
3 
4 /*============================================================================
5  * Functions and types for the Lagrangian module
6  *============================================================================*/
7 
8 /*
9  This file is part of Code_Saturne, a general-purpose CFD tool.
10 
11  Copyright (C) 1998-2018 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 #include "cs_defs.h"
31 
32 /*----------------------------------------------------------------------------
33  * Standard C library headers
34  *----------------------------------------------------------------------------*/
35 
36 #include "assert.h"
37 
38 /*----------------------------------------------------------------------------
39  * Local headers
40  *----------------------------------------------------------------------------*/
41 
42 #include "cs_base.h"
43 #include "cs_field.h"
44 
45 #include "cs_lagr_injection.h"
46 
47 /*----------------------------------------------------------------------------*/
48 
50 
51 /*============================================================================
52  * Type definitions
53  *============================================================================*/
54 
55 /*----------------------------------------------------------------------------*/
70 /*----------------------------------------------------------------------------*/
71 
72 typedef void
74  int location_id,
75  const void *input,
76  cs_lnum_t n_elts,
77  const cs_lnum_t elt_ids[],
78  cs_real_t profile[]);
79 
81 /*--------------------------------------*/
82 
83 typedef enum {
84 
99 
101 
104 typedef enum {
105 
112 
114 
116 /*----------------------*/
117 
118 typedef struct {
119 
120  int nusbrd;
123  int ndlaim;
125  int ncharm2;
126  int nlayer;
129 
131 /*---------------------*/
132 
133 typedef struct {
134 
135  int ntersl;
136  int nvisbr;
138 } cs_lagr_dim_t;
139 
141 /*-----------------------------------------------------*/
142 
143 typedef struct {
144 
157  int iilagr;
158 
159  /* indicates the steady (=1) or unsteady (=0) state of the
160  continuous phase flow
161  in particular, \ref isttio = 1 is needed in order to:
162  calculate steady statistics in the volume or at the boundaries
163  (starting respectively from the iterations \ref nstist)
164  and calculate time-averaged two-way coupling source terms (from the
165  time step \ref nstits).
166  Useful if \ref iilagr=1 or \ref iilagr=2 (if \ref iilagr=3,
167  then \ref isttio=1 automatically) */
168  int isttio;
169 
175  int isuila;
176 
178  int t_order;
179 
186  int modcpl;
187 
191  int idirla;
192 
197  int idistu;
198 
203  int idiffl;
204 
210  int ilapoi;
211 
228 
231 
233 
235 /*-----------------------------------------------------------*/
236 
237 typedef struct {
238 
249  int physical_model; /* FIXME: => enum: CS_LAGR_PHYS_STD,
250  CS_LAGR_PHYS_COAL,
251  CS_LAGR_PHYS_HEAT... */
253 
255  int dlvo;
256 
260 
264 
265  /* - 0: no clogging model
266  - 1: clogging model */
267  int clogging;
268 
269  /* - 0: no consolidation model
270  - 1: consolidation model */
272 
274  int fouling;
275 
278 
280 
282 /*----------------------------------------------*/
283 
284 typedef struct {
285 
289 
293 
296 
299 
302 
305 
308 
311 
314 
317 
320 
323 
326 
329 
332 
334 
336 /* ---------------------------------------------------------- */
337 
338 typedef struct {
339 
340  /* activation (=1) or not (=0) of an evolution equation on the particle
341  temperature (in degrees Celsius).
342  Useful if \ref physical_model=1 and if there is a thermal scalar
343  associated with the continuous phase.
344  */
345  int itpvar;
346 
347  /* activation (=1) or not (=0) of an evolution equation on the particle
348  diameter. Useful if \ref physical_model = 1.
349  */
350  int idpvar;
351 
352  /* activation (=1) or not (=0) of an evolution equation on the particle mass
353  Useful if \ref physical_model = 1
354  */
355  int impvar;
356 
357  /* initialization temperature (in degree Celsius) for the particles already
358  present in the calculation domain when an evolution equation on
359  the particle temperature is activated during a calculation
360  (\ref physical_model = 1 and \ref itpvar = 1).
361  Useful if \ref isuila = 1 and \ref itpvar = 0 in the previous calculation.
362  */
364 
365  /* initialization value for the specific heat (\f$ J.kg^{-1}.K^{-1} \f$)
366  of the particles already present
367  in the calculation domain when an evolution equation
368  on the particle temperature is activated during a calculation
369  (\ref physical_model = 1 and \ref itpvar = 1).
370  Useful if \ref isuila = 1 and \ref itpvar = 0 in the previous calculation
371  */
373 
375 
377 /* -------------------------------------- */
378 
379 typedef struct {
380 
381  /* - 0: no resuspension model
382  - 1: resuspension model */
383  int ireent;
384 
385  /* - 0: no head losses calculation for influence of the deposit on the flow
386  - 1: head losses calculation for influence of the deposit on the flow */
387  int iflow;
388 
389  /* Parameters of the particle resuspension model*/
395 
397 
399 /* -------------------------------------- */
400 
401 typedef struct {
402 
403  /* number of particle classes*/
404  int nbrclas;
405  /* diameter of particles formed by precipitation*/
407  /* density of particles formed by precipitation*/
409  /* number of precipitated particles */
410  int *nbprec;
411  /* */
413  /* number of precipitated particles */
415 
417 
419 /* ------------------------------------------ */
420 
421 typedef struct {
422 
427 
429 
431 /* ----------------------------------------------- */
432 
433 typedef struct {
434 
439 
441 
443 /*----------------------------------*/
444 
445 typedef struct {
446 
447  /* current step id (for 2nd order scheme) */
448  int nor;
449 
450  /* duration of a Lagrangian iteration */
452 
453  /* physical time of the Lagrangian simulation */
455 
457 
459 /*------------------------------------------------------------------*/
460 
461 typedef struct {
462 
463  int zone_id;
464  int set_id;
475 
478 
484 
489 
493  int cluster;
496  cs_real_t velocity[3];
516 
518 /*----------------------------------------------*/
519 
520 typedef struct {
521 
525  int ltsdyn;
526 
529  int ltsmas;
530 
531  /* if \ref physical_model = 1 and \ref itpvar = 1, \ref ltsthe
532  activates (=1) or not (=0) the two-way coupling on temperature.
533  if \ref physical_model = 2, \ref ltsthe activates (=1) or not (=0) the
534  two-way coupling on the eulerian variables related to pulverised
535  coal combustion.
536  Useful if \ref iilagr = 2 */
537  int ltsthe;
538 
541  int itsli;
542 
543  /* explicit source term for the turbulent dissipation and the
544  turbulent energy if the \f$k-\varepsilon\f$ turbulence model is used
545  for the continuous phase */
546  int itske;
547 
550  int itste;
551 
554  int itsti;
555 
557  int itsmas;
558 
559  /* source term for the light volatile matters */
560  int *itsmv1; //ncharm2
561 
562  /* source term for the heavy volatile matters */
563  int *itsmv2; //ncharm2
564 
566  int itsco;
567 
569  int itsfp4;
570 
583  int nstits;
584 
586  int npts;
587 
590  int ntxerr;
591 
594 
597 
600 
602 
604 /*----------------------------------------------------*/
605 
606 typedef struct {
607 
610  int n_zones;
611  int *zone_type;
618  char *elt_type;
626 
628 /*---------------------------------------*/
629 
630 typedef struct {
631 
633 
635 
637 /*--------------------------------*/
638 
639 typedef struct {
640 
641  /* activates (=1) or not (=0) the option of coal particle fouling.
642  It then is necessary to specify the domain boundaries
643  on which fouling may take place. Useful if \ref physical_model = 2*/
644  int iencra;
645 
646  /* encrustation data*/
647  int npencr;
648  // TODO cf particles->n_part_fou in cs_lagr_tracking.c
649 
650  /* encrustation data*/
651 //TODO
652  cs_real_t *enc1;//ncharm2
653  /* encrustation data*/
654 //TODO
655  cs_real_t *enc2;//ncharm2
656 
657  /* limit temperature (in degree Celsius) below which the coal particles do
658  not cause any fouling (if the fouling model is activated).
659  Useful if \ref physical_model = 2 and \ref iencra = 1*/
660 //TODO
661  cs_real_t *tprenc;//ncharm2
662 
663  /* ash critical viscosity in \f$ kg.m^{-1}.s^{-1} \f$, in the fouling model
664  cf J.D. Watt et T. Fereday (J.Inst.Fuel, Vol.42-p99).
665  Useful if \ref physical_model = 2 and \ref iencra = 1*/
666 //TODO
667  cs_real_t *visref;//ncharm2
668 
669  /* encrustation data */
671 
673 
675 /*-----------------------------------------*/
676 
677 typedef struct {
678 
681 
685 
688 
691 
694 
697 
700 
702 
704 /*-------------------------------*/
705 
706 typedef struct {
707 
708  int lamvbr;
711 
713 /*----------------------------------------------*/
714 
715 typedef struct {
716 
719  int nusbor;
720 
727  int npstf;
728 
735  int npstft;
736 
742  int inbrbd;
743 
749  int iflmbd;
750 
754  int iangbd;
755 
759  int ivitbd;
760 
764  int iclgst;
765 
767  int iencnbbd;
768 
770  int iencmabd;
771 
773  int iencdibd;
774 
776  int iencckbd;
777 
779  int inbr;
780 
782  int iflm;
783 
785  int iang;
786 
788  int ivit;
789 
791  int ires;
792 
794  int iflres;
795 
797  int iencnb;
798 
800  int iencma;
801 
803  int iencdi;
804 
806  int iencck;
807 
809  int *iusb;
810 
811  /* the recordings in \ref bound_stat at every particle/boundary interaction are
812  cumulated values (possibly reset to zero at every iteration in the
813  unsteady case). They must therefore be divided by a quantity to
814  get boundary statistics. The user can choose between two average types:
815  - = 0: no average is applied to the recorded cumulated values.
816  - = 1: a time-average is calculated. The cumulated value
817  is divided by the physical duration in the case of steady
818  averages (\ref isttio=1). The cumulated value is divided by the
819  value of the last time step in the case of unsteady averages
820  (\ref isttio=0), and also in the case of steady averages while the
821  absolute iteration number is inferior to \ref nstist.
822  - = 2: a particulate average is calculated. The cumulated value is divided
823  by the number of particle/boundary interactions (in terms of
824  statistical weight) recorded in \ref bound_stat "bound_stat"(nfabor,inbr).
825  This average can only be calculated when \ref inbrbd=1.
826  Only the cumulated value is recorded in the restart file. */
827  int *imoybr;
828 
830  int inclg;
831 
833  int inclgt;
834 
836  int iclogt;
837 
839  int iclogh;
840 
842  int iscovc;
843 
844  /* id for mean of particle deposition height */
845  int ihdepm;
846 
847  /* id for variance of particle deposition height */
848  int ihdepv;
849 
850  /* id for mean diameter of deposited particles */
851  int ihdiam;
852 
853  /* id for sum of deposited particle diameters */
854  int ihsum;
855 
863 
870  char **nombrd;
871 
873 
875 /*-----------------------------------------------*/
876 
877 typedef struct {
878 
879  /* Turbulence model */
880  int iturb;
881  int itytur;
882 
883  /* cpincl */
884  int ncharb;
885 
886  /* ppppar */
887  int ncharm;
888 
889  /* radiation */
891 
892  /* icp */
893  int icp;
894 
895  /* diftl0 */
897 
898  /* cmu */
900 
901  /* visls0 */
903 
904  /* Referenced fields
905  ----------------- */
906 
907  /* wall ustar */
909 
910  /* Fluid density */
912 
913  /* Fluid pressure */
915 
916  /* Fluid temparature */
920 
921  /* Fluid velocity */
923 
924  /* Fluid viscosity */
926 
927  /* Fluid viscosity */
929 
930  /* Fluid specific heat capacity */
932 
933  /* Radiat. */
935 
936  /* Combustion */
940 
941  /* Turbulence */
942  /* Turbulent intensity */
944 
945  /* Turbulent dissipation */
947 
948  /* Omega from k-omega SST model*/
950 
951  /* Reynolds stress component Rxx */
953  /* Reynolds stress component Ryy */
955  /* Reynolds stress component Rzz */
957 
958  /* Reynolds Stress Tensor */
960 
962 
964 /*--------------------------------------------*/
965 
966 typedef struct {
967 
968  int ih2o; // cpincl
969  int io2; // cpincl
970  int ico; // cpincl
971 
972  int iatc; // ppthch
973  cs_real_t prefth; // ppthch
974  cs_real_t trefth; // ppthch
975 
976  int natom; // = 5;
977  cs_real_t *wmolat; // dim = natom
978 
979  int ngazem; // = 20;
980  cs_real_t *wmole; // ngazem
981  int *iym1;
982 
983  int ncharm; // cpincl
984  cs_real_t *a1ch; // ncharm
998 
1000 
1001 /*============================================================================
1002  * Global variables
1003  *============================================================================*/
1004 
1008 
1012 
1015 
1018 
1021 
1022 /* Lagrangian log output every frequency_n time steps */
1023 
1024 extern int cs_glob_lagr_log_frequency_n;
1025 
1026 /* Statisics on boundaries */
1027 
1028 extern cs_real_t *bound_stat;
1029 
1041 
1044 
1048 
1049 /* Unit normals and offsets of boundary faces */
1051 
1052 /* Projection matrices for global to local coordinates on boundary faces */
1054 
1055 /*============================================================================
1056  * Public function prototypes
1057  *============================================================================*/
1058 
1059 /*----------------------------------------------------------------------------*/
1072 /*----------------------------------------------------------------------------*/
1073 
1076  int zone_id,
1077  int set_id);
1078 
1079 /*----------------------------------------------------------------------------*/
1085 /*----------------------------------------------------------------------------*/
1086 
1087 void
1089 
1090 /*----------------------------------------------------------------------------*/
1096 /*----------------------------------------------------------------------------*/
1097 
1100 
1101 /*----------------------------------------------------------------------------*/
1110 /*----------------------------------------------------------------------------*/
1111 
1114 
1115 /*----------------------------------------------------------------------------
1116  * Provide access to cs_lagr_particle_counter_t
1117  *
1118  * needed to initialize structure with GUI
1119  *----------------------------------------------------------------------------*/
1120 
1123 
1124 /*----------------------------------------------------------------------------
1125  * Provide access to cs_lagr_reentrained_model_t
1126  *
1127  * needed to initialize structure with GUI
1128  *----------------------------------------------------------------------------*/
1129 
1132 
1133 /*----------------------------------------------------------------------------
1134  * Provide access to cs_lagr_precipitation_model_t
1135  *
1136  * needed to initialize structure with GUI
1137  *----------------------------------------------------------------------------*/
1138 
1141 
1142 /*----------------------------------------------------------------------------
1143  * Provide access to cs_lagr_clogging_model_t
1144  *
1145  * needed to initialize structure with GUI
1146  *----------------------------------------------------------------------------*/
1147 
1150 
1151 /*----------------------------------------------------------------------------
1152  * Provide access to cs_lagr_consolidation_model_t
1153  *
1154  * needed to initialize structure with GUI
1155  *----------------------------------------------------------------------------*/
1156 
1159 
1160 /*----------------------------------------------------------------------------
1161  * Provide access to cs_lagr_time_step_t
1162  *
1163  * needed to initialize structure with GUI
1164  *----------------------------------------------------------------------------*/
1165 
1167 cs_get_lagr_time_step(void);
1168 
1169 /*----------------------------------------------------------------------------
1170  * Provide access to cs_lagr_source_terms_t
1171  *
1172  * needed to initialize structure with GUI
1173  *----------------------------------------------------------------------------*/
1174 
1177 
1178 /*----------------------------------------------------------------------------
1179  * Provide access to cs_lagr_encrustation_t
1180  *
1181  * needed to initialize structure with GUI
1182  *----------------------------------------------------------------------------*/
1183 
1186 
1187 /*----------------------------------------------------------------------------
1188  * Provide access to cs_lagr_physico_chemical_t
1189  *
1190  * needed to initialize structure with GUI
1191  *----------------------------------------------------------------------------*/
1192 
1195 
1196 /*----------------------------------------------------------------------------
1197  * Provide access to cs_lagr_brownian_t
1198  *
1199  * needed to initialize structure with GUI
1200  *----------------------------------------------------------------------------*/
1201 
1203 cs_get_lagr_brownian(void);
1204 
1205 /*----------------------------------------------------------------------------*/
1211 /*----------------------------------------------------------------------------*/
1212 
1215 
1216 /*----------------------------------------------------------------------------*/
1222 /*----------------------------------------------------------------------------*/
1223 
1226 
1227 /*----------------------------------------------------------------------------*/
1233 /*----------------------------------------------------------------------------*/
1234 
1237 
1238 /*----------------------------------------------------------------------------*/
1242 /*----------------------------------------------------------------------------*/
1243 
1244 void
1246 
1247 /*----------------------------------------------------------------------------
1248  * Destroy finalize the global cs_lagr_internal_condition_t structure.
1249  *----------------------------------------------------------------------------*/
1250 
1251 void
1253 
1254 /*----------------------------------------------------------------------------
1255  * Provide access to cs_lagr_boundary_interactions_t
1256  *
1257  * needed to initialize structure with GUI
1258  *----------------------------------------------------------------------------*/
1259 
1262 
1263 /*----------------------------------------------------------------------------
1264  * Provide access to cs_lagr_extra_module_t
1265  *----------------------------------------------------------------------------*/
1266 
1269 
1270 /*----------------------------------------------------------------------------
1271  * Prepare for execution of the Lagrangian model.
1272  *
1273  * This should be called before the fist call to cs_lagr_solve_time_step.
1274  *
1275  * parameters:
1276  * dt <-- time step (per cell)
1277  *----------------------------------------------------------------------------*/
1278 
1279 void
1281 
1282 /*--------------------------------------------------------------------
1283  * Execute one time step of the Lagrangian model.
1284  *
1285  * This is the main function for that model.
1286  *
1287  * parameters:
1288  * itypfb <-- boundary face types
1289  * dt <-- time step (per cell)
1290  *-------------------------------------------------------------------- */
1291 
1292 void
1293 cs_lagr_solve_time_step(const int itypfb[],
1294  const cs_real_t *dt);
1295 
1296 /*----------------------------------------------------------------------------
1297  * Return pointers to lagrangian arrays
1298  *
1299  * This function is intended for use by Fortran wrappers.
1300  *
1301  * parameters:
1302  * dim_bound_stat --> dimensions for bound_stat pointer
1303  * p_bound_stat --> bound_stat pointer
1304  *----------------------------------------------------------------------------*/
1305 
1306 void
1307 cs_lagr_init_c_arrays(int dim_cs_glob_lagr_source_terms[2],
1308  cs_real_t **p_cs_glob_lagr_source_terms);
1309 
1310 /*----------------------------------------------------------------------------
1311  * Free lagrangian arrays
1312  *
1313  * This function is intended for use by Fortran wrappers.
1314  *----------------------------------------------------------------------------*/
1315 
1316 void
1317 cs_lagr_finalize(void);
1318 
1319 /*----------------------------------------------------------------------------*/
1320 
1322 
1323 #endif /* __CS_LAGR_H__ */
cs_real_t * bound_stat
int temperature_profile
Definition: cs_lagr.h:488
const cs_lagr_particle_counter_t * cs_glob_lagr_particle_counter
Definition: cs_lagr.h:606
cs_real_t cmu
Definition: cs_lagr.h:899
int itsli
Definition: cs_lagr.h:541
cs_lagr_zone_data_t * cs_lagr_get_boundary_conditions(void)
Return pointer to the main boundary conditions structure.
Definition: cs_lagr.c:1341
cs_gnum_t n_g_exit
Definition: cs_lagr.h:301
Definition: cs_lagr.h:118
cs_real_t csthpp
Definition: cs_lagr.h:425
cs_real_t fouling_index
Definition: cs_lagr.h:505
unsigned long cs_gnum_t
global mesh entity number
Definition: cs_defs.h:281
Definition: cs_lagr.h:338
int ilapoi
Definition: cs_lagr.h:210
Definition: cs_lagr.h:433
cs_real_t * visref
Definition: cs_lagr.h:667
int idiffl
Definition: cs_lagr.h:203
int coal_number
Definition: cs_lagr.h:490
int set_id
Definition: cs_lagr.h:464
cs_real_t slope_consol
Definition: cs_lagr.h:437
cs_real_t * enc2
Definition: cs_lagr.h:655
Definition: cs_lagr.h:95
cs_real_t phi_p
Definition: cs_lagr.h:690
cs_real_t cp
Definition: cs_lagr.h:507
cs_lagr_boundary_interactions_t * cs_get_lagr_boundary_interactions(void)
Definition: cs_lagr.c:1437
Definition: cs_lagr.h:96
Definition: cs_lagr.h:966
int iclogh
Definition: cs_lagr.h:839
cs_real_t temperature
Definition: cs_lagr.h:498
cs_field_t * cvar_r11
Definition: cs_lagr.h:952
cs_real_t * enc1
Definition: cs_lagr.h:652
void cs_lagr_injection_set_default(cs_lagr_injection_set_t *zis)
Initialize injection set data structure fields to defaults.
Definition: cs_lagr.c:1076
Definition: cs_lagr.h:445
int io2
Definition: cs_lagr.h:969
int npstf
Definition: cs_lagr.h:727
int deposition
Definition: cs_lagr.h:254
Field descriptor.
Definition: cs_field.h:124
cs_lagr_physico_chemical_t * cs_get_lagr_physico_chemical(void)
Definition: cs_lagr.c:1285
cs_real_t * e2ch
Definition: cs_lagr.h:988
cs_real_t rayasp
Definition: cs_lagr.h:393
cs_real_t w_exit
Definition: cs_lagr.h:322
cs_real_t * uetbor
Definition: cs_lagr.h:908
cs_real_t added_mass_const
Definition: cs_lagr.h:230
Definition: cs_lagr.h:98
int itsco
Definition: cs_lagr.h:566
int ires
Definition: cs_lagr.h:791
int ncharm2
Definition: cs_lagr.h:125
Definition: cs_lagr.h:107
int nstits
Definition: cs_lagr.h:583
int iencma
Definition: cs_lagr.h:800
cs_lagr_encrustation_t * cs_get_lagr_encrustation(void)
Definition: cs_lagr.c:1273
int clogging
Definition: cs_lagr.h:267
Definition: cs_lagr.h:401
cs_lagr_injection_set_t ** injection_set
Definition: cs_lagr.h:615
cs_real_t * thcdch
Definition: cs_lagr.h:997
cs_real_t cppart
Definition: cs_lagr.h:372
cs_lnum_t iconsol
Definition: cs_lagr.h:435
int fouling
Definition: cs_lagr.h:274
int nvisbr
Definition: cs_lagr.h:136
int ngazem
Definition: cs_lagr.h:979
char * elt_type
Definition: cs_lagr.h:618
int ivitbd
Definition: cs_lagr.h:759
int iclgst
Definition: cs_lagr.h:764
cs_real_t denasp
Definition: cs_lagr.h:391
int ihdepm
Definition: cs_lagr.h:845
Definition: cs_lagr.h:111
#define BEGIN_C_DECLS
Definition: cs_defs.h:461
Definition: cs_lagr.h:97
int n_zones
Definition: cs_lagr.h:610
int iencdi
Definition: cs_lagr.h:803
Definition: cs_lagr.h:94
const cs_lagr_zone_data_t * cs_glob_lagr_boundary_conditions
int itytur
Definition: cs_lagr.h:881
Definition: cs_lagr.h:520
int n_user_variables
Definition: cs_lagr.h:277
Definition: cs_lagr.h:87
int iencra
Definition: cs_lagr.h:644
int ireent
Definition: cs_lagr.h:383
cs_lagr_consolidation_model_t * cs_get_lagr_consolidation_model(void)
Definition: cs_lagr.c:1237
int itsfp4
Definition: cs_lagr.h:569
cs_real_t * rho0ch
Definition: cs_lagr.h:994
int * iusb
Definition: cs_lagr.h:809
Definition: cs_lagr.h:106
cs_real_t * a2ch
Definition: cs_lagr.h:987
int isuila
Definition: cs_lagr.h:175
int itsti
Definition: cs_lagr.h:554
char ** nombrd
Definition: cs_lagr.h:870
Definition: cs_lagr.h:85
Definition: cs_lagr.h:237
Definition: cs_lagr.h:92
int nusbrd
Definition: cs_lagr.h:120
cs_real_4_t * cs_glob_lagr_b_u_normal
int isttio
Definition: cs_lagr.h:168
cs_lagr_particle_counter_t * cs_lagr_get_particle_counter(void)
Get read/write pointer to global particle counter.
Definition: cs_lagr.c:1121
int location_id
Definition: cs_lagr.h:465
cs_real_t * wmolat
Definition: cs_lagr.h:977
cs_field_t * scal_t
Definition: cs_lagr.h:917
Definition: cs_lagr.h:89
int idirla
Definition: cs_lagr.h:191
cs_field_t * cvar_k
Definition: cs_lagr.h:943
int location_id
Definition: cs_lagr.h:608
int iflmbd
Definition: cs_lagr.h:749
cs_real_t * st_val
Definition: cs_lagr.h:599
int nlayer
Definition: cs_lagr.h:126
cs_real_t cs_real_4_t[4]
vector of 4 floating-point values
Definition: cs_defs.h:310
double cs_real_t
Floating-point value.
Definition: cs_defs.h:297
cs_real_t jamlim
Definition: cs_lagr.h:423
int iencnb
Definition: cs_lagr.h:797
Definition: cs_lagr.h:108
int dlvo
Definition: cs_lagr.h:255
cs_real_t lambda_vdw
Definition: cs_lagr.h:684
cs_real_t espasg
Definition: cs_lagr.h:390
int iencck
Definition: cs_lagr.h:806
cs_lagr_injection_profile_compute_t * injection_profile_func
Definition: cs_lagr.h:474
cs_real_t * xashch
Definition: cs_lagr.h:996
Definition: cs_lagr.h:88
int idpvar
Definition: cs_lagr.h:350
int ihdiam
Definition: cs_lagr.h:851
int * imoybr
Definition: cs_lagr.h:827
void * injection_profile_input
Definition: cs_lagr.h:477
cs_lagr_coal_comb_t * cs_glob_lagr_coal_comb
cs_real_t stat_weight
Definition: cs_lagr.h:509
cs_real_t prefth
Definition: cs_lagr.h:973
int t_order
Definition: cs_lagr.h:178
cs_gnum_t n_inject
Definition: cs_lagr.h:467
cs_field_t * x_eau
Definition: cs_lagr.h:938
cs_real_t * tprenc
Definition: cs_lagr.h:661
cs_real_t flow_rate
Definition: cs_lagr.h:511
cs_real_t ttclag
Definition: cs_lagr.h:454
cs_real_t valen
Definition: cs_lagr.h:696
int ntersl
Definition: cs_lagr.h:135
cs_lagr_physico_chemical_t * cs_glob_lagr_physico_chemical
cs_field_t * cpro_cp
Definition: cs_lagr.h:931
int iadded_mass
Definition: cs_lagr.h:227
Definition: cs_lagr.h:715
cs_real_t vmax
Definition: cs_lagr.h:593
int n_temperature_layers
Definition: cs_lagr.h:252
int ncharm
Definition: cs_lagr.h:983
int inbr
Definition: cs_lagr.h:779
int iang
Definition: cs_lagr.h:785
int nor
Definition: cs_lagr.h:448
int inbrbd
Definition: cs_lagr.h:742
Definition: cs_lagr.h:86
cs_real_33_t * cs_glob_lagr_b_face_proj
cs_lagr_zone_data_t * cs_lagr_get_volume_conditions(void)
Return pointer to the main volume conditions structure.
Definition: cs_lagr.c:1365
cs_field_t * cvar_r33
Definition: cs_lagr.h:956
int cluster
Definition: cs_lagr.h:493
int ltsdyn
Definition: cs_lagr.h:525
Definition: cs_lagr.h:109
int * itsmv2
Definition: cs_lagr.h:563
cs_real_t diftl0
Definition: cs_lagr.h:896
int npstft
Definition: cs_lagr.h:735
int iatc
Definition: cs_lagr.h:972
cs_lagr_reentrained_model_t * cs_get_lagr_reentrained_model(void)
Provide access to cs_lagr_reentrained_model_t.
Definition: cs_lagr.c:1200
cs_field_t * x_m
Definition: cs_lagr.h:939
int ih2o
Definition: cs_lagr.h:968
cs_lagr_consolidation_model_t * cs_glob_lagr_consolidation_model
int roughness
Definition: cs_lagr.h:259
int nusbor
Definition: cs_lagr.h:719
cs_field_t * x_oxyd
Definition: cs_lagr.h:937
void cs_lagr_finalize_zone_conditions(void)
Finalize the global boundary and volume condition structures.
Definition: cs_lagr.c:1389
Definition: cs_lagr.h:630
int iscovc
Definition: cs_lagr.h:842
cs_lagr_specific_physics_t * cs_get_lagr_specific_physics(void)
Provide access to cs_lagr_specific_physics_t.
Definition: cs_lagr.c:1187
cs_lagr_bc_type_t
Definition: cs_lagr.h:83
Definition: cs_field_pointer.h:65
int idistu
Definition: cs_lagr.h:197
int itste
Definition: cs_lagr.h:550
int * itsmv1
Definition: cs_lagr.h:560
cs_real_t w_total
Definition: cs_lagr.h:316
int modcpl
Definition: cs_lagr.h:186
int itske
Definition: cs_lagr.h:546
cs_real_t diameter
Definition: cs_lagr.h:406
cs_real_t * a1ch
Definition: cs_lagr.h:984
int ltsmas
Definition: cs_lagr.h:529
cs_gnum_t n_g_cumulative_failed
Definition: cs_lagr.h:292
cs_real_t * ehetch
Definition: cs_lagr.h:993
static int input(void)
cs_field_t * luminance
Definition: cs_lagr.h:934
cs_real_t * solub
Definition: cs_lagr.h:412
cs_field_t * cromf
Definition: cs_lagr.h:911
cs_gnum_t n_g_resuspended
Definition: cs_lagr.h:310
integer, dimension(:), pointer, save itypfb
Definition: pointe.f90:116
cs_real_t * e1ch
Definition: cs_lagr.h:986
cs_real_t w_new
Definition: cs_lagr.h:319
Definition: cs_lagr.h:93
int * iym1
Definition: cs_lagr.h:981
Definition: cs_lagr.h:461
int iencckbd
Definition: cs_lagr.h:776
int iclogt
Definition: cs_lagr.h:836
int npts
Definition: cs_lagr.h:586
cs_real_t trefth
Definition: cs_lagr.h:974
cs_field_t * cvar_omg
Definition: cs_lagr.h:949
int ntxerr
Definition: cs_lagr.h:590
cs_lagr_deposition_state_t
Definition: cs_lagr.h:104
Definition: cs_lagr.h:877
Definition: cs_lagr.h:421
cs_gnum_t n_g_fouling
Definition: cs_lagr.h:307
int ltsthe
Definition: cs_lagr.h:537
cs_real_t * xwatch
Definition: cs_lagr.h:995
const cs_lagr_zone_data_t * cs_glob_lagr_volume_conditions
cs_real_t visls0
Definition: cs_lagr.h:902
cs_real_t velocity_magnitude
Definition: cs_lagr.h:495
cs_real_t w_resuspended
Definition: cs_lagr.h:331
cs_field_t * temperature
Definition: cs_lagr.h:918
cs_field_t * pressure
Definition: cs_lagr.h:914
int iencmabd
Definition: cs_lagr.h:770
cs_lagr_specific_physics_t * cs_glob_lagr_specific_physics
cs_lagr_time_scheme_t * cs_glob_lagr_time_scheme
cs_real_t cstham
Definition: cs_lagr.h:680
Definition: cs_lagr.h:706
cs_lagr_internal_condition_t * cs_glob_lagr_internal_conditions
int consolidation
Definition: cs_lagr.h:271
cs_real_t * cp2ch
Definition: cs_lagr.h:991
int injection_frequency
Definition: cs_lagr.h:470
int * nbprec
Definition: cs_lagr.h:410
int iangbd
Definition: cs_lagr.h:754
int zone_id
Definition: cs_lagr.h:463
int velocity_profile
Definition: cs_lagr.h:483
cs_field_t * cvar_r22
Definition: cs_lagr.h:954
cs_gnum_t n_g_failed
Definition: cs_lagr.h:313
cs_lagr_model_t * cs_glob_lagr_model
cs_real_t * y2ch
Definition: cs_lagr.h:990
int ihdepv
Definition: cs_lagr.h:848
int ndlaim
Definition: cs_lagr.h:123
int * i_face_zone_id
Definition: cs_lagr.h:632
cs_field_t * cvar_ep
Definition: cs_lagr.h:946
cs_real_t force_consol
Definition: cs_lagr.h:438
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:293
int * zone_type
Definition: cs_lagr.h:611
cs_lagr_clogging_model_t * cs_glob_lagr_clogging_model
void() cs_lagr_injection_profile_compute_t(int zone_id, int location_id, const void *input, cs_lnum_t n_elts, const cs_lnum_t elt_ids[], cs_real_t profile[])
Function pointer for computation of particle injection profile.
Definition: cs_lagr.h:73
void cs_lagr_solve_time_step(const int itypfb[], const cs_real_t *dt)
Definition: cs_lagr.c:1512
cs_real_t dtp
Definition: cs_lagr.h:451
int iturb
Definition: cs_lagr.h:880
int physical_model
Definition: cs_lagr.h:249
cs_real_t tstatp
Definition: cs_lagr.h:862
cs_real_t epseau
Definition: cs_lagr.h:687
int cs_glob_lagr_log_frequency_n
const cs_lagr_const_dim_t * cs_glob_lagr_const_dim
Definition: cs_lagr.h:284
int nbrclas
Definition: cs_lagr.h:404
cs_real_t * wmole
Definition: cs_lagr.h:980
int iilagr
Definition: cs_lagr.h:157
int iflow
Definition: cs_lagr.h:387
cs_field_t * cpro_viscls
Definition: cs_lagr.h:928
cs_lagr_clogging_model_t * cs_get_lagr_clogging_model(void)
Definition: cs_lagr.c:1225
int ivit
Definition: cs_lagr.h:788
int ncharm
Definition: cs_lagr.h:887
int precipitation
Definition: cs_lagr.h:273
cs_lagr_boundary_interactions_t * cs_glob_lagr_boundary_interactions
int itpvar
Definition: cs_lagr.h:345
#define END_C_DECLS
Definition: cs_defs.h:462
cs_lagr_source_terms_t * cs_get_lagr_source_terms(void)
Definition: cs_lagr.c:1261
int ico
Definition: cs_lagr.h:970
cs_real_t tpart
Definition: cs_lagr.h:363
cs_gnum_t n_g_total
Definition: cs_lagr.h:295
cs_real_t mporos
Definition: cs_lagr.h:424
cs_real_t rate_consol
Definition: cs_lagr.h:436
int inclgt
Definition: cs_lagr.h:833
cs_real_t * ahetch
Definition: cs_lagr.h:992
cs_real_t * h02ch
Definition: cs_lagr.h:985
cs_lagr_particle_counter_t * cs_lagr_update_particle_counter(void)
Update global particle counter.
Definition: cs_lagr.c:1138
cs_real_t rho
Definition: cs_lagr.h:408
cs_real_t dnpenc
Definition: cs_lagr.h:670
cs_gnum_t n_g_cumulative_total
Definition: cs_lagr.h:288
cs_lagr_brownian_t * cs_glob_lagr_brownian
int iencdibd
Definition: cs_lagr.h:773
cs_real_t * y1ch
Definition: cs_lagr.h:989
int resuspension
Definition: cs_lagr.h:263
cs_lagr_precipitation_model_t * cs_glob_lagr_precipitation_model
int ihsum
Definition: cs_lagr.h:854
cs_lagr_dim_t * cs_glob_lagr_dim
cs_real_t cs_real_33_t[3][3]
3x3 matrix of floating-point values
Definition: cs_defs.h:315
cs_real_t diameter
Definition: cs_lagr.h:500
int iflm
Definition: cs_lagr.h:782
cs_lagr_extra_module_t * cs_get_lagr_extra_module(void)
Definition: cs_lagr.c:1448
cs_lagr_brownian_t * cs_get_lagr_brownian(void)
Definition: cs_lagr.c:1297
int * n_injection_sets
Definition: cs_lagr.h:613
int ncharb
Definition: cs_lagr.h:884
int inclg
Definition: cs_lagr.h:830
int iflres
Definition: cs_lagr.h:794
cs_real_t fion
Definition: cs_lagr.h:699
cs_field_t * viscl
Definition: cs_lagr.h:925
cs_real_t diameter_variance
Definition: cs_lagr.h:501
cs_lagr_time_step_t * cs_glob_lagr_time_step
cs_lagr_source_terms_t * cs_glob_lagr_source_terms
Definition: cs_lagr.h:639
cs_real_t w_deposited
Definition: cs_lagr.h:325
void cs_lagr_init_c_arrays(int dim_cs_glob_lagr_source_terms[2], cs_real_t **p_cs_glob_lagr_source_terms)
Definition: cs_lagr.c:949
cs_real_t w_fouling
Definition: cs_lagr.h:328
cs_field_t * t_gaz
Definition: cs_lagr.h:919
cs_lagr_extra_module_t * cs_glob_lagr_extra_module
cs_real_t * particle_flow_rate
Definition: cs_lagr.h:621
int n_stat_classes
Definition: cs_lagr.h:276
cs_real_t diam_mean
Definition: cs_lagr.h:426
Definition: cs_lagr.h:91
cs_real_t modyeq
Definition: cs_lagr.h:392
cs_real_t density
Definition: cs_lagr.h:503
cs_lagr_encrustation_t * cs_glob_lagr_encrustation
cs_lagr_precipitation_model_t * cs_get_lagr_precipitation_model(void)
Provide access to cs_lagr_precipitation_model_t.
Definition: cs_lagr.c:1213
cs_lagr_time_step_t * cs_get_lagr_time_step(void)
Definition: cs_lagr.c:1249
cs_gnum_t n_g_deposited
Definition: cs_lagr.h:304
int impvar
Definition: cs_lagr.h:355
cs_field_t * vel
Definition: cs_lagr.h:922
cs_real_t phi_s
Definition: cs_lagr.h:693
void cs_lagr_finalize(void)
Definition: cs_lagr.c:976
Definition: cs_lagr.h:90
Definition: cs_lagr.h:677
int icp
Definition: cs_lagr.h:893
int iencnbbd
Definition: cs_lagr.h:767
int itsmas
Definition: cs_lagr.h:557
cs_real_t emissivity
Definition: cs_lagr.h:513
cs_lagr_internal_condition_t * cs_lagr_get_internal_conditions(void)
Return pointer to the main internal conditions structure.
Definition: cs_lagr.c:1312
int lamvbr
Definition: cs_lagr.h:708
cs_lagr_reentrained_model_t * cs_glob_lagr_reentrained_model
cs_real_t rayasg
Definition: cs_lagr.h:394
cs_gnum_t n_g_new
Definition: cs_lagr.h:298
cs_field_t * cvar_rij
Definition: cs_lagr.h:959
Definition: cs_lagr.h:379
int radiative_model
Definition: cs_lagr.h:890
int npencr
Definition: cs_lagr.h:647
cs_real_t tmamax
Definition: cs_lagr.h:596
Definition: cs_lagr.h:110
void cs_lagr_finalize_internal_cond(void)
Definition: cs_lagr.c:1420
cs_real_t * mp_diss
Definition: cs_lagr.h:414
cs_lagr_injection_set_t * cs_lagr_get_injection_set(cs_lagr_zone_data_t *zone_data, int zone_id, int set_id)
Provide access to injection set structure.
Definition: cs_lagr.c:1049
Definition: cs_lagr.h:143
int natom
Definition: cs_lagr.h:976
void cs_lagr_solve_initialize(const cs_real_t *dt)
Definition: cs_lagr.c:1463
Definition: cs_lagr.h:133