8.2
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-2024 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 {
153 };
154 
156 /*----------------------*/
157 
158 typedef struct {
159 
160  int nusbrd;
163  int ndlaim;
165  int ncharm2;
166  int nlayer;
169 
171 /*---------------------*/
172 
173 typedef struct {
174 
175  int ntersl;
178 } cs_lagr_dim_t;
179 
181 /*-----------------------------------------------------*/
182 
183 typedef struct {
184 
197  int iilagr;
198 
199  /* indicates the steady (=1) or unsteady (=0) state of the
200  continuous phase flow
201  in particular, \ref isttio = 1 is needed in order to:
202  calculate steady statistics in the volume or at the boundaries
203  (starting respectively from the iterations
204  \ref cs_lagr_stat_options_t::nstist "nstist")
205  and calculate time-averaged two-way coupling source terms (from the
206  time step \ref nstits).
207  Useful if \ref iilagr = CS_LAGR_ONEWAY_COUPLING
208  or \ref iilagr = CS_LAGR_TWOWAY_COUPLING
209  (if \ref iilagr = CS_LAGR_FROZEN_CONTINUOUS_PHASE,
210  then \ref isttio=1 automatically) */
211  int isttio;
212 
218  int isuila;
219 
221  int t_order;
222 
226 
230 
236  int ilapoi;
237 
254 
257 
259 
261 /*-----------------------------------------------------------*/
262 
263 typedef struct {
264 
279 
287  int modcpl;
288 
293  int idistu;
294 
299  int idiffl;
300 
304 
305  int dlvo;
306 
310 
314 
317  int clogging;
318 
322  int shape;
323 
327 
329  int fouling;
330 
334 
338 
340 
342 
345 
347 
349 /*----------------------------------------------*/
350 
351 typedef struct {
352 
356 
360 
363 
366 
369 
372 
375 
378 
381 
384 
387 
390 
393 
396 
399 
402 
405 
407 
409 /* ---------------------------------------------------------- */
410 
411 typedef struct {
412 
413  /* activation (=1) or not (=0) of an evolution equation on the particle
414  temperature (in degrees Celsius).
415  Useful if \ref physical_model=1 and if there is a thermal scalar
416  associated with the continuous phase.
417  */
418  int itpvar;
419 
420  /* activation (=1) or not (=0) of an evolution equation on the particle
421  diameter. Useful if \ref physical_model = 1.
422  */
423  int idpvar;
424 
425  /* activation (=1) or not (=0) of an evolution equation on the particle mass
426  Useful if \ref physical_model = 1
427  */
428  int impvar;
429 
430  /* initialization temperature (in degree Celsius) for the particles already
431  present in the calculation domain when an evolution equation on
432  the particle temperature is activated during a calculation
433  (\ref physical_model = 1 and \ref itpvar = 1).
434  Useful if \ref isuila = 1 and \ref itpvar = 0 in the previous calculation.
435  */
437 
438  /* initialization value for the specific heat (\f$ J.kg^{-1}.K^{-1} \f$)
439  of the particles already present
440  in the calculation domain when an evolution equation
441  on the particle temperature is activated during a calculation
442  (\ref physical_model = 1 and \ref itpvar = 1).
443  Useful if \ref isuila = 1 and \ref itpvar = 0 in the previous calculation
444  */
446 
448 
450 /* -------------------------------------- */
451 
452 typedef struct {
453 
454  /* - 0: no resuspension model
455  - 1: resuspension model */
456  int ireent;
457 
458  /* - 0: no head losses calculation for influence of the deposit on the flow
459  - 1: head losses calculation for influence of the deposit on the flow */
460  int iflow;
461 
462  /* Parameters of the particle resuspension model*/
468 
470 
472 /* -------------------------------------- */
473 
474 typedef struct {
475 
476  /* number of particle classes*/
477  int nbrclas;
478  /* diameter of particles formed by precipitation*/
480  /* density of particles formed by precipitation*/
482  /* number of precipitated particles */
483  int *nbprec;
484  /* */
486  /* number of precipitated particles */
488 
490 
492 /* ------------------------------------------ */
493 
494 typedef struct {
495 
500 
502 
504 /* ------------------------------------------------ */
505 
506 typedef struct {
507 
509 
511 
513 /* ------------------------------------------ */
514 
515 typedef struct {
516 
522 
524 
526 /* ------------------------------------------ */
527 
528 typedef struct {
529 
532  cs_real_t (*function_kernel)(cs_lnum_t);
533 
535 
537 /* ----------------------------------------------- */
538 
539 typedef struct {
540 
545 
547 
549 /*----------------------------------*/
550 
551 typedef struct {
552 
553  /* current step id (for 2nd order scheme) */
554  int nor;
555 
556  /* duration of a Lagrangian iteration */
558 
559  /* physical time of the Lagrangian simulation */
561 
563 
565 /*------------------------------------------------------------------*/
566 
567 typedef struct {
568 
569  int zone_id;
570  int set_id;
581 
584 
590 
595 
600  int cluster;
606  cs_real_t velocity[3];
615  cs_real_t orientation[3];
616  cs_real_t radii[3];
617  cs_real_t angular_vel[3];
620  cs_real_t euler[4];
622  cs_real_t shape_param[4];
640 
642 /*----------------------------------------------*/
643 
644 typedef struct {
645 
649  int ltsdyn;
650 
655  int ltsmas;
656 
657  /* if \ref physical_model = 1 and \ref itpvar = 1, \ref ltsthe
658  activates (=1) or not (=0) the two-way coupling on temperature.
659  if \ref physical_model = 2, \ref ltsthe activates (=1) or not (=0) the
660  two-way coupling on the eulerian variables related to pulverised
661  coal combustion.
662  Useful if \ref iilagr = CS_LAGR_TWOWAY_COUPLING */
663  int ltsthe;
664 
667  int itsli;
668 
669  /* explicit source term for the turbulent dissipation and the
670  turbulent energy if the \f$k-\varepsilon\f$ turbulence model is used
671  for the continuous phase */
672  int itske;
673 
676  int itste;
677 
680  int itsti;
681 
683  int itsmas;
684 
698  int nstits;
699 
701  int npts;
702 
705  int ntxerr;
706 
709 
712 
715 
716  /* source term for humid air of the cooling tower model */
717  int itshum;
718 
720 
722 /*----------------------------------------------------*/
723 
724 typedef struct {
725 
728  int n_zones;
729  int *zone_type;
736  char *elt_type;
744 
746 /*---------------------------------------*/
747 
748 typedef struct {
749 
751 
753 
755 /*--------------------------------*/
756 
757 typedef struct {
758 
759  /* Activates (=1) or not (=0) the option of coal particle fouling.
760  It then is necessary to specify the domain boundaries
761  on which fouling may take place. Useful if \ref physical_model = 2*/
762  int iencra;
763 
764  /* encrustation data*/
765  int npencr;
766  // TODO cf particles->n_part_fou in cs_lagr_tracking.c
767 
768  /* encrustation data*/
769  cs_real_t *enc1; // size: ncharm2
770  /* encrustation data*/
771  cs_real_t *enc2; // size: ncharm2
772 
773  /* Limit temperature (in degree Celsius) below which the coal particles do
774  not cause any fouling (if the fouling model is activated).
775  Useful if \ref physical_model = 2 and \ref iencra = 1*/
776  cs_real_t *tprenc; // size: ncharm2
777 
778  /* Ash critical viscosity in \f$ kg.m^{-1}.s^{-1} \f$, in the fouling model
779  cf J.D. Watt et T. Fereday (J.Inst.Fuel, Vol.42-p99).
780  Useful if \ref physical_model = 2 and \ref iencra = 1*/
781  cs_real_t *visref; // size: ncharm2
782 
783  /* encrustation data */
785 
787 
789 /*-----------------------------------------*/
790 
791 typedef struct {
792 
795 
799 
802 
805 
808 
811 
814 
816 
818 /*-------------------------------*/
819 
820 typedef struct {
821 
822  int lamvbr;
825 
827 /*----------------------------------------------*/
828 
829 typedef struct {
830 
838  int npstf;
839 
846  int npstft;
847 
852 
856  int iclgst;
857 
859  int inbr;
860 
862  int inclg;
863 
865  int inclgt;
866 
868  int iclogt;
869 
871  int iclogh;
872 
874  int iscovc;
875 
876  /* id for mean of particle deposition height */
877  int ihdepm;
878 
879  /* id for variance of particle deposition height */
880  int ihdepv;
881 
882  /* id for mean diameter of deposited particles */
883  int ihdiam;
884 
885  /* id for sum of deposited particle diameters */
886  int ihsum;
887 
895 
902  char **nombrd;
903 
905 
907 /*-----------------------------------------------*/
908 
909 typedef struct {
910 
911  /* Turbulence model */
912  int iturb;
913  int itytur;
914 
915  /* cpincl */
916  int ncharb;
917 
918  /* ppppar */
919  int ncharm;
920 
921  /* radiation */
923 
924  /* icp */
925  int icp;
926 
927  /* cmu */
929 
930  /* visls0 */
932 
933  /* Referenced fields
934  ----------------- */
935 
936  /* wall ustar */
938 
939  /* Fluid density */
941 
942  /* Fluid pressure */
944 
945  /* Fluid temparature */
948 
949  /* Fluid velocity */
951 
952  /* Fluid viscosity */
954 
955  /* Fluid viscosity */
957 
958  /* Fluid specific heat capacity */
960 
961  /* Radiative energy */
963 
964  /* Combustion */
968 
969  /* Turbulence */
970  /* Turbulent intensity */
972 
973  /* Turbulent dissipation */
975 
976  /* Omega from k-omega SST model*/
978 
979  /* Reynolds Stress Tensor */
981 
982  /* Total pressure gradient */
984 
985  /* velocity gradient */
987 
988  /* Lagrangian time field */
990 
991  /* Lagrangian time gradient */
993 
995 
996 /*============================================================================
997  * Global variables
998  *============================================================================*/
999 
1003 
1007 
1010 
1013 
1016 
1017 /* Lagrangian log output every frequency_n time steps */
1018 
1019 extern int cs_glob_lagr_log_frequency_n;
1020 
1021 /* Statisics on boundaries */
1022 
1023 extern cs_real_t *bound_stat;
1024 
1030 
1033 
1041 
1043 
1047 
1048 /* Projection matrices for global to local coordinates on boundary faces */
1050 
1051 /*============================================================================
1052  * Public function prototypes
1053  *============================================================================*/
1054 
1055 /*----------------------------------------------------------------------------*/
1059 /*----------------------------------------------------------------------------*/
1060 
1061 void
1063 
1064 /*----------------------------------------------------------------------------*/
1077 /*----------------------------------------------------------------------------*/
1078 
1081  int zone_id,
1082  int set_id);
1083 
1084 /*----------------------------------------------------------------------------*/
1090 /*----------------------------------------------------------------------------*/
1091 
1092 void
1094 
1095 /*----------------------------------------------------------------------------*/
1101 /*----------------------------------------------------------------------------*/
1102 
1105 
1106 /*----------------------------------------------------------------------------*/
1115 /*----------------------------------------------------------------------------*/
1116 
1119 
1120 /*----------------------------------------------------------------------------
1121  * Provide access to cs_lagr_particle_counter_t
1122  *
1123  * needed to initialize structure with GUI
1124  *----------------------------------------------------------------------------*/
1125 
1128 
1129 /*----------------------------------------------------------------------------
1130  * Provide access to cs_lagr_reentrained_model_t
1131  *
1132  * needed to initialize structure with GUI
1133  *----------------------------------------------------------------------------*/
1134 
1137 
1138 /*----------------------------------------------------------------------------
1139  * Provide access to cs_lagr_precipitation_model_t
1140  *
1141  * needed to initialize structure with GUI
1142  *----------------------------------------------------------------------------*/
1143 
1146 
1147 /*----------------------------------------------------------------------------
1148  * Provide access to cs_lagr_clogging_model_t
1149  *
1150  * needed to initialize structure with GUI
1151  *----------------------------------------------------------------------------*/
1152 
1155 
1156 /*----------------------------------------------------------------------------
1157  * Provide access to cs_lagr_shape_model_t
1158  *
1159  * needed to initialize structure with GUI
1160  *----------------------------------------------------------------------------*/
1161 
1164 
1165 /*----------------------------------------------------------------------------
1166  * Provide access to cs_lagr_agglomeration_model_t
1167  *
1168  * needed to initialize structure with GUI
1169  *----------------------------------------------------------------------------*/
1170 
1173 
1174 /*----------------------------------------------------------------------------
1175  * Provide access to cs_lagr_consolidation_model_t
1176  *
1177  * needed to initialize structure with GUI
1178  *----------------------------------------------------------------------------*/
1179 
1182 
1183 /*----------------------------------------------------------------------------
1184  * Provide access to cs_lagr_time_step_t
1185  *
1186  * needed to initialize structure with GUI
1187  *----------------------------------------------------------------------------*/
1188 
1190 cs_get_lagr_time_step(void);
1191 
1192 /*----------------------------------------------------------------------------
1193  * Provide access to cs_lagr_source_terms_t
1194  *
1195  * needed to initialize structure with GUI
1196  *----------------------------------------------------------------------------*/
1197 
1200 
1201 /*----------------------------------------------------------------------------
1202  * Provide access to cs_lagr_encrustation_t
1203  *
1204  * needed to initialize structure with GUI
1205  *----------------------------------------------------------------------------*/
1206 
1209 
1210 /*----------------------------------------------------------------------------
1211  * Provide access to cs_lagr_physico_chemical_t
1212  *
1213  * needed to initialize structure with GUI
1214  *----------------------------------------------------------------------------*/
1215 
1218 
1219 /*----------------------------------------------------------------------------
1220  * Provide access to cs_lagr_brownian_t
1221  *
1222  * needed to initialize structure with GUI
1223  *----------------------------------------------------------------------------*/
1224 
1226 cs_get_lagr_brownian(void);
1227 
1228 /*----------------------------------------------------------------------------*/
1234 /*----------------------------------------------------------------------------*/
1235 
1238 
1239 /*----------------------------------------------------------------------------*/
1245 /*----------------------------------------------------------------------------*/
1246 
1249 
1250 /*----------------------------------------------------------------------------*/
1258 /*----------------------------------------------------------------------------*/
1259 
1262 
1263 /*----------------------------------------------------------------------------*/
1267 /*----------------------------------------------------------------------------*/
1268 
1269 void
1271 
1272 /*----------------------------------------------------------------------------
1273  * Destroy finalize the global cs_lagr_internal_condition_t structure.
1274  *----------------------------------------------------------------------------*/
1275 
1276 void
1278 
1279 /*----------------------------------------------------------------------------
1280  * Provide access to cs_lagr_boundary_interactions_t
1281  *
1282  * needed to initialize structure with GUI
1283  *----------------------------------------------------------------------------*/
1284 
1287 
1288 /*----------------------------------------------------------------------------
1289  * Provide access to cs_lagr_extra_module_t
1290  *----------------------------------------------------------------------------*/
1291 
1294 
1295 /*----------------------------------------------------------------------------
1296  * Prepare for execution of the Lagrangian model.
1297  *
1298  * This should be called before the fist call to cs_lagr_solve_time_step.
1299  *
1300  * parameters:
1301  * dt <-- time step (per cell)
1302  *----------------------------------------------------------------------------*/
1303 
1304 void
1306 
1307 /*----------------------------------------------------------------------------
1308  * Initialize lagrangian arrays
1309  *----------------------------------------------------------------------------*/
1310 
1311 void
1312 cs_lagr_init_arrays(void);
1313 
1314 /*----------------------------------------------------------------------------
1315  * Free lagrangian arrays
1316  *----------------------------------------------------------------------------*/
1317 
1318 void
1319 cs_lagr_finalize(void);
1320 
1321 /*----------------------------------------------------------------------------*/
1330 /*----------------------------------------------------------------------------*/
1331 
1332 void
1333 cs_lagr_add_fields(void);
1334 
1335 /*--------------------------------------------------------------------
1336  * Execute one time step of the Lagrangian model.
1337  *
1338  * This is the main function for that model.
1339  *
1340  * parameters:
1341  * itypfb <-- boundary face types
1342  * dt <-- time step (per cell)
1343  *-------------------------------------------------------------------- */
1344 
1345 void
1346 cs_lagr_solve_time_step(const int itypfb[],
1347  const cs_real_t *dt);
1348 
1349 /*----------------------------------------------------------------------------*/
1350 
1352 
1353 #endif /* __CS_LAGR_H__ */
#define BEGIN_C_DECLS
Definition: cs_defs.h:528
double cs_real_t
Floating-point value.
Definition: cs_defs.h:332
cs_real_t cs_real_3_t[3]
vector of 3 floating-point values
Definition: cs_defs.h:347
unsigned long cs_gnum_t
global mesh entity number
Definition: cs_defs.h:310
#define END_C_DECLS
Definition: cs_defs.h:529
cs_real_t cs_real_33_t[3][3]
3x3 matrix of floating-point values
Definition: cs_defs.h:356
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:325
@ dt
Definition: cs_field_pointer.h:65
cs_lagr_encrustation_t * cs_get_lagr_encrustation(void)
Definition: cs_lagr.c:1448
cs_lagr_source_terms_t * cs_glob_lagr_source_terms
void cs_lagr_finalize_internal_cond(void)
Definition: cs_lagr.c:1601
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:1412
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:1163
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:1711
cs_lagr_particle_counter_t * cs_lagr_get_particle_counter(void)
Get read/write pointer to global particle counter.
Definition: cs_lagr.c:1263
const cs_lagr_const_dim_t * cs_glob_lagr_const_dim
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:1488
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:1424
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:1630
cs_lagr_agglomeration_model_t * cs_get_lagr_agglomeration_model(void)
Definition: cs_lagr.c:1400
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:1065
void cs_lagr_init_arrays(void)
Definition: cs_lagr.c:971
cs_lagr_zone_data_t * cs_lagr_get_volume_conditions(void)
Return pointer to the main volume conditions structure.
Definition: cs_lagr.c:1546
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:1376
cs_lagr_precipitation_model_t * cs_glob_lagr_precipitation_model
@ 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
void cs_lagr_solve_initialize(const cs_real_t *dt)
Definition: cs_lagr.c:1645
cs_lagr_brownian_t * cs_get_lagr_brownian(void)
Definition: cs_lagr.c:1472
void cs_lagr_injection_set_default(cs_lagr_injection_set_t *zis)
Initialize injection set data structure fields to defaults.
Definition: cs_lagr.c:1190
cs_lagr_physico_chemical_t * cs_get_lagr_physico_chemical(void)
Definition: cs_lagr.c:1460
cs_lagr_particle_counter_t * cs_lagr_update_particle_counter(void)
Update global particle counter.
Definition: cs_lagr.c:1280
cs_lagr_brownian_t * cs_glob_lagr_brownian
void cs_lagr_map_specific_physics(void)
Map specific phyical model features to Lagrangian structures.
Definition: cs_lagr.c:1131
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:1436
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:1364
void cs_lagr_finalize_zone_conditions(void)
Finalize the global boundary and volume condition structures.
Definition: cs_lagr.c:1570
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:1337
cs_lagr_zone_data_t * cs_lagr_get_boundary_conditions(void)
Return pointer to the main boundary conditions structure.
Definition: cs_lagr.c:1522
@ CS_LAGR_PHYS_CTWR
Definition: cs_lagr.h:152
@ 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
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:1388
cs_lagr_reentrained_model_t * cs_get_lagr_reentrained_model(void)
Provide access to cs_lagr_reentrained_model_t.
Definition: cs_lagr.c:1351
cs_lagr_dim_t * cs_glob_lagr_dim
void cs_lagr_finalize(void)
Definition: cs_lagr.c:996
cs_lagr_boundary_interactions_t * cs_get_lagr_boundary_interactions(void)
Definition: cs_lagr.c:1619
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:515
cs_real_t base_diameter
Definition: cs_lagr.h:521
cs_real_t scalar_kernel
Definition: cs_lagr.h:520
cs_real_t max_stat_weight
Definition: cs_lagr.h:519
cs_lnum_t n_max_classes
Definition: cs_lagr.h:517
cs_real_t min_stat_weight
Definition: cs_lagr.h:518
Definition: cs_lagr.h:829
int iclogt
Definition: cs_lagr.h:868
int inclg
Definition: cs_lagr.h:862
int has_part_impact_nbr
Definition: cs_lagr.h:851
char ** nombrd
Definition: cs_lagr.h:902
int npstft
Definition: cs_lagr.h:846
int ihdepm
Definition: cs_lagr.h:877
int inclgt
Definition: cs_lagr.h:865
int inbr
Definition: cs_lagr.h:859
int iscovc
Definition: cs_lagr.h:874
int npstf
Definition: cs_lagr.h:838
cs_real_t tstatp
Definition: cs_lagr.h:894
int ihsum
Definition: cs_lagr.h:886
int iclgst
Definition: cs_lagr.h:856
int iclogh
Definition: cs_lagr.h:871
int ihdepv
Definition: cs_lagr.h:880
int ihdiam
Definition: cs_lagr.h:883
Definition: cs_lagr.h:820
int lamvbr
Definition: cs_lagr.h:822
Definition: cs_lagr.h:494
cs_real_t jamlim
Definition: cs_lagr.h:496
cs_real_t diam_mean
Definition: cs_lagr.h:499
cs_real_t mporos
Definition: cs_lagr.h:497
cs_real_t csthpp
Definition: cs_lagr.h:498
Definition: cs_lagr.h:539
cs_real_t force_consol
Definition: cs_lagr.h:544
cs_real_t slope_consol
Definition: cs_lagr.h:543
cs_lnum_t iconsol
Definition: cs_lagr.h:541
cs_real_t rate_consol
Definition: cs_lagr.h:542
Definition: cs_lagr.h:158
int ndlaim
Definition: cs_lagr.h:163
int ncharm2
Definition: cs_lagr.h:165
int nlayer
Definition: cs_lagr.h:166
int nusbrd
Definition: cs_lagr.h:160
Definition: cs_lagr.h:173
int ntersl
Definition: cs_lagr.h:175
int n_boundary_stats
Definition: cs_lagr.h:176
Definition: cs_lagr.h:757
cs_real_t * visref
Definition: cs_lagr.h:781
cs_real_t dnpenc
Definition: cs_lagr.h:784
int iencra
Definition: cs_lagr.h:762
cs_real_t * tprenc
Definition: cs_lagr.h:776
cs_real_t * enc2
Definition: cs_lagr.h:771
int npencr
Definition: cs_lagr.h:765
cs_real_t * enc1
Definition: cs_lagr.h:769
Definition: cs_lagr.h:909
cs_field_t * scal_t
Definition: cs_lagr.h:946
cs_field_t * vel
Definition: cs_lagr.h:950
int itytur
Definition: cs_lagr.h:913
cs_field_t * cpro_cp
Definition: cs_lagr.h:959
cs_field_t * cvar_omg
Definition: cs_lagr.h:977
cs_real_3_t * grad_lagr_time
Definition: cs_lagr.h:992
cs_field_t * viscl
Definition: cs_lagr.h:953
cs_field_t * rad_energy
Definition: cs_lagr.h:962
cs_field_t * x_eau
Definition: cs_lagr.h:966
cs_field_t * cvar_ep
Definition: cs_lagr.h:974
cs_field_t * lagr_time
Definition: cs_lagr.h:989
cs_field_t * x_oxyd
Definition: cs_lagr.h:965
int ncharb
Definition: cs_lagr.h:916
cs_field_t * pressure
Definition: cs_lagr.h:943
cs_real_33_t * grad_vel
Definition: cs_lagr.h:986
cs_field_t * temperature
Definition: cs_lagr.h:947
cs_real_t cmu
Definition: cs_lagr.h:928
cs_real_3_t * grad_pr
Definition: cs_lagr.h:983
cs_field_t * cvar_k
Definition: cs_lagr.h:971
cs_field_t * x_m
Definition: cs_lagr.h:967
cs_field_t * ustar
Definition: cs_lagr.h:937
int icp
Definition: cs_lagr.h:925
cs_field_t * cromf
Definition: cs_lagr.h:940
cs_field_t * cpro_viscls
Definition: cs_lagr.h:956
int radiative_model
Definition: cs_lagr.h:922
int ncharm
Definition: cs_lagr.h:919
cs_field_t * cvar_rij
Definition: cs_lagr.h:980
cs_real_t visls0
Definition: cs_lagr.h:931
int iturb
Definition: cs_lagr.h:912
Definition: cs_lagr.h:528
cs_real_t base_diameter
Definition: cs_lagr.h:531
cs_real_t scalar_kernel
Definition: cs_lagr.h:530
Definition: cs_lagr.h:567
cs_real_t diameter_variance
Definition: cs_lagr.h:611
cs_real_t density
Definition: cs_lagr.h:627
int injection_frequency
Definition: cs_lagr.h:576
int temperature_profile
Definition: cs_lagr.h:594
cs_real_t shape
Definition: cs_lagr.h:613
cs_real_t velocity_magnitude
Definition: cs_lagr.h:605
int velocity_profile
Definition: cs_lagr.h:589
cs_real_t cp
Definition: cs_lagr.h:631
cs_lagr_injection_profile_compute_t * injection_profile_func
Definition: cs_lagr.h:580
cs_real_t diameter
Definition: cs_lagr.h:610
cs_gnum_t n_inject
Definition: cs_lagr.h:573
int cluster
Definition: cs_lagr.h:600
int location_id
Definition: cs_lagr.h:571
cs_real_t fouling_index
Definition: cs_lagr.h:629
int coal_number
Definition: cs_lagr.h:596
void * injection_profile_input
Definition: cs_lagr.h:583
cs_real_t flow_rate
Definition: cs_lagr.h:635
int zone_id
Definition: cs_lagr.h:569
int set_id
Definition: cs_lagr.h:570
int aggregat_class_id
Definition: cs_lagr.h:602
cs_real_t emissivity
Definition: cs_lagr.h:637
cs_real_t stat_weight
Definition: cs_lagr.h:633
cs_real_t temperature
Definition: cs_lagr.h:608
cs_real_t aggregat_fractal_dim
Definition: cs_lagr.h:603
Definition: cs_lagr.h:748
int * i_face_zone_id
Definition: cs_lagr.h:750
Definition: cs_lagr.h:263
int dlvo
Definition: cs_lagr.h:305
int n_stat_classes
Definition: cs_lagr.h:339
int deposition
Definition: cs_lagr.h:303
int physical_model
Definition: cs_lagr.h:277
int fragmentation
Definition: cs_lagr.h:337
int roughness
Definition: cs_lagr.h:309
int precipitation
Definition: cs_lagr.h:328
int n_user_variables
Definition: cs_lagr.h:341
int idistu
Definition: cs_lagr.h:293
int shape
Definition: cs_lagr.h:322
int fouling
Definition: cs_lagr.h:329
int n_temperature_layers
Definition: cs_lagr.h:278
int modcpl
Definition: cs_lagr.h:287
int agglomeration
Definition: cs_lagr.h:333
int consolidation
Definition: cs_lagr.h:326
int resuspension
Definition: cs_lagr.h:313
int clogging
Definition: cs_lagr.h:317
int idiffl
Definition: cs_lagr.h:299
bool viscous_terms
Definition: cs_lagr.h:344
Definition: cs_lagr.h:351
cs_gnum_t n_g_cumulative_total
Definition: cs_lagr.h:355
cs_real_t w_exit
Definition: cs_lagr.h:392
cs_gnum_t n_g_new
Definition: cs_lagr.h:365
cs_gnum_t n_g_resuspended
Definition: cs_lagr.h:380
cs_gnum_t n_g_exit
Definition: cs_lagr.h:368
cs_real_t w_fouling
Definition: cs_lagr.h:401
cs_real_t w_total
Definition: cs_lagr.h:386
cs_gnum_t n_g_failed
Definition: cs_lagr.h:383
cs_gnum_t n_g_fouling
Definition: cs_lagr.h:377
cs_gnum_t n_g_total
Definition: cs_lagr.h:362
cs_real_t w_resuspended
Definition: cs_lagr.h:404
cs_real_t w_deposited
Definition: cs_lagr.h:398
cs_gnum_t n_g_merged
Definition: cs_lagr.h:371
cs_gnum_t n_g_cumulative_failed
Definition: cs_lagr.h:359
cs_real_t w_merged
Definition: cs_lagr.h:395
cs_gnum_t n_g_deposited
Definition: cs_lagr.h:374
cs_real_t w_new
Definition: cs_lagr.h:389
Definition: cs_lagr.h:791
cs_real_t cstham
Definition: cs_lagr.h:794
cs_real_t fion
Definition: cs_lagr.h:813
cs_real_t phi_s
Definition: cs_lagr.h:807
cs_real_t lambda_vdw
Definition: cs_lagr.h:798
cs_real_t epseau
Definition: cs_lagr.h:801
cs_real_t phi_p
Definition: cs_lagr.h:804
cs_real_t valen
Definition: cs_lagr.h:810
Definition: cs_lagr.h:474
cs_real_t diameter
Definition: cs_lagr.h:479
int nbrclas
Definition: cs_lagr.h:477
cs_real_t * mp_diss
Definition: cs_lagr.h:487
cs_real_t rho
Definition: cs_lagr.h:481
int * nbprec
Definition: cs_lagr.h:483
cs_real_t * solub
Definition: cs_lagr.h:485
Definition: cs_lagr.h:452
int iflow
Definition: cs_lagr.h:460
cs_real_t denasp
Definition: cs_lagr.h:464
int ireent
Definition: cs_lagr.h:456
cs_real_t rayasp
Definition: cs_lagr.h:466
cs_real_t modyeq
Definition: cs_lagr.h:465
cs_real_t rayasg
Definition: cs_lagr.h:467
cs_real_t espasg
Definition: cs_lagr.h:463
Definition: cs_lagr.h:506
cs_real_t param_chmb
Definition: cs_lagr.h:508
Definition: cs_lagr.h:644
int npts
Definition: cs_lagr.h:701
int itsmas
Definition: cs_lagr.h:683
int itshum
Definition: cs_lagr.h:717
int ltsmas
Definition: cs_lagr.h:655
cs_real_t vmax
Definition: cs_lagr.h:708
cs_real_t tmamax
Definition: cs_lagr.h:711
int itsli
Definition: cs_lagr.h:667
cs_real_t * st_val
Definition: cs_lagr.h:714
int itsti
Definition: cs_lagr.h:680
int ltsthe
Definition: cs_lagr.h:663
int ntxerr
Definition: cs_lagr.h:705
int itste
Definition: cs_lagr.h:676
int ltsdyn
Definition: cs_lagr.h:649
int nstits
Definition: cs_lagr.h:698
int itske
Definition: cs_lagr.h:672
Definition: cs_lagr.h:411
int itpvar
Definition: cs_lagr.h:418
cs_real_t tpart
Definition: cs_lagr.h:436
cs_real_t cppart
Definition: cs_lagr.h:445
int idpvar
Definition: cs_lagr.h:423
int impvar
Definition: cs_lagr.h:428
Definition: cs_lagr.h:183
int interpol_field
Definition: cs_lagr.h:229
int isttio
Definition: cs_lagr.h:211
int ilapoi
Definition: cs_lagr.h:236
int extended_t_scheme
Definition: cs_lagr.h:225
int isuila
Definition: cs_lagr.h:218
cs_real_t added_mass_const
Definition: cs_lagr.h:256
int t_order
Definition: cs_lagr.h:221
int iilagr
Definition: cs_lagr.h:197
int iadded_mass
Definition: cs_lagr.h:253
Definition: cs_lagr.h:551
cs_real_t dtp
Definition: cs_lagr.h:557
cs_real_t ttclag
Definition: cs_lagr.h:560
int nor
Definition: cs_lagr.h:554
Definition: cs_lagr.h:724
int n_zones
Definition: cs_lagr.h:728
cs_lagr_injection_set_t ** injection_set
Definition: cs_lagr.h:733
char * elt_type
Definition: cs_lagr.h:736
int * zone_type
Definition: cs_lagr.h:729
int location_id
Definition: cs_lagr.h:726
int * n_injection_sets
Definition: cs_lagr.h:731
cs_real_t * particle_flow_rate
Definition: cs_lagr.h:739