6.2
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-2020 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 enum {
136 };
137 
139 /*----------------------*/
140 
141 typedef struct {
142 
143  int nusbrd;
146  int ndlaim;
148  int ncharm2;
149  int nlayer;
152 
154 /*---------------------*/
155 
156 typedef struct {
157 
158  int ntersl;
161 } cs_lagr_dim_t;
162 
164 /*-----------------------------------------------------*/
165 
166 typedef struct {
167 
180  int iilagr;
181 
182  /* indicates the steady (=1) or unsteady (=0) state of the
183  continuous phase flow
184  in particular, \ref isttio = 1 is needed in order to:
185  calculate steady statistics in the volume or at the boundaries
186  (starting respectively from the iterations
187  \ref cs_lagr_stat_options_t::nstist "nstist")
188  and calculate time-averaged two-way coupling source terms (from the
189  time step \ref nstits).
190  Useful if \ref iilagr = CS_LAGR_ONEWAY_COUPLING
191  or \ref iilagr = CS_LAGR_TWOWAY_COUPLING
192  (if \ref iilagr = CS_LAGR_FROZEN_CONTINUOUS_PHASE,
193  then \ref isttio=1 automatically) */
194  int isttio;
195 
201  int isuila;
202 
204  int t_order;
205 
211  int ilapoi;
212 
229 
232 
234 
236 /*-----------------------------------------------------------*/
237 
238 typedef struct {
239 
252 
259  int modcpl;
260 
267  int idirla;
268 
273  int idistu;
274 
279  int idiffl;
280 
282  int dlvo;
283 
287 
291 
294  int clogging;
295 
299  int shape;
300 
304 
306  int fouling;
307 
311 
315 
317 
319 
321 
323 /*----------------------------------------------*/
324 
325 typedef struct {
326 
330 
334 
337 
340 
343 
346 
349 
352 
355 
358 
361 
364 
367 
370 
373 
376 
379 
381 
383 /* ---------------------------------------------------------- */
384 
385 typedef struct {
386 
387  /* activation (=1) or not (=0) of an evolution equation on the particle
388  temperature (in degrees Celsius).
389  Useful if \ref physical_model=1 and if there is a thermal scalar
390  associated with the continuous phase.
391  */
392  int itpvar;
393 
394  /* activation (=1) or not (=0) of an evolution equation on the particle
395  diameter. Useful if \ref physical_model = 1.
396  */
397  int idpvar;
398 
399  /* activation (=1) or not (=0) of an evolution equation on the particle mass
400  Useful if \ref physical_model = 1
401  */
402  int impvar;
403 
404  /* initialization temperature (in degree Celsius) for the particles already
405  present in the calculation domain when an evolution equation on
406  the particle temperature is activated during a calculation
407  (\ref physical_model = 1 and \ref itpvar = 1).
408  Useful if \ref isuila = 1 and \ref itpvar = 0 in the previous calculation.
409  */
411 
412  /* initialization value for the specific heat (\f$ J.kg^{-1}.K^{-1} \f$)
413  of the particles already present
414  in the calculation domain when an evolution equation
415  on the particle temperature is activated during a calculation
416  (\ref physical_model = 1 and \ref itpvar = 1).
417  Useful if \ref isuila = 1 and \ref itpvar = 0 in the previous calculation
418  */
420 
422 
424 /* -------------------------------------- */
425 
426 typedef struct {
427 
428  /* - 0: no resuspension model
429  - 1: resuspension model */
430  int ireent;
431 
432  /* - 0: no head losses calculation for influence of the deposit on the flow
433  - 1: head losses calculation for influence of the deposit on the flow */
434  int iflow;
435 
436  /* Parameters of the particle resuspension model*/
442 
444 
446 /* -------------------------------------- */
447 
448 typedef struct {
449 
450  /* number of particle classes*/
451  int nbrclas;
452  /* diameter of particles formed by precipitation*/
454  /* density of particles formed by precipitation*/
456  /* number of precipitated particles */
457  int *nbprec;
458  /* */
460  /* number of precipitated particles */
462 
464 
466 /* ------------------------------------------ */
467 
468 typedef struct {
469 
474 
476 
478 /* ------------------------------------------------ */
479 
480 typedef struct {
481 
483 
485 
487 /* ------------------------------------------ */
488 
489 typedef struct {
490 
496 
498 
500 /* ------------------------------------------ */
501 
502 typedef struct {
503 
506  cs_real_t (*function_kernel)(cs_lnum_t);
507 
509 
511 /* ----------------------------------------------- */
512 
513 typedef struct {
514 
519 
521 
523 /*----------------------------------*/
524 
525 typedef struct {
526 
527  /* current step id (for 2nd order scheme) */
528  int nor;
529 
530  /* duration of a Lagrangian iteration */
532 
533  /* physical time of the Lagrangian simulation */
535 
537 
539 /*------------------------------------------------------------------*/
540 
541 typedef struct {
542 
543  int zone_id;
544  int set_id;
555 
558 
564 
569 
574  int cluster;
580  cs_real_t velocity[3];
589  cs_real_t orientation[3];
590  cs_real_t radii[3];
591  cs_real_t angular_vel[3];
594  cs_real_t euler[4];
596  cs_real_t shape_param[4];
614 
616 /*----------------------------------------------*/
617 
618 typedef struct {
619 
623  int ltsdyn;
624 
629  int ltsmas;
630 
631  /* if \ref physical_model = 1 and \ref itpvar = 1, \ref ltsthe
632  activates (=1) or not (=0) the two-way coupling on temperature.
633  if \ref physical_model = 2, \ref ltsthe activates (=1) or not (=0) the
634  two-way coupling on the eulerian variables related to pulverised
635  coal combustion.
636  Useful if \ref iilagr = CS_LAGR_TWOWAY_COUPLING */
637  int ltsthe;
638 
641  int itsli;
642 
643  /* explicit source term for the turbulent dissipation and the
644  turbulent energy if the \f$k-\varepsilon\f$ turbulence model is used
645  for the continuous phase */
646  int itske;
647 
650  int itste;
651 
654  int itsti;
655 
657  int itsmas;
658 
659  /* source term for the light volatile matters */
660  int *itsmv1; //ncharm2
661 
662  /* source term for the heavy volatile matters */
663  int *itsmv2; //ncharm2
664 
666  int itsco;
667 
669  int itsfp4;
670 
684  int nstits;
685 
687  int npts;
688 
691  int ntxerr;
692 
695 
698 
701 
703 
705 /*----------------------------------------------------*/
706 
707 typedef struct {
708 
711  int n_zones;
712  int *zone_type;
719  char *elt_type;
727 
729 /*---------------------------------------*/
730 
731 typedef struct {
732 
734 
736 
738 /*--------------------------------*/
739 
740 typedef struct {
741 
742  /* Activates (=1) or not (=0) the option of coal particle fouling.
743  It then is necessary to specify the domain boundaries
744  on which fouling may take place. Useful if \ref physical_model = 2*/
745  int iencra;
746 
747  /* encrustation data*/
748  int npencr;
749  // TODO cf particles->n_part_fou in cs_lagr_tracking.c
750 
751  /* encrustation data*/
752  cs_real_t *enc1; // size: ncharm2
753  /* encrustation data*/
754  cs_real_t *enc2; // size: ncharm2
755 
756  /* Limit temperature (in degree Celsius) below which the coal particles do
757  not cause any fouling (if the fouling model is activated).
758  Useful if \ref physical_model = 2 and \ref iencra = 1*/
759  cs_real_t *tprenc; // size: ncharm2
760 
761  /* Ash critical viscosity in \f$ kg.m^{-1}.s^{-1} \f$, in the fouling model
762  cf J.D. Watt et T. Fereday (J.Inst.Fuel, Vol.42-p99).
763  Useful if \ref physical_model = 2 and \ref iencra = 1*/
764  cs_real_t *visref; // size: ncharm2
765 
766  /* encrustation data */
768 
770 
772 /*-----------------------------------------*/
773 
774 typedef struct {
775 
778 
782 
785 
788 
791 
794 
797 
799 
801 /*-------------------------------*/
802 
803 typedef struct {
804 
805  int lamvbr;
808 
810 /*----------------------------------------------*/
811 
812 typedef struct {
813 
821  int npstf;
822 
829  int npstft;
830 
835 
839  int iclgst;
840 
842  int inbr;
843 
845  int inclg;
846 
848  int inclgt;
849 
851  int iclogt;
852 
854  int iclogh;
855 
857  int iscovc;
858 
859  /* id for mean of particle deposition height */
860  int ihdepm;
861 
862  /* id for variance of particle deposition height */
863  int ihdepv;
864 
865  /* id for mean diameter of deposited particles */
866  int ihdiam;
867 
868  /* id for sum of deposited particle diameters */
869  int ihsum;
870 
878 
885  char **nombrd;
886 
888 
890 /*-----------------------------------------------*/
891 
892 typedef struct {
893 
894  /* Turbulence model */
895  int iturb;
896  int itytur;
897 
898  /* cpincl */
899  int ncharb;
900 
901  /* ppppar */
902  int ncharm;
903 
904  /* radiation */
906 
907  /* icp */
908  int icp;
909 
910  /* diftl0 */
912 
913  /* cmu */
915 
916  /* visls0 */
918 
919  /* Referenced fields
920  ----------------- */
921 
922  /* wall ustar */
924 
925  /* Fluid density */
927 
928  /* Fluid pressure */
930 
931  /* Fluid temparature */
935 
936  /* Fluid velocity */
938 
939  /* Fluid viscosity */
941 
942  /* Fluid viscosity */
944 
945  /* Fluid specific heat capacity */
947 
948  /* Radiat. */
950 
951  /* Combustion */
955 
956  /* Turbulence */
957  /* Turbulent intensity */
959 
960  /* Turbulent dissipation */
962 
963  /* Omega from k-omega SST model*/
965 
966  /* Reynolds stress component Rxx */
968  /* Reynolds stress component Ryy */
970  /* Reynolds stress component Rzz */
972 
973  /* Reynolds Stress Tensor */
975 
976  /* Total pressure gradient */
978 
979  /* velocity gradient */
981 
983 
985 /*--------------------------------------------*/
986 
987 typedef struct {
988 
989  int ih2o; // cpincl
990  int io2; // cpincl
991  int ico; // cpincl
992 
993  int iatc; // ppthch
994  cs_real_t prefth; // ppthch
995  cs_real_t trefth; // ppthch
996 
997  int natom; // = 5;
998  cs_real_t *wmolat; // dim = natom
999 
1000  int ngazem; // = 20;
1001  cs_real_t *wmole; // ngazem
1002  int *iym1;
1003 
1004  int ncharm; // cpincl
1005  cs_real_t *a1ch; // ncharm
1019 
1021 
1022 /*============================================================================
1023  * Global variables
1024  *============================================================================*/
1025 
1029 
1033 
1036 
1039 
1042 
1043 /* Lagrangian log output every frequency_n time steps */
1044 
1045 extern int cs_glob_lagr_log_frequency_n;
1046 
1047 /* Statisics on boundaries */
1048 
1049 extern cs_real_t *bound_stat;
1050 
1056 
1059 
1067 
1070 
1074 
1075 /* Projection matrices for global to local coordinates on boundary faces */
1077 
1078 /*============================================================================
1079  * Public function prototypes
1080  *============================================================================*/
1081 
1082 /*----------------------------------------------------------------------------*/
1095 /*----------------------------------------------------------------------------*/
1096 
1099  int zone_id,
1100  int set_id);
1101 
1102 /*----------------------------------------------------------------------------*/
1108 /*----------------------------------------------------------------------------*/
1109 
1110 void
1112 
1113 /*----------------------------------------------------------------------------*/
1119 /*----------------------------------------------------------------------------*/
1120 
1123 
1124 /*----------------------------------------------------------------------------*/
1133 /*----------------------------------------------------------------------------*/
1134 
1137 
1138 /*----------------------------------------------------------------------------
1139  * Provide access to cs_lagr_particle_counter_t
1140  *
1141  * needed to initialize structure with GUI
1142  *----------------------------------------------------------------------------*/
1143 
1146 
1147 /*----------------------------------------------------------------------------
1148  * Provide access to cs_lagr_reentrained_model_t
1149  *
1150  * needed to initialize structure with GUI
1151  *----------------------------------------------------------------------------*/
1152 
1155 
1156 /*----------------------------------------------------------------------------
1157  * Provide access to cs_lagr_precipitation_model_t
1158  *
1159  * needed to initialize structure with GUI
1160  *----------------------------------------------------------------------------*/
1161 
1164 
1165 /*----------------------------------------------------------------------------
1166  * Provide access to cs_lagr_clogging_model_t
1167  *
1168  * needed to initialize structure with GUI
1169  *----------------------------------------------------------------------------*/
1170 
1173 
1174 /*----------------------------------------------------------------------------
1175  * Provide access to cs_lagr_shape_model_t
1176  *
1177  * needed to initialize structure with GUI
1178  *----------------------------------------------------------------------------*/
1179 
1182 
1183 /*----------------------------------------------------------------------------
1184  * Provide access to cs_lagr_agglomeration_model_t
1185  *
1186  * needed to initialize structure with GUI
1187  *----------------------------------------------------------------------------*/
1188 
1191 
1192 /*----------------------------------------------------------------------------
1193  * Provide access to cs_lagr_consolidation_model_t
1194  *
1195  * needed to initialize structure with GUI
1196  *----------------------------------------------------------------------------*/
1197 
1200 
1201 /*----------------------------------------------------------------------------
1202  * Provide access to cs_lagr_time_step_t
1203  *
1204  * needed to initialize structure with GUI
1205  *----------------------------------------------------------------------------*/
1206 
1208 cs_get_lagr_time_step(void);
1209 
1210 /*----------------------------------------------------------------------------
1211  * Provide access to cs_lagr_source_terms_t
1212  *
1213  * needed to initialize structure with GUI
1214  *----------------------------------------------------------------------------*/
1215 
1218 
1219 /*----------------------------------------------------------------------------
1220  * Provide access to cs_lagr_encrustation_t
1221  *
1222  * needed to initialize structure with GUI
1223  *----------------------------------------------------------------------------*/
1224 
1227 
1228 /*----------------------------------------------------------------------------
1229  * Provide access to cs_lagr_physico_chemical_t
1230  *
1231  * needed to initialize structure with GUI
1232  *----------------------------------------------------------------------------*/
1233 
1236 
1237 /*----------------------------------------------------------------------------
1238  * Provide access to cs_lagr_brownian_t
1239  *
1240  * needed to initialize structure with GUI
1241  *----------------------------------------------------------------------------*/
1242 
1244 cs_get_lagr_brownian(void);
1245 
1246 /*----------------------------------------------------------------------------*/
1252 /*----------------------------------------------------------------------------*/
1253 
1256 
1257 /*----------------------------------------------------------------------------*/
1263 /*----------------------------------------------------------------------------*/
1264 
1267 
1268 /*----------------------------------------------------------------------------*/
1274 /*----------------------------------------------------------------------------*/
1275 
1278 
1279 /*----------------------------------------------------------------------------*/
1283 /*----------------------------------------------------------------------------*/
1284 
1285 void
1287 
1288 /*----------------------------------------------------------------------------
1289  * Destroy finalize the global cs_lagr_internal_condition_t structure.
1290  *----------------------------------------------------------------------------*/
1291 
1292 void
1294 
1295 /*----------------------------------------------------------------------------
1296  * Provide access to cs_lagr_boundary_interactions_t
1297  *
1298  * needed to initialize structure with GUI
1299  *----------------------------------------------------------------------------*/
1300 
1303 
1304 /*----------------------------------------------------------------------------
1305  * Provide access to cs_lagr_extra_module_t
1306  *----------------------------------------------------------------------------*/
1307 
1310 
1311 /*----------------------------------------------------------------------------
1312  * Prepare for execution of the Lagrangian model.
1313  *
1314  * This should be called before the fist call to cs_lagr_solve_time_step.
1315  *
1316  * parameters:
1317  * dt <-- time step (per cell)
1318  *----------------------------------------------------------------------------*/
1319 
1320 void
1322 
1323 /*--------------------------------------------------------------------
1324  * Execute one time step of the Lagrangian model.
1325  *
1326  * This is the main function for that model.
1327  *
1328  * parameters:
1329  * itypfb <-- boundary face types
1330  * dt <-- time step (per cell)
1331  *-------------------------------------------------------------------- */
1332 
1333 void
1334 cs_lagr_solve_time_step(const int itypfb[],
1335  const cs_real_t *dt);
1336 
1337 /*----------------------------------------------------------------------------
1338  * Return pointers to lagrangian arrays
1339  *
1340  * This function is intended for use by Fortran wrappers.
1341  *
1342  * parameters:
1343  * dim_bound_stat --> dimensions for bound_stat pointer
1344  * p_bound_stat --> bound_stat pointer
1345  *----------------------------------------------------------------------------*/
1346 
1347 void
1348 cs_lagr_init_c_arrays(int dim_cs_glob_lagr_source_terms[2],
1349  cs_real_t **p_cs_glob_lagr_source_terms);
1350 
1351 /*----------------------------------------------------------------------------
1352  * Free lagrangian arrays
1353  *
1354  * This function is intended for use by Fortran wrappers.
1355  *----------------------------------------------------------------------------*/
1356 
1357 void
1358 cs_lagr_finalize(void);
1359 
1360 /*----------------------------------------------------------------------------*/
1361 
1363 
1364 #endif /* __CS_LAGR_H__ */
cs_real_t * bound_stat
Definition: cs_lagr.h:89
int temperature_profile
Definition: cs_lagr.h:568
const cs_lagr_particle_counter_t * cs_glob_lagr_particle_counter
Definition: cs_lagr.h:707
cs_real_t cmu
Definition: cs_lagr.h:914
int itsli
Definition: cs_lagr.h:641
cs_lagr_zone_data_t * cs_lagr_get_boundary_conditions(void)
Return pointer to the main boundary conditions structure.
Definition: cs_lagr.c:1593
cs_gnum_t n_g_exit
Definition: cs_lagr.h:342
Definition: cs_lagr.h:141
cs_real_t csthpp
Definition: cs_lagr.h:472
cs_real_t fouling_index
Definition: cs_lagr.h:603
unsigned long cs_gnum_t
global mesh entity number
Definition: cs_defs.h:286
Definition: cs_lagr.h:385
int ilapoi
Definition: cs_lagr.h:211
Definition: cs_lagr.h:513
Definition: cs_lagr.h:94
Definition: cs_lagr.h:88
cs_real_t * visref
Definition: cs_lagr.h:764
int coal_number
Definition: cs_lagr.h:570
int set_id
Definition: cs_lagr.h:544
cs_real_t slope_consol
Definition: cs_lagr.h:517
cs_real_t * enc2
Definition: cs_lagr.h:754
cs_real_t w_merged
Definition: cs_lagr.h:369
cs_field_t * ustar
Definition: cs_lagr.h:923
cs_real_t phi_p
Definition: cs_lagr.h:787
cs_real_t cp
Definition: cs_lagr.h:605
cs_lagr_boundary_interactions_t * cs_get_lagr_boundary_interactions(void)
Definition: cs_lagr.c:1689
Definition: cs_lagr.h:987
int iclogh
Definition: cs_lagr.h:854
cs_real_t temperature
Definition: cs_lagr.h:582
cs_field_t * cvar_r11
Definition: cs_lagr.h:967
cs_real_t * enc1
Definition: cs_lagr.h:752
cs_real_33_t * grad_vel
Definition: cs_lagr.h:980
void cs_lagr_injection_set_default(cs_lagr_injection_set_t *zis)
Initialize injection set data structure fields to defaults.
Definition: cs_lagr.c:1268
Definition: cs_lagr.h:525
int io2
Definition: cs_lagr.h:990
cs_lagr_module_status_t
Definition: cs_lagr.h:122
int npstf
Definition: cs_lagr.h:821
int deposition
Definition: cs_lagr.h:281
Field descriptor.
Definition: cs_field.h:125
cs_lagr_physico_chemical_t * cs_get_lagr_physico_chemical(void)
Definition: cs_lagr.c:1538
cs_real_t * e2ch
Definition: cs_lagr.h:1009
cs_real_t rayasp
Definition: cs_lagr.h:440
cs_real_t w_exit
Definition: cs_lagr.h:366
cs_real_t added_mass_const
Definition: cs_lagr.h:231
int itsco
Definition: cs_lagr.h:666
int ncharm2
Definition: cs_lagr.h:148
int nstits
Definition: cs_lagr.h:684
cs_lagr_encrustation_t * cs_get_lagr_encrustation(void)
Definition: cs_lagr.c:1526
int clogging
Definition: cs_lagr.h:294
Definition: cs_lagr.h:448
cs_lagr_injection_set_t ** injection_set
Definition: cs_lagr.h:716
cs_real_t * thcdch
Definition: cs_lagr.h:1018
cs_real_t cppart
Definition: cs_lagr.h:419
cs_lnum_t iconsol
Definition: cs_lagr.h:515
cs_lagr_agglomeration_model_t * cs_get_lagr_agglomeration_model(void)
Definition: cs_lagr.c:1478
int fouling
Definition: cs_lagr.h:306
int ngazem
Definition: cs_lagr.h:1000
char * elt_type
Definition: cs_lagr.h:719
int iclgst
Definition: cs_lagr.h:839
cs_real_t denasp
Definition: cs_lagr.h:438
int ihdepm
Definition: cs_lagr.h:860
#define BEGIN_C_DECLS
Definition: cs_defs.h:495
int n_zones
Definition: cs_lagr.h:711
const cs_lagr_zone_data_t * cs_glob_lagr_boundary_conditions
int itytur
Definition: cs_lagr.h:896
Definition: cs_lagr.h:618
int n_user_variables
Definition: cs_lagr.h:318
int iencra
Definition: cs_lagr.h:745
int ireent
Definition: cs_lagr.h:430
cs_lagr_consolidation_model_t * cs_get_lagr_consolidation_model(void)
Definition: cs_lagr.c:1490
int itsfp4
Definition: cs_lagr.h:669
cs_real_t * rho0ch
Definition: cs_lagr.h:1015
cs_real_t * a2ch
Definition: cs_lagr.h:1008
int isuila
Definition: cs_lagr.h:201
int itsti
Definition: cs_lagr.h:654
char ** nombrd
Definition: cs_lagr.h:885
Definition: cs_lagr.h:85
cs_real_t aggregat_fractal_dim
Definition: cs_lagr.h:577
Definition: cs_lagr.h:238
int nusbrd
Definition: cs_lagr.h:143
int isttio
Definition: cs_lagr.h:194
cs_lagr_particle_counter_t * cs_lagr_get_particle_counter(void)
Get read/write pointer to global particle counter.
Definition: cs_lagr.c:1341
int location_id
Definition: cs_lagr.h:545
cs_real_t * wmolat
Definition: cs_lagr.h:998
cs_field_t * scal_t
Definition: cs_lagr.h:932
Definition: cs_lagr.h:135
cs_field_t * cvar_k
Definition: cs_lagr.h:958
int location_id
Definition: cs_lagr.h:709
int idistu
Definition: cs_lagr.h:273
Definition: cs_lagr.h:123
cs_real_t * st_val
Definition: cs_lagr.h:700
int nlayer
Definition: cs_lagr.h:149
Definition: cs_lagr.h:480
cs_gnum_t n_g_merged
Definition: cs_lagr.h:345
double cs_real_t
Floating-point value.
Definition: cs_defs.h:307
cs_real_t min_stat_weight
Definition: cs_lagr.h:492
cs_real_t jamlim
Definition: cs_lagr.h:470
int dlvo
Definition: cs_lagr.h:282
cs_real_t lambda_vdw
Definition: cs_lagr.h:781
cs_real_t espasg
Definition: cs_lagr.h:437
Definition: cs_lagr.h:92
cs_lagr_injection_profile_compute_t * injection_profile_func
Definition: cs_lagr.h:554
cs_real_t * xashch
Definition: cs_lagr.h:1017
Definition: cs_lagr.h:126
int idpvar
Definition: cs_lagr.h:397
int ihdiam
Definition: cs_lagr.h:866
void * injection_profile_input
Definition: cs_lagr.h:557
cs_lagr_coal_comb_t * cs_glob_lagr_coal_comb
cs_real_t stat_weight
Definition: cs_lagr.h:607
cs_real_t prefth
Definition: cs_lagr.h:994
int t_order
Definition: cs_lagr.h:204
cs_lagr_bc_type
Definition: cs_lagr.h:83
cs_gnum_t n_inject
Definition: cs_lagr.h:547
cs_field_t * x_eau
Definition: cs_lagr.h:953
cs_real_t * tprenc
Definition: cs_lagr.h:759
cs_real_t flow_rate
Definition: cs_lagr.h:609
cs_real_t ttclag
Definition: cs_lagr.h:534
int n_boundary_stats
Definition: cs_lagr.h:159
cs_real_t valen
Definition: cs_lagr.h:793
int ntersl
Definition: cs_lagr.h:158
cs_lagr_physico_chemical_t * cs_glob_lagr_physico_chemical
cs_field_t * cpro_cp
Definition: cs_lagr.h:946
int iadded_mass
Definition: cs_lagr.h:228
Definition: cs_lagr.h:812
cs_real_t vmax
Definition: cs_lagr.h:694
int n_temperature_layers
Definition: cs_lagr.h:251
int ncharm
Definition: cs_lagr.h:1004
int inbr
Definition: cs_lagr.h:842
int nor
Definition: cs_lagr.h:528
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:1617
cs_field_t * cvar_r33
Definition: cs_lagr.h:971
int cluster
Definition: cs_lagr.h:574
int ltsdyn
Definition: cs_lagr.h:623
int * itsmv2
Definition: cs_lagr.h:663
cs_real_t diftl0
Definition: cs_lagr.h:911
int npstft
Definition: cs_lagr.h:829
int iatc
Definition: cs_lagr.h:993
cs_real_t shape
Definition: cs_lagr.h:587
cs_lagr_reentrained_model_t * cs_get_lagr_reentrained_model(void)
Provide access to cs_lagr_reentrained_model_t.
Definition: cs_lagr.c:1429
Definition: cs_lagr.h:90
cs_field_t * x_m
Definition: cs_lagr.h:954
int ih2o
Definition: cs_lagr.h:989
cs_lagr_consolidation_model_t * cs_glob_lagr_consolidation_model
int roughness
Definition: cs_lagr.h:286
cs_field_t * x_oxyd
Definition: cs_lagr.h:952
void cs_lagr_finalize_zone_conditions(void)
Finalize the global boundary and volume condition structures.
Definition: cs_lagr.c:1641
Definition: cs_lagr.h:731
int iscovc
Definition: cs_lagr.h:857
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:1415
Definition: cs_field_pointer.h:65
int itste
Definition: cs_lagr.h:650
int * itsmv1
Definition: cs_lagr.h:660
cs_lnum_t n_max_classes
Definition: cs_lagr.h:491
cs_real_t base_diameter
Definition: cs_lagr.h:495
cs_real_t w_total
Definition: cs_lagr.h:360
int itske
Definition: cs_lagr.h:646
cs_real_t diameter
Definition: cs_lagr.h:453
cs_real_t * a1ch
Definition: cs_lagr.h:1005
int ltsmas
Definition: cs_lagr.h:629
cs_gnum_t n_g_cumulative_failed
Definition: cs_lagr.h:333
cs_real_t * ehetch
Definition: cs_lagr.h:1014
cs_field_t * luminance
Definition: cs_lagr.h:949
cs_real_t * solub
Definition: cs_lagr.h:459
cs_field_t * cromf
Definition: cs_lagr.h:926
cs_gnum_t n_g_resuspended
Definition: cs_lagr.h:354
integer, dimension(:), pointer, save itypfb
Definition: pointe.f90:100
cs_real_t * e1ch
Definition: cs_lagr.h:1007
cs_real_t w_new
Definition: cs_lagr.h:363
int * iym1
Definition: cs_lagr.h:1002
Definition: cs_lagr.h:541
int agglomeration
Definition: cs_lagr.h:310
int iclogt
Definition: cs_lagr.h:851
int npts
Definition: cs_lagr.h:687
cs_real_t trefth
Definition: cs_lagr.h:995
cs_field_t * cvar_omg
Definition: cs_lagr.h:964
int ntxerr
Definition: cs_lagr.h:691
cs_lagr_shape_model_t * cs_glob_lagr_shape_model
Definition: cs_lagr.h:892
cs_lagr_agglomeration_model_t * cs_glob_lagr_agglomeration_model
Definition: cs_lagr.h:468
cs_gnum_t n_g_fouling
Definition: cs_lagr.h:351
int ltsthe
Definition: cs_lagr.h:637
cs_real_t * xwatch
Definition: cs_lagr.h:1016
const cs_lagr_zone_data_t * cs_glob_lagr_volume_conditions
cs_real_t visls0
Definition: cs_lagr.h:917
cs_real_t velocity_magnitude
Definition: cs_lagr.h:579
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:378
Definition: cs_lagr.h:124
cs_field_t * temperature
Definition: cs_lagr.h:933
Definition: cs_lagr.h:502
cs_field_t * pressure
Definition: cs_lagr.h:929
cs_lagr_specific_physics_t * cs_glob_lagr_specific_physics
cs_lagr_time_scheme_t * cs_glob_lagr_time_scheme
Definition: cs_lagr.h:104
cs_real_t cstham
Definition: cs_lagr.h:777
Definition: cs_lagr.h:803
cs_lagr_internal_condition_t * cs_glob_lagr_internal_conditions
int consolidation
Definition: cs_lagr.h:303
cs_lagr_fragmentation_model_t * cs_glob_lagr_fragmentation_model
cs_real_t * cp2ch
Definition: cs_lagr.h:1012
int injection_frequency
Definition: cs_lagr.h:550
int * nbprec
Definition: cs_lagr.h:457
int zone_id
Definition: cs_lagr.h:543
int velocity_profile
Definition: cs_lagr.h:563
cs_field_t * cvar_r22
Definition: cs_lagr.h:969
cs_gnum_t n_g_failed
Definition: cs_lagr.h:357
cs_lagr_model_t * cs_glob_lagr_model
cs_real_t * y2ch
Definition: cs_lagr.h:1011
int ihdepv
Definition: cs_lagr.h:863
Definition: cs_lagr.h:93
int ndlaim
Definition: cs_lagr.h:146
int * i_face_zone_id
Definition: cs_lagr.h:733
cs_field_t * cvar_ep
Definition: cs_lagr.h:961
int modcpl
Definition: cs_lagr.h:259
cs_real_t force_consol
Definition: cs_lagr.h:518
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:301
int * zone_type
Definition: cs_lagr.h:712
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:1781
cs_real_t dtp
Definition: cs_lagr.h:531
int iturb
Definition: cs_lagr.h:895
int physical_model
Definition: cs_lagr.h:250
cs_real_t tstatp
Definition: cs_lagr.h:877
cs_real_t epseau
Definition: cs_lagr.h:784
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:576
Definition: cs_lagr.h:325
Definition: cs_lagr.h:102
int nbrclas
Definition: cs_lagr.h:451
cs_real_t * wmole
Definition: cs_lagr.h:1001
int iilagr
Definition: cs_lagr.h:180
int iflow
Definition: cs_lagr.h:434
cs_field_t * cpro_viscls
Definition: cs_lagr.h:943
cs_lagr_clogging_model_t * cs_get_lagr_clogging_model(void)
Definition: cs_lagr.c:1454
int idirla
Definition: cs_lagr.h:267
int ncharm
Definition: cs_lagr.h:902
int precipitation
Definition: cs_lagr.h:305
int has_part_impact_nbr
Definition: cs_lagr.h:834
cs_lagr_boundary_interactions_t * cs_glob_lagr_boundary_interactions
int itpvar
Definition: cs_lagr.h:392
#define END_C_DECLS
Definition: cs_defs.h:496
cs_lagr_source_terms_t * cs_get_lagr_source_terms(void)
Definition: cs_lagr.c:1514
int ico
Definition: cs_lagr.h:991
cs_real_t tpart
Definition: cs_lagr.h:410
cs_gnum_t n_g_total
Definition: cs_lagr.h:336
cs_real_t mporos
Definition: cs_lagr.h:471
cs_real_t rate_consol
Definition: cs_lagr.h:516
int inclgt
Definition: cs_lagr.h:848
Definition: cs_lagr.h:105
cs_real_t * ahetch
Definition: cs_lagr.h:1013
Definition: cs_lagr.h:489
cs_real_t * h02ch
Definition: cs_lagr.h:1006
cs_lagr_particle_counter_t * cs_lagr_update_particle_counter(void)
Update global particle counter.
Definition: cs_lagr.c:1358
cs_real_t rho
Definition: cs_lagr.h:455
cs_real_t dnpenc
Definition: cs_lagr.h:767
cs_gnum_t n_g_cumulative_total
Definition: cs_lagr.h:329
cs_lagr_brownian_t * cs_glob_lagr_brownian
cs_real_t * y1ch
Definition: cs_lagr.h:1010
int resuspension
Definition: cs_lagr.h:290
cs_lagr_precipitation_model_t * cs_glob_lagr_precipitation_model
int ihsum
Definition: cs_lagr.h:869
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:584
cs_lagr_extra_module_t * cs_get_lagr_extra_module(void)
Definition: cs_lagr.c:1700
cs_lagr_brownian_t * cs_get_lagr_brownian(void)
Definition: cs_lagr.c:1550
cs_real_t base_diameter
Definition: cs_lagr.h:505
int * n_injection_sets
Definition: cs_lagr.h:714
int ncharb
Definition: cs_lagr.h:899
int inclg
Definition: cs_lagr.h:845
cs_real_t fion
Definition: cs_lagr.h:796
int idiffl
Definition: cs_lagr.h:279
cs_real_3_t * grad_pr
Definition: cs_lagr.h:977
cs_field_t * viscl
Definition: cs_lagr.h:940
cs_real_t diameter_variance
Definition: cs_lagr.h:585
cs_lagr_time_step_t * cs_glob_lagr_time_step
cs_lagr_source_terms_t * cs_glob_lagr_source_terms
Definition: cs_lagr.h:134
Definition: cs_lagr.h:740
cs_real_t w_deposited
Definition: cs_lagr.h:372
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:1131
cs_real_t w_fouling
Definition: cs_lagr.h:375
cs_field_t * t_gaz
Definition: cs_lagr.h:934
cs_lagr_extra_module_t * cs_glob_lagr_extra_module
cs_real_t * particle_flow_rate
Definition: cs_lagr.h:722
int n_stat_classes
Definition: cs_lagr.h:316
cs_real_t diam_mean
Definition: cs_lagr.h:473
Definition: cs_lagr.h:133
cs_real_t modyeq
Definition: cs_lagr.h:439
cs_real_t density
Definition: cs_lagr.h:601
cs_lagr_encrustation_t * cs_glob_lagr_encrustation
cs_real_t param_chmb
Definition: cs_lagr.h:482
cs_lagr_precipitation_model_t * cs_get_lagr_precipitation_model(void)
Provide access to cs_lagr_precipitation_model_t.
Definition: cs_lagr.c:1442
cs_lagr_time_step_t * cs_get_lagr_time_step(void)
Definition: cs_lagr.c:1502
cs_gnum_t n_g_deposited
Definition: cs_lagr.h:348
int impvar
Definition: cs_lagr.h:402
cs_field_t * vel
Definition: cs_lagr.h:937
cs_real_t phi_s
Definition: cs_lagr.h:790
void cs_lagr_finalize(void)
Definition: cs_lagr.c:1166
Definition: cs_lagr.h:774
int icp
Definition: cs_lagr.h:908
int itsmas
Definition: cs_lagr.h:657
cs_real_t emissivity
Definition: cs_lagr.h:611
cs_lagr_internal_condition_t * cs_lagr_get_internal_conditions(void)
Return pointer to the main internal conditions structure.
Definition: cs_lagr.c:1565
Definition: cs_lagr.h:91
int lamvbr
Definition: cs_lagr.h:805
cs_lagr_reentrained_model_t * cs_glob_lagr_reentrained_model
cs_real_t rayasg
Definition: cs_lagr.h:441
cs_lagr_shape_model_t * cs_get_lagr_shape_model(void)
Definition: cs_lagr.c:1466
cs_gnum_t n_g_new
Definition: cs_lagr.h:339
cs_field_t * cvar_rij
Definition: cs_lagr.h:974
cs_real_t max_stat_weight
Definition: cs_lagr.h:493
Definition: cs_lagr.h:426
cs_real_t scalar_kernel
Definition: cs_lagr.h:494
int radiative_model
Definition: cs_lagr.h:905
int npencr
Definition: cs_lagr.h:748
int shape
Definition: cs_lagr.h:299
cs_real_t tmamax
Definition: cs_lagr.h:697
void cs_lagr_finalize_internal_cond(void)
Definition: cs_lagr.c:1672
int fragmentation
Definition: cs_lagr.h:314
cs_real_t * mp_diss
Definition: cs_lagr.h:461
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:1241
cs_real_t scalar_kernel
Definition: cs_lagr.h:504
Definition: cs_lagr.h:166
int natom
Definition: cs_lagr.h:997
void cs_lagr_solve_initialize(const cs_real_t *dt)
Definition: cs_lagr.c:1715
Definition: cs_lagr.h:156