programmer's documentation
cs_lagr.h
Go to the documentation of this file.
1 #ifndef __CS_LAGR_H__
2 #define __CS_LAGR_H__
3 
4 /*============================================================================
5  * Functions and types for the Lagrangian module
6  *============================================================================*/
7 
8 /*
9  This file is part of Code_Saturne, a general-purpose CFD tool.
10 
11  Copyright (C) 1998-2018 EDF S.A.
12 
13  This program is free software; you can redistribute it and/or modify it under
14  the terms of the GNU General Public License as published by the Free Software
15  Foundation; either version 2 of the License, or (at your option) any later
16  version.
17 
18  This program is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
20  FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
21  details.
22 
23  You should have received a copy of the GNU General Public License along with
24  this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
25  Street, Fifth Floor, Boston, MA 02110-1301, USA.
26 */
27 
28 /*----------------------------------------------------------------------------*/
29 
30 #include "cs_defs.h"
31 
32 #include "assert.h"
33 #include "cs_base.h"
34 #include "cs_field.h"
35 
36 /*----------------------------------------------------------------------------*/
37 
39 
40 /*============================================================================
41  * Type definitions
42  *============================================================================*/
43 
46 typedef enum {
47 
61 
63 
66 typedef enum {
74 
76 /*---------------------*/
77 
78 typedef struct {
79 
80  int nusbrd;
83  int nflagm;
84  int ndlaim;
86  int ncharm2;
87  int nlayer;
90 
92 /*---------------------*/
93 
94 typedef struct {
95 
96  int ntersl;
97  int nvisbr;
100 
102 /*-----------------------------------------------------*/
103 
104 typedef struct {
105 
118  int iilagr;
119 
120  /* indicates the steady (=1) or unsteady (=0) state of the
121  continuous phase flow
122  in particular, \ref isttio = 1 is needed in order to:
123  calculate steady statistics in the volume or at the boundaries
124  (starting respectively from the iterations \ref nstist)
125  and calculate time-averaged two-way coupling source terms (from the
126  time step \ref nstits).
127  Useful if \ref iilagr=1 or \ref iilagr=2 (if \ref iilagr=3,
128  then \ref isttio=1 automatically) */
129  int isttio;
130 
136  int isuila;
137 
139  int t_order;
140 
147  int modcpl;
148 
152  int idirla;
153 
158  int idistu;
159 
164  int idiffl;
165 
171  int ilapoi;
172 
189 
192 
194 
196 /*-----------------------------------------------------------*/
197 
198 typedef struct {
199 
210  int physical_model; /* FIXME: => enum: CS_LAGR_PHYS_STD,
211  CS_LAGR_PHYS_COAL,
212  CS_LAGR_PHYS_HEAT... */
214 
216  int dlvo;
217 
221 
225 
226  /* - 0: no clogging model
227  - 1: clogging model */
228  int clogging;
229 
230  /* - 0: no consolidation model
231  - 1: consolidation model */
233 
235  int fouling;
236 
239 
241 
242 /* ========================================================================== */
243 
244 typedef struct {
245 
249 
253 
256 
259 
262 
265 
268 
271 
274 
277 
280 
283 
286 
289 
292 
294 
295 /* ========================================================================== */
296 
297 typedef struct {
298 
299  /* activation (=1) or not (=0) of an evolution equation on the particle
300  temperature (in degrees Celsius).
301  Useful if \ref physical_model=1 and if there is a thermal scalar associated with
302  the continuous phase
303  */
304  int itpvar;
305 
306  /* activation (=1) or not (=0) of an evolution equation on the particle
307  diameter. Useful if \ref physical_model = 1
308  */
309  int idpvar;
310 
311  /* activation (=1) or not (=0) of an evolution equation on the particle mass
312  Useful if \ref physical_model = 1
313  */
314  int impvar;
315 
316  /* initialization temperature (in degree Celsius) for the particles already
317  present in the calculation domain when an evolution equation on
318  the particle temperature is activated during a calculation (\ref physical_model =
319  1 and \ref itpvar = 1).
320  Useful if \ref isuila = 1 and \ref itpvar = 0 in the previous calculation
321  */
323 
324  /* initialization value for the specific heat (\f$ J.kg^{-1}.K^{-1} \f$)
325  of the particles already present
326  in the calculation domain when an evolution equation
327  on the particle temperature is activated during a calculation
328  (\ref physical_model = 1 and \ref itpvar = 1).
329  Useful if \ref isuila = 1 and \ref itpvar = 0 in the previous calculation
330  */
332 
334 
335 /* ========================================================================== */
336 
337 typedef struct {
338 
339  /* - 0: no resuspension model
340  - 1: resuspension model */
341  int ireent;
342 
343  /* - 0: no head losses calculation for influence of the deposit on the flow
344  - 1: head losses calculation for influence of the deposit on the flow */
345  int iflow;
346 
347  /* Parameters of the particle resuspension model*/
353 
355 
356 /* ========================================================================== */
357 
358 typedef struct {
359 
360  /* number of particle classes*/
361  int nbrclas;
362  /* diameter of particles formed by precipitation*/
364  /* density of particles formed by precipitation*/
366  /* number of precipitated particles */
367  int *nbprec;
368  /* */
370  /* number of precipitated particles */
372 
374 
375 /* ========================================================================== */
376 
377 typedef struct {
378 
379  /* Parameter of the particle clogging model */
384 
386 
387 /* ========================================================================== */
388 
389 typedef struct {
390 
391  /* Parameter of the particle consolidation model */
396 
398 
399 /* ========================================================================== */
400 
401 typedef struct {
402 
403  /* current step id (for 2nd order scheme) */
404  int nor;
405 
406  /* duration of a Lagrangian iteration */
408 
409  /* physical time of the Lagrangian simulation */
411 
413 
414 /* ========================================================================== */
415 
416 typedef struct {
417 
420 
424 
431 
436 
441 
446 
451 
454 
456  int cluster;
457 
460 
462  cs_real_t velocity[3];
463 
466 
469 
472 
475 
478 
481 
484 
487 
490 
493 
496 
499 
502 
505 
508 
510 
511 /* ========================================================================== */
512 
513 /* ========================================================================== */
514 
515 typedef struct {
516 
520  int ltsdyn;
521 
524  int ltsmas;
525 
526  /* if \ref physical_model = 1 and \ref itpvar = 1, \ref ltsthe
527  activates (=1) or not (=0) the two-way coupling on temperature.
528  if \ref physical_model = 2, \ref ltsthe activates (=1) or not (=0) the
529  two-way coupling on the eulerian variables related to pulverised
530  coal combustion.
531  Useful if \ref iilagr = 2 */
532  int ltsthe;
533 
535  int itsvx;
536 
538  int itsvy;
539 
541  int itsvz;
542 
545  int itsli;
546 
547  /* explicit source term for the turbulent dissipation and the
548  turbulent energy if the \f$k-\varepsilon\f$ turbulence model is used
549  for the continuous phase */
550  int itske;
551 
555  int itsr11;
556 
560  int itsr12;
561 
565  int itsr13;
566 
570  int itsr22;
571 
575  int itsr23;
576 
580  int itsr33;
581 
584  int itste;
585 
588  int itsti;
589 
591  int itsmas;
592 
593  /* source term for the light volatile matters */
594 //TODO
595  int *itsmv1;//ncharm2
596 
597  /* source term for the heavy volatile matters */
598 //TODO
599  int *itsmv2;//ncharm2
600 
602  int itsco;
603 
605  int itsfp4;
606 
619  int nstits;
620 
622  int npts;
623 
626  int ntxerr;
627 
630 
633 
636 
638 
639 /* ========================================================================== */
640 
641 /* Structures useful to deal with boundary conditions
642  For USLABO => _boundary_track_treatment */
643 
644 typedef struct {
645 
646  int n_b_zones; /* NFRLAG */
648 
649  cs_lnum_t *b_zone_id; /* ILFLAG */
650  int *b_zone_classes; /* IUSNCL */
651  int *b_zone_natures; /* IUSCLB */
652 
653  int *b_face_zone_id; /* IFRLAG */
654 
656 
657  cs_real_t *particle_flow_rate; /* DEBLAG -> post-processing use */
658 
660 
661 /* Structures useful to deal with iternal conditions */
662 
663 typedef struct {
664 
666 
668 
669 /* ========================================================================== */
670 
671 typedef struct {
672 
673  /* activates (=1) or not (=0) the option of coal particle fouling.
674  It then is necessary to specify the domain boundaries
675  on which fouling may take place. Useful if \ref physical_model = 2*/
676  int iencra;
677 
678  /* encrustation data*/
679  int npencr;
680  // TODO cf particles->n_part_fou in cs_lagr_tracking.c
681 
682  /* encrustation data*/
683 //TODO
684  cs_real_t *enc1;//ncharm2
685  /* encrustation data*/
686 //TODO
687  cs_real_t *enc2;//ncharm2
688 
689  /* limit temperature (in degree Celsius) below which the coal particles do
690  not cause any fouling (if the fouling model is activated).
691  Useful if \ref physical_model = 2 and \ref iencra = 1*/
692 //TODO
693  cs_real_t *tprenc;//ncharm2
694 
695  /* ash critical viscosity in \f$ kg.m^{-1}.s^{-1} \f$, in the fouling model
696  cf J.D. Watt et T. Fereday (J.Inst.Fuel, Vol.42-p99).
697  Useful if \ref physical_model = 2 and \ref iencra = 1*/
698 //TODO
699  cs_real_t *visref;//ncharm2
700 
701  /* encrustation data */
703 
705 
706 /* ========================================================================== */
707 
708 typedef struct {
709 
712 
716 
719 
722 
725 
728 
731 
733 
734 /* ========================================================================== */
735 
736 typedef struct {
737 
738  /* brownnian motion activation */
739  int lamvbr;
740 
742 
743 /* ========================================================================== */
744 
745 typedef struct {
746 
749  int nusbor;
750 
757  int npstf;
758 
765  int npstft;
766 
772  int inbrbd;
773 
779  int iflmbd;
780 
784  int iangbd;
785 
789  int ivitbd;
790 
794  int iclgst;
795 
797  int iencnbbd;
798 
800  int iencmabd;
801 
803  int iencdibd;
804 
806  int iencckbd;
807 
809  int inbr;
810 
812  int iflm;
813 
815  int iang;
816 
818  int ivit;
819 
821  int ires;
822 
824  int iflres;
825 
827  int iencnb;
828 
830  int iencma;
831 
833  int iencdi;
834 
836  int iencck;
837 
839  int *iusb;
840 
841  /* the recordings in \ref bound_stat at every particle/boundary interaction are
842  cumulated values (possibly reset to zero at every iteration in the
843  unsteady case). They must therefore be divided by a quantity to
844  get boundary statistics. The user can choose between two average types:
845  - = 0: no average is applied to the recorded cumulated values.
846  - = 1: a time-average is calculated. The cumulated value
847  is divided by the physical duration in the case of steady
848  averages (\ref isttio=1). The cumulated value is divided by the
849  value of the last time step in the case of unsteady averages
850  (\ref isttio=0), and also in the case of steady averages while the
851  absolute iteration number is inferior to \ref nstist.
852  - = 2: a particulate average is calculated. The cumulated value is divided
853  by the number of particle/boundary interactions (in terms of
854  statistical weight) recorded in \ref bound_stat "bound_stat"(nfabor,inbr).
855  This average can only be calculated when \ref inbrbd=1.
856  Only the cumulated value is recorded in the restart file. */
857  int *imoybr;
858 
860  int inclg;
861 
863  int inclgt;
864 
866  int iclogt;
867 
869  int iclogh;
870 
872  int iscovc;
873 
874  /* id for mean of particle deposition height */
875  int ihdepm;
876 
877  /* id for variance of particle deposition height */
878  int ihdepv;
879 
880  /* id for mean diameter of deposited particles */
881  int ihdiam;
882 
883  /* id for sum of deposited particle diameters */
884  int ihsum;
885 
893 
900  char **nombrd;
901 
903 
904 /* ========================================================================== */
905 
906 typedef struct {
907 
908  /* Turbulence model */
909  int iturb;
910  int itytur;
911 
912  /* cpincl */
913  int ncharb;
914 
915  /* ppppar */
916  int ncharm;
917 
918  /* radiation */
919  int iirayo;
920 
921  /* icp */
922  int icp;
923 
924  /* diftl0 */
926 
927  /* cmu */
929 
930  /* visls0 */
932 
933  /*****************
934  * Useful fields *
935  *****************/
936 
937  /* wall ustar */
939 
940  /* Fluid density */
942 
943  /* Fluid pressure */
945 
946  /* Fluid temparature */
950 
951  /* Fluid velocity */
953 
954  /* Fluid viscosity */
956 
957  /* Fluid viscosity */
959 
960  /* Fluid specific heat capacity */
962 
963  /* Radiat. */
965 
966  /* Combustion */
970 
971  /* Turbulence */
972  /* Turbulent intensity */
974 
975  /* Turbulent dissipation */
977 
978  /* Omega from k-omega SST model*/
980 
981  /* Reynolds stress component Rxx */
983  /* Reynolds stress component Ryy */
985  /* Reynolds stress component Rzz */
987 
988  /* Reynolds Stress Tensor */
990 
992 
993 /* external data relative to coal combustion */
994 
995 typedef struct {
996 
997  int ih2o; // cpincl
998  int io2; // cpincl
999  int ico; // cpincl
1000 
1001  int iatc; // ppthch
1002  cs_real_t prefth; // ppthch
1003  cs_real_t trefth; // ppthch
1004 
1005  int natom; // = 5;
1006  cs_real_t *wmolat; // dim = natom
1007 
1008  int ngazem; // = 20;
1009  cs_real_t *wmole; // ngazem
1010  int *iym1;
1011 
1012  int ncharm; // cpincl
1013  cs_real_t *a1ch; // ncharm
1027 
1029 
1030 /*============================================================================
1031  * Global variables
1032  *============================================================================*/
1033 
1037 
1041 
1044 
1047 
1050 
1051 /* Lagrangian log output every frequency_n time steps */
1052 
1053 extern int cs_glob_lagr_log_frequency_n;
1054 
1055 /* Statisics on borders*/
1056 extern cs_real_t *bound_stat;
1057 
1058 extern int cs_glob_lagr_nzone_max;
1059 extern int cs_glob_lagr_nclass_max;
1060 
1072 
1075 
1079 
1080 /* Unit normals and offsets of boundary faces */
1082 
1083 /* Projection matrices for global to local coordinates on boundary faces */
1085 
1086 /*============================================================================
1087  * Public function prototypes
1088  *============================================================================*/
1089 
1090 /*----------------------------------------------------------------------------*/
1100 /* ----------------------------------------------------------------------------*/
1101 
1103 cs_lagr_get_zone_class_data(int iclass,
1104  int izone);
1105 
1106 /*----------------------------------------------------------------------------*/
1117 /*----------------------------------------------------------------------------*/
1118 
1119 void
1121  int izone,
1122  int number,
1123  int freq,
1124  int stat);
1125 
1126 /*----------------------------------------------------------------------------*/
1136 /*----------------------------------------------------------------------------*/
1137 
1138 void
1140  int izone,
1141  int profile,
1142  cs_real_t *temp,
1144 
1145 /*----------------------------------------------------------------------------*/
1153 /*----------------------------------------------------------------------------*/
1154 
1155 void
1156 cs_lagr_set_zone_class_cp(int iclass,
1157  int izone,
1158  cs_real_t cp);
1159 
1160 /*----------------------------------------------------------------------------*/
1176 /*----------------------------------------------------------------------------*/
1177 
1178 void
1179 cs_lagr_set_zone_class_coal(int iclass,
1180  int izone,
1181  int profile,
1182  int number,
1183  cs_real_t *temp,
1184  cs_real_t *coal_mf,
1185  cs_real_t *coke_mf,
1186  cs_real_t *coke_density,
1187  cs_real_t water_mf,
1188  cs_real_t shrink_diam,
1189  cs_real_t init_diam);
1190 
1191 /*----------------------------------------------------------------------------*/
1202 /*----------------------------------------------------------------------------*/
1203 
1204 void
1205 cs_lagr_set_zone_class_stat(int iclass,
1206  int izone,
1207  int profile,
1208  cs_real_t weight,
1209  cs_real_t flow);
1210 
1211 /*----------------------------------------------------------------------------*/
1221 /*----------------------------------------------------------------------------*/
1222 
1223 void
1224 cs_lagr_set_zone_class_diam(int iclass,
1225  int izone,
1226  int profile,
1227  cs_real_t diam,
1228  cs_real_t diam_dev);
1229 
1230 /*----------------------------------------------------------------------------*/
1238 /*----------------------------------------------------------------------------*/
1239 
1240 void
1242  int izone,
1243  cs_real_t density);
1244 
1245 /*----------------------------------------------------------------------------*/
1253 /*----------------------------------------------------------------------------*/
1254 
1255 void
1257  int izone,
1258  cs_real_t foul_index);
1259 
1260 /*----------------------------------------------------------------------------*/
1269 /*----------------------------------------------------------------------------*/
1270 
1271 void
1273  int izone,
1274  int profile,
1275  cs_real_t velocity[]);
1276 
1277 /*----------------------------------------------------------------------------
1278  * \brief Initialize Lagrangian module parameters for a given set of data
1279  *
1280  *
1281  *----------------------------------------------------------------------------*/
1282 
1284 cs_lagr_init_zone_class_new(int iclass,
1285  int izone);
1286 
1287 /*----------------------------------------------------------------------------*/
1294 /*----------------------------------------------------------------------------*/
1295 
1298 
1299 /*----------------------------------------------------------------------------*/
1308 /*----------------------------------------------------------------------------*/
1309 
1312 
1313 /*----------------------------------------------------------------------------
1314  * Provide access to cs_lagr_particle_counter_t
1315  *
1316  * needed to initialize structure with GUI
1317  *----------------------------------------------------------------------------*/
1318 
1321 
1322 /*----------------------------------------------------------------------------
1323  * Provide access to cs_lagr_reentrained_model_t
1324  *
1325  * needed to initialize structure with GUI
1326  *----------------------------------------------------------------------------*/
1327 
1330 
1331 /*----------------------------------------------------------------------------
1332  * Provide access to cs_lagr_precipitation_model_t
1333  *
1334  * needed to initialize structure with GUI
1335  *----------------------------------------------------------------------------*/
1336 
1339 
1340 /*----------------------------------------------------------------------------
1341  * Provide access to cs_lagr_clogging_model_t
1342  *
1343  * needed to initialize structure with GUI
1344  *----------------------------------------------------------------------------*/
1345 
1348 
1349 /*----------------------------------------------------------------------------
1350  * Provide access to cs_lagr_consolidation_model_t
1351  *
1352  * needed to initialize structure with GUI
1353  *----------------------------------------------------------------------------*/
1354 
1357 
1358 /*----------------------------------------------------------------------------
1359  * Provide access to cs_lagr_time_step_t
1360  *
1361  * needed to initialize structure with GUI
1362  *----------------------------------------------------------------------------*/
1363 
1365 cs_get_lagr_time_step(void);
1366 
1367 /*----------------------------------------------------------------------------
1368  * Provide access to cs_lagr_source_terms_t
1369  *
1370  * needed to initialize structure with GUI
1371  *----------------------------------------------------------------------------*/
1372 
1375 
1376 /*----------------------------------------------------------------------------
1377  * Provide access to cs_lagr_encrustation_t
1378  *
1379  * needed to initialize structure with GUI
1380  *----------------------------------------------------------------------------*/
1381 
1384 
1385 /*----------------------------------------------------------------------------
1386  * Provide access to cs_lagr_physico_chemical_t
1387  *
1388  * needed to initialize structure with GUI
1389  *----------------------------------------------------------------------------*/
1390 
1393 
1394 /*----------------------------------------------------------------------------
1395  * Provide access to cs_lagr_brownian_t
1396  *
1397  * needed to initialize structure with GUI
1398  *----------------------------------------------------------------------------*/
1399 
1401 cs_get_lagr_brownian(void);
1402 
1403 /*----------------------------------------------------------------------------*/
1410 /*----------------------------------------------------------------------------*/
1411 
1414 
1415 /*----------------------------------------------------------------------------*/
1422 /*----------------------------------------------------------------------------*/
1423 
1426 
1427 /*----------------------------------------------------------------------------
1428  * Destroy finalize the global cs_lagr_bdy_condition_t structure.
1429  *----------------------------------------------------------------------------*/
1430 
1431 void
1433 
1434 /*----------------------------------------------------------------------------
1435  * Destroy finalize the global cs_lagr_internal_condition_t structure.
1436  *----------------------------------------------------------------------------*/
1437 
1438 void
1440 
1441 /*----------------------------------------------------------------------------
1442  * Provide access to cs_lagr_boundary_interactions_t
1443  *
1444  * needed to initialize structure with GUI
1445  *----------------------------------------------------------------------------*/
1446 
1449 
1450 /*----------------------------------------------------------------------------
1451  * Provide access to cs_lagr_extra_module_t
1452  *
1453  *----------------------------------------------------------------------------*/
1454 
1457 
1458 /*----------------------------------------------------------------------------
1459  * Prepare for execution of the Lagrangian model.
1460  *
1461  * This should be called before the fist call to cs_lagr_solve_time_step.
1462  *
1463  * parameters:
1464  * dt <-- time step (per cell)
1465  *----------------------------------------------------------------------------*/
1466 
1467 void
1469 
1470 /*--------------------------------------------------------------------
1471  * Execute one time step of the Lagrangian model.
1472  *
1473  * This is the main function for that model.
1474  *
1475  * parameters:
1476  * itypfb <-- boundary face types
1477  * dt <-- time step (per cell)
1478  *-------------------------------------------------------------------- */
1479 
1480 void
1481 cs_lagr_solve_time_step(const int itypfb[],
1482  const cs_real_t *dt);
1483 
1484 /*----------------------------------------------------------------------------
1485  * Return pointers to lagrangian arrays
1486  *
1487  * This function is intended for use by Fortran wrappers.
1488  *
1489  * parameters:
1490  * dim_bound_stat --> dimensions for bound_stat pointer
1491  * p_bound_stat --> bound_stat pointer
1492  *----------------------------------------------------------------------------*/
1493 
1494 void
1495 cs_lagr_init_c_arrays(int dim_cs_glob_lagr_source_terms[2],
1496  cs_real_t **p_cs_glob_lagr_source_terms);
1497 
1498 
1499 /*----------------------------------------------------------------------------
1500  * Free lagrangian arrays
1501  *
1502  * This function is intended for use by Fortran wrappers.
1503  *----------------------------------------------------------------------------*/
1504 
1505 void
1506 cs_lagr_finalize(void);
1507 
1508 /*----------------------------------------------------------------------------*/
1509 
1511 
1512 #endif /* __CS_LAGR_H__ */
cs_real_t * bound_stat
const cs_lagr_particle_counter_t * cs_glob_lagr_particle_counter
cs_real_t cmu
Definition: cs_lagr.h:928
int itsli
Definition: cs_lagr.h:545
cs_gnum_t n_g_exit
Definition: cs_lagr.h:261
Definition: cs_lagr.h:78
cs_real_t csthpp
Definition: cs_lagr.h:382
cs_real_t emissivity
Definition: cs_lagr.h:489
unsigned long cs_gnum_t
global mesh entity number
Definition: cs_defs.h:281
Definition: cs_lagr.h:297
int ilapoi
Definition: cs_lagr.h:171
Definition: cs_lagr.h:389
cs_real_t * visref
Definition: cs_lagr.h:699
int idiffl
Definition: cs_lagr.h:164
cs_real_t slope_consol
Definition: cs_lagr.h:394
cs_real_t * enc2
Definition: cs_lagr.h:687
void cs_lagr_set_zone_class_coal(int iclass, int izone, int profile, int number, cs_real_t *temp, cs_real_t *coal_mf, cs_real_t *coke_mf, cs_real_t *coke_density, cs_real_t water_mf, cs_real_t shrink_diam, cs_real_t init_diam)
Set coal parameters for a given class and boundary zone.
Definition: cs_lagr.c:1171
cs_lagr_bdy_condition_t * cs_lagr_get_bdy_conditions(void)
Return pointer to the main boundary conditions structure.
Definition: cs_lagr.c:1709
cs_real_t * particle_flow_rate
Definition: cs_lagr.h:657
Definition: cs_lagr.h:57
cs_real_t phi_p
Definition: cs_lagr.h:721
cs_lagr_boundary_interactions_t * cs_get_lagr_boundary_interactions(void)
Definition: cs_lagr.c:1764
cs_real_t diameter
Definition: cs_lagr.h:468
Definition: cs_lagr.h:58
Definition: cs_lagr.h:995
int iclogh
Definition: cs_lagr.h:869
cs_field_t * cvar_r11
Definition: cs_lagr.h:982
cs_lagr_zone_class_data_t * cs_lagr_init_zone_class_new(int iclass, int izone)
Initialize a new class/boundary zone parameters structure.
Definition: cs_lagr.c:1409
cs_real_t * enc1
Definition: cs_lagr.h:684
Definition: cs_lagr.h:401
int io2
Definition: cs_lagr.h:998
int npstf
Definition: cs_lagr.h:757
Definition: cs_lagr.h:416
int cs_glob_lagr_nzone_max
int deposition
Definition: cs_lagr.h:215
Field descriptor.
Definition: cs_field.h:124
cs_lagr_physico_chemical_t * cs_get_lagr_physico_chemical(void)
Definition: cs_lagr.c:1653
cs_real_t * e2ch
Definition: cs_lagr.h:1017
cs_real_t rayasp
Definition: cs_lagr.h:351
int coal_profile
Definition: cs_lagr.h:450
cs_real_t w_exit
Definition: cs_lagr.h:282
cs_real_t * uetbor
Definition: cs_lagr.h:938
cs_real_t added_mass_const
Definition: cs_lagr.h:191
Definition: cs_lagr.h:60
int itsco
Definition: cs_lagr.h:602
int ires
Definition: cs_lagr.h:821
int ncharm2
Definition: cs_lagr.h:86
Definition: cs_lagr.h:68
int nstits
Definition: cs_lagr.h:619
int iencma
Definition: cs_lagr.h:830
cs_lagr_encrustation_t * cs_get_lagr_encrustation(void)
Definition: cs_lagr.c:1641
int clogging
Definition: cs_lagr.h:228
int temperature_profile
Definition: cs_lagr.h:440
Definition: cs_lagr.h:358
cs_real_t * thcdch
Definition: cs_lagr.h:1026
cs_real_t cppart
Definition: cs_lagr.h:331
cs_lnum_t iconsol
Definition: cs_lagr.h:392
cs_real_t velocity_magnitude
Definition: cs_lagr.h:459
int fouling
Definition: cs_lagr.h:235
int nvisbr
Definition: cs_lagr.h:97
int ngazem
Definition: cs_lagr.h:1008
void cs_lagr_set_zone_class_foul_index(int iclass, int izone, cs_real_t foul_index)
Set density for a given class and boundary zone.
Definition: cs_lagr.c:1361
int ivitbd
Definition: cs_lagr.h:789
int * b_face_zone_id
Definition: cs_lagr.h:653
int iclgst
Definition: cs_lagr.h:794
int n_b_zones
Definition: cs_lagr.h:646
cs_real_t denasp
Definition: cs_lagr.h:349
int ihdepm
Definition: cs_lagr.h:875
Definition: cs_lagr.h:72
int itsr13
Definition: cs_lagr.h:565
#define BEGIN_C_DECLS
Definition: cs_defs.h:451
Definition: cs_lagr.h:59
int iencdi
Definition: cs_lagr.h:833
Definition: cs_lagr.h:56
int itytur
Definition: cs_lagr.h:910
Definition: cs_lagr.h:515
int n_user_variables
Definition: cs_lagr.h:238
Definition: cs_lagr.h:49
int iencra
Definition: cs_lagr.h:676
int ireent
Definition: cs_lagr.h:341
cs_lagr_consolidation_model_t * cs_get_lagr_consolidation_model(void)
Definition: cs_lagr.c:1605
int itsfp4
Definition: cs_lagr.h:605
cs_real_t * coke_density
Definition: cs_lagr.h:507
cs_real_t * rho0ch
Definition: cs_lagr.h:1023
int * iusb
Definition: cs_lagr.h:839
cs_real_t cp
Definition: cs_lagr.h:480
Definition: cs_lagr.h:67
cs_real_t * a2ch
Definition: cs_lagr.h:1016
int isuila
Definition: cs_lagr.h:136
int itsti
Definition: cs_lagr.h:588
void cs_lagr_set_zone_class_injection(int iclass, int izone, int number, int freq, int stat)
Set injection parameters for a given class and boundary zone.
Definition: cs_lagr.c:1281
int distribution_profile
Definition: cs_lagr.h:435
char ** nombrd
Definition: cs_lagr.h:900
cs_real_t foul_index
Definition: cs_lagr.h:477
Definition: cs_lagr.h:198
Definition: cs_lagr.h:54
int nusbrd
Definition: cs_lagr.h:80
int itsr23
Definition: cs_lagr.h:575
int coal_number
Definition: cs_lagr.h:453
cs_real_4_t * cs_glob_lagr_b_u_normal
Definition: cs_field_pointer.h:101
int isttio
Definition: cs_lagr.h:129
cs_lagr_particle_counter_t * cs_lagr_get_particle_counter(void)
Get read/write pointer to global particle counter.
Definition: cs_lagr.c:1489
cs_real_t * wmolat
Definition: cs_lagr.h:1006
cs_field_t * scal_t
Definition: cs_lagr.h:947
Definition: cs_lagr.h:51
int idirla
Definition: cs_lagr.h:152
cs_field_t * cvar_k
Definition: cs_lagr.h:973
int iflmbd
Definition: cs_lagr.h:779
void cs_lagr_set_zone_class_velocity(int iclass, int izone, int profile, cs_real_t velocity[])
Set velocity parameters for a given class and boundary zone.
Definition: cs_lagr.c:1307
cs_real_t * st_val
Definition: cs_lagr.h:635
int nlayer
Definition: cs_lagr.h:87
cs_real_t cs_real_4_t[4]
vector of 4 floating-point values
Definition: cs_defs.h:310
double cs_real_t
Floating-point value.
Definition: cs_defs.h:297
cs_real_t stat_weight
Definition: cs_lagr.h:483
cs_real_t jamlim
Definition: cs_lagr.h:380
int iencnb
Definition: cs_lagr.h:827
Definition: cs_lagr.h:69
int dlvo
Definition: cs_lagr.h:216
cs_real_t lambda_vdw
Definition: cs_lagr.h:715
cs_real_t espasg
Definition: cs_lagr.h:348
int iencck
Definition: cs_lagr.h:836
cs_real_t * xashch
Definition: cs_lagr.h:1025
Definition: cs_lagr.h:50
int idpvar
Definition: cs_lagr.h:309
int ihdiam
Definition: cs_lagr.h:881
int * imoybr
Definition: cs_lagr.h:857
void cs_lagr_set_zone_class_cp(int iclass, int izone, cs_real_t cp)
Set temperature parameters for a given class and boundary zone.
Definition: cs_lagr.c:1142
int iirayo
Definition: cs_lagr.h:919
void cs_lagr_set_zone_class_stat(int iclass, int izone, int profile, cs_real_t weight, cs_real_t flow)
Set coal parameters for a given class and boundary zone.
Definition: cs_lagr.c:1226
cs_lagr_coal_comb_t * cs_glob_lagr_coal_comb
cs_real_t prefth
Definition: cs_lagr.h:1002
int t_order
Definition: cs_lagr.h:139
cs_real_t water_mass_fraction
Definition: cs_lagr.h:492
cs_field_t * x_eau
Definition: cs_lagr.h:968
cs_real_t * tprenc
Definition: cs_lagr.h:693
int itsvz
Definition: cs_lagr.h:541
cs_real_t ttclag
Definition: cs_lagr.h:410
cs_real_t valen
Definition: cs_lagr.h:727
int ntersl
Definition: cs_lagr.h:96
cs_lagr_physico_chemical_t * cs_glob_lagr_physico_chemical
cs_field_t * cpro_cp
Definition: cs_lagr.h:961
int iadded_mass
Definition: cs_lagr.h:188
Definition: cs_lagr.h:745
cs_real_t vmax
Definition: cs_lagr.h:629
int n_temperature_layers
Definition: cs_lagr.h:213
int ncharm
Definition: cs_lagr.h:1012
int inbr
Definition: cs_lagr.h:809
int iang
Definition: cs_lagr.h:815
int nor
Definition: cs_lagr.h:404
int inbrbd
Definition: cs_lagr.h:772
Definition: cs_lagr.h:48
cs_real_33_t * cs_glob_lagr_b_face_proj
cs_field_t * cvar_r33
Definition: cs_lagr.h:986
int n_b_max_zones
Definition: cs_lagr.h:647
int ltsdyn
Definition: cs_lagr.h:520
Definition: cs_lagr.h:70
int * itsmv2
Definition: cs_lagr.h:599
cs_real_t diftl0
Definition: cs_lagr.h:925
int npstft
Definition: cs_lagr.h:765
int iatc
Definition: cs_lagr.h:1001
cs_lagr_reentrained_model_t * cs_get_lagr_reentrained_model(void)
Provide access to cs_lagr_reentrained_model_t.
Definition: cs_lagr.c:1568
cs_field_t * x_m
Definition: cs_lagr.h:969
int ih2o
Definition: cs_lagr.h:997
cs_lagr_consolidation_model_t * cs_glob_lagr_consolidation_model
int roughness
Definition: cs_lagr.h:220
int nusbor
Definition: cs_lagr.h:749
cs_field_t * x_oxyd
Definition: cs_lagr.h:967
Definition: cs_lagr.h:663
int iscovc
Definition: cs_lagr.h:872
cs_lagr_zone_class_data_t * cs_lagr_get_zone_class_data(int iclass, int izone)
Provide access to class/boundary zone parameters structure.
Definition: cs_lagr.c:1388
cs_lagr_specific_physics_t * cs_get_lagr_specific_physics(void)
Provide access to cs_lagr_specific_physics_t.
Definition: cs_lagr.c:1555
cs_lagr_bc_type_t
Definition: cs_lagr.h:46
Definition: cs_field_pointer.h:178
Definition: cs_field_pointer.h:65
int idistu
Definition: cs_lagr.h:158
int itste
Definition: cs_lagr.h:584
int * itsmv1
Definition: cs_lagr.h:595
void cs_lagr_set_zone_class_density(int iclass, int izone, cs_real_t density)
Set density for a given class and boundary zone.
Definition: cs_lagr.c:1340
cs_real_t w_total
Definition: cs_lagr.h:276
int modcpl
Definition: cs_lagr.h:147
int itske
Definition: cs_lagr.h:550
cs_real_t diameter
Definition: cs_lagr.h:363
cs_real_t * a1ch
Definition: cs_lagr.h:1013
int ltsmas
Definition: cs_lagr.h:524
int itsr22
Definition: cs_lagr.h:570
cs_gnum_t n_g_cumulative_failed
Definition: cs_lagr.h:252
cs_real_t * ehetch
Definition: cs_lagr.h:1022
cs_field_t * luminance
Definition: cs_lagr.h:964
cs_real_t * solub
Definition: cs_lagr.h:369
void cs_lagr_set_zone_class_diam(int iclass, int izone, int profile, cs_real_t diam, cs_real_t diam_dev)
Set diameter parameters for a given class and boundary zone.
Definition: cs_lagr.c:1254
cs_field_t * cromf
Definition: cs_lagr.h:941
cs_gnum_t n_g_resuspended
Definition: cs_lagr.h:270
integer, dimension(:), pointer, save itypfb
Definition: pointe.f90:123
cs_real_t * e1ch
Definition: cs_lagr.h:1015
cs_real_t w_new
Definition: cs_lagr.h:279
cs_real_t shrinking_diameter
Definition: cs_lagr.h:501
Definition: cs_lagr.h:55
void cs_lagr_set_zone_class_temperature(int iclass, int izone, int profile, cs_real_t *temp, cs_real_t emissivity)
Set temperature parameters for a given class and boundary zone.
Definition: cs_lagr.c:1113
int * iym1
Definition: cs_lagr.h:1010
int itsvy
Definition: cs_lagr.h:538
int iencckbd
Definition: cs_lagr.h:806
double precision, dimension(:,:,:), allocatable density
Definition: atimbr.f90:124
bool steady_bndy_conditions
Definition: cs_lagr.h:655
int iclogt
Definition: cs_lagr.h:866
int npts
Definition: cs_lagr.h:622
cs_real_t trefth
Definition: cs_lagr.h:1003
cs_field_t * cvar_omg
Definition: cs_lagr.h:979
int ntxerr
Definition: cs_lagr.h:626
int injection_frequency
Definition: cs_lagr.h:423
cs_lagr_deposition_state_t
Definition: cs_lagr.h:66
Definition: cs_lagr.h:906
Definition: cs_lagr.h:377
cs_gnum_t n_g_fouling
Definition: cs_lagr.h:267
int nflagm
Definition: cs_lagr.h:83
Definition: cs_lagr.h:644
int cs_glob_lagr_nclass_max
int ltsthe
Definition: cs_lagr.h:532
cs_real_t * xwatch
Definition: cs_lagr.h:1024
cs_real_t visls0
Definition: cs_lagr.h:931
int itsr12
Definition: cs_lagr.h:560
cs_real_t w_resuspended
Definition: cs_lagr.h:291
cs_field_t * temperature
Definition: cs_lagr.h:948
cs_field_t * pressure
Definition: cs_lagr.h:944
int iencmabd
Definition: cs_lagr.h:800
cs_lagr_specific_physics_t * cs_glob_lagr_specific_physics
cs_lagr_time_scheme_t * cs_glob_lagr_time_scheme
int cluster
Definition: cs_lagr.h:456
cs_real_t cstham
Definition: cs_lagr.h:711
Definition: cs_lagr.h:736
int itsvx
Definition: cs_lagr.h:535
cs_lagr_internal_condition_t * cs_glob_lagr_internal_conditions
int consolidation
Definition: cs_lagr.h:232
cs_real_t * cp2ch
Definition: cs_lagr.h:1020
int * nbprec
Definition: cs_lagr.h:367
int iangbd
Definition: cs_lagr.h:784
int * b_zone_natures
Definition: cs_lagr.h:651
cs_field_t * cvar_r22
Definition: cs_lagr.h:984
cs_gnum_t n_g_failed
Definition: cs_lagr.h:273
cs_real_t * temperature
Definition: cs_lagr.h:465
cs_lagr_model_t * cs_glob_lagr_model
cs_real_t * y2ch
Definition: cs_lagr.h:1019
int ihdepv
Definition: cs_lagr.h:878
int ndlaim
Definition: cs_lagr.h:84
int * i_face_zone_id
Definition: cs_lagr.h:665
cs_field_t * cvar_ep
Definition: cs_lagr.h:976
cs_real_t force_consol
Definition: cs_lagr.h:395
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:293
cs_lagr_clogging_model_t * cs_glob_lagr_clogging_model
void cs_lagr_solve_time_step(const int itypfb[], const cs_real_t *dt)
Definition: cs_lagr.c:1837
cs_real_t dtp
Definition: cs_lagr.h:407
int iturb
Definition: cs_lagr.h:909
int physical_model
Definition: cs_lagr.h:210
cs_real_t tstatp
Definition: cs_lagr.h:892
cs_real_t epseau
Definition: cs_lagr.h:718
int cs_glob_lagr_log_frequency_n
const cs_lagr_const_dim_t * cs_glob_lagr_const_dim
Definition: cs_lagr.h:244
int nbrclas
Definition: cs_lagr.h:361
void cs_lagr_finalize_bdy_cond(void)
Definition: cs_lagr.c:1725
cs_real_t * wmole
Definition: cs_lagr.h:1009
int iilagr
Definition: cs_lagr.h:118
int iflow
Definition: cs_lagr.h:345
cs_field_t * cpro_viscls
Definition: cs_lagr.h:958
cs_lagr_clogging_model_t * cs_get_lagr_clogging_model(void)
Definition: cs_lagr.c:1593
int ivit
Definition: cs_lagr.h:818
int ncharm
Definition: cs_lagr.h:916
int precipitation
Definition: cs_lagr.h:234
cs_lagr_boundary_interactions_t * cs_glob_lagr_boundary_interactions
int itpvar
Definition: cs_lagr.h:304
#define END_C_DECLS
Definition: cs_defs.h:452
cs_lagr_source_terms_t * cs_get_lagr_source_terms(void)
Definition: cs_lagr.c:1629
int ico
Definition: cs_lagr.h:999
cs_real_t * coke_mass_fraction
Definition: cs_lagr.h:498
int itsr11
Definition: cs_lagr.h:555
cs_real_t tpart
Definition: cs_lagr.h:322
int * b_zone_classes
Definition: cs_lagr.h:650
cs_gnum_t n_g_total
Definition: cs_lagr.h:255
cs_real_t mporos
Definition: cs_lagr.h:381
cs_real_t rate_consol
Definition: cs_lagr.h:393
int inclgt
Definition: cs_lagr.h:863
cs_real_t * ahetch
Definition: cs_lagr.h:1021
cs_real_t * h02ch
Definition: cs_lagr.h:1014
cs_lagr_particle_counter_t * cs_lagr_update_particle_counter(void)
Update global particle counter.
Definition: cs_lagr.c:1506
cs_real_t rho
Definition: cs_lagr.h:365
cs_real_t dnpenc
Definition: cs_lagr.h:702
cs_gnum_t n_g_cumulative_total
Definition: cs_lagr.h:248
cs_lagr_zone_class_data_t * lagr_zone_class_data
cs_real_t flow_rate
Definition: cs_lagr.h:486
cs_lagr_brownian_t * cs_glob_lagr_brownian
int iencdibd
Definition: cs_lagr.h:803
cs_real_t * y1ch
Definition: cs_lagr.h:1018
int resuspension
Definition: cs_lagr.h:224
cs_lagr_precipitation_model_t * cs_glob_lagr_precipitation_model
int itsr33
Definition: cs_lagr.h:580
int ihsum
Definition: cs_lagr.h:884
cs_lagr_dim_t * cs_glob_lagr_dim
cs_real_t cs_real_33_t[3][3]
3x3 matrix of floating-point values
Definition: cs_defs.h:315
int iflm
Definition: cs_lagr.h:812
cs_lagr_extra_module_t * cs_get_lagr_extra_module(void)
Definition: cs_lagr.c:1775
cs_lagr_brownian_t * cs_get_lagr_brownian(void)
Definition: cs_lagr.c:1665
cs_lnum_t * b_zone_id
Definition: cs_lagr.h:649
int ncharb
Definition: cs_lagr.h:913
int inclg
Definition: cs_lagr.h:860
int iflres
Definition: cs_lagr.h:824
cs_real_t fion
Definition: cs_lagr.h:730
cs_field_t * viscl
Definition: cs_lagr.h:955
cs_lagr_time_step_t * cs_glob_lagr_time_step
cs_lagr_source_terms_t * cs_glob_lagr_source_terms
Definition: cs_lagr.h:671
cs_real_t w_deposited
Definition: cs_lagr.h:285
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:1016
cs_real_t w_fouling
Definition: cs_lagr.h:288
cs_field_t * t_gaz
Definition: cs_lagr.h:949
cs_lagr_extra_module_t * cs_glob_lagr_extra_module
int n_stat_classes
Definition: cs_lagr.h:237
cs_real_t diam_mean
Definition: cs_lagr.h:383
cs_real_t density
Definition: cs_lagr.h:474
Definition: cs_lagr.h:53
cs_real_t modyeq
Definition: cs_lagr.h:350
int velocity_profile
Definition: cs_lagr.h:430
cs_lagr_encrustation_t * cs_glob_lagr_encrustation
cs_lagr_precipitation_model_t * cs_get_lagr_precipitation_model(void)
Provide access to cs_lagr_precipitation_model_t.
Definition: cs_lagr.c:1581
cs_lagr_time_step_t * cs_get_lagr_time_step(void)
Definition: cs_lagr.c:1617
cs_gnum_t n_g_deposited
Definition: cs_lagr.h:264
int impvar
Definition: cs_lagr.h:314
cs_real_t * coal_mass_fraction
Definition: cs_lagr.h:495
cs_field_t * vel
Definition: cs_lagr.h:952
cs_real_t phi_s
Definition: cs_lagr.h:724
void cs_lagr_finalize(void)
Definition: cs_lagr.c:1043
Definition: cs_lagr.h:52
cs_real_t diameter_variance
Definition: cs_lagr.h:471
Definition: cs_lagr.h:708
int icp
Definition: cs_lagr.h:922
int iencnbbd
Definition: cs_lagr.h:797
int itsmas
Definition: cs_lagr.h:591
cs_lagr_bdy_condition_t * cs_glob_lagr_bdy_conditions
cs_lagr_internal_condition_t * cs_lagr_get_internal_conditions(void)
Return pointer to the main internal conditions structure.
Definition: cs_lagr.c:1680
int lamvbr
Definition: cs_lagr.h:739
cs_lagr_reentrained_model_t * cs_glob_lagr_reentrained_model
cs_real_t rayasg
Definition: cs_lagr.h:352
cs_gnum_t n_g_new
Definition: cs_lagr.h:258
cs_field_t * cvar_rij
Definition: cs_lagr.h:989
Definition: cs_lagr.h:337
int npencr
Definition: cs_lagr.h:679
cs_real_t tmamax
Definition: cs_lagr.h:632
cs_real_t initial_diameter
Definition: cs_lagr.h:504
Definition: cs_lagr.h:71
cs_lnum_t nb_part
Definition: cs_lagr.h:419
void cs_lagr_finalize_internal_cond(void)
Definition: cs_lagr.c:1748
cs_real_t * mp_diss
Definition: cs_lagr.h:371
int diameter_profile
Definition: cs_lagr.h:445
Definition: cs_lagr.h:104
int natom
Definition: cs_lagr.h:1005
void cs_lagr_solve_initialize(const cs_real_t *dt)
Definition: cs_lagr.c:1790
Definition: cs_lagr.h:94