8.1
general documentation
cs_lagr.h
Go to the documentation of this file.
1 #ifndef __CS_LAGR_H__
2 #define __CS_LAGR_H__
3 
4 /*============================================================================
5  * Functions and types for the Lagrangian module
6  *============================================================================*/
7 
8 /*
9  This file is part of code_saturne, a general-purpose CFD tool.
10 
11  Copyright (C) 1998-2023 EDF S.A.
12 
13  This program is free software; you can redistribute it and/or modify it under
14  the terms of the GNU General Public License as published by the Free Software
15  Foundation; either version 2 of the License, or (at your option) any later
16  version.
17 
18  This program is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
20  FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
21  details.
22 
23  You should have received a copy of the GNU General Public License along with
24  this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
25  Street, Fifth Floor, Boston, MA 02110-1301, USA.
26 */
27 
28 /*----------------------------------------------------------------------------*/
29 
30 #include "cs_defs.h"
31 
32 /*----------------------------------------------------------------------------
33  * Standard C library headers
34  *----------------------------------------------------------------------------*/
35 
36 #include "assert.h"
37 
38 /*----------------------------------------------------------------------------
39  * Local headers
40  *----------------------------------------------------------------------------*/
41 
42 #include "cs_base.h"
43 #include "cs_field.h"
44 
45 #include "cs_lagr_injection.h"
46 
47 /*----------------------------------------------------------------------------*/
48 
50 
51 /*============================================================================
52  * Type definitions
53  *============================================================================*/
54 
55 /*----------------------------------------------------------------------------*/
70 /*----------------------------------------------------------------------------*/
71 
72 typedef void
74  int location_id,
75  const void *input,
76  cs_lnum_t n_elts,
77  const cs_lnum_t elt_ids[],
78  cs_real_t profile[]);
79 
81 /*--------------------------------------*/
82 
83 typedef enum {
84 
97 
99 /*---------------------------------------*/
100 
101 enum {
106 };
107 
122 typedef enum {
128 
130 /*---------------------------------*/
131 
132 typedef enum {
133 
136 
139 
140  /*< Impose spheroids (Jeffery equations for transport) */
142 
144 
146 /*---------------------------------------*/
147 
148 enum {
152 };
153 
155 /*----------------------*/
156 
157 typedef struct {
158 
159  int nusbrd;
162  int ndlaim;
164  int ncharm2;
165  int nlayer;
168 
170 /*---------------------*/
171 
172 typedef struct {
173 
174  int ntersl;
177 } cs_lagr_dim_t;
178 
180 /*-----------------------------------------------------*/
181 
182 typedef struct {
183 
196  int iilagr;
197 
198  /* indicates the steady (=1) or unsteady (=0) state of the
199  continuous phase flow
200  in particular, \ref isttio = 1 is needed in order to:
201  calculate steady statistics in the volume or at the boundaries
202  (starting respectively from the iterations
203  \ref cs_lagr_stat_options_t::nstist "nstist")
204  and calculate time-averaged two-way coupling source terms (from the
205  time step \ref nstits).
206  Useful if \ref iilagr = CS_LAGR_ONEWAY_COUPLING
207  or \ref iilagr = CS_LAGR_TWOWAY_COUPLING
208  (if \ref iilagr = CS_LAGR_FROZEN_CONTINUOUS_PHASE,
209  then \ref isttio=1 automatically) */
210  int isttio;
211 
217  int isuila;
218 
220  int t_order;
221 
225 
229 
235  int ilapoi;
236 
253 
256 
258 
260 /*-----------------------------------------------------------*/
261 
262 typedef struct {
263 
276 
284  int modcpl;
285 
290  int idistu;
291 
296  int idiffl;
297 
301 
302  int dlvo;
303 
307 
311 
314  int clogging;
315 
319  int shape;
320 
324 
326  int fouling;
327 
331 
335 
337 
339 
342 
344 
346 /*----------------------------------------------*/
347 
348 typedef struct {
349 
353 
357 
360 
363 
366 
369 
372 
375 
378 
381 
384 
387 
390 
393 
396 
399 
402 
404 
406 /* ---------------------------------------------------------- */
407 
408 typedef struct {
409 
410  /* activation (=1) or not (=0) of an evolution equation on the particle
411  temperature (in degrees Celsius).
412  Useful if \ref physical_model=1 and if there is a thermal scalar
413  associated with the continuous phase.
414  */
415  int itpvar;
416 
417  /* activation (=1) or not (=0) of an evolution equation on the particle
418  diameter. Useful if \ref physical_model = 1.
419  */
420  int idpvar;
421 
422  /* activation (=1) or not (=0) of an evolution equation on the particle mass
423  Useful if \ref physical_model = 1
424  */
425  int impvar;
426 
427  /* initialization temperature (in degree Celsius) for the particles already
428  present in the calculation domain when an evolution equation on
429  the particle temperature is activated during a calculation
430  (\ref physical_model = 1 and \ref itpvar = 1).
431  Useful if \ref isuila = 1 and \ref itpvar = 0 in the previous calculation.
432  */
434 
435  /* initialization value for the specific heat (\f$ J.kg^{-1}.K^{-1} \f$)
436  of the particles already present
437  in the calculation domain when an evolution equation
438  on the particle temperature is activated during a calculation
439  (\ref physical_model = 1 and \ref itpvar = 1).
440  Useful if \ref isuila = 1 and \ref itpvar = 0 in the previous calculation
441  */
443 
445 
447 /* -------------------------------------- */
448 
449 typedef struct {
450 
451  /* - 0: no resuspension model
452  - 1: resuspension model */
453  int ireent;
454 
455  /* - 0: no head losses calculation for influence of the deposit on the flow
456  - 1: head losses calculation for influence of the deposit on the flow */
457  int iflow;
458 
459  /* Parameters of the particle resuspension model*/
465 
467 
469 /* -------------------------------------- */
470 
471 typedef struct {
472 
473  /* number of particle classes*/
474  int nbrclas;
475  /* diameter of particles formed by precipitation*/
477  /* density of particles formed by precipitation*/
479  /* number of precipitated particles */
480  int *nbprec;
481  /* */
483  /* number of precipitated particles */
485 
487 
489 /* ------------------------------------------ */
490 
491 typedef struct {
492 
497 
499 
501 /* ------------------------------------------------ */
502 
503 typedef struct {
504 
506 
508 
510 /* ------------------------------------------ */
511 
512 typedef struct {
513 
519 
521 
523 /* ------------------------------------------ */
524 
525 typedef struct {
526 
529  cs_real_t (*function_kernel)(cs_lnum_t);
530 
532 
534 /* ----------------------------------------------- */
535 
536 typedef struct {
537 
542 
544 
546 /*----------------------------------*/
547 
548 typedef struct {
549 
550  /* current step id (for 2nd order scheme) */
551  int nor;
552 
553  /* duration of a Lagrangian iteration */
555 
556  /* physical time of the Lagrangian simulation */
558 
560 
562 /*------------------------------------------------------------------*/
563 
564 typedef struct {
565 
566  int zone_id;
567  int set_id;
578 
581 
587 
592 
597  int cluster;
603  cs_real_t velocity[3];
612  cs_real_t orientation[3];
613  cs_real_t radii[3];
614  cs_real_t angular_vel[3];
617  cs_real_t euler[4];
619  cs_real_t shape_param[4];
637 
639 /*----------------------------------------------*/
640 
641 typedef struct {
642 
646  int ltsdyn;
647 
652  int ltsmas;
653 
654  /* if \ref physical_model = 1 and \ref itpvar = 1, \ref ltsthe
655  activates (=1) or not (=0) the two-way coupling on temperature.
656  if \ref physical_model = 2, \ref ltsthe activates (=1) or not (=0) the
657  two-way coupling on the eulerian variables related to pulverised
658  coal combustion.
659  Useful if \ref iilagr = CS_LAGR_TWOWAY_COUPLING */
660  int ltsthe;
661 
664  int itsli;
665 
666  /* explicit source term for the turbulent dissipation and the
667  turbulent energy if the \f$k-\varepsilon\f$ turbulence model is used
668  for the continuous phase */
669  int itske;
670 
673  int itste;
674 
677  int itsti;
678 
680  int itsmas;
681 
695  int nstits;
696 
698  int npts;
699 
702  int ntxerr;
703 
706 
709 
712 
714 
716 /*----------------------------------------------------*/
717 
718 typedef struct {
719 
722  int n_zones;
723  int *zone_type;
730  char *elt_type;
738 
740 /*---------------------------------------*/
741 
742 typedef struct {
743 
745 
747 
749 /*--------------------------------*/
750 
751 typedef struct {
752 
753  /* Activates (=1) or not (=0) the option of coal particle fouling.
754  It then is necessary to specify the domain boundaries
755  on which fouling may take place. Useful if \ref physical_model = 2*/
756  int iencra;
757 
758  /* encrustation data*/
759  int npencr;
760  // TODO cf particles->n_part_fou in cs_lagr_tracking.c
761 
762  /* encrustation data*/
763  cs_real_t *enc1; // size: ncharm2
764  /* encrustation data*/
765  cs_real_t *enc2; // size: ncharm2
766 
767  /* Limit temperature (in degree Celsius) below which the coal particles do
768  not cause any fouling (if the fouling model is activated).
769  Useful if \ref physical_model = 2 and \ref iencra = 1*/
770  cs_real_t *tprenc; // size: ncharm2
771 
772  /* Ash critical viscosity in \f$ kg.m^{-1}.s^{-1} \f$, in the fouling model
773  cf J.D. Watt et T. Fereday (J.Inst.Fuel, Vol.42-p99).
774  Useful if \ref physical_model = 2 and \ref iencra = 1*/
775  cs_real_t *visref; // size: ncharm2
776 
777  /* encrustation data */
779 
781 
783 /*-----------------------------------------*/
784 
785 typedef struct {
786 
789 
793 
796 
799 
802 
805 
808 
810 
812 /*-------------------------------*/
813 
814 typedef struct {
815 
816  int lamvbr;
819 
821 /*----------------------------------------------*/
822 
823 typedef struct {
824 
832  int npstf;
833 
840  int npstft;
841 
846 
850  int iclgst;
851 
853  int inbr;
854 
856  int inclg;
857 
859  int inclgt;
860 
862  int iclogt;
863 
865  int iclogh;
866 
868  int iscovc;
869 
870  /* id for mean of particle deposition height */
871  int ihdepm;
872 
873  /* id for variance of particle deposition height */
874  int ihdepv;
875 
876  /* id for mean diameter of deposited particles */
877  int ihdiam;
878 
879  /* id for sum of deposited particle diameters */
880  int ihsum;
881 
889 
896  char **nombrd;
897 
899 
901 /*-----------------------------------------------*/
902 
903 typedef struct {
904 
905  /* Turbulence model */
906  int iturb;
907  int itytur;
908 
909  /* cpincl */
910  int ncharb;
911 
912  /* ppppar */
913  int ncharm;
914 
915  /* radiation */
917 
918  /* icp */
919  int icp;
920 
921  /* cmu */
923 
924  /* visls0 */
926 
927  /* Referenced fields
928  ----------------- */
929 
930  /* wall ustar */
932 
933  /* Fluid density */
935 
936  /* Fluid pressure */
938 
939  /* Fluid temparature */
942 
943  /* Fluid velocity */
945 
946  /* Fluid viscosity */
948 
949  /* Fluid viscosity */
951 
952  /* Fluid specific heat capacity */
954 
955  /* Radiative energy */
957 
958  /* Combustion */
962 
963  /* Turbulence */
964  /* Turbulent intensity */
966 
967  /* Turbulent dissipation */
969 
970  /* Omega from k-omega SST model*/
972 
973  /* Reynolds Stress Tensor */
975 
976  /* Total pressure gradient */
978 
979  /* velocity gradient */
981 
982  /* Lagrangian time field */
984 
985  /* Lagrangian time gradient */
987 
989 
991 /*--------------------------------------------*/
992 
993 typedef struct {
994 
995  int ih2o; // cpincl
996  int io2; // cpincl
997  int ico; // cpincl
998 
999  int iatc; // ppthch
1000  cs_real_t prefth; // ppthch
1001  cs_real_t trefth; // ppthch
1002 
1003  int natom; // = 5;
1004  cs_real_t *wmolat; // dim = natom
1005 
1006  int ngazem; // = 20;
1007  cs_real_t *wmole; // ngazem
1008  int *iym1;
1009 
1010  int ncharm; // cpincl
1011  cs_real_t *a1ch; // ncharm
1025 
1027 
1028 /*============================================================================
1029  * Global variables
1030  *============================================================================*/
1031 
1035 
1039 
1042 
1045 
1048 
1049 /* Lagrangian log output every frequency_n time steps */
1050 
1051 extern int cs_glob_lagr_log_frequency_n;
1052 
1053 /* Statisics on boundaries */
1054 
1055 extern cs_real_t *bound_stat;
1056 
1062 
1065 
1073 
1076 
1080 
1081 /* Projection matrices for global to local coordinates on boundary faces */
1083 
1084 /*============================================================================
1085  * Public function prototypes
1086  *============================================================================*/
1087 
1088 /*----------------------------------------------------------------------------*/
1101 /*----------------------------------------------------------------------------*/
1102 
1105  int zone_id,
1106  int set_id);
1107 
1108 /*----------------------------------------------------------------------------*/
1114 /*----------------------------------------------------------------------------*/
1115 
1116 void
1118 
1119 /*----------------------------------------------------------------------------*/
1125 /*----------------------------------------------------------------------------*/
1126 
1129 
1130 /*----------------------------------------------------------------------------*/
1139 /*----------------------------------------------------------------------------*/
1140 
1143 
1144 /*----------------------------------------------------------------------------
1145  * Provide access to cs_lagr_particle_counter_t
1146  *
1147  * needed to initialize structure with GUI
1148  *----------------------------------------------------------------------------*/
1149 
1152 
1153 /*----------------------------------------------------------------------------
1154  * Provide access to cs_lagr_reentrained_model_t
1155  *
1156  * needed to initialize structure with GUI
1157  *----------------------------------------------------------------------------*/
1158 
1161 
1162 /*----------------------------------------------------------------------------
1163  * Provide access to cs_lagr_precipitation_model_t
1164  *
1165  * needed to initialize structure with GUI
1166  *----------------------------------------------------------------------------*/
1167 
1170 
1171 /*----------------------------------------------------------------------------
1172  * Provide access to cs_lagr_clogging_model_t
1173  *
1174  * needed to initialize structure with GUI
1175  *----------------------------------------------------------------------------*/
1176 
1179 
1180 /*----------------------------------------------------------------------------
1181  * Provide access to cs_lagr_shape_model_t
1182  *
1183  * needed to initialize structure with GUI
1184  *----------------------------------------------------------------------------*/
1185 
1188 
1189 /*----------------------------------------------------------------------------
1190  * Provide access to cs_lagr_agglomeration_model_t
1191  *
1192  * needed to initialize structure with GUI
1193  *----------------------------------------------------------------------------*/
1194 
1197 
1198 /*----------------------------------------------------------------------------
1199  * Provide access to cs_lagr_consolidation_model_t
1200  *
1201  * needed to initialize structure with GUI
1202  *----------------------------------------------------------------------------*/
1203 
1206 
1207 /*----------------------------------------------------------------------------
1208  * Provide access to cs_lagr_time_step_t
1209  *
1210  * needed to initialize structure with GUI
1211  *----------------------------------------------------------------------------*/
1212 
1214 cs_get_lagr_time_step(void);
1215 
1216 /*----------------------------------------------------------------------------
1217  * Provide access to cs_lagr_source_terms_t
1218  *
1219  * needed to initialize structure with GUI
1220  *----------------------------------------------------------------------------*/
1221 
1224 
1225 /*----------------------------------------------------------------------------
1226  * Provide access to cs_lagr_encrustation_t
1227  *
1228  * needed to initialize structure with GUI
1229  *----------------------------------------------------------------------------*/
1230 
1233 
1234 /*----------------------------------------------------------------------------
1235  * Provide access to cs_lagr_physico_chemical_t
1236  *
1237  * needed to initialize structure with GUI
1238  *----------------------------------------------------------------------------*/
1239 
1242 
1243 /*----------------------------------------------------------------------------
1244  * Provide access to cs_lagr_brownian_t
1245  *
1246  * needed to initialize structure with GUI
1247  *----------------------------------------------------------------------------*/
1248 
1250 cs_get_lagr_brownian(void);
1251 
1252 /*----------------------------------------------------------------------------*/
1258 /*----------------------------------------------------------------------------*/
1259 
1262 
1263 /*----------------------------------------------------------------------------*/
1269 /*----------------------------------------------------------------------------*/
1270 
1273 
1274 /*----------------------------------------------------------------------------*/
1282 /*----------------------------------------------------------------------------*/
1283 
1286 
1287 /*----------------------------------------------------------------------------*/
1291 /*----------------------------------------------------------------------------*/
1292 
1293 void
1295 
1296 /*----------------------------------------------------------------------------
1297  * Destroy finalize the global cs_lagr_internal_condition_t structure.
1298  *----------------------------------------------------------------------------*/
1299 
1300 void
1302 
1303 /*----------------------------------------------------------------------------
1304  * Provide access to cs_lagr_boundary_interactions_t
1305  *
1306  * needed to initialize structure with GUI
1307  *----------------------------------------------------------------------------*/
1308 
1311 
1312 /*----------------------------------------------------------------------------
1313  * Provide access to cs_lagr_extra_module_t
1314  *----------------------------------------------------------------------------*/
1315 
1318 
1319 /*----------------------------------------------------------------------------
1320  * Prepare for execution of the Lagrangian model.
1321  *
1322  * This should be called before the fist call to cs_lagr_solve_time_step.
1323  *
1324  * parameters:
1325  * dt <-- time step (per cell)
1326  *----------------------------------------------------------------------------*/
1327 
1328 void
1330 
1331 /*----------------------------------------------------------------------------
1332  * Initialize lagrangian arrays
1333  *----------------------------------------------------------------------------*/
1334 
1335 void
1336 cs_lagr_init_arrays(void);
1337 
1338 /*----------------------------------------------------------------------------
1339  * Free lagrangian arrays
1340  *----------------------------------------------------------------------------*/
1341 
1342 void
1343 cs_lagr_finalize(void);
1344 
1345 /*----------------------------------------------------------------------------*/
1354 /*----------------------------------------------------------------------------*/
1355 
1356 void
1357 cs_lagr_add_fields(void);
1358 
1359 /*--------------------------------------------------------------------
1360  * Execute one time step of the Lagrangian model.
1361  *
1362  * This is the main function for that model.
1363  *
1364  * parameters:
1365  * itypfb <-- boundary face types
1366  * dt <-- time step (per cell)
1367  *-------------------------------------------------------------------- */
1368 
1369 void
1370 cs_lagr_solve_time_step(const int itypfb[],
1371  const cs_real_t *dt);
1372 
1373 /*----------------------------------------------------------------------------*/
1374 
1376 
1377 #endif /* __CS_LAGR_H__ */
#define BEGIN_C_DECLS
Definition: cs_defs.h:514
double cs_real_t
Floating-point value.
Definition: cs_defs.h:319
cs_real_t cs_real_3_t[3]
vector of 3 floating-point values
Definition: cs_defs.h:334
unsigned long cs_gnum_t
global mesh entity number
Definition: cs_defs.h:298
#define END_C_DECLS
Definition: cs_defs.h:515
cs_real_t cs_real_33_t[3][3]
3x3 matrix of floating-point values
Definition: cs_defs.h:343
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:313
@ dt
Definition: cs_field_pointer.h:65
cs_lagr_encrustation_t * cs_get_lagr_encrustation(void)
Definition: cs_lagr.c:1553
cs_lagr_source_terms_t * cs_glob_lagr_source_terms
void cs_lagr_finalize_internal_cond(void)
Definition: cs_lagr.c:1706
cs_lagr_internal_condition_t * cs_glob_lagr_internal_conditions
cs_lagr_boundary_interactions_t * cs_glob_lagr_boundary_interactions
cs_lagr_consolidation_model_t * cs_glob_lagr_consolidation_model
cs_lagr_consolidation_model_t * cs_get_lagr_consolidation_model(void)
Definition: cs_lagr.c:1517
cs_real_t * bound_stat
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:1268
cs_lagr_module_shape_t
Definition: cs_lagr.h:132
@ CS_LAGR_SHAPE_SPHEROID_STOC_MODEL
Definition: cs_lagr.h:138
@ CS_LAGR_SHAPE_SPHERE_MODEL
Definition: cs_lagr.h:135
@ CS_LAGR_SHAPE_SPHEROID_JEFFERY_MODEL
Definition: cs_lagr.h:141
void cs_lagr_solve_time_step(const int itypfb[], const cs_real_t *dt)
Definition: cs_lagr.c:1816
cs_lagr_particle_counter_t * cs_lagr_get_particle_counter(void)
Get read/write pointer to global particle counter.
Definition: cs_lagr.c:1368
const cs_lagr_const_dim_t * cs_glob_lagr_const_dim
@ CS_LAGR_IN_IMPOSED_COMPONENTS
Definition: cs_lagr.h:105
@ CS_LAGR_IN_IMPOSED_NORM
Definition: cs_lagr.h:104
@ CS_LAGR_IN_IMPOSED_FLUID_VALUE
Definition: cs_lagr.h:102
cs_lagr_model_t * cs_glob_lagr_model
cs_lagr_extra_module_t * cs_glob_lagr_extra_module
cs_lagr_bc_type
Definition: cs_lagr.h:83
@ CS_LAGR_OUTLET
Definition: cs_lagr.h:88
@ CS_LAGR_INLET
Definition: cs_lagr.h:87
@ CS_LAGR_DEPO2
Definition: cs_lagr.h:91
@ CS_LAGR_DEPO1
Definition: cs_lagr.h:90
@ CS_LAGR_BC_USER
Definition: cs_lagr.h:94
@ CS_LAGR_FOULING
Definition: cs_lagr.h:93
@ CS_LAGR_BC_UNDEFINED
Definition: cs_lagr.h:85
@ CS_LAGR_SYM
Definition: cs_lagr.h:86
@ CS_LAGR_DEPO_DLVO
Definition: cs_lagr.h:92
@ CS_LAGR_REBOUND
Definition: cs_lagr.h:89
cs_lagr_encrustation_t * cs_glob_lagr_encrustation
cs_lagr_internal_condition_t * cs_lagr_get_internal_conditions(void)
Return pointer to the main internal conditions structure.
Definition: cs_lagr.c:1593
const cs_lagr_zone_data_t * cs_glob_lagr_boundary_conditions
cs_lagr_agglomeration_model_t * cs_glob_lagr_agglomeration_model
cs_lagr_time_step_t * cs_get_lagr_time_step(void)
Definition: cs_lagr.c:1529
cs_lagr_specific_physics_t * cs_glob_lagr_specific_physics
cs_lagr_fragmentation_model_t * cs_glob_lagr_fragmentation_model
cs_lagr_extra_module_t * cs_get_lagr_extra_module(void)
Definition: cs_lagr.c:1735
cs_lagr_agglomeration_model_t * cs_get_lagr_agglomeration_model(void)
Definition: cs_lagr.c:1505
cs_lagr_reentrained_model_t * cs_glob_lagr_reentrained_model
void cs_lagr_add_fields(void)
Create additional fields needed by the Lagrangien model.
Definition: cs_lagr.c:1193
void cs_lagr_init_arrays(void)
Definition: cs_lagr.c:1099
cs_lagr_zone_data_t * cs_lagr_get_volume_conditions(void)
Return pointer to the main volume conditions structure.
Definition: cs_lagr.c:1651
cs_lagr_physico_chemical_t * cs_glob_lagr_physico_chemical
cs_lagr_clogging_model_t * cs_get_lagr_clogging_model(void)
Definition: cs_lagr.c:1481
cs_lagr_precipitation_model_t * cs_glob_lagr_precipitation_model
cs_lagr_coal_comb_t * cs_glob_lagr_coal_comb
void cs_lagr_solve_initialize(const cs_real_t *dt)
Definition: cs_lagr.c:1750
cs_lagr_brownian_t * cs_get_lagr_brownian(void)
Definition: cs_lagr.c:1577
void cs_lagr_injection_set_default(cs_lagr_injection_set_t *zis)
Initialize injection set data structure fields to defaults.
Definition: cs_lagr.c:1295
@ CS_LAGR_PHYS_COAL
Definition: cs_lagr.h:151
@ CS_LAGR_PHYS_OFF
Definition: cs_lagr.h:149
@ CS_LAGR_PHYS_HEAT
Definition: cs_lagr.h:150
cs_lagr_physico_chemical_t * cs_get_lagr_physico_chemical(void)
Definition: cs_lagr.c:1565
cs_lagr_particle_counter_t * cs_lagr_update_particle_counter(void)
Update global particle counter.
Definition: cs_lagr.c:1385
cs_lagr_brownian_t * cs_glob_lagr_brownian
const cs_lagr_zone_data_t * cs_glob_lagr_volume_conditions
cs_lagr_source_terms_t * cs_get_lagr_source_terms(void)
Definition: cs_lagr.c:1541
cs_lagr_module_status_t
Definition: cs_lagr.h:122
@ CS_LAGR_OFF
Definition: cs_lagr.h:123
@ CS_LAGR_ONEWAY_COUPLING
Definition: cs_lagr.h:124
@ CS_LAGR_TWOWAY_COUPLING
Definition: cs_lagr.h:125
@ CS_LAGR_FROZEN_CONTINUOUS_PHASE
Definition: cs_lagr.h:126
cs_real_33_t * cs_glob_lagr_b_face_proj
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
cs_lagr_precipitation_model_t * cs_get_lagr_precipitation_model(void)
Provide access to cs_lagr_precipitation_model_t.
Definition: cs_lagr.c:1469
void cs_lagr_finalize_zone_conditions(void)
Finalize the global boundary and volume condition structures.
Definition: cs_lagr.c:1675
cs_lagr_time_step_t * cs_glob_lagr_time_step
cs_lagr_specific_physics_t * cs_get_lagr_specific_physics(void)
Provide access to cs_lagr_specific_physics_t.
Definition: cs_lagr.c:1442
cs_lagr_zone_data_t * cs_lagr_get_boundary_conditions(void)
Return pointer to the main boundary conditions structure.
Definition: cs_lagr.c:1627
int cs_glob_lagr_log_frequency_n
const cs_lagr_particle_counter_t * cs_glob_lagr_particle_counter
cs_lagr_shape_model_t * cs_get_lagr_shape_model(void)
Definition: cs_lagr.c:1493
cs_lagr_reentrained_model_t * cs_get_lagr_reentrained_model(void)
Provide access to cs_lagr_reentrained_model_t.
Definition: cs_lagr.c:1456
cs_lagr_dim_t * cs_glob_lagr_dim
void cs_lagr_finalize(void)
Definition: cs_lagr.c:1124
cs_lagr_boundary_interactions_t * cs_get_lagr_boundary_interactions(void)
Definition: cs_lagr.c:1724
cs_lagr_shape_model_t * cs_glob_lagr_shape_model
cs_lagr_time_scheme_t * cs_glob_lagr_time_scheme
cs_lagr_clogging_model_t * cs_glob_lagr_clogging_model
integer, dimension(:), pointer, save itypfb
boundary condition type at the boundary face ifac (see cs_user_boundary_conditions)
Definition: pointe.f90:89
Field descriptor.
Definition: cs_field.h:131
Definition: cs_lagr.h:512
cs_real_t base_diameter
Definition: cs_lagr.h:518
cs_real_t scalar_kernel
Definition: cs_lagr.h:517
cs_real_t max_stat_weight
Definition: cs_lagr.h:516
cs_lnum_t n_max_classes
Definition: cs_lagr.h:514
cs_real_t min_stat_weight
Definition: cs_lagr.h:515
Definition: cs_lagr.h:823
int iclogt
Definition: cs_lagr.h:862
int inclg
Definition: cs_lagr.h:856
int has_part_impact_nbr
Definition: cs_lagr.h:845
char ** nombrd
Definition: cs_lagr.h:896
int npstft
Definition: cs_lagr.h:840
int ihdepm
Definition: cs_lagr.h:871
int inclgt
Definition: cs_lagr.h:859
int inbr
Definition: cs_lagr.h:853
int iscovc
Definition: cs_lagr.h:868
int npstf
Definition: cs_lagr.h:832
cs_real_t tstatp
Definition: cs_lagr.h:888
int ihsum
Definition: cs_lagr.h:880
int iclgst
Definition: cs_lagr.h:850
int iclogh
Definition: cs_lagr.h:865
int ihdepv
Definition: cs_lagr.h:874
int ihdiam
Definition: cs_lagr.h:877
Definition: cs_lagr.h:814
int lamvbr
Definition: cs_lagr.h:816
Definition: cs_lagr.h:491
cs_real_t jamlim
Definition: cs_lagr.h:493
cs_real_t diam_mean
Definition: cs_lagr.h:496
cs_real_t mporos
Definition: cs_lagr.h:494
cs_real_t csthpp
Definition: cs_lagr.h:495
Definition: cs_lagr.h:993
cs_real_t * h02ch
Definition: cs_lagr.h:1012
int iatc
Definition: cs_lagr.h:999
cs_real_t * xwatch
Definition: cs_lagr.h:1022
cs_real_t * y2ch
Definition: cs_lagr.h:1017
cs_real_t * e1ch
Definition: cs_lagr.h:1013
int ih2o
Definition: cs_lagr.h:995
int ngazem
Definition: cs_lagr.h:1006
cs_real_t * e2ch
Definition: cs_lagr.h:1015
cs_real_t * a1ch
Definition: cs_lagr.h:1011
cs_real_t * ehetch
Definition: cs_lagr.h:1020
int natom
Definition: cs_lagr.h:1003
cs_real_t prefth
Definition: cs_lagr.h:1000
int * iym1
Definition: cs_lagr.h:1008
cs_real_t * thcdch
Definition: cs_lagr.h:1024
cs_real_t * xashch
Definition: cs_lagr.h:1023
cs_real_t trefth
Definition: cs_lagr.h:1001
cs_real_t * wmole
Definition: cs_lagr.h:1007
int io2
Definition: cs_lagr.h:996
cs_real_t * rho0ch
Definition: cs_lagr.h:1021
cs_real_t * a2ch
Definition: cs_lagr.h:1014
cs_real_t * cp2ch
Definition: cs_lagr.h:1018
cs_real_t * ahetch
Definition: cs_lagr.h:1019
cs_real_t * wmolat
Definition: cs_lagr.h:1004
int ico
Definition: cs_lagr.h:997
int ncharm
Definition: cs_lagr.h:1010
cs_real_t * y1ch
Definition: cs_lagr.h:1016
Definition: cs_lagr.h:536
cs_real_t force_consol
Definition: cs_lagr.h:541
cs_real_t slope_consol
Definition: cs_lagr.h:540
cs_lnum_t iconsol
Definition: cs_lagr.h:538
cs_real_t rate_consol
Definition: cs_lagr.h:539
Definition: cs_lagr.h:157
int ndlaim
Definition: cs_lagr.h:162
int ncharm2
Definition: cs_lagr.h:164
int nlayer
Definition: cs_lagr.h:165
int nusbrd
Definition: cs_lagr.h:159
Definition: cs_lagr.h:172
int ntersl
Definition: cs_lagr.h:174
int n_boundary_stats
Definition: cs_lagr.h:175
Definition: cs_lagr.h:751
cs_real_t * visref
Definition: cs_lagr.h:775
cs_real_t dnpenc
Definition: cs_lagr.h:778
int iencra
Definition: cs_lagr.h:756
cs_real_t * tprenc
Definition: cs_lagr.h:770
cs_real_t * enc2
Definition: cs_lagr.h:765
int npencr
Definition: cs_lagr.h:759
cs_real_t * enc1
Definition: cs_lagr.h:763
Definition: cs_lagr.h:903
cs_field_t * scal_t
Definition: cs_lagr.h:940
cs_field_t * vel
Definition: cs_lagr.h:944
int itytur
Definition: cs_lagr.h:907
cs_field_t * cpro_cp
Definition: cs_lagr.h:953
cs_field_t * cvar_omg
Definition: cs_lagr.h:971
cs_real_3_t * grad_lagr_time
Definition: cs_lagr.h:986
cs_field_t * viscl
Definition: cs_lagr.h:947
cs_field_t * rad_energy
Definition: cs_lagr.h:956
cs_field_t * x_eau
Definition: cs_lagr.h:960
cs_field_t * cvar_ep
Definition: cs_lagr.h:968
cs_field_t * lagr_time
Definition: cs_lagr.h:983
cs_field_t * x_oxyd
Definition: cs_lagr.h:959
int ncharb
Definition: cs_lagr.h:910
cs_field_t * pressure
Definition: cs_lagr.h:937
cs_real_33_t * grad_vel
Definition: cs_lagr.h:980
cs_field_t * temperature
Definition: cs_lagr.h:941
cs_real_t cmu
Definition: cs_lagr.h:922
cs_real_3_t * grad_pr
Definition: cs_lagr.h:977
cs_field_t * cvar_k
Definition: cs_lagr.h:965
cs_field_t * x_m
Definition: cs_lagr.h:961
cs_field_t * ustar
Definition: cs_lagr.h:931
int icp
Definition: cs_lagr.h:919
cs_field_t * cromf
Definition: cs_lagr.h:934
cs_field_t * cpro_viscls
Definition: cs_lagr.h:950
int radiative_model
Definition: cs_lagr.h:916
int ncharm
Definition: cs_lagr.h:913
cs_field_t * cvar_rij
Definition: cs_lagr.h:974
cs_real_t visls0
Definition: cs_lagr.h:925
int iturb
Definition: cs_lagr.h:906
Definition: cs_lagr.h:525
cs_real_t base_diameter
Definition: cs_lagr.h:528
cs_real_t scalar_kernel
Definition: cs_lagr.h:527
Definition: cs_lagr.h:564
cs_real_t diameter_variance
Definition: cs_lagr.h:608
cs_real_t density
Definition: cs_lagr.h:624
int injection_frequency
Definition: cs_lagr.h:573
int temperature_profile
Definition: cs_lagr.h:591
cs_real_t shape
Definition: cs_lagr.h:610
cs_real_t velocity_magnitude
Definition: cs_lagr.h:602
int velocity_profile
Definition: cs_lagr.h:586
cs_real_t cp
Definition: cs_lagr.h:628
cs_lagr_injection_profile_compute_t * injection_profile_func
Definition: cs_lagr.h:577
cs_real_t diameter
Definition: cs_lagr.h:607
cs_gnum_t n_inject
Definition: cs_lagr.h:570
int cluster
Definition: cs_lagr.h:597
int location_id
Definition: cs_lagr.h:568
cs_real_t fouling_index
Definition: cs_lagr.h:626
int coal_number
Definition: cs_lagr.h:593
void * injection_profile_input
Definition: cs_lagr.h:580
cs_real_t flow_rate
Definition: cs_lagr.h:632
int zone_id
Definition: cs_lagr.h:566
int set_id
Definition: cs_lagr.h:567
int aggregat_class_id
Definition: cs_lagr.h:599
cs_real_t emissivity
Definition: cs_lagr.h:634
cs_real_t stat_weight
Definition: cs_lagr.h:630
cs_real_t temperature
Definition: cs_lagr.h:605
cs_real_t aggregat_fractal_dim
Definition: cs_lagr.h:600
Definition: cs_lagr.h:742
int * i_face_zone_id
Definition: cs_lagr.h:744
Definition: cs_lagr.h:262
int dlvo
Definition: cs_lagr.h:302
int n_stat_classes
Definition: cs_lagr.h:336
int deposition
Definition: cs_lagr.h:300
int physical_model
Definition: cs_lagr.h:274
int fragmentation
Definition: cs_lagr.h:334
int roughness
Definition: cs_lagr.h:306
int precipitation
Definition: cs_lagr.h:325
int n_user_variables
Definition: cs_lagr.h:338
int idistu
Definition: cs_lagr.h:290
int shape
Definition: cs_lagr.h:319
int fouling
Definition: cs_lagr.h:326
int n_temperature_layers
Definition: cs_lagr.h:275
int modcpl
Definition: cs_lagr.h:284
int agglomeration
Definition: cs_lagr.h:330
int consolidation
Definition: cs_lagr.h:323
int resuspension
Definition: cs_lagr.h:310
int clogging
Definition: cs_lagr.h:314
int idiffl
Definition: cs_lagr.h:296
bool viscous_terms
Definition: cs_lagr.h:341
Definition: cs_lagr.h:348
cs_gnum_t n_g_cumulative_total
Definition: cs_lagr.h:352
cs_real_t w_exit
Definition: cs_lagr.h:389
cs_gnum_t n_g_new
Definition: cs_lagr.h:362
cs_gnum_t n_g_resuspended
Definition: cs_lagr.h:377
cs_gnum_t n_g_exit
Definition: cs_lagr.h:365
cs_real_t w_fouling
Definition: cs_lagr.h:398
cs_real_t w_total
Definition: cs_lagr.h:383
cs_gnum_t n_g_failed
Definition: cs_lagr.h:380
cs_gnum_t n_g_fouling
Definition: cs_lagr.h:374
cs_gnum_t n_g_total
Definition: cs_lagr.h:359
cs_real_t w_resuspended
Definition: cs_lagr.h:401
cs_real_t w_deposited
Definition: cs_lagr.h:395
cs_gnum_t n_g_merged
Definition: cs_lagr.h:368
cs_gnum_t n_g_cumulative_failed
Definition: cs_lagr.h:356
cs_real_t w_merged
Definition: cs_lagr.h:392
cs_gnum_t n_g_deposited
Definition: cs_lagr.h:371
cs_real_t w_new
Definition: cs_lagr.h:386
Definition: cs_lagr.h:785
cs_real_t cstham
Definition: cs_lagr.h:788
cs_real_t fion
Definition: cs_lagr.h:807
cs_real_t phi_s
Definition: cs_lagr.h:801
cs_real_t lambda_vdw
Definition: cs_lagr.h:792
cs_real_t epseau
Definition: cs_lagr.h:795
cs_real_t phi_p
Definition: cs_lagr.h:798
cs_real_t valen
Definition: cs_lagr.h:804
Definition: cs_lagr.h:471
cs_real_t diameter
Definition: cs_lagr.h:476
int nbrclas
Definition: cs_lagr.h:474
cs_real_t * mp_diss
Definition: cs_lagr.h:484
cs_real_t rho
Definition: cs_lagr.h:478
int * nbprec
Definition: cs_lagr.h:480
cs_real_t * solub
Definition: cs_lagr.h:482
Definition: cs_lagr.h:449
int iflow
Definition: cs_lagr.h:457
cs_real_t denasp
Definition: cs_lagr.h:461
int ireent
Definition: cs_lagr.h:453
cs_real_t rayasp
Definition: cs_lagr.h:463
cs_real_t modyeq
Definition: cs_lagr.h:462
cs_real_t rayasg
Definition: cs_lagr.h:464
cs_real_t espasg
Definition: cs_lagr.h:460
Definition: cs_lagr.h:503
cs_real_t param_chmb
Definition: cs_lagr.h:505
Definition: cs_lagr.h:641
int npts
Definition: cs_lagr.h:698
int itsmas
Definition: cs_lagr.h:680
int ltsmas
Definition: cs_lagr.h:652
cs_real_t vmax
Definition: cs_lagr.h:705
cs_real_t tmamax
Definition: cs_lagr.h:708
int itsli
Definition: cs_lagr.h:664
cs_real_t * st_val
Definition: cs_lagr.h:711
int itsti
Definition: cs_lagr.h:677
int ltsthe
Definition: cs_lagr.h:660
int ntxerr
Definition: cs_lagr.h:702
int itste
Definition: cs_lagr.h:673
int ltsdyn
Definition: cs_lagr.h:646
int nstits
Definition: cs_lagr.h:695
int itske
Definition: cs_lagr.h:669
Definition: cs_lagr.h:408
int itpvar
Definition: cs_lagr.h:415
cs_real_t tpart
Definition: cs_lagr.h:433
cs_real_t cppart
Definition: cs_lagr.h:442
int idpvar
Definition: cs_lagr.h:420
int impvar
Definition: cs_lagr.h:425
Definition: cs_lagr.h:182
int interpol_field
Definition: cs_lagr.h:228
int isttio
Definition: cs_lagr.h:210
int ilapoi
Definition: cs_lagr.h:235
int extended_t_scheme
Definition: cs_lagr.h:224
int isuila
Definition: cs_lagr.h:217
cs_real_t added_mass_const
Definition: cs_lagr.h:255
int t_order
Definition: cs_lagr.h:220
int iilagr
Definition: cs_lagr.h:196
int iadded_mass
Definition: cs_lagr.h:252
Definition: cs_lagr.h:548
cs_real_t dtp
Definition: cs_lagr.h:554
cs_real_t ttclag
Definition: cs_lagr.h:557
int nor
Definition: cs_lagr.h:551
Definition: cs_lagr.h:718
int n_zones
Definition: cs_lagr.h:722
cs_lagr_injection_set_t ** injection_set
Definition: cs_lagr.h:727
char * elt_type
Definition: cs_lagr.h:730
int * zone_type
Definition: cs_lagr.h:723
int location_id
Definition: cs_lagr.h:720
int * n_injection_sets
Definition: cs_lagr.h:725
cs_real_t * particle_flow_rate
Definition: cs_lagr.h:733