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-2019 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 
112 typedef enum {
118 
120 /*----------------------*/
121 
122 typedef struct {
123 
124  int nusbrd;
127  int ndlaim;
129  int ncharm2;
130  int nlayer;
133 
135 /*---------------------*/
136 
137 typedef struct {
138 
139  int ntersl;
142 } cs_lagr_dim_t;
143 
145 /*-----------------------------------------------------*/
146 
147 typedef struct {
148 
161  int iilagr;
162 
163  /* indicates the steady (=1) or unsteady (=0) state of the
164  continuous phase flow
165  in particular, \ref isttio = 1 is needed in order to:
166  calculate steady statistics in the volume or at the boundaries
167  (starting respectively from the iterations \ref nstist)
168  and calculate time-averaged two-way coupling source terms (from the
169  time step \ref nstits).
170  Useful if \ref iilagr = CS_LAGR_ONEWAY_COUPLING
171  or \ref iilagr = CS_LAGR_TWOWAY_COUPLING
172  (if \ref iilagr = CS_LAGR_FROZEN_CONTINUOUS_PHASE,
173  then \ref isttio=1 automatically) */
174  int isttio;
175 
181  int isuila;
182 
184  int t_order;
185 
192  int modcpl;
193 
197  int idirla;
198 
203  int idistu;
204 
209  int idiffl;
210 
216  int ilapoi;
217 
234 
237 
239 
241 /*-----------------------------------------------------------*/
242 
243 typedef struct {
244 
255  int physical_model; /* FIXME: => enum: CS_LAGR_PHYS_STD,
256  CS_LAGR_PHYS_COAL,
257  CS_LAGR_PHYS_HEAT... */
259 
261  int dlvo;
262 
266 
270 
271  /* - 0: no clogging model
272  - 1: clogging model */
273  int clogging;
274 
275  /* - 0: no consolidation model
276  - 1: consolidation model */
278 
280  int fouling;
281 
285 
289 
291 
294 
296 
298 
300 /*----------------------------------------------*/
301 
302 typedef struct {
303 
307 
311 
314 
317 
320 
323 
326 
329 
332 
335 
338 
341 
344 
347 
350 
353 
356 
358 
360 /* ---------------------------------------------------------- */
361 
362 typedef struct {
363 
364  /* activation (=1) or not (=0) of an evolution equation on the particle
365  temperature (in degrees Celsius).
366  Useful if \ref physical_model=1 and if there is a thermal scalar
367  associated with the continuous phase.
368  */
369  int itpvar;
370 
371  /* activation (=1) or not (=0) of an evolution equation on the particle
372  diameter. Useful if \ref physical_model = 1.
373  */
374  int idpvar;
375 
376  /* activation (=1) or not (=0) of an evolution equation on the particle mass
377  Useful if \ref physical_model = 1
378  */
379  int impvar;
380 
381  /* initialization temperature (in degree Celsius) for the particles already
382  present in the calculation domain when an evolution equation on
383  the particle temperature is activated during a calculation
384  (\ref physical_model = 1 and \ref itpvar = 1).
385  Useful if \ref isuila = 1 and \ref itpvar = 0 in the previous calculation.
386  */
388 
389  /* initialization value for the specific heat (\f$ J.kg^{-1}.K^{-1} \f$)
390  of the particles already present
391  in the calculation domain when an evolution equation
392  on the particle temperature is activated during a calculation
393  (\ref physical_model = 1 and \ref itpvar = 1).
394  Useful if \ref isuila = 1 and \ref itpvar = 0 in the previous calculation
395  */
397 
399 
401 /* -------------------------------------- */
402 
403 typedef struct {
404 
405  /* - 0: no resuspension model
406  - 1: resuspension model */
407  int ireent;
408 
409  /* - 0: no head losses calculation for influence of the deposit on the flow
410  - 1: head losses calculation for influence of the deposit on the flow */
411  int iflow;
412 
413  /* Parameters of the particle resuspension model*/
419 
421 
423 /* -------------------------------------- */
424 
425 typedef struct {
426 
427  /* number of particle classes*/
428  int nbrclas;
429  /* diameter of particles formed by precipitation*/
431  /* density of particles formed by precipitation*/
433  /* number of precipitated particles */
434  int *nbprec;
435  /* */
437  /* number of precipitated particles */
439 
441 
443 /* ------------------------------------------ */
444 
445 typedef struct {
446 
451 
453 
455 /* ------------------------------------------ */
456 
457 typedef struct {
458 
461  cs_real_t (*function_kernel)(cs_lnum_t, cs_lnum_t);
462 
464 
466 /* ------------------------------------------ */
467 
468 typedef struct {
469 
472  cs_real_t (*function_kernel)(cs_lnum_t);
473 
475 
477 /* ----------------------------------------------- */
478 
479 typedef struct {
480 
485 
487 
489 /*----------------------------------*/
490 
491 typedef struct {
492 
493  /* current step id (for 2nd order scheme) */
494  int nor;
495 
496  /* duration of a Lagrangian iteration */
498 
499  /* physical time of the Lagrangian simulation */
501 
503 
505 /*------------------------------------------------------------------*/
506 
507 typedef struct {
508 
509  int zone_id;
510  int set_id;
521 
524 
530 
535 
539  int cluster;
542 
544  cs_real_t velocity[3];
564 
566 /*----------------------------------------------*/
567 
568 typedef struct {
569 
573  int ltsdyn;
574 
577  int ltsmas;
578 
579  /* if \ref physical_model = 1 and \ref itpvar = 1, \ref ltsthe
580  activates (=1) or not (=0) the two-way coupling on temperature.
581  if \ref physical_model = 2, \ref ltsthe activates (=1) or not (=0) the
582  two-way coupling on the eulerian variables related to pulverised
583  coal combustion.
584  Useful if \ref iilagr = CS_LAGR_TWOWAY_COUPLING */
585  int ltsthe;
586 
589  int itsli;
590 
591  /* explicit source term for the turbulent dissipation and the
592  turbulent energy if the \f$k-\varepsilon\f$ turbulence model is used
593  for the continuous phase */
594  int itske;
595 
598  int itste;
599 
602  int itsti;
603 
605  int itsmas;
606 
607  /* source term for the light volatile matters */
608  int *itsmv1; //ncharm2
609 
610  /* source term for the heavy volatile matters */
611  int *itsmv2; //ncharm2
612 
614  int itsco;
615 
617  int itsfp4;
618 
631  int nstits;
632 
634  int npts;
635 
638  int ntxerr;
639 
642 
645 
648 
650 
652 /*----------------------------------------------------*/
653 
654 typedef struct {
655 
658  int n_zones;
659  int *zone_type;
666  char *elt_type;
674 
676 /*---------------------------------------*/
677 
678 typedef struct {
679 
681 
683 
685 /*--------------------------------*/
686 
687 typedef struct {
688 
689  /* Activates (=1) or not (=0) the option of coal particle fouling.
690  It then is necessary to specify the domain boundaries
691  on which fouling may take place. Useful if \ref physical_model = 2*/
692  int iencra;
693 
694  /* encrustation data*/
695  int npencr;
696  // TODO cf particles->n_part_fou in cs_lagr_tracking.c
697 
698  /* encrustation data*/
699  cs_real_t *enc1; // size: ncharm2
700  /* encrustation data*/
701  cs_real_t *enc2; // size: ncharm2
702 
703  /* Limit temperature (in degree Celsius) below which the coal particles do
704  not cause any fouling (if the fouling model is activated).
705  Useful if \ref physical_model = 2 and \ref iencra = 1*/
706  cs_real_t *tprenc; // size: ncharm2
707 
708  /* Ash critical viscosity in \f$ kg.m^{-1}.s^{-1} \f$, in the fouling model
709  cf J.D. Watt et T. Fereday (J.Inst.Fuel, Vol.42-p99).
710  Useful if \ref physical_model = 2 and \ref iencra = 1*/
711  cs_real_t *visref; // size: ncharm2
712 
713  /* encrustation data */
715 
717 
719 /*-----------------------------------------*/
720 
721 typedef struct {
722 
725 
729 
732 
735 
738 
741 
744 
746 
748 /*-------------------------------*/
749 
750 typedef struct {
751 
752  int lamvbr;
755 
757 /*----------------------------------------------*/
758 
759 typedef struct {
760 
767  int npstf;
768 
775  int npstft;
776 
781 
785  int iclgst;
786 
788  int inbr;
789 
791  int inclg;
792 
794  int inclgt;
795 
797  int iclogt;
798 
800  int iclogh;
801 
803  int iscovc;
804 
805  /* id for mean of particle deposition height */
806  int ihdepm;
807 
808  /* id for variance of particle deposition height */
809  int ihdepv;
810 
811  /* id for mean diameter of deposited particles */
812  int ihdiam;
813 
814  /* id for sum of deposited particle diameters */
815  int ihsum;
816 
824 
831  char **nombrd;
832 
834 
836 /*-----------------------------------------------*/
837 
838 typedef struct {
839 
840  /* Turbulence model */
841  int iturb;
842  int itytur;
843 
844  /* cpincl */
845  int ncharb;
846 
847  /* ppppar */
848  int ncharm;
849 
850  /* radiation */
852 
853  /* icp */
854  int icp;
855 
856  /* diftl0 */
858 
859  /* cmu */
861 
862  /* visls0 */
864 
865  /* Referenced fields
866  ----------------- */
867 
868  /* wall ustar */
870 
871  /* Fluid density */
873 
874  /* Fluid pressure */
876 
877  /* Fluid temparature */
881 
882  /* Fluid velocity */
884 
885  /* Fluid viscosity */
887 
888  /* Fluid viscosity */
890 
891  /* Fluid specific heat capacity */
893 
894  /* Radiat. */
896 
897  /* Combustion */
901 
902  /* Turbulence */
903  /* Turbulent intensity */
905 
906  /* Turbulent dissipation */
908 
909  /* Omega from k-omega SST model*/
911 
912  /* Reynolds stress component Rxx */
914  /* Reynolds stress component Ryy */
916  /* Reynolds stress component Rzz */
918 
919  /* Reynolds Stress Tensor */
921 
922  /* Total pressure gradient */
924 
925  /* velocity gradient */
927 
929 
931 /*--------------------------------------------*/
932 
933 typedef struct {
934 
935  int ih2o; // cpincl
936  int io2; // cpincl
937  int ico; // cpincl
938 
939  int iatc; // ppthch
940  cs_real_t prefth; // ppthch
941  cs_real_t trefth; // ppthch
942 
943  int natom; // = 5;
944  cs_real_t *wmolat; // dim = natom
945 
946  int ngazem; // = 20;
947  cs_real_t *wmole; // ngazem
948  int *iym1;
949 
950  int ncharm; // cpincl
951  cs_real_t *a1ch; // ncharm
965 
967 
968 /*============================================================================
969  * Global variables
970  *============================================================================*/
971 
975 
979 
982 
985 
988 
989 /* Lagrangian log output every frequency_n time steps */
990 
992 
993 /* Statisics on boundaries */
994 
995 extern cs_real_t *bound_stat;
996 
1001 
1004 
1012 
1015 
1019 
1020 /* Projection matrices for global to local coordinates on boundary faces */
1022 
1023 /*============================================================================
1024  * Public function prototypes
1025  *============================================================================*/
1026 
1027 /*----------------------------------------------------------------------------*/
1040 /*----------------------------------------------------------------------------*/
1041 
1044  int zone_id,
1045  int set_id);
1046 
1047 /*----------------------------------------------------------------------------*/
1053 /*----------------------------------------------------------------------------*/
1054 
1055 void
1057 
1058 /*----------------------------------------------------------------------------*/
1064 /*----------------------------------------------------------------------------*/
1065 
1068 
1069 /*----------------------------------------------------------------------------*/
1078 /*----------------------------------------------------------------------------*/
1079 
1082 
1083 /*----------------------------------------------------------------------------
1084  * Provide access to cs_lagr_particle_counter_t
1085  *
1086  * needed to initialize structure with GUI
1087  *----------------------------------------------------------------------------*/
1088 
1091 
1092 /*----------------------------------------------------------------------------
1093  * Provide access to cs_lagr_reentrained_model_t
1094  *
1095  * needed to initialize structure with GUI
1096  *----------------------------------------------------------------------------*/
1097 
1100 
1101 /*----------------------------------------------------------------------------
1102  * Provide access to cs_lagr_precipitation_model_t
1103  *
1104  * needed to initialize structure with GUI
1105  *----------------------------------------------------------------------------*/
1106 
1109 
1110 /*----------------------------------------------------------------------------
1111  * Provide access to cs_lagr_clogging_model_t
1112  *
1113  * needed to initialize structure with GUI
1114  *----------------------------------------------------------------------------*/
1115 
1118 
1119 /*----------------------------------------------------------------------------
1120  * Provide access to cs_lagr_consolidation_model_t
1121  *
1122  * needed to initialize structure with GUI
1123  *----------------------------------------------------------------------------*/
1124 
1127 
1128 /*----------------------------------------------------------------------------
1129  * Provide access to cs_lagr_time_step_t
1130  *
1131  * needed to initialize structure with GUI
1132  *----------------------------------------------------------------------------*/
1133 
1135 cs_get_lagr_time_step(void);
1136 
1137 /*----------------------------------------------------------------------------
1138  * Provide access to cs_lagr_source_terms_t
1139  *
1140  * needed to initialize structure with GUI
1141  *----------------------------------------------------------------------------*/
1142 
1145 
1146 /*----------------------------------------------------------------------------
1147  * Provide access to cs_lagr_encrustation_t
1148  *
1149  * needed to initialize structure with GUI
1150  *----------------------------------------------------------------------------*/
1151 
1154 
1155 /*----------------------------------------------------------------------------
1156  * Provide access to cs_lagr_physico_chemical_t
1157  *
1158  * needed to initialize structure with GUI
1159  *----------------------------------------------------------------------------*/
1160 
1163 
1164 /*----------------------------------------------------------------------------
1165  * Provide access to cs_lagr_brownian_t
1166  *
1167  * needed to initialize structure with GUI
1168  *----------------------------------------------------------------------------*/
1169 
1171 cs_get_lagr_brownian(void);
1172 
1173 /*----------------------------------------------------------------------------*/
1179 /*----------------------------------------------------------------------------*/
1180 
1183 
1184 /*----------------------------------------------------------------------------*/
1190 /*----------------------------------------------------------------------------*/
1191 
1194 
1195 /*----------------------------------------------------------------------------*/
1201 /*----------------------------------------------------------------------------*/
1202 
1205 
1206 /*----------------------------------------------------------------------------*/
1210 /*----------------------------------------------------------------------------*/
1211 
1212 void
1214 
1215 /*----------------------------------------------------------------------------
1216  * Destroy finalize the global cs_lagr_internal_condition_t structure.
1217  *----------------------------------------------------------------------------*/
1218 
1219 void
1221 
1222 /*----------------------------------------------------------------------------
1223  * Provide access to cs_lagr_boundary_interactions_t
1224  *
1225  * needed to initialize structure with GUI
1226  *----------------------------------------------------------------------------*/
1227 
1230 
1231 /*----------------------------------------------------------------------------
1232  * Provide access to cs_lagr_extra_module_t
1233  *----------------------------------------------------------------------------*/
1234 
1237 
1238 /*----------------------------------------------------------------------------
1239  * Prepare for execution of the Lagrangian model.
1240  *
1241  * This should be called before the fist call to cs_lagr_solve_time_step.
1242  *
1243  * parameters:
1244  * dt <-- time step (per cell)
1245  *----------------------------------------------------------------------------*/
1246 
1247 void
1249 
1250 /*--------------------------------------------------------------------
1251  * Execute one time step of the Lagrangian model.
1252  *
1253  * This is the main function for that model.
1254  *
1255  * parameters:
1256  * itypfb <-- boundary face types
1257  * dt <-- time step (per cell)
1258  *-------------------------------------------------------------------- */
1259 
1260 void
1261 cs_lagr_solve_time_step(const int itypfb[],
1262  const cs_real_t *dt);
1263 
1264 /*----------------------------------------------------------------------------
1265  * Return pointers to lagrangian arrays
1266  *
1267  * This function is intended for use by Fortran wrappers.
1268  *
1269  * parameters:
1270  * dim_bound_stat --> dimensions for bound_stat pointer
1271  * p_bound_stat --> bound_stat pointer
1272  *----------------------------------------------------------------------------*/
1273 
1274 void
1275 cs_lagr_init_c_arrays(int dim_cs_glob_lagr_source_terms[2],
1276  cs_real_t **p_cs_glob_lagr_source_terms);
1277 
1278 /*----------------------------------------------------------------------------
1279  * Free lagrangian arrays
1280  *
1281  * This function is intended for use by Fortran wrappers.
1282  *----------------------------------------------------------------------------*/
1283 
1284 void
1285 cs_lagr_finalize(void);
1286 
1287 /*----------------------------------------------------------------------------*/
1288 
1290 
1291 #endif /* __CS_LAGR_H__ */
cs_real_t * bound_stat
int temperature_profile
Definition: cs_lagr.h:534
const cs_lagr_particle_counter_t * cs_glob_lagr_particle_counter
Definition: cs_lagr.h:654
cs_real_t cmu
Definition: cs_lagr.h:860
int itsli
Definition: cs_lagr.h:589
cs_lagr_zone_data_t * cs_lagr_get_boundary_conditions(void)
Return pointer to the main boundary conditions structure.
Definition: cs_lagr.c:1479
cs_gnum_t n_g_exit
Definition: cs_lagr.h:319
Definition: cs_lagr.h:122
cs_real_t csthpp
Definition: cs_lagr.h:449
cs_real_t fouling_index
Definition: cs_lagr.h:553
unsigned long cs_gnum_t
global mesh entity number
Definition: cs_defs.h:286
Definition: cs_lagr.h:362
int ilapoi
Definition: cs_lagr.h:216
Definition: cs_lagr.h:479
cs_real_t * visref
Definition: cs_lagr.h:711
int idiffl
Definition: cs_lagr.h:209
int coal_number
Definition: cs_lagr.h:536
int set_id
Definition: cs_lagr.h:510
cs_real_t slope_consol
Definition: cs_lagr.h:483
cs_real_t * enc2
Definition: cs_lagr.h:701
cs_real_t w_merged
Definition: cs_lagr.h:346
cs_field_t * ustar
Definition: cs_lagr.h:869
cs_real_t phi_p
Definition: cs_lagr.h:734
cs_real_t cp
Definition: cs_lagr.h:555
cs_lagr_boundary_interactions_t * cs_get_lagr_boundary_interactions(void)
Definition: cs_lagr.c:1575
Definition: cs_lagr.h:933
int iclogh
Definition: cs_lagr.h:800
cs_real_t temperature
Definition: cs_lagr.h:546
cs_field_t * cvar_r11
Definition: cs_lagr.h:913
cs_real_t * enc1
Definition: cs_lagr.h:699
cs_real_33_t * grad_vel
Definition: cs_lagr.h:926
void cs_lagr_injection_set_default(cs_lagr_injection_set_t *zis)
Initialize injection set data structure fields to defaults.
Definition: cs_lagr.c:1204
Definition: cs_lagr.h:491
int io2
Definition: cs_lagr.h:936
cs_lagr_module_status_t
Definition: cs_lagr.h:112
int npstf
Definition: cs_lagr.h:767
int deposition
Definition: cs_lagr.h:260
Field descriptor.
Definition: cs_field.h:124
cs_lagr_physico_chemical_t * cs_get_lagr_physico_chemical(void)
Definition: cs_lagr.c:1424
cs_real_t * e2ch
Definition: cs_lagr.h:955
cs_real_t rayasp
Definition: cs_lagr.h:417
cs_real_t w_exit
Definition: cs_lagr.h:343
cs_real_t added_mass_const
Definition: cs_lagr.h:236
Definition: cs_lagr.h:86
int itsco
Definition: cs_lagr.h:614
int ncharm2
Definition: cs_lagr.h:129
int nstits
Definition: cs_lagr.h:631
int particle_aggregate
Definition: cs_lagr.h:541
cs_lagr_encrustation_t * cs_get_lagr_encrustation(void)
Definition: cs_lagr.c:1412
int clogging
Definition: cs_lagr.h:273
Definition: cs_lagr.h:425
cs_lagr_injection_set_t ** injection_set
Definition: cs_lagr.h:663
cs_real_t * thcdch
Definition: cs_lagr.h:964
cs_real_t cppart
Definition: cs_lagr.h:396
cs_lnum_t iconsol
Definition: cs_lagr.h:481
int fouling
Definition: cs_lagr.h:280
int ngazem
Definition: cs_lagr.h:946
char * elt_type
Definition: cs_lagr.h:666
int iclgst
Definition: cs_lagr.h:785
cs_real_t denasp
Definition: cs_lagr.h:415
int ihdepm
Definition: cs_lagr.h:806
#define BEGIN_C_DECLS
Definition: cs_defs.h:467
Definition: cs_lagr.h:92
int n_zones
Definition: cs_lagr.h:658
const cs_lagr_zone_data_t * cs_glob_lagr_boundary_conditions
int itytur
Definition: cs_lagr.h:842
Definition: cs_lagr.h:568
int n_user_variables
Definition: cs_lagr.h:295
Definition: cs_lagr.h:88
int iencra
Definition: cs_lagr.h:692
int ireent
Definition: cs_lagr.h:407
cs_lagr_consolidation_model_t * cs_get_lagr_consolidation_model(void)
Definition: cs_lagr.c:1376
int itsfp4
Definition: cs_lagr.h:617
cs_real_t * rho0ch
Definition: cs_lagr.h:961
cs_real_t * a2ch
Definition: cs_lagr.h:954
int isuila
Definition: cs_lagr.h:181
int itsti
Definition: cs_lagr.h:602
char ** nombrd
Definition: cs_lagr.h:831
Definition: cs_lagr.h:85
Definition: cs_lagr.h:243
int nusbrd
Definition: cs_lagr.h:124
int isttio
Definition: cs_lagr.h:174
cs_lagr_particle_counter_t * cs_lagr_get_particle_counter(void)
Get read/write pointer to global particle counter.
Definition: cs_lagr.c:1253
int location_id
Definition: cs_lagr.h:511
cs_real_t * wmolat
Definition: cs_lagr.h:944
cs_field_t * scal_t
Definition: cs_lagr.h:878
Definition: cs_lagr.h:90
int idirla
Definition: cs_lagr.h:197
cs_field_t * cvar_k
Definition: cs_lagr.h:904
int location_id
Definition: cs_lagr.h:656
Definition: cs_lagr.h:113
cs_real_t * st_val
Definition: cs_lagr.h:647
int nlayer
Definition: cs_lagr.h:130
cs_gnum_t n_g_merged
Definition: cs_lagr.h:322
double cs_real_t
Floating-point value.
Definition: cs_defs.h:302
cs_real_t jamlim
Definition: cs_lagr.h:447
int dlvo
Definition: cs_lagr.h:261
cs_real_t lambda_vdw
Definition: cs_lagr.h:728
cs_real_t espasg
Definition: cs_lagr.h:414
cs_lagr_injection_profile_compute_t * injection_profile_func
Definition: cs_lagr.h:520
cs_real_t * xashch
Definition: cs_lagr.h:963
Definition: cs_lagr.h:116
Definition: cs_lagr.h:89
int idpvar
Definition: cs_lagr.h:374
int ihdiam
Definition: cs_lagr.h:812
void * injection_profile_input
Definition: cs_lagr.h:523
cs_lagr_coal_comb_t * cs_glob_lagr_coal_comb
cs_real_t stat_weight
Definition: cs_lagr.h:557
cs_real_t prefth
Definition: cs_lagr.h:940
int t_order
Definition: cs_lagr.h:184
cs_gnum_t n_inject
Definition: cs_lagr.h:513
cs_field_t * x_eau
Definition: cs_lagr.h:899
cs_real_t * tprenc
Definition: cs_lagr.h:706
cs_real_t flow_rate
Definition: cs_lagr.h:559
cs_real_t ttclag
Definition: cs_lagr.h:500
int n_boundary_stats
Definition: cs_lagr.h:140
cs_real_t valen
Definition: cs_lagr.h:740
int ntersl
Definition: cs_lagr.h:139
cs_lagr_physico_chemical_t * cs_glob_lagr_physico_chemical
cs_field_t * cpro_cp
Definition: cs_lagr.h:892
int iadded_mass
Definition: cs_lagr.h:233
Definition: cs_lagr.h:759
int n_particle_aggregates
Definition: cs_lagr.h:293
cs_real_t vmax
Definition: cs_lagr.h:641
int n_temperature_layers
Definition: cs_lagr.h:258
int ncharm
Definition: cs_lagr.h:950
int inbr
Definition: cs_lagr.h:788
int nor
Definition: cs_lagr.h:494
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:1503
cs_field_t * cvar_r33
Definition: cs_lagr.h:917
int cluster
Definition: cs_lagr.h:539
int ltsdyn
Definition: cs_lagr.h:573
int * itsmv2
Definition: cs_lagr.h:611
cs_real_t diftl0
Definition: cs_lagr.h:857
int npstft
Definition: cs_lagr.h:775
int iatc
Definition: cs_lagr.h:939
cs_lagr_reentrained_model_t * cs_get_lagr_reentrained_model(void)
Provide access to cs_lagr_reentrained_model_t.
Definition: cs_lagr.c:1339
cs_field_t * x_m
Definition: cs_lagr.h:900
int ih2o
Definition: cs_lagr.h:935
cs_lagr_consolidation_model_t * cs_glob_lagr_consolidation_model
int roughness
Definition: cs_lagr.h:265
cs_field_t * x_oxyd
Definition: cs_lagr.h:898
void cs_lagr_finalize_zone_conditions(void)
Finalize the global boundary and volume condition structures.
Definition: cs_lagr.c:1527
Definition: cs_lagr.h:678
int iscovc
Definition: cs_lagr.h:803
cs_lagr_specific_physics_t * cs_get_lagr_specific_physics(void)
Provide access to cs_lagr_specific_physics_t.
Definition: cs_lagr.c:1326
cs_lagr_bc_type_t
Definition: cs_lagr.h:83
Definition: cs_field_pointer.h:65
int idistu
Definition: cs_lagr.h:203
int itste
Definition: cs_lagr.h:598
int * itsmv1
Definition: cs_lagr.h:608
cs_real_t base_diameter
Definition: cs_lagr.h:460
cs_real_t w_total
Definition: cs_lagr.h:337
int modcpl
Definition: cs_lagr.h:192
int itske
Definition: cs_lagr.h:594
cs_real_t diameter
Definition: cs_lagr.h:430
cs_real_t * a1ch
Definition: cs_lagr.h:951
int ltsmas
Definition: cs_lagr.h:577
cs_gnum_t n_g_cumulative_failed
Definition: cs_lagr.h:310
cs_real_t * ehetch
Definition: cs_lagr.h:960
static int input(void)
cs_field_t * luminance
Definition: cs_lagr.h:895
cs_real_t * solub
Definition: cs_lagr.h:436
cs_field_t * cromf
Definition: cs_lagr.h:872
cs_gnum_t n_g_resuspended
Definition: cs_lagr.h:331
integer, dimension(:), pointer, save itypfb
Definition: pointe.f90:100
cs_real_t * e1ch
Definition: cs_lagr.h:953
cs_real_t w_new
Definition: cs_lagr.h:340
int * iym1
Definition: cs_lagr.h:948
Definition: cs_lagr.h:507
int agglomeration
Definition: cs_lagr.h:284
int iclogt
Definition: cs_lagr.h:797
int npts
Definition: cs_lagr.h:634
cs_real_t trefth
Definition: cs_lagr.h:941
cs_field_t * cvar_omg
Definition: cs_lagr.h:910
int ntxerr
Definition: cs_lagr.h:638
Definition: cs_lagr.h:838
cs_lagr_agglomeration_model_t * cs_glob_lagr_agglomeration_model
Definition: cs_lagr.h:445
cs_gnum_t n_g_fouling
Definition: cs_lagr.h:328
int ltsthe
Definition: cs_lagr.h:585
cs_real_t * xwatch
Definition: cs_lagr.h:962
const cs_lagr_zone_data_t * cs_glob_lagr_volume_conditions
cs_real_t visls0
Definition: cs_lagr.h:863
cs_real_t velocity_magnitude
Definition: cs_lagr.h:543
Definition: cs_lagr.h:115
Definition: cs_lagr.h:94
cs_real_t cs_real_3_t[3]
vector of 3 floating-point values
Definition: cs_defs.h:315
cs_real_t w_resuspended
Definition: cs_lagr.h:355
Definition: cs_lagr.h:114
cs_field_t * temperature
Definition: cs_lagr.h:879
Definition: cs_lagr.h:468
cs_field_t * pressure
Definition: cs_lagr.h:875
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:724
Definition: cs_lagr.h:750
cs_lagr_internal_condition_t * cs_glob_lagr_internal_conditions
int consolidation
Definition: cs_lagr.h:277
cs_lagr_fragmentation_model_t * cs_glob_lagr_fragmentation_model
cs_real_t * cp2ch
Definition: cs_lagr.h:958
int injection_frequency
Definition: cs_lagr.h:516
int * nbprec
Definition: cs_lagr.h:434
int zone_id
Definition: cs_lagr.h:509
int velocity_profile
Definition: cs_lagr.h:529
cs_field_t * cvar_r22
Definition: cs_lagr.h:915
cs_gnum_t n_g_failed
Definition: cs_lagr.h:334
cs_lagr_model_t * cs_glob_lagr_model
cs_real_t * y2ch
Definition: cs_lagr.h:957
int ihdepv
Definition: cs_lagr.h:809
int ndlaim
Definition: cs_lagr.h:127
int * i_face_zone_id
Definition: cs_lagr.h:680
cs_field_t * cvar_ep
Definition: cs_lagr.h:907
cs_real_t force_consol
Definition: cs_lagr.h:484
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:298
int * zone_type
Definition: cs_lagr.h:659
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:1666
cs_real_t dtp
Definition: cs_lagr.h:497
int iturb
Definition: cs_lagr.h:841
int physical_model
Definition: cs_lagr.h:255
cs_real_t tstatp
Definition: cs_lagr.h:823
cs_real_t epseau
Definition: cs_lagr.h:731
int cs_glob_lagr_log_frequency_n
const cs_lagr_const_dim_t * cs_glob_lagr_const_dim
Definition: cs_lagr.h:302
int nbrclas
Definition: cs_lagr.h:428
cs_real_t * wmole
Definition: cs_lagr.h:947
int iilagr
Definition: cs_lagr.h:161
int iflow
Definition: cs_lagr.h:411
cs_field_t * cpro_viscls
Definition: cs_lagr.h:889
cs_lagr_clogging_model_t * cs_get_lagr_clogging_model(void)
Definition: cs_lagr.c:1364
int ncharm
Definition: cs_lagr.h:848
int precipitation
Definition: cs_lagr.h:279
int has_part_impact_nbr
Definition: cs_lagr.h:780
cs_lagr_boundary_interactions_t * cs_glob_lagr_boundary_interactions
int itpvar
Definition: cs_lagr.h:369
#define END_C_DECLS
Definition: cs_defs.h:468
cs_lagr_source_terms_t * cs_get_lagr_source_terms(void)
Definition: cs_lagr.c:1400
int ico
Definition: cs_lagr.h:937
cs_real_t tpart
Definition: cs_lagr.h:387
cs_gnum_t n_g_total
Definition: cs_lagr.h:313
cs_real_t mporos
Definition: cs_lagr.h:448
cs_real_t rate_consol
Definition: cs_lagr.h:482
int inclgt
Definition: cs_lagr.h:794
cs_real_t * ahetch
Definition: cs_lagr.h:959
Definition: cs_lagr.h:457
cs_real_t * h02ch
Definition: cs_lagr.h:952
cs_lagr_particle_counter_t * cs_lagr_update_particle_counter(void)
Update global particle counter.
Definition: cs_lagr.c:1270
cs_real_t rho
Definition: cs_lagr.h:432
cs_real_t dnpenc
Definition: cs_lagr.h:714
cs_gnum_t n_g_cumulative_total
Definition: cs_lagr.h:306
cs_lagr_brownian_t * cs_glob_lagr_brownian
cs_real_t * y1ch
Definition: cs_lagr.h:956
int resuspension
Definition: cs_lagr.h:269
cs_lagr_precipitation_model_t * cs_glob_lagr_precipitation_model
int ihsum
Definition: cs_lagr.h:815
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:321
cs_real_t diameter
Definition: cs_lagr.h:548
cs_lagr_extra_module_t * cs_get_lagr_extra_module(void)
Definition: cs_lagr.c:1586
cs_lagr_brownian_t * cs_get_lagr_brownian(void)
Definition: cs_lagr.c:1436
cs_real_t base_diameter
Definition: cs_lagr.h:471
int * n_injection_sets
Definition: cs_lagr.h:661
int ncharb
Definition: cs_lagr.h:845
int inclg
Definition: cs_lagr.h:791
cs_real_t fion
Definition: cs_lagr.h:743
cs_real_3_t * grad_pr
Definition: cs_lagr.h:923
cs_field_t * viscl
Definition: cs_lagr.h:886
cs_real_t diameter_variance
Definition: cs_lagr.h:549
cs_lagr_time_step_t * cs_glob_lagr_time_step
cs_lagr_source_terms_t * cs_glob_lagr_source_terms
Definition: cs_lagr.h:687
cs_real_t w_deposited
Definition: cs_lagr.h:349
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:1074
cs_real_t w_fouling
Definition: cs_lagr.h:352
cs_field_t * t_gaz
Definition: cs_lagr.h:880
cs_lagr_extra_module_t * cs_glob_lagr_extra_module
cs_real_t * particle_flow_rate
Definition: cs_lagr.h:669
int n_stat_classes
Definition: cs_lagr.h:290
cs_real_t diam_mean
Definition: cs_lagr.h:450
Definition: cs_lagr.h:93
cs_real_t modyeq
Definition: cs_lagr.h:416
cs_real_t density
Definition: cs_lagr.h:551
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:1352
cs_lagr_time_step_t * cs_get_lagr_time_step(void)
Definition: cs_lagr.c:1388
cs_gnum_t n_g_deposited
Definition: cs_lagr.h:325
int impvar
Definition: cs_lagr.h:379
cs_field_t * vel
Definition: cs_lagr.h:883
cs_real_t phi_s
Definition: cs_lagr.h:737
void cs_lagr_finalize(void)
Definition: cs_lagr.c:1101
Definition: cs_lagr.h:91
Definition: cs_lagr.h:721
int icp
Definition: cs_lagr.h:854
int itsmas
Definition: cs_lagr.h:605
cs_real_t emissivity
Definition: cs_lagr.h:561
cs_lagr_internal_condition_t * cs_lagr_get_internal_conditions(void)
Return pointer to the main internal conditions structure.
Definition: cs_lagr.c:1451
int lamvbr
Definition: cs_lagr.h:752
cs_lagr_reentrained_model_t * cs_glob_lagr_reentrained_model
cs_real_t rayasg
Definition: cs_lagr.h:418
cs_gnum_t n_g_new
Definition: cs_lagr.h:316
cs_field_t * cvar_rij
Definition: cs_lagr.h:920
Definition: cs_lagr.h:403
cs_real_t scalar_kernel
Definition: cs_lagr.h:459
int radiative_model
Definition: cs_lagr.h:851
int npencr
Definition: cs_lagr.h:695
cs_real_t tmamax
Definition: cs_lagr.h:644
void cs_lagr_finalize_internal_cond(void)
Definition: cs_lagr.c:1558
int fragmentation
Definition: cs_lagr.h:288
cs_real_t * mp_diss
Definition: cs_lagr.h:438
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:1177
cs_real_t scalar_kernel
Definition: cs_lagr.h:470
Definition: cs_lagr.h:147
int natom
Definition: cs_lagr.h:943
void cs_lagr_solve_initialize(const cs_real_t *dt)
Definition: cs_lagr.c:1601
Definition: cs_lagr.h:137