7.0
general 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-2021 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 
97 
99 /*---------------------------------------*/
100 
101 enum {
106 };
107 
122 typedef enum {
128 
130 /*---------------------------------*/
131 
132 typedef enum {
133 
136 
139 
140  /*< Impose spheroids (Jeffery equations for transport) */
142 
144 
146 /*---------------------------------------*/
147 
148 enum {
152 };
153 
155 /*----------------------*/
156 
157 typedef struct {
158 
159  int nusbrd;
162  int ndlaim;
164  int ncharm2;
165  int nlayer;
168 
170 /*---------------------*/
171 
172 typedef struct {
173 
174  int ntersl;
177 } cs_lagr_dim_t;
178 
180 /*-----------------------------------------------------*/
181 
182 typedef struct {
183 
196  int iilagr;
197 
198  /* indicates the steady (=1) or unsteady (=0) state of the
199  continuous phase flow
200  in particular, \ref isttio = 1 is needed in order to:
201  calculate steady statistics in the volume or at the boundaries
202  (starting respectively from the iterations
203  \ref cs_lagr_stat_options_t::nstist "nstist")
204  and calculate time-averaged two-way coupling source terms (from the
205  time step \ref nstits).
206  Useful if \ref iilagr = CS_LAGR_ONEWAY_COUPLING
207  or \ref iilagr = CS_LAGR_TWOWAY_COUPLING
208  (if \ref iilagr = CS_LAGR_FROZEN_CONTINUOUS_PHASE,
209  then \ref isttio=1 automatically) */
210  int isttio;
211 
217  int isuila;
218 
220  int t_order;
221 
227  int ilapoi;
228 
245 
248 
250 
252 /*-----------------------------------------------------------*/
253 
254 typedef struct {
255 
268 
275  int modcpl;
276 
281  int idistu;
282 
287  int idiffl;
288 
292 
293  int dlvo;
294 
298 
302 
305  int clogging;
306 
310  int shape;
311 
315 
317  int fouling;
318 
322 
326 
328 
330 
332 
334 /*----------------------------------------------*/
335 
336 typedef struct {
337 
341 
345 
348 
351 
354 
357 
360 
363 
366 
369 
372 
375 
378 
381 
384 
387 
390 
392 
394 /* ---------------------------------------------------------- */
395 
396 typedef struct {
397 
398  /* activation (=1) or not (=0) of an evolution equation on the particle
399  temperature (in degrees Celsius).
400  Useful if \ref physical_model=1 and if there is a thermal scalar
401  associated with the continuous phase.
402  */
403  int itpvar;
404 
405  /* activation (=1) or not (=0) of an evolution equation on the particle
406  diameter. Useful if \ref physical_model = 1.
407  */
408  int idpvar;
409 
410  /* activation (=1) or not (=0) of an evolution equation on the particle mass
411  Useful if \ref physical_model = 1
412  */
413  int impvar;
414 
415  /* initialization temperature (in degree Celsius) for the particles already
416  present in the calculation domain when an evolution equation on
417  the particle temperature is activated during a calculation
418  (\ref physical_model = 1 and \ref itpvar = 1).
419  Useful if \ref isuila = 1 and \ref itpvar = 0 in the previous calculation.
420  */
422 
423  /* initialization value for the specific heat (\f$ J.kg^{-1}.K^{-1} \f$)
424  of the particles already present
425  in the calculation domain when an evolution equation
426  on the particle temperature is activated during a calculation
427  (\ref physical_model = 1 and \ref itpvar = 1).
428  Useful if \ref isuila = 1 and \ref itpvar = 0 in the previous calculation
429  */
431 
433 
435 /* -------------------------------------- */
436 
437 typedef struct {
438 
439  /* - 0: no resuspension model
440  - 1: resuspension model */
441  int ireent;
442 
443  /* - 0: no head losses calculation for influence of the deposit on the flow
444  - 1: head losses calculation for influence of the deposit on the flow */
445  int iflow;
446 
447  /* Parameters of the particle resuspension model*/
453 
455 
457 /* -------------------------------------- */
458 
459 typedef struct {
460 
461  /* number of particle classes*/
462  int nbrclas;
463  /* diameter of particles formed by precipitation*/
465  /* density of particles formed by precipitation*/
467  /* number of precipitated particles */
468  int *nbprec;
469  /* */
471  /* number of precipitated particles */
473 
475 
477 /* ------------------------------------------ */
478 
479 typedef struct {
480 
485 
487 
489 /* ------------------------------------------------ */
490 
491 typedef struct {
492 
494 
496 
498 /* ------------------------------------------ */
499 
500 typedef struct {
501 
507 
509 
511 /* ------------------------------------------ */
512 
513 typedef struct {
514 
517  cs_real_t (*function_kernel)(cs_lnum_t);
518 
520 
522 /* ----------------------------------------------- */
523 
524 typedef struct {
525 
530 
532 
534 /*----------------------------------*/
535 
536 typedef struct {
537 
538  /* current step id (for 2nd order scheme) */
539  int nor;
540 
541  /* duration of a Lagrangian iteration */
543 
544  /* physical time of the Lagrangian simulation */
546 
548 
550 /*------------------------------------------------------------------*/
551 
552 typedef struct {
553 
554  int zone_id;
555  int set_id;
566 
569 
575 
580 
585  int cluster;
591  cs_real_t velocity[3];
600  cs_real_t orientation[3];
601  cs_real_t radii[3];
602  cs_real_t angular_vel[3];
605  cs_real_t euler[4];
607  cs_real_t shape_param[4];
625 
627 /*----------------------------------------------*/
628 
629 typedef struct {
630 
634  int ltsdyn;
635 
640  int ltsmas;
641 
642  /* if \ref physical_model = 1 and \ref itpvar = 1, \ref ltsthe
643  activates (=1) or not (=0) the two-way coupling on temperature.
644  if \ref physical_model = 2, \ref ltsthe activates (=1) or not (=0) the
645  two-way coupling on the eulerian variables related to pulverised
646  coal combustion.
647  Useful if \ref iilagr = CS_LAGR_TWOWAY_COUPLING */
648  int ltsthe;
649 
652  int itsli;
653 
654  /* explicit source term for the turbulent dissipation and the
655  turbulent energy if the \f$k-\varepsilon\f$ turbulence model is used
656  for the continuous phase */
657  int itske;
658 
661  int itste;
662 
665  int itsti;
666 
668  int itsmas;
669 
670  /* source term for the light volatile matters */
671  int *itsmv1; //ncharm2
672 
673  /* source term for the heavy volatile matters */
674  int *itsmv2; //ncharm2
675 
677  int itsco;
678 
680  int itsfp4;
681 
695  int nstits;
696 
698  int npts;
699 
702  int ntxerr;
703 
706 
709 
712 
714 
716 /*----------------------------------------------------*/
717 
718 typedef struct {
719 
722  int n_zones;
723  int *zone_type;
730  char *elt_type;
738 
740 /*---------------------------------------*/
741 
742 typedef struct {
743 
745 
747 
749 /*--------------------------------*/
750 
751 typedef struct {
752 
753  /* Activates (=1) or not (=0) the option of coal particle fouling.
754  It then is necessary to specify the domain boundaries
755  on which fouling may take place. Useful if \ref physical_model = 2*/
756  int iencra;
757 
758  /* encrustation data*/
759  int npencr;
760  // TODO cf particles->n_part_fou in cs_lagr_tracking.c
761 
762  /* encrustation data*/
763  cs_real_t *enc1; // size: ncharm2
764  /* encrustation data*/
765  cs_real_t *enc2; // size: ncharm2
766 
767  /* Limit temperature (in degree Celsius) below which the coal particles do
768  not cause any fouling (if the fouling model is activated).
769  Useful if \ref physical_model = 2 and \ref iencra = 1*/
770  cs_real_t *tprenc; // size: ncharm2
771 
772  /* Ash critical viscosity in \f$ kg.m^{-1}.s^{-1} \f$, in the fouling model
773  cf J.D. Watt et T. Fereday (J.Inst.Fuel, Vol.42-p99).
774  Useful if \ref physical_model = 2 and \ref iencra = 1*/
775  cs_real_t *visref; // size: ncharm2
776 
777  /* encrustation data */
779 
781 
783 /*-----------------------------------------*/
784 
785 typedef struct {
786 
789 
793 
796 
799 
802 
805 
808 
810 
812 /*-------------------------------*/
813 
814 typedef struct {
815 
816  int lamvbr;
819 
821 /*----------------------------------------------*/
822 
823 typedef struct {
824 
832  int npstf;
833 
840  int npstft;
841 
846 
850  int iclgst;
851 
853  int inbr;
854 
856  int inclg;
857 
859  int inclgt;
860 
862  int iclogt;
863 
865  int iclogh;
866 
868  int iscovc;
869 
870  /* id for mean of particle deposition height */
871  int ihdepm;
872 
873  /* id for variance of particle deposition height */
874  int ihdepv;
875 
876  /* id for mean diameter of deposited particles */
877  int ihdiam;
878 
879  /* id for sum of deposited particle diameters */
880  int ihsum;
881 
889 
896  char **nombrd;
897 
899 
901 /*-----------------------------------------------*/
902 
903 typedef struct {
904 
905  /* Turbulence model */
906  int iturb;
907  int itytur;
908 
909  /* cpincl */
910  int ncharb;
911 
912  /* ppppar */
913  int ncharm;
914 
915  /* radiation */
917 
918  /* icp */
919  int icp;
920 
921  /* diftl0 */
923 
924  /* cmu */
926 
927  /* visls0 */
929 
930  /* Referenced fields
931  ----------------- */
932 
933  /* wall ustar */
935 
936  /* Fluid density */
938 
939  /* Fluid pressure */
941 
942  /* Fluid temparature */
945 
946  /* Fluid velocity */
948 
949  /* Fluid viscosity */
951 
952  /* Fluid viscosity */
954 
955  /* Fluid specific heat capacity */
957 
958  /* Radiat. */
960 
961  /* Combustion */
965 
966  /* Turbulence */
967  /* Turbulent intensity */
969 
970  /* Turbulent dissipation */
972 
973  /* Omega from k-omega SST model*/
975 
976  /* Reynolds stress component Rxx */
978  /* Reynolds stress component Ryy */
980  /* Reynolds stress component Rzz */
982 
983  /* Reynolds Stress Tensor */
985 
986  /* Total pressure gradient */
988 
989  /* velocity gradient */
991 
993 
995 /*--------------------------------------------*/
996 
997 typedef struct {
998 
999  int ih2o; // cpincl
1000  int io2; // cpincl
1001  int ico; // cpincl
1002 
1003  int iatc; // ppthch
1004  cs_real_t prefth; // ppthch
1005  cs_real_t trefth; // ppthch
1006 
1007  int natom; // = 5;
1008  cs_real_t *wmolat; // dim = natom
1009 
1010  int ngazem; // = 20;
1011  cs_real_t *wmole; // ngazem
1012  int *iym1;
1013 
1014  int ncharm; // cpincl
1015  cs_real_t *a1ch; // ncharm
1029 
1031 
1032 /*============================================================================
1033  * Global variables
1034  *============================================================================*/
1035 
1039 
1043 
1046 
1049 
1052 
1053 /* Lagrangian log output every frequency_n time steps */
1054 
1055 extern int cs_glob_lagr_log_frequency_n;
1056 
1057 /* Statisics on boundaries */
1058 
1059 extern cs_real_t *bound_stat;
1060 
1066 
1069 
1077 
1080 
1084 
1085 /* Projection matrices for global to local coordinates on boundary faces */
1087 
1088 /*============================================================================
1089  * Public function prototypes
1090  *============================================================================*/
1091 
1092 /*----------------------------------------------------------------------------*/
1105 /*----------------------------------------------------------------------------*/
1106 
1109  int zone_id,
1110  int set_id);
1111 
1112 /*----------------------------------------------------------------------------*/
1118 /*----------------------------------------------------------------------------*/
1119 
1120 void
1122 
1123 /*----------------------------------------------------------------------------*/
1129 /*----------------------------------------------------------------------------*/
1130 
1133 
1134 /*----------------------------------------------------------------------------*/
1143 /*----------------------------------------------------------------------------*/
1144 
1147 
1148 /*----------------------------------------------------------------------------
1149  * Provide access to cs_lagr_particle_counter_t
1150  *
1151  * needed to initialize structure with GUI
1152  *----------------------------------------------------------------------------*/
1153 
1156 
1157 /*----------------------------------------------------------------------------
1158  * Provide access to cs_lagr_reentrained_model_t
1159  *
1160  * needed to initialize structure with GUI
1161  *----------------------------------------------------------------------------*/
1162 
1165 
1166 /*----------------------------------------------------------------------------
1167  * Provide access to cs_lagr_precipitation_model_t
1168  *
1169  * needed to initialize structure with GUI
1170  *----------------------------------------------------------------------------*/
1171 
1174 
1175 /*----------------------------------------------------------------------------
1176  * Provide access to cs_lagr_clogging_model_t
1177  *
1178  * needed to initialize structure with GUI
1179  *----------------------------------------------------------------------------*/
1180 
1183 
1184 /*----------------------------------------------------------------------------
1185  * Provide access to cs_lagr_shape_model_t
1186  *
1187  * needed to initialize structure with GUI
1188  *----------------------------------------------------------------------------*/
1189 
1192 
1193 /*----------------------------------------------------------------------------
1194  * Provide access to cs_lagr_agglomeration_model_t
1195  *
1196  * needed to initialize structure with GUI
1197  *----------------------------------------------------------------------------*/
1198 
1201 
1202 /*----------------------------------------------------------------------------
1203  * Provide access to cs_lagr_consolidation_model_t
1204  *
1205  * needed to initialize structure with GUI
1206  *----------------------------------------------------------------------------*/
1207 
1210 
1211 /*----------------------------------------------------------------------------
1212  * Provide access to cs_lagr_time_step_t
1213  *
1214  * needed to initialize structure with GUI
1215  *----------------------------------------------------------------------------*/
1216 
1218 cs_get_lagr_time_step(void);
1219 
1220 /*----------------------------------------------------------------------------
1221  * Provide access to cs_lagr_source_terms_t
1222  *
1223  * needed to initialize structure with GUI
1224  *----------------------------------------------------------------------------*/
1225 
1228 
1229 /*----------------------------------------------------------------------------
1230  * Provide access to cs_lagr_encrustation_t
1231  *
1232  * needed to initialize structure with GUI
1233  *----------------------------------------------------------------------------*/
1234 
1237 
1238 /*----------------------------------------------------------------------------
1239  * Provide access to cs_lagr_physico_chemical_t
1240  *
1241  * needed to initialize structure with GUI
1242  *----------------------------------------------------------------------------*/
1243 
1246 
1247 /*----------------------------------------------------------------------------
1248  * Provide access to cs_lagr_brownian_t
1249  *
1250  * needed to initialize structure with GUI
1251  *----------------------------------------------------------------------------*/
1252 
1254 cs_get_lagr_brownian(void);
1255 
1256 /*----------------------------------------------------------------------------*/
1262 /*----------------------------------------------------------------------------*/
1263 
1266 
1267 /*----------------------------------------------------------------------------*/
1273 /*----------------------------------------------------------------------------*/
1274 
1277 
1278 /*----------------------------------------------------------------------------*/
1284 /*----------------------------------------------------------------------------*/
1285 
1288 
1289 /*----------------------------------------------------------------------------*/
1293 /*----------------------------------------------------------------------------*/
1294 
1295 void
1297 
1298 /*----------------------------------------------------------------------------
1299  * Destroy finalize the global cs_lagr_internal_condition_t structure.
1300  *----------------------------------------------------------------------------*/
1301 
1302 void
1304 
1305 /*----------------------------------------------------------------------------
1306  * Provide access to cs_lagr_boundary_interactions_t
1307  *
1308  * needed to initialize structure with GUI
1309  *----------------------------------------------------------------------------*/
1310 
1313 
1314 /*----------------------------------------------------------------------------
1315  * Provide access to cs_lagr_extra_module_t
1316  *----------------------------------------------------------------------------*/
1317 
1320 
1321 /*----------------------------------------------------------------------------
1322  * Prepare for execution of the Lagrangian model.
1323  *
1324  * This should be called before the fist call to cs_lagr_solve_time_step.
1325  *
1326  * parameters:
1327  * dt <-- time step (per cell)
1328  *----------------------------------------------------------------------------*/
1329 
1330 void
1332 
1333 /*--------------------------------------------------------------------
1334  * Execute one time step of the Lagrangian model.
1335  *
1336  * This is the main function for that model.
1337  *
1338  * parameters:
1339  * itypfb <-- boundary face types
1340  * dt <-- time step (per cell)
1341  *-------------------------------------------------------------------- */
1342 
1343 void
1344 cs_lagr_solve_time_step(const int itypfb[],
1345  const cs_real_t *dt);
1346 
1347 /*----------------------------------------------------------------------------
1348  * Return pointers to lagrangian arrays
1349  *
1350  * This function is intended for use by Fortran wrappers.
1351  *
1352  * parameters:
1353  * dim_bound_stat --> dimensions for bound_stat pointer
1354  * p_bound_stat --> bound_stat pointer
1355  *----------------------------------------------------------------------------*/
1356 
1357 void
1358 cs_lagr_init_c_arrays(int dim_cs_glob_lagr_source_terms[2],
1359  cs_real_t **p_cs_glob_lagr_source_terms);
1360 
1361 /*----------------------------------------------------------------------------
1362  * Free lagrangian arrays
1363  *
1364  * This function is intended for use by Fortran wrappers.
1365  *----------------------------------------------------------------------------*/
1366 
1367 void
1368 cs_lagr_finalize(void);
1369 
1370 /*----------------------------------------------------------------------------*/
1371 
1373 
1374 #endif /* __CS_LAGR_H__ */
cs_real_t * bound_stat
Definition: cs_lagr.h:89
int temperature_profile
Definition: cs_lagr.h:579
const cs_lagr_particle_counter_t * cs_glob_lagr_particle_counter
Definition: cs_lagr.h:718
cs_real_t cmu
Definition: cs_lagr.h:925
int itsli
Definition: cs_lagr.h:652
Definition: cs_lagr.h:149
cs_lagr_zone_data_t * cs_lagr_get_boundary_conditions(void)
Return pointer to the main boundary conditions structure.
Definition: cs_lagr.c:1583
cs_gnum_t n_g_exit
Definition: cs_lagr.h:353
Definition: cs_lagr.h:157
cs_real_t csthpp
Definition: cs_lagr.h:483
cs_real_t fouling_index
Definition: cs_lagr.h:614
unsigned long cs_gnum_t
global mesh entity number
Definition: cs_defs.h:286
Definition: cs_lagr.h:396
Definition: cs_lagr.h:141
int ilapoi
Definition: cs_lagr.h:227
Definition: cs_lagr.h:524
Definition: cs_lagr.h:94
Definition: cs_lagr.h:88
cs_real_t * visref
Definition: cs_lagr.h:775
int coal_number
Definition: cs_lagr.h:581
int set_id
Definition: cs_lagr.h:555
cs_real_t slope_consol
Definition: cs_lagr.h:528
cs_real_t * enc2
Definition: cs_lagr.h:765
cs_real_t w_merged
Definition: cs_lagr.h:380
Definition: cs_lagr.h:105
cs_field_t * ustar
Definition: cs_lagr.h:934
cs_real_t phi_p
Definition: cs_lagr.h:798
cs_real_t cp
Definition: cs_lagr.h:616
cs_lagr_boundary_interactions_t * cs_get_lagr_boundary_interactions(void)
Definition: cs_lagr.c:1679
Definition: cs_lagr.h:997
int iclogh
Definition: cs_lagr.h:865
cs_real_t temperature
Definition: cs_lagr.h:593
cs_field_t * cvar_r11
Definition: cs_lagr.h:977
cs_real_t * enc1
Definition: cs_lagr.h:763
cs_real_33_t * grad_vel
Definition: cs_lagr.h:990
void cs_lagr_injection_set_default(cs_lagr_injection_set_t *zis)
Initialize injection set data structure fields to defaults.
Definition: cs_lagr.c:1258
Definition: cs_lagr.h:536
int io2
Definition: cs_lagr.h:1000
cs_lagr_module_status_t
Definition: cs_lagr.h:122
int npstf
Definition: cs_lagr.h:832
int deposition
Definition: cs_lagr.h:291
Field descriptor.
Definition: cs_field.h:125
cs_lagr_physico_chemical_t * cs_get_lagr_physico_chemical(void)
Definition: cs_lagr.c:1528
cs_real_t * e2ch
Definition: cs_lagr.h:1019
cs_real_t rayasp
Definition: cs_lagr.h:451
cs_real_t w_exit
Definition: cs_lagr.h:377
cs_real_t added_mass_const
Definition: cs_lagr.h:247
int itsco
Definition: cs_lagr.h:677
int ncharm2
Definition: cs_lagr.h:164
int nstits
Definition: cs_lagr.h:695
cs_lagr_encrustation_t * cs_get_lagr_encrustation(void)
Definition: cs_lagr.c:1516
int clogging
Definition: cs_lagr.h:305
Definition: cs_lagr.h:459
cs_lagr_injection_set_t ** injection_set
Definition: cs_lagr.h:727
cs_real_t * thcdch
Definition: cs_lagr.h:1028
cs_real_t cppart
Definition: cs_lagr.h:430
cs_lnum_t iconsol
Definition: cs_lagr.h:526
cs_lagr_agglomeration_model_t * cs_get_lagr_agglomeration_model(void)
Definition: cs_lagr.c:1468
int fouling
Definition: cs_lagr.h:317
int ngazem
Definition: cs_lagr.h:1010
char * elt_type
Definition: cs_lagr.h:730
int iclgst
Definition: cs_lagr.h:850
cs_real_t denasp
Definition: cs_lagr.h:449
int ihdepm
Definition: cs_lagr.h:871
#define BEGIN_C_DECLS
Definition: cs_defs.h:495
int n_zones
Definition: cs_lagr.h:722
const cs_lagr_zone_data_t * cs_glob_lagr_boundary_conditions
int itytur
Definition: cs_lagr.h:907
Definition: cs_lagr.h:629
int n_user_variables
Definition: cs_lagr.h:329
int iencra
Definition: cs_lagr.h:756
int ireent
Definition: cs_lagr.h:441
cs_lagr_consolidation_model_t * cs_get_lagr_consolidation_model(void)
Definition: cs_lagr.c:1480
int itsfp4
Definition: cs_lagr.h:680
cs_real_t * rho0ch
Definition: cs_lagr.h:1025
cs_real_t * a2ch
Definition: cs_lagr.h:1018
int isuila
Definition: cs_lagr.h:217
int itsti
Definition: cs_lagr.h:665
char ** nombrd
Definition: cs_lagr.h:896
Definition: cs_lagr.h:85
cs_real_t aggregat_fractal_dim
Definition: cs_lagr.h:588
Definition: cs_lagr.h:135
Definition: cs_lagr.h:254
int nusbrd
Definition: cs_lagr.h:159
int isttio
Definition: cs_lagr.h:210
cs_lagr_particle_counter_t * cs_lagr_get_particle_counter(void)
Get read/write pointer to global particle counter.
Definition: cs_lagr.c:1331
int location_id
Definition: cs_lagr.h:556
cs_real_t * wmolat
Definition: cs_lagr.h:1008
cs_field_t * scal_t
Definition: cs_lagr.h:943
cs_field_t * cvar_k
Definition: cs_lagr.h:968
int location_id
Definition: cs_lagr.h:720
int idistu
Definition: cs_lagr.h:281
Definition: cs_lagr.h:123
cs_real_t * st_val
Definition: cs_lagr.h:711
int nlayer
Definition: cs_lagr.h:165
Definition: cs_lagr.h:491
cs_gnum_t n_g_merged
Definition: cs_lagr.h:356
double cs_real_t
Floating-point value.
Definition: cs_defs.h:307
cs_real_t min_stat_weight
Definition: cs_lagr.h:503
cs_real_t jamlim
Definition: cs_lagr.h:481
int dlvo
Definition: cs_lagr.h:293
cs_real_t lambda_vdw
Definition: cs_lagr.h:792
cs_real_t espasg
Definition: cs_lagr.h:448
Definition: cs_lagr.h:92
cs_lagr_injection_profile_compute_t * injection_profile_func
Definition: cs_lagr.h:565
cs_real_t * xashch
Definition: cs_lagr.h:1027
Definition: cs_lagr.h:126
int idpvar
Definition: cs_lagr.h:408
int ihdiam
Definition: cs_lagr.h:877
void * injection_profile_input
Definition: cs_lagr.h:568
cs_lagr_coal_comb_t * cs_glob_lagr_coal_comb
cs_real_t stat_weight
Definition: cs_lagr.h:618
cs_real_t prefth
Definition: cs_lagr.h:1004
int t_order
Definition: cs_lagr.h:220
cs_lagr_bc_type
Definition: cs_lagr.h:83
cs_gnum_t n_inject
Definition: cs_lagr.h:558
cs_field_t * x_eau
Definition: cs_lagr.h:963
cs_real_t * tprenc
Definition: cs_lagr.h:770
cs_real_t flow_rate
Definition: cs_lagr.h:620
cs_real_t ttclag
Definition: cs_lagr.h:545
int n_boundary_stats
Definition: cs_lagr.h:175
cs_real_t valen
Definition: cs_lagr.h:804
int ntersl
Definition: cs_lagr.h:174
cs_lagr_physico_chemical_t * cs_glob_lagr_physico_chemical
cs_field_t * cpro_cp
Definition: cs_lagr.h:956
int iadded_mass
Definition: cs_lagr.h:244
Definition: cs_lagr.h:823
cs_real_t vmax
Definition: cs_lagr.h:705
int n_temperature_layers
Definition: cs_lagr.h:267
int ncharm
Definition: cs_lagr.h:1014
int inbr
Definition: cs_lagr.h:853
int nor
Definition: cs_lagr.h:539
Definition: cs_lagr.h:87
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:1607
cs_field_t * cvar_r33
Definition: cs_lagr.h:981
int cluster
Definition: cs_lagr.h:585
int ltsdyn
Definition: cs_lagr.h:634
int * itsmv2
Definition: cs_lagr.h:674
cs_real_t diftl0
Definition: cs_lagr.h:922
int npstft
Definition: cs_lagr.h:840
int iatc
Definition: cs_lagr.h:1003
cs_real_t shape
Definition: cs_lagr.h:598
cs_lagr_reentrained_model_t * cs_get_lagr_reentrained_model(void)
Provide access to cs_lagr_reentrained_model_t.
Definition: cs_lagr.c:1419
Definition: cs_lagr.h:90
cs_field_t * x_m
Definition: cs_lagr.h:964
int ih2o
Definition: cs_lagr.h:999
cs_lagr_consolidation_model_t * cs_glob_lagr_consolidation_model
int roughness
Definition: cs_lagr.h:297
cs_field_t * x_oxyd
Definition: cs_lagr.h:962
void cs_lagr_finalize_zone_conditions(void)
Finalize the global boundary and volume condition structures.
Definition: cs_lagr.c:1631
Definition: cs_lagr.h:742
int iscovc
Definition: cs_lagr.h:868
Definition: cs_lagr.h:104
Definition: cs_lagr.h:86
cs_lagr_specific_physics_t * cs_get_lagr_specific_physics(void)
Provide access to cs_lagr_specific_physics_t.
Definition: cs_lagr.c:1405
Definition: cs_field_pointer.h:65
int itste
Definition: cs_lagr.h:661
int * itsmv1
Definition: cs_lagr.h:671
cs_lnum_t n_max_classes
Definition: cs_lagr.h:502
cs_real_t base_diameter
Definition: cs_lagr.h:506
cs_real_t w_total
Definition: cs_lagr.h:371
int itske
Definition: cs_lagr.h:657
cs_real_t diameter
Definition: cs_lagr.h:464
cs_real_t * a1ch
Definition: cs_lagr.h:1015
int ltsmas
Definition: cs_lagr.h:640
cs_gnum_t n_g_cumulative_failed
Definition: cs_lagr.h:344
cs_real_t * ehetch
Definition: cs_lagr.h:1024
cs_field_t * luminance
Definition: cs_lagr.h:959
cs_real_t * solub
Definition: cs_lagr.h:470
cs_field_t * cromf
Definition: cs_lagr.h:937
cs_gnum_t n_g_resuspended
Definition: cs_lagr.h:365
integer, dimension(:), pointer, save itypfb
Definition: pointe.f90:100
cs_real_t * e1ch
Definition: cs_lagr.h:1017
cs_real_t w_new
Definition: cs_lagr.h:374
int * iym1
Definition: cs_lagr.h:1012
Definition: cs_lagr.h:552
int agglomeration
Definition: cs_lagr.h:321
int iclogt
Definition: cs_lagr.h:862
int npts
Definition: cs_lagr.h:698
cs_real_t trefth
Definition: cs_lagr.h:1005
cs_field_t * cvar_omg
Definition: cs_lagr.h:974
int ntxerr
Definition: cs_lagr.h:702
cs_lagr_shape_model_t * cs_glob_lagr_shape_model
Definition: cs_lagr.h:903
cs_lagr_agglomeration_model_t * cs_glob_lagr_agglomeration_model
Definition: cs_lagr.h:479
cs_gnum_t n_g_fouling
Definition: cs_lagr.h:362
int ltsthe
Definition: cs_lagr.h:648
cs_real_t * xwatch
Definition: cs_lagr.h:1026
const cs_lagr_zone_data_t * cs_glob_lagr_volume_conditions
cs_real_t visls0
Definition: cs_lagr.h:928
cs_real_t velocity_magnitude
Definition: cs_lagr.h:590
Definition: cs_lagr.h:125
cs_real_t cs_real_3_t[3]
vector of 3 floating-point values
Definition: cs_defs.h:320
cs_real_t w_resuspended
Definition: cs_lagr.h:389
Definition: cs_lagr.h:124
cs_field_t * temperature
Definition: cs_lagr.h:944
Definition: cs_lagr.h:513
cs_field_t * pressure
Definition: cs_lagr.h:940
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:788
Definition: cs_lagr.h:814
cs_lagr_internal_condition_t * cs_glob_lagr_internal_conditions
int consolidation
Definition: cs_lagr.h:314
cs_lagr_fragmentation_model_t * cs_glob_lagr_fragmentation_model
cs_real_t * cp2ch
Definition: cs_lagr.h:1022
int injection_frequency
Definition: cs_lagr.h:561
int * nbprec
Definition: cs_lagr.h:468
int zone_id
Definition: cs_lagr.h:554
int velocity_profile
Definition: cs_lagr.h:574
cs_field_t * cvar_r22
Definition: cs_lagr.h:979
Definition: cs_lagr.h:151
cs_gnum_t n_g_failed
Definition: cs_lagr.h:368
cs_lagr_model_t * cs_glob_lagr_model
cs_real_t * y2ch
Definition: cs_lagr.h:1021
int ihdepv
Definition: cs_lagr.h:874
Definition: cs_lagr.h:93
int ndlaim
Definition: cs_lagr.h:162
int * i_face_zone_id
Definition: cs_lagr.h:744
cs_field_t * cvar_ep
Definition: cs_lagr.h:971
int modcpl
Definition: cs_lagr.h:275
cs_real_t force_consol
Definition: cs_lagr.h:529
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:301
int * zone_type
Definition: cs_lagr.h:723
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:1771
cs_real_t dtp
Definition: cs_lagr.h:542
int iturb
Definition: cs_lagr.h:906
int physical_model
Definition: cs_lagr.h:266
cs_real_t tstatp
Definition: cs_lagr.h:888
cs_real_t epseau
Definition: cs_lagr.h:795
int cs_glob_lagr_log_frequency_n
const cs_lagr_const_dim_t * cs_glob_lagr_const_dim
int aggregat_class_id
Definition: cs_lagr.h:587
Definition: cs_lagr.h:336
int nbrclas
Definition: cs_lagr.h:462
cs_real_t * wmole
Definition: cs_lagr.h:1011
int iilagr
Definition: cs_lagr.h:196
int iflow
Definition: cs_lagr.h:445
cs_field_t * cpro_viscls
Definition: cs_lagr.h:953
cs_lagr_clogging_model_t * cs_get_lagr_clogging_model(void)
Definition: cs_lagr.c:1444
int ncharm
Definition: cs_lagr.h:913
int precipitation
Definition: cs_lagr.h:316
int has_part_impact_nbr
Definition: cs_lagr.h:845
cs_lagr_boundary_interactions_t * cs_glob_lagr_boundary_interactions
int itpvar
Definition: cs_lagr.h:403
#define END_C_DECLS
Definition: cs_defs.h:496
cs_lagr_source_terms_t * cs_get_lagr_source_terms(void)
Definition: cs_lagr.c:1504
int ico
Definition: cs_lagr.h:1001
cs_real_t tpart
Definition: cs_lagr.h:421
Definition: cs_lagr.h:150
cs_gnum_t n_g_total
Definition: cs_lagr.h:347
cs_real_t mporos
Definition: cs_lagr.h:482
cs_real_t rate_consol
Definition: cs_lagr.h:527
Definition: cs_lagr.h:102
int inclgt
Definition: cs_lagr.h:859
cs_real_t * ahetch
Definition: cs_lagr.h:1023
Definition: cs_lagr.h:500
cs_real_t * h02ch
Definition: cs_lagr.h:1016
cs_lagr_particle_counter_t * cs_lagr_update_particle_counter(void)
Update global particle counter.
Definition: cs_lagr.c:1348
cs_real_t rho
Definition: cs_lagr.h:466
cs_real_t dnpenc
Definition: cs_lagr.h:778
cs_gnum_t n_g_cumulative_total
Definition: cs_lagr.h:340
cs_lagr_brownian_t * cs_glob_lagr_brownian
cs_real_t * y1ch
Definition: cs_lagr.h:1020
int resuspension
Definition: cs_lagr.h:301
cs_lagr_precipitation_model_t * cs_glob_lagr_precipitation_model
int ihsum
Definition: cs_lagr.h:880
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:327
cs_real_t diameter
Definition: cs_lagr.h:595
cs_lagr_extra_module_t * cs_get_lagr_extra_module(void)
Definition: cs_lagr.c:1690
cs_lagr_brownian_t * cs_get_lagr_brownian(void)
Definition: cs_lagr.c:1540
cs_real_t base_diameter
Definition: cs_lagr.h:516
int * n_injection_sets
Definition: cs_lagr.h:725
int ncharb
Definition: cs_lagr.h:910
int inclg
Definition: cs_lagr.h:856
cs_real_t fion
Definition: cs_lagr.h:807
int idiffl
Definition: cs_lagr.h:287
cs_real_3_t * grad_pr
Definition: cs_lagr.h:987
cs_field_t * viscl
Definition: cs_lagr.h:950
cs_real_t diameter_variance
Definition: cs_lagr.h:596
cs_lagr_time_step_t * cs_glob_lagr_time_step
cs_lagr_source_terms_t * cs_glob_lagr_source_terms
Definition: cs_lagr.h:751
cs_real_t w_deposited
Definition: cs_lagr.h:383
Definition: cs_lagr.h:138
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:1121
cs_real_t w_fouling
Definition: cs_lagr.h:386
cs_lagr_extra_module_t * cs_glob_lagr_extra_module
cs_real_t * particle_flow_rate
Definition: cs_lagr.h:733
int n_stat_classes
Definition: cs_lagr.h:327
cs_lagr_module_shape_t
Definition: cs_lagr.h:132
cs_real_t diam_mean
Definition: cs_lagr.h:484
cs_real_t modyeq
Definition: cs_lagr.h:450
cs_real_t density
Definition: cs_lagr.h:612
cs_lagr_encrustation_t * cs_glob_lagr_encrustation
cs_real_t param_chmb
Definition: cs_lagr.h:493
cs_lagr_precipitation_model_t * cs_get_lagr_precipitation_model(void)
Provide access to cs_lagr_precipitation_model_t.
Definition: cs_lagr.c:1432
cs_lagr_time_step_t * cs_get_lagr_time_step(void)
Definition: cs_lagr.c:1492
cs_gnum_t n_g_deposited
Definition: cs_lagr.h:359
int impvar
Definition: cs_lagr.h:413
cs_field_t * vel
Definition: cs_lagr.h:947
cs_real_t phi_s
Definition: cs_lagr.h:801
void cs_lagr_finalize(void)
Definition: cs_lagr.c:1156
Definition: cs_lagr.h:785
int icp
Definition: cs_lagr.h:919
int itsmas
Definition: cs_lagr.h:668
cs_real_t emissivity
Definition: cs_lagr.h:622
cs_lagr_internal_condition_t * cs_lagr_get_internal_conditions(void)
Return pointer to the main internal conditions structure.
Definition: cs_lagr.c:1555
Definition: cs_lagr.h:91
int lamvbr
Definition: cs_lagr.h:816
cs_lagr_reentrained_model_t * cs_glob_lagr_reentrained_model
cs_real_t rayasg
Definition: cs_lagr.h:452
cs_lagr_shape_model_t * cs_get_lagr_shape_model(void)
Definition: cs_lagr.c:1456
cs_gnum_t n_g_new
Definition: cs_lagr.h:350
cs_field_t * cvar_rij
Definition: cs_lagr.h:984
cs_real_t max_stat_weight
Definition: cs_lagr.h:504
Definition: cs_lagr.h:437
cs_real_t scalar_kernel
Definition: cs_lagr.h:505
int radiative_model
Definition: cs_lagr.h:916
int npencr
Definition: cs_lagr.h:759
int shape
Definition: cs_lagr.h:310
cs_real_t tmamax
Definition: cs_lagr.h:708
void cs_lagr_finalize_internal_cond(void)
Definition: cs_lagr.c:1662
int fragmentation
Definition: cs_lagr.h:325
cs_real_t * mp_diss
Definition: cs_lagr.h:472
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:1231
cs_real_t scalar_kernel
Definition: cs_lagr.h:515
Definition: cs_lagr.h:182
int natom
Definition: cs_lagr.h:1007
void cs_lagr_solve_initialize(const cs_real_t *dt)
Definition: cs_lagr.c:1705
Definition: cs_lagr.h:172