programmer's documentation
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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-2016 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 {
73 
75 /*---------------------*/
76 
77 typedef struct {
78 
79  int nusbrd;
82  int nflagm;
83  int ndlaim;
85  int nvgaus;
86  int nbrgau;
87 
88  int ncharm2;
89  int nlayer;
92 
94 /*---------------------*/
95 
96 typedef struct {
97 
98  int ntersl;
99  int nvisbr;
101 } cs_lagr_dim_t;
102 
104 /*-----------------------------------------------------*/
105 
106 typedef struct {
107 
120  int iilagr;
121 
122  /* indicates the steady (=1) or unsteady (=0) state of the
123  continuous phase flow
124  in particular, \ref isttio = 1 is needed in order to:
125  calculate steady statistics in the volume or at the boundaries
126  (starting respectively from the iterations \ref nstist)
127  and calculate time-averaged two-way coupling source terms (from the
128  time step \ref nstits).
129  Useful if \ref iilagr=1 or \ref iilagr=2 (if \ref iilagr=3,
130  then \ref isttio=1 automatically) */
131  int isttio;
132 
138  int isuila;
139 
141  int t_order;
142 
149  int modcpl;
150 
154  int idirla;
155 
160  int idistu;
161 
166  int idiffl;
167 
173  int ilapoi;
174 
191 
194 
196 
198 /*-----------------------------------------------------------*/
199 
200 typedef struct {
201 
212  int physical_model; /* FIXME: => enum: CS_LAGR_PHYS_STD,
213  CS_LAGR_PHYS_COAL,
214  CS_LAGR_PHYS_HEAT... */
216 
218  int dlvo;
219 
223 
227 
228  /* - 0: no clogging model
229  - 1: clogging model */
230  int clogging;
231 
233  int fouling;
234 
237 
239 
240 /* ========================================================================== */
241 
242 typedef struct {
243 
247 
250 
253 
256 
259 
262 
265 
268 
271 
274 
277 
280 
283 
286 
289 
291 
292 /* ========================================================================== */
293 
294 typedef struct {
295 
296  /* activation (=1) or not (=0) of an evolution equation on the particle
297  temperature (in degrees Celsius).
298  Useful if \ref physical_model=1 and if there is a thermal scalar associated with
299  the continuous phase
300  */
301  int itpvar;
302 
303  /* activation (=1) or not (=0) of an evolution equation on the particle
304  diameter. Useful if \ref physical_model = 1
305  */
306  int idpvar;
307 
308  /* activation (=1) or not (=0) of an evolution equation on the particle mass
309  Useful if \ref physical_model = 1
310  */
311  int impvar;
312 
313  /* initialization temperature (in degree Celsius) for the particles already
314  present in the calculation domain when an evolution equation on
315  the particle temperature is activated during a calculation (\ref physical_model =
316  1 and \ref itpvar = 1).
317  Useful if \ref isuila = 1 and \ref itpvar = 0 in the previous calculation
318  */
320 
321  /* initialization value for the specific heat (\f$ J.kg^{-1}.K^{-1} \f$)
322  of the particles already present
323  in the calculation domain when an evolution equation
324  on the particle temperature is activated during a calculation
325  (\ref physical_model = 1 and \ref itpvar = 1).
326  Useful if \ref isuila = 1 and \ref itpvar = 0 in the previous calculation
327  */
329 
331 
332 /* ========================================================================== */
333 
334 typedef struct {
335 
336  /* - 0: no resuspension model
337  - 1: resuspension model */
338  int ireent;
339 
340  /* - 0: no head losses calculation for influence of the deposit on the flow
341  - 1: head losses calculation for influence of the deposit on the flow */
342  int iflow;
343 
344  /* Parameters of the particle resuspension model*/
350 
352 
353 /* ========================================================================== */
354 
355 typedef struct {
356 
357  /* number of particle classes*/
358  int nbrclas;
359  /* diameter of particles formed by precipitation*/
361  /* density of particles formed by precipitation*/
363  /* number of precipitated particles */
364  int *nbprec;
365  /* */
367  /* number of precipitated particles */
369 
371 
372 /* ========================================================================== */
373 
374 typedef struct {
375 
376  /* Parameter of the particle clogging model */
380 
382 
383 /* ========================================================================== */
384 
385 typedef struct {
386 
387  /* current step id (for 2nd order scheme) */
388  int nor;
389 
390  /* duration of a Lagrangian iteration */
392 
393  /* physical time of the Lagrangian simulation */
395 
397 
398 /* ========================================================================== */
399 
400 typedef struct {
401 
404 
408 
415 
420 
425 
430 
435 
438 
440  int cluster;
441 
444 
446  cs_real_t velocity[3];
447 
450 
453 
456 
459 
462 
465 
468 
471 
474 
477 
480 
483 
486 
489 
492 
494 
495 /* ========================================================================== */
496 
497 /* ========================================================================== */
498 
499 typedef struct {
500 
504  int ltsdyn;
505 
508  int ltsmas;
509 
510  /* if \ref physical_model = 1 and \ref itpvar = 1, \ref ltsthe
511  activates (=1) or not (=0) the two-way coupling on temperature.
512  if \ref physical_model = 2, \ref ltsthe activates (=1) or not (=0) the
513  two-way coupling on the eulerian variables related to pulverised
514  coal combustion.
515  Useful if \ref iilagr = 2 */
516  int ltsthe;
517 
519  int itsvx;
520 
522  int itsvy;
523 
525  int itsvz;
526 
529  int itsli;
530 
531  /* explicit source term for the turbulent dissipation and the
532  turbulent energy if the \f$k-\varepsilon\f$ turbulence model is used
533  for the continuous phase */
534  int itske;
535 
539  int itsr11;
540 
544  int itsr12;
545 
549  int itsr13;
550 
554  int itsr22;
555 
559  int itsr23;
560 
564  int itsr33;
565 
568  int itste;
569 
572  int itsti;
573 
575  int itsmas;
576 
577  /* source term for the light volatile matters */
578 //TODO
579  int *itsmv1;//ncharm2
580 
581  /* source term for the heavy volatile matters */
582 //TODO
583  int *itsmv2;//ncharm2
584 
586  int itsco;
587 
589  int itsfp4;
590 
603  int nstits;
604 
606  int npts;
607 
610  int ntxerr;
611 
614 
617 
620 
622 
623 /* ========================================================================== */
624 
625 /* Structures useful to deal with boundary conditions
626  For USLABO => _boundary_track_treatment */
627 
628 typedef struct {
629 
630  int n_b_zones; /* NFRLAG */
632 
633  cs_lnum_t *b_zone_id; /* ILFLAG */
634  int *b_zone_classes; /* IUSNCL */
635  int *b_zone_natures; /* IUSCLB */
636 
637  int *b_face_zone_id; /* IFRLAG */
638 
640 
641  cs_real_t *particle_flow_rate; /* DEBLAG -> post-processing use */
642 
644 
645 /* Structures useful to deal with iternal conditions */
646 
647 typedef struct {
648 
650 
652 
653 /* ========================================================================== */
654 
655 typedef struct {
656 
657  /* activates (=1) or not (=0) the option of coal particle fouling.
658  It then is necessary to specify the domain boundaries
659  on which fouling may take place. Useful if \ref physical_model = 2*/
660  int iencra;
661 
662  /* encrustation data*/
663  int npencr;
664  // TODO cf particles->n_part_fou in cs_lagr_tracking.c
665 
666  /* encrustation data*/
667 //TODO
668  cs_real_t *enc1;//ncharm2
669  /* encrustation data*/
670 //TODO
671  cs_real_t *enc2;//ncharm2
672 
673  /* limit temperature (in degree Celsius) below which the coal particles do
674  not cause any fouling (if the fouling model is activated).
675  Useful if \ref physical_model = 2 and \ref iencra = 1*/
676 //TODO
677  cs_real_t *tprenc;//ncharm2
678 
679  /* ash critical viscosity in \f$ kg.m^{-1}.s^{-1} \f$, in the fouling model
680  cf J.D. Watt et T. Fereday (J.Inst.Fuel, Vol.42-p99).
681  Useful if \ref physical_model = 2 and \ref iencra = 1*/
682 //TODO
683  cs_real_t *visref;//ncharm2
684 
685  /* encrustation data */
687 
689 
690 /* ========================================================================== */
691 
692 typedef struct {
693 
696 
700 
703 
706 
709 
712 
715 
717 
718 /* ========================================================================== */
719 
720 typedef struct {
721 
722  /* brownnian motion activation */
723  int lamvbr;
724 
726 
727 /* ========================================================================== */
728 
729 typedef struct {
730 
734  int nusbor;
735 
742  int npstf;
743 
751  int npstft;
752 
759  int inbrbd;
760 
766  int iflmbd;
767 
772  int iangbd;
773 
778  int ivitbd;
779 
784  int iclgst;
785 
787  int iencnbbd;
788 
790  int iencmabd;
791 
793  int iencdibd;
794 
796  int iencckbd;
797 
799  int inbr;
800 
802  int iflm;
803 
805  int iang;
806 
808  int ivit;
809 
811  int ires;
812 
814  int iflres;
815 
817  int iencnb;
818 
820  int iencma;
821 
823  int iencdi;
824 
826  int iencck;
827 
829  int *iusb;
830 
831  /* the recordings in \ref bound_stat at every particle/boundary interaction are
832  cumulated values (possibly reset to zero at every iteration in the
833  unsteady case). They must therefore be divided by a quantity to
834  get boundary statistics. The user can choose between two average types:
835  - = 0: no average is applied to the recorded cumulated values.
836  - = 1: a time-average is calculated. The cumulated value
837  is divided by the physical duration in the case of steady
838  averages (\ref isttio=1). The cumulated value is divided by the
839  value of the last time step in the case of unsteady averages
840  (\ref isttio=0), and also in the case of steady averages while the
841  absolute iteration number is inferior to \ref nstist.
842  - = 2: a particulate average is calculated. The cumulated value is divided
843  by the number of particle/boundary interactions (in terms of
844  statistical weight) recorded in \ref bound_stat "bound_stat"(nfabor,inbr).
845  This average can only be calculated when \ref inbrbd=1.
846  Only the cumulated value is recorded in the restart file.
847  Useful if \ref iensi3=1 */
848  int *imoybr;
849 
851  int inclg;
852 
854  int inclgt;
855 
857  int iclogt;
858 
860  int iclogh;
861 
863  int iscovc;
864 
865  /* id for mean of particle deposition height */
866  int ihdepm;
867 
868  /* id for variance of particle deposition height */
869  int ihdepv;
870 
871  /* id for mean diameter of deposited particles */
872  int ihdiam;
873 
874  /* id for sum of deposited particle diameters */
875  int ihsum;
876 
885 
893  char **nombrd;
894 
896 
897 /* ========================================================================== */
898 
899 typedef struct {
900 
901  /* \anchor iensi3
902  activation (=1) or not (=0) of the recording of the particle/boundary
903  interactions in \ref bound_stat, and of the calculation of the
904  statistics at the corresponding boundaries.
905  By default, the statistics are unsteady (reset to zero at every
906  time step). They may be steady if \ref isttio=1 (i.e.
907  calculation of a cumulated value over time, and then calculation of an
908  average over time or over the number of interactions with the boundary).*/
909  int iensi3;
910 
911  /* associates (=1) or not (=0) the variable "velocity of the locally
912  undisturbed fluid flow field" with the output of particles or
913  trajectories. */
914  int ivisv1;
915 
916  /* associates (=1) or not (=0) the variable "particle velocity"
917  with the output of particles or trajectories. */
918  int ivisv2;
919 
920  /* associates (=1) or not (=0) the variable "residence time"
921  with the output of particles or trajectories. */
922  int ivistp;
923 
924  /* associates (=1) or not (=0) the variable "particle diameter"
925  with the output of particles or trajectories. */
926  int ivisdm;
927 
928  /* associates (=1) or not (=0) the variable "particle temperature"
929  with the output of particles or trajectories. */
930  int iviste;
931 
932  /* associates (=1) or not (=0) the variable "particle mass"
933  with the output of particles or trajectories. */
934  int ivismp;
935 
936  /* associates (=1) or not (=0) the variable "shrinking core diameter of
937  the coal particles" with the output of particles or trajectories.
938  useful only if \ref physical_model = 2 */
939  int ivisdk;
940 
941  /* associates (=1) or not (=0) the variable "mass of reactive coal of the
942  coal particles" with the output of particles or trajectories.
943  useful only if \ref physical_model = 2 */
944  int ivisch;
945 
946  /* associates (=1) or not (=0) the variable "mass of coal of the
947  coal particles" with the output of particles or trajectories.
948  useful only if \ref physical_model = 2 */
949  int ivisck;
950 
952  int iviswat;
953 
955 
956 /* ========================================================================== */
957 
958 typedef struct {
959 
960  /* Turbulence model */
961  int iturb;
962  int itytur;
963 
964  /* cpincl */
965  int ncharb;
966 
967  /* ppppar */
968  int ncharm;
969  int nozppm;
970 
971  /* radiation */
972  int iirayo;
973 
974  /* icp */
975  int icp;
976 
977  /* diftl0 */
979 
980  /* cmu */
982 
983  /* visls0 */
985 
986  /*****************
987  * Useful fields *
988  *****************/
989 
990  /* wall ustar */
992 
993  /* Fluid density */
995 
996  /* Fluid pressure */
998 
999  /* Fluid temparature */
1003 
1004  /* Fluid velocity */
1006 
1007  /* Fluid viscosity */
1009 
1010  /* Fluid viscosity */
1012 
1013  /* Fluid specific heat capacity */
1015 
1016  /* Radiat. */
1018 
1019  /* Combustion */
1023 
1024  /* Turbulence */
1025  /* Turbulent intensity */
1027 
1028  /* Turbulent dissipation */
1030 
1031  /* Omega from k-omega SST model*/
1033 
1034  /* Reynolds stress component Rxx */
1036  /* Reynolds stress component Ryy */
1038  /* Reynolds stress component Rzz */
1040 
1042 
1043 /* external data relative to coal combustion */
1044 
1045 typedef struct {
1046 
1047  int ih2o; // cpincl
1048  int io2; // cpincl
1049  int ico; // cpincl
1050 
1051  int iatc; // ppthch
1052  cs_real_t prefth; // ppthch
1053  cs_real_t trefth; // ppthch
1054 
1055  int natom; // = 5;
1056  cs_real_t *wmolat; // dim = natom
1057 
1058  int ngazem; // = 20;
1059  cs_real_t *wmole; // ngazem
1060  int *iym1;
1061 
1062  int ncharm; // cpincl
1063  cs_real_t *a1ch; // ncharm
1077 
1079 
1080 /*============================================================================
1081  * Global variables
1082  *============================================================================*/
1083 
1087 
1091 
1094 
1097 
1100 
1101 /* Lagrangian log output every frequency_n time steps */
1102 
1103 extern int cs_glob_lagr_log_frequency_n;
1104 
1105 /* Statisics on borders*/
1106 extern cs_real_t *bound_stat;
1107 
1108 extern int cs_glob_lagr_nzone_max;
1109 extern int cs_glob_lagr_nclass_max;
1110 
1121 
1124 
1128 
1129 /* Unit normals and offsets of boundary faces */
1131 
1132 /* Projection matrices for global to local coordinates on boundary faces */
1134 
1135 /*============================================================================
1136  * Public function prototypes
1137  *============================================================================*/
1138 
1139 /*----------------------------------------------------------------------------*/
1149 /* ----------------------------------------------------------------------------*/
1150 
1152 cs_lagr_get_zone_class_data(int iclass,
1153  int izone);
1154 
1155 /*----------------------------------------------------------------------------*/
1166 /*----------------------------------------------------------------------------*/
1167 
1168 void
1170  int izone,
1171  int number,
1172  int freq,
1173  int stat);
1174 
1175 /*----------------------------------------------------------------------------*/
1185 /*----------------------------------------------------------------------------*/
1186 
1187 void
1189  int izone,
1190  int profile,
1191  cs_real_t *temp,
1193 
1194 /*----------------------------------------------------------------------------*/
1202 /*----------------------------------------------------------------------------*/
1203 
1204 void
1205 cs_lagr_set_zone_class_cp(int iclass,
1206  int izone,
1207  cs_real_t cp);
1208 
1209 /*----------------------------------------------------------------------------*/
1225 /*----------------------------------------------------------------------------*/
1226 
1227 void
1228 cs_lagr_set_zone_class_coal(int iclass,
1229  int izone,
1230  int profile,
1231  int number,
1232  cs_real_t *temp,
1233  cs_real_t *coal_mf,
1234  cs_real_t *coke_mf,
1235  cs_real_t *coke_density,
1236  cs_real_t water_mf,
1237  cs_real_t shrink_diam,
1238  cs_real_t init_diam);
1239 
1240 /*----------------------------------------------------------------------------*/
1251 /*----------------------------------------------------------------------------*/
1252 
1253 void
1254 cs_lagr_set_zone_class_stat(int iclass,
1255  int izone,
1256  int profile,
1257  cs_real_t weight,
1258  cs_real_t flow);
1259 
1260 /*----------------------------------------------------------------------------*/
1270 /*----------------------------------------------------------------------------*/
1271 
1272 void
1273 cs_lagr_set_zone_class_diam(int iclass,
1274  int izone,
1275  int profile,
1276  cs_real_t diam,
1277  cs_real_t diam_dev);
1278 
1279 /*----------------------------------------------------------------------------*/
1287 /*----------------------------------------------------------------------------*/
1288 
1289 void
1291  int izone,
1292  cs_real_t density);
1293 
1294 /*----------------------------------------------------------------------------*/
1302 /*----------------------------------------------------------------------------*/
1303 
1304 void
1306  int izone,
1307  cs_real_t foul_index);
1308 
1309 /*----------------------------------------------------------------------------*/
1318 /*----------------------------------------------------------------------------*/
1319 
1320 void
1322  int izone,
1323  int profile,
1324  cs_real_t velocity[]);
1325 
1326 /*----------------------------------------------------------------------------
1327  * \brief Initialize Lagrangian module parameters for a given set of data
1328  *
1329  *
1330  *----------------------------------------------------------------------------*/
1331 
1333 cs_lagr_init_zone_class_new(int iclass,
1334  int izone);
1335 
1336 /*----------------------------------------------------------------------------*/
1343 /*----------------------------------------------------------------------------*/
1344 
1347 
1348 /*----------------------------------------------------------------------------*/
1357 /*----------------------------------------------------------------------------*/
1358 
1361 
1362 /*----------------------------------------------------------------------------
1363  * Provide access to cs_lagr_particle_counter_t
1364  *
1365  * needed to initialize structure with GUI
1366  *----------------------------------------------------------------------------*/
1367 
1370 
1371 /*----------------------------------------------------------------------------
1372  * Provide access to cs_lagr_reentrained_model_t
1373  *
1374  * needed to initialize structure with GUI
1375  *----------------------------------------------------------------------------*/
1376 
1379 
1380 /*----------------------------------------------------------------------------
1381  * Provide access to cs_lagr_precipitation_model_t
1382  *
1383  * needed to initialize structure with GUI
1384  *----------------------------------------------------------------------------*/
1385 
1388 
1389 /*----------------------------------------------------------------------------
1390  * Provide access to cs_lagr_clogging_model_t
1391  *
1392  * needed to initialize structure with GUI
1393  *----------------------------------------------------------------------------*/
1394 
1397 
1398 /*----------------------------------------------------------------------------
1399  * Provide access to cs_lagr_time_step_t
1400  *
1401  * needed to initialize structure with GUI
1402  *----------------------------------------------------------------------------*/
1403 
1405 cs_get_lagr_time_step(void);
1406 
1407 /*----------------------------------------------------------------------------
1408  * Provide access to cs_lagr_source_terms_t
1409  *
1410  * needed to initialize structure with GUI
1411  *----------------------------------------------------------------------------*/
1412 
1415 
1416 /*----------------------------------------------------------------------------
1417  * Provide access to cs_lagr_encrustation_t
1418  *
1419  * needed to initialize structure with GUI
1420  *----------------------------------------------------------------------------*/
1421 
1424 
1425 /*----------------------------------------------------------------------------
1426  * Provide access to cs_lagr_physico_chemical_t
1427  *
1428  * needed to initialize structure with GUI
1429  *----------------------------------------------------------------------------*/
1430 
1433 
1434 /*----------------------------------------------------------------------------
1435  * Provide access to cs_lagr_brownian_t
1436  *
1437  * needed to initialize structure with GUI
1438  *----------------------------------------------------------------------------*/
1439 
1441 cs_get_lagr_brownian(void);
1442 
1443 /*----------------------------------------------------------------------------*/
1450 /*----------------------------------------------------------------------------*/
1451 
1454 
1455 /*----------------------------------------------------------------------------*/
1462 /*----------------------------------------------------------------------------*/
1463 
1466 
1467 /*----------------------------------------------------------------------------
1468  * Destroy finalize the global cs_lagr_bdy_condition_t structure.
1469  *----------------------------------------------------------------------------*/
1470 
1471 void
1473 
1474 /*----------------------------------------------------------------------------
1475  * Destroy finalize the global cs_lagr_internal_condition_t structure.
1476  *----------------------------------------------------------------------------*/
1477 
1478 void
1480 
1481 /*----------------------------------------------------------------------------
1482  * Provide access to cs_lagr_boundary_interactions_t
1483  *
1484  * needed to initialize structure with GUI
1485  *----------------------------------------------------------------------------*/
1486 
1489 
1490 /*----------------------------------------------------------------------------
1491  * Provide access to cs_lagr_visualization_t
1492  *
1493  * needed to initialize structure with GUI
1494  *----------------------------------------------------------------------------*/
1495 
1498 
1499 /*----------------------------------------------------------------------------
1500  * Provide access to cs_lagr_extra_module_t
1501  *
1502  *----------------------------------------------------------------------------*/
1503 
1506 
1507 /*--------------------------------------------------------------------
1508  * Execute one time step of the Lagrangian model.
1509  *
1510  * This is the main function for that model.
1511  *
1512  * parameters:
1513  * itypfb <-- boundary face types
1514  * dt <-- time step (per cell)
1515  *-------------------------------------------------------------------- */
1516 
1517 void
1518 cs_lagr_solve_time_step(const int itypfb[],
1519  const cs_real_t *dt);
1520 
1521 /*----------------------------------------------------------------------------
1522  * Return pointers to lagrangian arrays
1523  *
1524  * This function is intended for use by Fortran wrappers.
1525  *
1526  * parameters:
1527  * dim_bound_stat --> dimensions for bound_stat pointer
1528  * p_bound_stat --> bound_stat pointer
1529  *----------------------------------------------------------------------------*/
1530 
1531 void
1532 cs_lagr_init_c_arrays(int dim_cs_glob_lagr_source_terms[2],
1533  cs_real_t **p_cs_glob_lagr_source_terms);
1534 
1535 
1536 /*----------------------------------------------------------------------------
1537  * Free lagrangian arrays
1538  *
1539  * This function is intended for use by Fortran wrappers.
1540  *----------------------------------------------------------------------------*/
1541 void
1543 
1544 /*----------------------------------------------------------------------------*/
1545 
1547 
1548 #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:981
int itsli
Definition: cs_lagr.h:529
cs_gnum_t n_g_exit
Definition: cs_lagr.h:255
Definition: cs_lagr.h:77
cs_real_t csthpp
Definition: cs_lagr.h:379
cs_real_t emissivity
Definition: cs_lagr.h:473
unsigned long cs_gnum_t
global mesh entity number
Definition: cs_defs.h:280
Definition: cs_lagr.h:294
int ilapoi
Definition: cs_lagr.h:173
cs_real_t * visref
Definition: cs_lagr.h:683
int idiffl
Definition: cs_lagr.h:166
cs_real_t * enc2
Definition: cs_lagr.h:671
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:1126
int ivisv1
Definition: cs_lagr.h:914
cs_lagr_bdy_condition_t * cs_lagr_get_bdy_conditions(void)
Return pointer to the main boundary conditions structure.
Definition: cs_lagr.c:1656
cs_real_t * particle_flow_rate
Definition: cs_lagr.h:641
Definition: cs_lagr.h:57
int ivisch
Definition: cs_lagr.h:944
cs_real_t phi_p
Definition: cs_lagr.h:705
cs_lagr_boundary_interactions_t * cs_get_lagr_boundary_interactions(void)
Definition: cs_lagr.c:1720
cs_real_t diameter
Definition: cs_lagr.h:452
Definition: cs_lagr.h:58
Definition: cs_lagr.h:1045
int iclogh
Definition: cs_lagr.h:860
cs_field_t * cvar_r11
Definition: cs_lagr.h:1035
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:1366
cs_real_t * enc1
Definition: cs_lagr.h:668
Definition: cs_lagr.h:385
int io2
Definition: cs_lagr.h:1048
int npstf
Definition: cs_lagr.h:742
Definition: cs_lagr.h:400
int cs_glob_lagr_nzone_max
int deposition
Definition: cs_lagr.h:217
Field descriptor.
Definition: cs_field.h:121
cs_lagr_physico_chemical_t * cs_get_lagr_physico_chemical(void)
Definition: cs_lagr.c:1600
cs_real_t * e2ch
Definition: cs_lagr.h:1067
cs_real_t rayasp
Definition: cs_lagr.h:348
int coal_profile
Definition: cs_lagr.h:434
cs_real_t w_exit
Definition: cs_lagr.h:276
cs_real_t * uetbor
Definition: cs_lagr.h:991
cs_real_t added_mass_const
Definition: cs_lagr.h:193
Definition: cs_lagr.h:60
int itsco
Definition: cs_lagr.h:586
int ires
Definition: cs_lagr.h:811
int ncharm2
Definition: cs_lagr.h:88
Definition: cs_lagr.h:68
int nstits
Definition: cs_lagr.h:603
int iencma
Definition: cs_lagr.h:820
int nvgaus
Definition: cs_lagr.h:85
cs_lagr_encrustation_t * cs_get_lagr_encrustation(void)
Definition: cs_lagr.c:1588
int clogging
Definition: cs_lagr.h:230
int temperature_profile
Definition: cs_lagr.h:424
Definition: cs_lagr.h:355
cs_real_t * thcdch
Definition: cs_lagr.h:1076
cs_real_t cppart
Definition: cs_lagr.h:328
cs_real_t velocity_magnitude
Definition: cs_lagr.h:443
int fouling
Definition: cs_lagr.h:233
int nvisbr
Definition: cs_lagr.h:99
int ngazem
Definition: cs_lagr.h:1058
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:1318
int ivitbd
Definition: cs_lagr.h:778
int * b_face_zone_id
Definition: cs_lagr.h:637
int iclgst
Definition: cs_lagr.h:784
int ivisdk
Definition: cs_lagr.h:939
int n_b_zones
Definition: cs_lagr.h:630
cs_real_t denasp
Definition: cs_lagr.h:346
int ihdepm
Definition: cs_lagr.h:866
Definition: cs_lagr.h:71
int itsr13
Definition: cs_lagr.h:549
#define BEGIN_C_DECLS
Definition: cs_defs.h:448
Definition: cs_lagr.h:59
int iencdi
Definition: cs_lagr.h:823
Definition: cs_lagr.h:56
int itytur
Definition: cs_lagr.h:962
Definition: cs_lagr.h:499
int n_user_variables
Definition: cs_lagr.h:236
Definition: cs_lagr.h:49
int iencra
Definition: cs_lagr.h:660
int ireent
Definition: cs_lagr.h:338
int itsfp4
Definition: cs_lagr.h:589
cs_real_t * coke_density
Definition: cs_lagr.h:491
cs_real_t * rho0ch
Definition: cs_lagr.h:1073
int * iusb
Definition: cs_lagr.h:829
cs_real_t cp
Definition: cs_lagr.h:464
Definition: cs_lagr.h:67
cs_real_t * a2ch
Definition: cs_lagr.h:1066
int isuila
Definition: cs_lagr.h:138
int itsti
Definition: cs_lagr.h:572
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:1237
int distribution_profile
Definition: cs_lagr.h:419
char ** nombrd
Definition: cs_lagr.h:893
cs_real_t foul_index
Definition: cs_lagr.h:461
Definition: cs_lagr.h:200
Definition: cs_lagr.h:54
int nusbrd
Definition: cs_lagr.h:79
int itsr23
Definition: cs_lagr.h:559
int coal_number
Definition: cs_lagr.h:437
cs_real_4_t * cs_glob_lagr_b_u_normal
Definition: cs_field_pointer.h:100
int isttio
Definition: cs_lagr.h:131
cs_lagr_particle_counter_t * cs_lagr_get_particle_counter(void)
Get read/write pointer to global particle counter.
Definition: cs_lagr.c:1446
cs_real_t * wmolat
Definition: cs_lagr.h:1056
cs_field_t * scal_t
Definition: cs_lagr.h:1000
Definition: cs_lagr.h:51
int idirla
Definition: cs_lagr.h:154
cs_field_t * cvar_k
Definition: cs_lagr.h:1026
int iflmbd
Definition: cs_lagr.h:766
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:1263
cs_real_t * st_val
Definition: cs_lagr.h:619
int nlayer
Definition: cs_lagr.h:89
cs_real_t cs_real_4_t[4]
vector of 4 floating-point values
Definition: cs_defs.h:309
double cs_real_t
Floating-point value.
Definition: cs_defs.h:296
cs_real_t stat_weight
Definition: cs_lagr.h:467
Definition: cs_lagr.h:899
cs_real_t jamlim
Definition: cs_lagr.h:377
int iencnb
Definition: cs_lagr.h:817
Definition: cs_lagr.h:69
int dlvo
Definition: cs_lagr.h:218
cs_real_t lambda_vdw
Definition: cs_lagr.h:699
cs_real_t espasg
Definition: cs_lagr.h:345
int ivismp
Definition: cs_lagr.h:934
int iencck
Definition: cs_lagr.h:826
cs_real_t * xashch
Definition: cs_lagr.h:1075
Definition: cs_lagr.h:50
int idpvar
Definition: cs_lagr.h:306
int ihdiam
Definition: cs_lagr.h:872
int * imoybr
Definition: cs_lagr.h:848
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:1097
int iirayo
Definition: cs_lagr.h:972
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:1181
cs_lagr_coal_comb_t * cs_glob_lagr_coal_comb
int nozppm
Definition: cs_lagr.h:969
cs_real_t prefth
Definition: cs_lagr.h:1052
int t_order
Definition: cs_lagr.h:141
cs_real_t water_mass_fraction
Definition: cs_lagr.h:476
cs_field_t * x_eau
Definition: cs_lagr.h:1021
cs_real_t * tprenc
Definition: cs_lagr.h:677
int itsvz
Definition: cs_lagr.h:525
cs_real_t ttclag
Definition: cs_lagr.h:394
cs_real_t valen
Definition: cs_lagr.h:711
int ntersl
Definition: cs_lagr.h:98
cs_lagr_physico_chemical_t * cs_glob_lagr_physico_chemical
cs_field_t * cpro_cp
Definition: cs_lagr.h:1014
int iadded_mass
Definition: cs_lagr.h:190
Definition: cs_lagr.h:729
cs_real_t vmax
Definition: cs_lagr.h:613
int n_temperature_layers
Definition: cs_lagr.h:215
int ncharm
Definition: cs_lagr.h:1062
int inbr
Definition: cs_lagr.h:799
int iang
Definition: cs_lagr.h:805
int nor
Definition: cs_lagr.h:388
int inbrbd
Definition: cs_lagr.h:759
Definition: cs_lagr.h:48
cs_real_33_t * cs_glob_lagr_b_face_proj
cs_field_t * cvar_r33
Definition: cs_lagr.h:1039
int n_b_max_zones
Definition: cs_lagr.h:631
int ltsdyn
Definition: cs_lagr.h:504
int * itsmv2
Definition: cs_lagr.h:583
cs_real_t diftl0
Definition: cs_lagr.h:978
int npstft
Definition: cs_lagr.h:751
int iatc
Definition: cs_lagr.h:1051
cs_lagr_reentrained_model_t * cs_get_lagr_reentrained_model(void)
Provide access to cs_lagr_reentrained_model_t.
Definition: cs_lagr.c:1527
cs_field_t * x_m
Definition: cs_lagr.h:1022
int ih2o
Definition: cs_lagr.h:1047
int roughness
Definition: cs_lagr.h:222
int nusbor
Definition: cs_lagr.h:734
cs_field_t * x_oxyd
Definition: cs_lagr.h:1020
Definition: cs_lagr.h:647
int iscovc
Definition: cs_lagr.h:863
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:1345
cs_lagr_specific_physics_t * cs_get_lagr_specific_physics(void)
Provide access to cs_lagr_specific_physics_t.
Definition: cs_lagr.c:1514
cs_lagr_bc_type_t
Definition: cs_lagr.h:46
Definition: cs_field_pointer.h:174
Definition: cs_field_pointer.h:64
int idistu
Definition: cs_lagr.h:160
int itste
Definition: cs_lagr.h:568
int * itsmv1
Definition: cs_lagr.h:579
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:1296
cs_real_t w_total
Definition: cs_lagr.h:270
int modcpl
Definition: cs_lagr.h:149
int itske
Definition: cs_lagr.h:534
cs_real_t diameter
Definition: cs_lagr.h:360
cs_real_t * a1ch
Definition: cs_lagr.h:1063
int ltsmas
Definition: cs_lagr.h:508
int itsr22
Definition: cs_lagr.h:554
cs_real_t * ehetch
Definition: cs_lagr.h:1072
int iensi3
Definition: cs_lagr.h:909
cs_field_t * luminance
Definition: cs_lagr.h:1017
cs_real_t * solub
Definition: cs_lagr.h:366
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:1209
cs_field_t * cromf
Definition: cs_lagr.h:994
cs_gnum_t n_g_resuspended
Definition: cs_lagr.h:264
cs_real_t * e1ch
Definition: cs_lagr.h:1065
cs_real_t w_new
Definition: cs_lagr.h:273
cs_lagr_visualization_t * cs_get_lagr_visualization(void)
cs_real_t shrinking_diameter
Definition: cs_lagr.h:485
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:1068
int * iym1
Definition: cs_lagr.h:1060
int itsvy
Definition: cs_lagr.h:522
int iencckbd
Definition: cs_lagr.h:796
int ivistp
Definition: cs_lagr.h:922
bool steady_bndy_conditions
Definition: cs_lagr.h:639
int iclogt
Definition: cs_lagr.h:857
int npts
Definition: cs_lagr.h:606
cs_real_t trefth
Definition: cs_lagr.h:1053
cs_field_t * cvar_omg
Definition: cs_lagr.h:1032
int ntxerr
Definition: cs_lagr.h:610
int injection_frequency
Definition: cs_lagr.h:407
cs_lagr_deposition_state_t
Definition: cs_lagr.h:66
Definition: cs_lagr.h:958
Definition: cs_lagr.h:374
cs_gnum_t n_g_fouling
Definition: cs_lagr.h:261
int nflagm
Definition: cs_lagr.h:82
Definition: cs_lagr.h:628
int cs_glob_lagr_nclass_max
int ltsthe
Definition: cs_lagr.h:516
cs_real_t * xwatch
Definition: cs_lagr.h:1074
cs_real_t visls0
Definition: cs_lagr.h:984
int itsr12
Definition: cs_lagr.h:544
cs_real_t w_resuspended
Definition: cs_lagr.h:285
cs_field_t * temperature
Definition: cs_lagr.h:1001
cs_field_t * pressure
Definition: cs_lagr.h:997
int iencmabd
Definition: cs_lagr.h:790
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:440
cs_real_t cstham
Definition: cs_lagr.h:695
Definition: cs_lagr.h:720
int itsvx
Definition: cs_lagr.h:519
cs_lagr_internal_condition_t * cs_glob_lagr_internal_conditions
cs_real_t * cp2ch
Definition: cs_lagr.h:1070
int * nbprec
Definition: cs_lagr.h:364
int iangbd
Definition: cs_lagr.h:772
int * b_zone_natures
Definition: cs_lagr.h:635
cs_field_t * cvar_r22
Definition: cs_lagr.h:1037
void cs_lagr_finalize_c_arrays(void)
Definition: cs_lagr.c:1002
cs_gnum_t n_g_failed
Definition: cs_lagr.h:267
cs_real_t * temperature
Definition: cs_lagr.h:449
cs_lagr_model_t * cs_glob_lagr_model
cs_real_t * y2ch
Definition: cs_lagr.h:1069
int ihdepv
Definition: cs_lagr.h:869
int ndlaim
Definition: cs_lagr.h:83
int * i_face_zone_id
Definition: cs_lagr.h:649
cs_field_t * cvar_ep
Definition: cs_lagr.h:1029
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:292
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:1747
cs_real_t dtp
Definition: cs_lagr.h:391
int iturb
Definition: cs_lagr.h:961
int physical_model
Definition: cs_lagr.h:212
cs_real_t tstatp
Definition: cs_lagr.h:884
cs_real_t epseau
Definition: cs_lagr.h:702
int cs_glob_lagr_log_frequency_n
const cs_lagr_const_dim_t * cs_glob_lagr_const_dim
Definition: cs_lagr.h:242
int nbrclas
Definition: cs_lagr.h:358
void cs_lagr_finalize_bdy_cond(void)
Definition: cs_lagr.c:1682
cs_real_t * wmole
Definition: cs_lagr.h:1059
int iilagr
Definition: cs_lagr.h:120
int iflow
Definition: cs_lagr.h:342
cs_field_t * cpro_viscls
Definition: cs_lagr.h:1011
cs_lagr_clogging_model_t * cs_get_lagr_clogging_model(void)
Definition: cs_lagr.c:1552
int ivit
Definition: cs_lagr.h:808
int ncharm
Definition: cs_lagr.h:968
int precipitation
Definition: cs_lagr.h:232
cs_lagr_boundary_interactions_t * cs_glob_lagr_boundary_interactions
int itpvar
Definition: cs_lagr.h:301
#define END_C_DECLS
Definition: cs_defs.h:449
cs_lagr_source_terms_t * cs_get_lagr_source_terms(void)
Definition: cs_lagr.c:1576
int ico
Definition: cs_lagr.h:1049
cs_real_t * coke_mass_fraction
Definition: cs_lagr.h:482
int itsr11
Definition: cs_lagr.h:539
cs_real_t tpart
Definition: cs_lagr.h:319
int * b_zone_classes
Definition: cs_lagr.h:634
cs_gnum_t n_g_total
Definition: cs_lagr.h:249
cs_real_t mporos
Definition: cs_lagr.h:378
int ivisdm
Definition: cs_lagr.h:926
int iviswat
Definition: cs_lagr.h:952
int inclgt
Definition: cs_lagr.h:854
cs_real_t * ahetch
Definition: cs_lagr.h:1071
cs_real_t * h02ch
Definition: cs_lagr.h:1064
cs_lagr_particle_counter_t * cs_lagr_update_particle_counter(void)
Update global particle counter.
Definition: cs_lagr.c:1463
int nbrgau
Definition: cs_lagr.h:86
cs_real_t rho
Definition: cs_lagr.h:362
cs_real_t dnpenc
Definition: cs_lagr.h:686
cs_gnum_t n_g_cumulative_total
Definition: cs_lagr.h:246
cs_lagr_zone_class_data_t * lagr_zone_class_data
cs_real_t flow_rate
Definition: cs_lagr.h:470
cs_lagr_brownian_t * cs_glob_lagr_brownian
int iencdibd
Definition: cs_lagr.h:793
cs_real_t * y1ch
Definition: cs_lagr.h:1068
int resuspension
Definition: cs_lagr.h:226
cs_lagr_precipitation_model_t * cs_glob_lagr_precipitation_model
int itsr33
Definition: cs_lagr.h:564
int ihsum
Definition: cs_lagr.h:875
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:314
int iflm
Definition: cs_lagr.h:802
cs_lagr_extra_module_t * cs_get_lagr_extra_module(void)
Definition: cs_lagr.c:1731
cs_lagr_brownian_t * cs_get_lagr_brownian(void)
Definition: cs_lagr.c:1612
cs_lnum_t * b_zone_id
Definition: cs_lagr.h:633
cs_real_t w_failed
Definition: cs_lagr.h:288
int ncharb
Definition: cs_lagr.h:965
int inclg
Definition: cs_lagr.h:851
int iflres
Definition: cs_lagr.h:814
cs_real_t fion
Definition: cs_lagr.h:714
int iviste
Definition: cs_lagr.h:930
cs_field_t * viscl
Definition: cs_lagr.h:1008
cs_lagr_time_step_t * cs_glob_lagr_time_step
cs_lagr_source_terms_t * cs_glob_lagr_source_terms
Definition: cs_lagr.h:655
cs_real_t w_deposited
Definition: cs_lagr.h:279
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:975
cs_real_t w_fouling
Definition: cs_lagr.h:282
cs_field_t * t_gaz
Definition: cs_lagr.h:1002
cs_lagr_extra_module_t * cs_glob_lagr_extra_module
int n_stat_classes
Definition: cs_lagr.h:235
cs_real_t density
Definition: cs_lagr.h:458
Definition: cs_lagr.h:53
cs_real_t modyeq
Definition: cs_lagr.h:347
int velocity_profile
Definition: cs_lagr.h:414
int ivisck
Definition: cs_lagr.h:949
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:1540
cs_lagr_time_step_t * cs_get_lagr_time_step(void)
Definition: cs_lagr.c:1564
cs_gnum_t n_g_deposited
Definition: cs_lagr.h:258
int impvar
Definition: cs_lagr.h:311
cs_real_t * coal_mass_fraction
Definition: cs_lagr.h:479
cs_field_t * vel
Definition: cs_lagr.h:1005
cs_real_t phi_s
Definition: cs_lagr.h:708
Definition: cs_lagr.h:52
cs_real_t diameter_variance
Definition: cs_lagr.h:455
Definition: cs_lagr.h:692
int icp
Definition: cs_lagr.h:975
int iencnbbd
Definition: cs_lagr.h:787
int itsmas
Definition: cs_lagr.h:575
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:1627
int lamvbr
Definition: cs_lagr.h:723
cs_lagr_reentrained_model_t * cs_glob_lagr_reentrained_model
cs_real_t rayasg
Definition: cs_lagr.h:349
cs_gnum_t n_g_new
Definition: cs_lagr.h:252
int ivisv2
Definition: cs_lagr.h:918
Definition: cs_lagr.h:334
int npencr
Definition: cs_lagr.h:663
cs_real_t tmamax
Definition: cs_lagr.h:616
cs_real_t initial_diameter
Definition: cs_lagr.h:488
Definition: cs_lagr.h:70
cs_lnum_t nb_part
Definition: cs_lagr.h:403
void cs_lagr_finalize_internal_cond(void)
Definition: cs_lagr.c:1705
cs_real_t * mp_diss
Definition: cs_lagr.h:368
int diameter_profile
Definition: cs_lagr.h:429
Definition: cs_lagr.h:106
int natom
Definition: cs_lagr.h:1055
Definition: cs_lagr.h:96