7.1
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 Tensor */
978 
979  /* Total pressure gradient */
981 
982  /* velocity gradient */
984 
986 
988 /*--------------------------------------------*/
989 
990 typedef struct {
991 
992  int ih2o; // cpincl
993  int io2; // cpincl
994  int ico; // cpincl
995 
996  int iatc; // ppthch
997  cs_real_t prefth; // ppthch
998  cs_real_t trefth; // ppthch
999 
1000  int natom; // = 5;
1001  cs_real_t *wmolat; // dim = natom
1002 
1003  int ngazem; // = 20;
1004  cs_real_t *wmole; // ngazem
1005  int *iym1;
1006 
1007  int ncharm; // cpincl
1008  cs_real_t *a1ch; // ncharm
1022 
1024 
1025 /*============================================================================
1026  * Global variables
1027  *============================================================================*/
1028 
1032 
1036 
1039 
1042 
1045 
1046 /* Lagrangian log output every frequency_n time steps */
1047 
1048 extern int cs_glob_lagr_log_frequency_n;
1049 
1050 /* Statisics on boundaries */
1051 
1052 extern cs_real_t *bound_stat;
1053 
1059 
1062 
1070 
1073 
1077 
1078 /* Projection matrices for global to local coordinates on boundary faces */
1080 
1081 /*============================================================================
1082  * Public function prototypes
1083  *============================================================================*/
1084 
1085 /*----------------------------------------------------------------------------*/
1098 /*----------------------------------------------------------------------------*/
1099 
1102  int zone_id,
1103  int set_id);
1104 
1105 /*----------------------------------------------------------------------------*/
1111 /*----------------------------------------------------------------------------*/
1112 
1113 void
1115 
1116 /*----------------------------------------------------------------------------*/
1122 /*----------------------------------------------------------------------------*/
1123 
1126 
1127 /*----------------------------------------------------------------------------*/
1136 /*----------------------------------------------------------------------------*/
1137 
1140 
1141 /*----------------------------------------------------------------------------
1142  * Provide access to cs_lagr_particle_counter_t
1143  *
1144  * needed to initialize structure with GUI
1145  *----------------------------------------------------------------------------*/
1146 
1149 
1150 /*----------------------------------------------------------------------------
1151  * Provide access to cs_lagr_reentrained_model_t
1152  *
1153  * needed to initialize structure with GUI
1154  *----------------------------------------------------------------------------*/
1155 
1158 
1159 /*----------------------------------------------------------------------------
1160  * Provide access to cs_lagr_precipitation_model_t
1161  *
1162  * needed to initialize structure with GUI
1163  *----------------------------------------------------------------------------*/
1164 
1167 
1168 /*----------------------------------------------------------------------------
1169  * Provide access to cs_lagr_clogging_model_t
1170  *
1171  * needed to initialize structure with GUI
1172  *----------------------------------------------------------------------------*/
1173 
1176 
1177 /*----------------------------------------------------------------------------
1178  * Provide access to cs_lagr_shape_model_t
1179  *
1180  * needed to initialize structure with GUI
1181  *----------------------------------------------------------------------------*/
1182 
1185 
1186 /*----------------------------------------------------------------------------
1187  * Provide access to cs_lagr_agglomeration_model_t
1188  *
1189  * needed to initialize structure with GUI
1190  *----------------------------------------------------------------------------*/
1191 
1194 
1195 /*----------------------------------------------------------------------------
1196  * Provide access to cs_lagr_consolidation_model_t
1197  *
1198  * needed to initialize structure with GUI
1199  *----------------------------------------------------------------------------*/
1200 
1203 
1204 /*----------------------------------------------------------------------------
1205  * Provide access to cs_lagr_time_step_t
1206  *
1207  * needed to initialize structure with GUI
1208  *----------------------------------------------------------------------------*/
1209 
1211 cs_get_lagr_time_step(void);
1212 
1213 /*----------------------------------------------------------------------------
1214  * Provide access to cs_lagr_source_terms_t
1215  *
1216  * needed to initialize structure with GUI
1217  *----------------------------------------------------------------------------*/
1218 
1221 
1222 /*----------------------------------------------------------------------------
1223  * Provide access to cs_lagr_encrustation_t
1224  *
1225  * needed to initialize structure with GUI
1226  *----------------------------------------------------------------------------*/
1227 
1230 
1231 /*----------------------------------------------------------------------------
1232  * Provide access to cs_lagr_physico_chemical_t
1233  *
1234  * needed to initialize structure with GUI
1235  *----------------------------------------------------------------------------*/
1236 
1239 
1240 /*----------------------------------------------------------------------------
1241  * Provide access to cs_lagr_brownian_t
1242  *
1243  * needed to initialize structure with GUI
1244  *----------------------------------------------------------------------------*/
1245 
1247 cs_get_lagr_brownian(void);
1248 
1249 /*----------------------------------------------------------------------------*/
1255 /*----------------------------------------------------------------------------*/
1256 
1259 
1260 /*----------------------------------------------------------------------------*/
1266 /*----------------------------------------------------------------------------*/
1267 
1270 
1271 /*----------------------------------------------------------------------------*/
1277 /*----------------------------------------------------------------------------*/
1278 
1281 
1282 /*----------------------------------------------------------------------------*/
1286 /*----------------------------------------------------------------------------*/
1287 
1288 void
1290 
1291 /*----------------------------------------------------------------------------
1292  * Destroy finalize the global cs_lagr_internal_condition_t structure.
1293  *----------------------------------------------------------------------------*/
1294 
1295 void
1297 
1298 /*----------------------------------------------------------------------------
1299  * Provide access to cs_lagr_boundary_interactions_t
1300  *
1301  * needed to initialize structure with GUI
1302  *----------------------------------------------------------------------------*/
1303 
1306 
1307 /*----------------------------------------------------------------------------
1308  * Provide access to cs_lagr_extra_module_t
1309  *----------------------------------------------------------------------------*/
1310 
1313 
1314 /*----------------------------------------------------------------------------
1315  * Prepare for execution of the Lagrangian model.
1316  *
1317  * This should be called before the fist call to cs_lagr_solve_time_step.
1318  *
1319  * parameters:
1320  * dt <-- time step (per cell)
1321  *----------------------------------------------------------------------------*/
1322 
1323 void
1325 
1326 /*--------------------------------------------------------------------
1327  * Execute one time step of the Lagrangian model.
1328  *
1329  * This is the main function for that model.
1330  *
1331  * parameters:
1332  * itypfb <-- boundary face types
1333  * dt <-- time step (per cell)
1334  *-------------------------------------------------------------------- */
1335 
1336 void
1337 cs_lagr_solve_time_step(const int itypfb[],
1338  const cs_real_t *dt);
1339 
1340 /*----------------------------------------------------------------------------
1341  * Return pointers to lagrangian arrays
1342  *
1343  * This function is intended for use by Fortran wrappers.
1344  *
1345  * parameters:
1346  * dim_bound_stat --> dimensions for bound_stat pointer
1347  * p_bound_stat --> bound_stat pointer
1348  *----------------------------------------------------------------------------*/
1349 
1350 void
1351 cs_lagr_init_c_arrays(int dim_cs_glob_lagr_source_terms[2],
1352  cs_real_t **p_cs_glob_lagr_source_terms);
1353 
1354 /*----------------------------------------------------------------------------
1355  * Free lagrangian arrays
1356  *
1357  * This function is intended for use by Fortran wrappers.
1358  *----------------------------------------------------------------------------*/
1359 
1360 void
1361 cs_lagr_finalize(void);
1362 
1363 /*----------------------------------------------------------------------------*/
1364 
1366 
1367 #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:1577
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:301
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:1673
Definition: cs_lagr.h:990
int iclogh
Definition: cs_lagr.h:865
cs_real_t temperature
Definition: cs_lagr.h:593
cs_real_t * enc1
Definition: cs_lagr.h:763
cs_real_33_t * grad_vel
Definition: cs_lagr.h:983
void cs_lagr_injection_set_default(cs_lagr_injection_set_t *zis)
Initialize injection set data structure fields to defaults.
Definition: cs_lagr.c:1252
Definition: cs_lagr.h:536
int io2
Definition: cs_lagr.h:993
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:1522
cs_real_t * e2ch
Definition: cs_lagr.h:1012
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:1510
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:1021
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:1462
int fouling
Definition: cs_lagr.h:317
int ngazem
Definition: cs_lagr.h:1003
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:510
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:1474
int itsfp4
Definition: cs_lagr.h:680
cs_real_t * rho0ch
Definition: cs_lagr.h:1018
cs_real_t * a2ch
Definition: cs_lagr.h:1011
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:1325
int location_id
Definition: cs_lagr.h:556
cs_real_t * wmolat
Definition: cs_lagr.h:1001
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:322
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:1020
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:997
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:1007
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:1601
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:996
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:1413
Definition: cs_lagr.h:90
cs_field_t * x_m
Definition: cs_lagr.h:964
int ih2o
Definition: cs_lagr.h:992
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:1625
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:1399
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:1008
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:1017
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:1010
cs_real_t w_new
Definition: cs_lagr.h:374
int * iym1
Definition: cs_lagr.h:1005
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:998
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:1019
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:335
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:1015
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
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:1014
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:316
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:1765
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:1004
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:1438
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:511
cs_lagr_source_terms_t * cs_get_lagr_source_terms(void)
Definition: cs_lagr.c:1498
int ico
Definition: cs_lagr.h:994
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:1016
Definition: cs_lagr.h:500
cs_real_t * h02ch
Definition: cs_lagr.h:1009
cs_lagr_particle_counter_t * cs_lagr_update_particle_counter(void)
Update global particle counter.
Definition: cs_lagr.c:1342
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:1013
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:342
cs_real_t diameter
Definition: cs_lagr.h:595
cs_lagr_extra_module_t * cs_get_lagr_extra_module(void)
Definition: cs_lagr.c:1684
cs_lagr_brownian_t * cs_get_lagr_brownian(void)
Definition: cs_lagr.c:1534
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:980
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:1115
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:1426
cs_lagr_time_step_t * cs_get_lagr_time_step(void)
Definition: cs_lagr.c:1486
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:1150
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:1549
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:1450
cs_gnum_t n_g_new
Definition: cs_lagr.h:350
cs_field_t * cvar_rij
Definition: cs_lagr.h:977
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:1656
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:1225
cs_real_t scalar_kernel
Definition: cs_lagr.h:515
Definition: cs_lagr.h:182
int natom
Definition: cs_lagr.h:1000
void cs_lagr_solve_initialize(const cs_real_t *dt)
Definition: cs_lagr.c:1699
Definition: cs_lagr.h:172