9.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-2026 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 "base/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 "base/cs_base.h"
43#include "base/cs_field.h"
44
46
47/*----------------------------------------------------------------------------*/
48
50
51/*============================================================================
52 * Type definitions
53 *============================================================================*/
54
55/*----------------------------------------------------------------------------*/
70/*----------------------------------------------------------------------------*/
71
72typedef 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
83typedef enum {
84
97
99/*---------------------------------------*/
100
101enum {
107
122typedef enum {
128
130/*---------------------------------*/
131
132typedef enum {
133
136
139
140 /*< Impose spheroids (Jeffery equations for transport) */
142
144
146/*---------------------------------------*/
147
148enum {
154
156/*----------------------*/
157
158typedef struct {
159
160 int nusbrd;
163 int ndlaim;
166 int nlayer;
169
171/*---------------------*/
172
173typedef struct {
174
178
180/*-----------------------------------------------------*/
181
182typedef struct {
183
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) */
211
218
221
225
229
236
253
256
260
261 /* maximum number of tracking in _local_propagation for each particle
262 * (without change of rank or periodicity)*/
264
265 /* maximum number of change of rank or periodicity crossing over a time step*/
267
269
271/*-----------------------------------------------------------*/
272
273typedef struct {
274
289
294
303
309
315
319
320 int dlvo;
321
325
329
333
337 int shape;
338
342
345
349
353
355
357
358 /* Handle transport with a generic GLM */
360
363
367
369/*----------------------------------------------*/
370
371typedef struct {
372
376
380
383
386
389
392
395
398
401
404
407
410
413
416
419
422
425
427
429/* ---------------------------------------------------------- */
430
432
433 /*--------------------------------------------------------------------------*/
439 /*--------------------------------------------------------------------------*/
440
442 DISABLE_WARNING(-Wdeprecated-declarations)
443
445
447
448 /* activation (=1) or not (=0) of an evolution equation on the particle
449 temperature seen (in degrees Celsius).
450 Useful if \ref physical_model=1 and if there is a thermal scalar
451 associated with the continuous phase.
452 */
454
455 /* activation (=1) or not (=0) of an evolution equation on the particle
456 temperature (in degrees Celsius).
457 Useful if \ref physical_model=1 and if there is a thermal scalar
458 associated with the continuous phase.
459 */
461
462 [[deprecated("renamed to solve_temperature")]] \
464
465 /* activation (=1) or not (=0) of an evolution equation on the particle
466 diameter. Useful if \ref physical_model = 1.
467 */
469 [[deprecated("renamed to solve_diameter")]] \
471
472 /* activation (=1) or not (=0) of an evolution equation on the particle mass
473 Useful if \ref physical_model = 1
474 */
476 [[deprecated("renamed to solve_mass")]] \
478
479 /* initialization temperature (in degree Celsius) for the particles already
480 present in the calculation domain when an evolution equation on
481 the particle temperature is activated during a calculation
482 (\ref physical_model = 1 and \ref solve_temperature = 1).
483 Useful if \ref isuila = 1 and \ref solve_temperature = 0 in the previous
484 calculation.
485 */
487
488 /* initialization value for the specific heat (\f$ J.kg^{-1}.K^{-1} \f$)
489 of the particles already present
490 in the calculation domain when an evolution equation
491 on the particle temperature is activated during a calculation
492 (\ref physical_model = 1 and \ref solve_temperature = 1).
493 Useful if \ref isuila = 1 and \ref solve_temperature = 0 in the previous
494 calculation
495 */
497
498};
499
501/* -------------------------------------- */
502
503typedef struct {
504
505 /* - 0: no resuspension model
506 - 1: resuspension model */
508
509 /* - 0: no head losses calculation for influence of the deposit on the flow
510 - 1: head losses calculation for influence of the deposit on the flow */
511 int iflow;
512
513 /* Parameters of the particle resuspension model*/
519
521
523/* -------------------------------------- */
524
525typedef struct {
526
527 /* number of particle classes*/
529 /* diameter of particles formed by precipitation*/
531 /* density of particles formed by precipitation*/
533 /* number of precipitated particles */
534 int *nbprec;
535 /* */
537 /* number of precipitated particles */
539
541
543/* ------------------------------------------ */
544
545typedef struct {
546
551
553
555/* ------------------------------------------------ */
556
557typedef struct {
558
560
562
564/* ------------------------------------------ */
565
566typedef struct {
567
573
575
577/* ------------------------------------------ */
578
579typedef struct {
580
583 cs_real_t (*function_kernel)(cs_lnum_t);
584
586
588/* ----------------------------------------------- */
589
590typedef struct {
591
596
598
600/*----------------------------------*/
601
602typedef struct {
603
604 /* duration of a Lagrangian iteration */
606
607 /* physical time of the Lagrangian simulation */
609
611
613/*------------------------------------------------------------------*/
614
615typedef struct {
616
618 int set_id;
629
632
638
643
654 cs_real_t velocity[3];
663 cs_real_t orientation[3];
664 cs_real_t radii[3];
665 cs_real_t angular_vel[3];
668 cs_real_t euler[4];
670 cs_real_t shape_param[4];
688
690/*----------------------------------------------*/
691
692typedef struct {
693
698
704
705 /* if \ref physical_model = 1 and \ref solve_temperature = 1, \ref ltsthe
706 activates (=1) or not (=0) the two-way coupling on temperature.
707 if \ref physical_model = 2, \ref ltsthe activates (=1) or not (=0) the
708 two-way coupling on the eulerian variables related to pulverised
709 coal combustion.
710 Useful if \ref iilagr = CS_LAGR_TWOWAY_COUPLING */
712
727
729 int npts;
730
734
737
740
741 /* volume occupied by the particles in each cell*/
743
744 /* mass of particle in each cell*/
746
747 /* Langrangian source term for the pressure over one time step */
749
750 /* explicit Langrangian source term for the velocity over one time step */
752
753 /* implicit Langrangian source term for the velocity over one time step */
755
756 /* Langrangian source term for the TKE over one time step */
758
759 /* Langrangian source term for the Reynolds tensor over one time step */
761
762 /* explicit Langrangian source term for the temperature over one time step */
764
765 /* implicit Langrangian source term for the temperature over one time step */
767
769
771/*----------------------------------------------------*/
772
773typedef struct {
774
785 char *elt_type;
797
799/*---------------------------------------*/
800
801typedef struct {
802
804
806
808/*--------------------------------*/
809
810typedef struct {
811
812 /* Activates (=1) or not (=0) the option of coal particle fouling.
813 It then is necessary to specify the domain boundaries
814 on which fouling may take place. Useful if \ref physical_model = 2*/
816
817 /* encrustation data*/
819 // TODO cf particles->n_part_fou in cs_lagr_tracking.c
820
821 /* encrustation data*/
822 cs_real_t *enc1; // size: ncharm2
823 /* encrustation data*/
824 cs_real_t *enc2; // size: ncharm2
825
826 /* Limit temperature (in degree Celsius) below which the coal particles do
827 not cause any fouling (if the fouling model is activated).
828 Useful if \ref physical_model = 2 and \ref iencra = 1*/
829 cs_real_t *tprenc; // size: ncharm2
830
831 /* Ash critical viscosity in \f$ kg.m^{-1}.s^{-1} \f$, in the fouling model
832 cf J.D. Watt et T. Fereday (J.Inst.Fuel, Vol.42-p99).
833 Useful if \ref physical_model = 2 and \ref iencra = 1*/
834 cs_real_t *visref; // size: ncharm2
835
836 /* encrustation data */
838
840
842/*-----------------------------------------*/
843
844typedef struct {
845
848
852
855
858
861
864
867
869
871/*-------------------------------*/
872
873typedef struct {
874
875 int lamvbr;
878
880/*----------------------------------------------*/
881
882typedef struct {
883
891 int npstf;
892
900
905
910
912 int inbr;
913
915 int inclg;
916
919
922
925
928
929 /* id for mean of particle deposition height */
931
932 /* id for variance of particle deposition height */
934
935 /* id for mean diameter of deposited particles */
937
938 /* id for sum of deposited particle diameters */
939 int ihsum;
940
948
955 char **nombrd;
956
958
960/*-----------------------------------------------*/
961
962typedef struct {
963 /* number of carrier phases */
965
966 /* Turbulence model */
967 int iturb;
970
971 /* cpincl */
973
974 /* cs_coal.h */
976
977 /* radiation */
979
980 /* icp */
981 int icp;
982
983 /* cmu */
985
986 /* visls0 */
988
989 /* Referenced fields
990 ----------------- */
991
992 /* wall ustar */
994
995 /* alpha: fluid volume fraction */
997
998 /* wall tstar */
1000
1001 /* Fluid density */
1003
1004 /* Fluid pressure */
1006
1007 /* Fluid temperature */
1010
1011 /* Fluid temperature variance */
1013
1014 /* Turbulent heat flux */
1016
1017 /* Fluid velocity */
1019
1020 /* Fluid viscosity */
1022
1023 /* Fluid viscosity */
1025
1026 /* Fluid specific heat capacity */
1028
1029 /* Radiative energy */
1031
1032 /* Combustion */
1036
1037 /* Turbulence */
1038 /* Turbulent intensity */
1040
1041 /* gradient turbulent intensity */
1043
1044 /* Turbulent dissipation */
1046
1047 /* Omega from k-omega SST model*/
1049
1050 /* Reynolds Stress Tensor */
1052
1053 /* Reynolds gradient Stress Tensor */
1055
1056 /* Total pressure gradient */
1058
1059 /* velocity gradient */
1061
1062 /* fluid temperature gradient */
1064
1065 /* Lagrangian time field */
1067
1068 /* (if extended_t_scheme) gradient of Lagrangien time */
1070
1071 /* fluid seen/fluid seen covariance gradient */
1072 cs_real_3_t *grad_cov_skp[9];
1073
1074 /* fluid seen/particle velocity covariance gradient */
1075 cs_real_3_t *grad_cov_sk[6];
1076
1077 /* (if modcpl) anistropic Lagrangian time gradient tlag / bbi */
1079
1080 /* (if modcpl) anistropic diffusion term */
1082
1083 /* (if extended_t_scheme && modcpl) gradient of anistropic Lagrangien time
1084 * int the relative basis used to compute beta */
1086
1087 /* (if transport_GLM_generic) save the Euler parameters associated to the
1088 * eigenvectors for the rotation matrix (where G is diagonal) */
1090
1092
1093/*============================================================================
1094 * Global variables
1095 *============================================================================*/
1096
1100
1104
1107
1110
1113
1114/* Lagrangian log output every frequency_n time steps */
1115
1117
1118/* Statisics on boundaries */
1119
1120extern cs_real_t *bound_stat;
1121
1127
1130
1138
1140
1144
1145/* Projection matrices for global to local coordinates on boundary faces */
1147
1148/*============================================================================
1149 * Public function prototypes
1150 *============================================================================*/
1151
1152/*----------------------------------------------------------------------------*/
1156/*----------------------------------------------------------------------------*/
1157
1158void
1160
1161/*----------------------------------------------------------------------------*/
1174/*----------------------------------------------------------------------------*/
1175
1178 int zone_id,
1179 int set_id);
1180
1181/*----------------------------------------------------------------------------*/
1187/*----------------------------------------------------------------------------*/
1188
1189void
1191
1192/*----------------------------------------------------------------------------*/
1198/*----------------------------------------------------------------------------*/
1199
1202
1203/*----------------------------------------------------------------------------*/
1212/*----------------------------------------------------------------------------*/
1213
1216
1217/*----------------------------------------------------------------------------
1218 * Provide access to cs_lagr_particle_counter_t
1219 *
1220 * needed to initialize structure with GUI
1221 *----------------------------------------------------------------------------*/
1222
1225
1226/*----------------------------------------------------------------------------
1227 * Provide access to cs_lagr_reentrained_model_t
1228 *
1229 * needed to initialize structure with GUI
1230 *----------------------------------------------------------------------------*/
1231
1234
1235/*----------------------------------------------------------------------------
1236 * Provide access to cs_lagr_precipitation_model_t
1237 *
1238 * needed to initialize structure with GUI
1239 *----------------------------------------------------------------------------*/
1240
1243
1244/*----------------------------------------------------------------------------
1245 * Provide access to cs_lagr_clogging_model_t
1246 *
1247 * needed to initialize structure with GUI
1248 *----------------------------------------------------------------------------*/
1249
1252
1253/*----------------------------------------------------------------------------
1254 * Provide access to cs_lagr_shape_model_t
1255 *
1256 * needed to initialize structure with GUI
1257 *----------------------------------------------------------------------------*/
1258
1261
1262/*----------------------------------------------------------------------------
1263 * Provide access to cs_lagr_agglomeration_model_t
1264 *
1265 * needed to initialize structure with GUI
1266 *----------------------------------------------------------------------------*/
1267
1270
1271/*----------------------------------------------------------------------------
1272 * Provide access to cs_lagr_consolidation_model_t
1273 *
1274 * needed to initialize structure with GUI
1275 *----------------------------------------------------------------------------*/
1276
1279
1280/*----------------------------------------------------------------------------
1281 * Provide access to cs_lagr_time_step_t
1282 *
1283 * needed to initialize structure with GUI
1284 *----------------------------------------------------------------------------*/
1285
1288
1289/*----------------------------------------------------------------------------
1290 * Provide access to cs_lagr_source_terms_t
1291 *
1292 * needed to initialize structure with GUI
1293 *----------------------------------------------------------------------------*/
1294
1297
1298/*----------------------------------------------------------------------------
1299 * Provide access to cs_lagr_encrustation_t
1300 *
1301 * needed to initialize structure with GUI
1302 *----------------------------------------------------------------------------*/
1303
1306
1307/*----------------------------------------------------------------------------
1308 * Provide access to cs_lagr_physico_chemical_t
1309 *
1310 * needed to initialize structure with GUI
1311 *----------------------------------------------------------------------------*/
1312
1315
1316/*----------------------------------------------------------------------------
1317 * Provide access to cs_lagr_brownian_t
1318 *
1319 * needed to initialize structure with GUI
1320 *----------------------------------------------------------------------------*/
1321
1324
1325/*----------------------------------------------------------------------------*/
1331/*----------------------------------------------------------------------------*/
1332
1335
1336/*----------------------------------------------------------------------------*/
1342/*----------------------------------------------------------------------------*/
1343
1346
1347/*----------------------------------------------------------------------------*/
1355/*----------------------------------------------------------------------------*/
1356
1359
1360/*----------------------------------------------------------------------------*/
1364/*----------------------------------------------------------------------------*/
1365
1366void
1368
1369/*----------------------------------------------------------------------------
1370 * Destroy finalize the global cs_lagr_internal_condition_t structure.
1371 *----------------------------------------------------------------------------*/
1372
1373void
1375
1376/*----------------------------------------------------------------------------
1377 * Provide access to cs_lagr_boundary_interactions_t
1378 *
1379 * needed to initialize structure with GUI
1380 *----------------------------------------------------------------------------*/
1381
1384
1385/*----------------------------------------------------------------------------
1386 * Provide access to cs_lagr_extra_module_t
1387 *----------------------------------------------------------------------------*/
1388
1391
1392/*----------------------------------------------------------------------------
1393 * Prepare for execution of the Lagrangian model.
1394 *
1395 * This should be called before the fist call to cs_lagr_solve_time_step.
1396 *
1397 * parameters:
1398 * dt <-- time step (per cell)
1399 *----------------------------------------------------------------------------*/
1400
1401void
1403
1404/*----------------------------------------------------------------------------
1405 * Initialize lagrangian arrays
1406 *----------------------------------------------------------------------------*/
1407
1408void
1410
1411/*----------------------------------------------------------------------------
1412 * Free lagrangian arrays
1413 *----------------------------------------------------------------------------*/
1414
1415void
1416cs_lagr_finalize(void);
1417
1418/*----------------------------------------------------------------------------*/
1419
1420void
1421cs_lagr_initialize_extra(cs_lnum_t n_continuous_phases);
1422
1431/*----------------------------------------------------------------------------*/
1432
1433void
1434cs_lagr_add_fields(void);
1435
1436/*--------------------------------------------------------------------
1437 * Execute one time step of the Lagrangian model.
1438 *
1439 * This is the main function for that model.
1440 *
1441 * parameters:
1442 * itypfb <-- boundary face types
1443 * dt <-- time step (per cell)
1444 *-------------------------------------------------------------------- */
1445
1446void
1447cs_lagr_solve_time_step(const int itypfb[],
1448 const cs_real_t *dt);
1449
1450/*----------------------------------------------------------------------------*/
1451
1453
1454#endif /* CS_LAGR_H */
Field descriptor.
Definition: cs_field.h:275
#define BEGIN_C_DECLS
Definition: cs_defs.h:528
double cs_real_t
Floating-point value.
Definition: cs_defs.h:332
#define DISABLE_WARNING_PUSH
Definition: cs_defs.h:168
cs_real_t cs_real_4_t[4]
vector of 4 floating-point values
Definition: cs_defs.h:350
cs_real_t cs_real_3_t[3]
vector of 3 floating-point values
Definition: cs_defs.h:349
#define DISABLE_WARNING_POP
Definition: cs_defs.h:170
unsigned cs_gnum_t
global mesh entity number
Definition: cs_defs.h:317
cs_real_t cs_real_6_t[6]
vector of 6 floating-point values
Definition: cs_defs.h:351
#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:358
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:325
@ dt
Definition: cs_field_pointer.h:61
cs_lagr_source_terms_t * cs_glob_lagr_source_terms
void cs_lagr_finalize_internal_cond(void)
Definition: cs_lagr.cpp:1624
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_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.cpp:1185
cs_real_t * bound_stat
cs_lagr_precipitation_model_t * cs_get_lagr_precipitation_model(void)
Provide access to cs_lagr_precipitation_model_t.
Definition: cs_lagr.cpp:1386
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.cpp:1721
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_internal_condition_t * cs_lagr_get_internal_conditions(void)
Return pointer to the main internal conditions structure.
Definition: cs_lagr.cpp:1510
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_zone_data_t * cs_lagr_get_boundary_conditions(void)
Return pointer to the main boundary conditions structure.
Definition: cs_lagr.cpp:1544
cs_lagr_encrustation_t * cs_glob_lagr_encrustation
const cs_lagr_zone_data_t * cs_glob_lagr_boundary_conditions
cs_lagr_agglomeration_model_t * cs_glob_lagr_agglomeration_model
cs_lagr_boundary_interactions_t * cs_get_lagr_boundary_interactions(void)
Definition: cs_lagr.cpp:1642
cs_lagr_particle_counter_t * cs_lagr_get_particle_counter(void)
Get read/write pointer to global particle counter.
Definition: cs_lagr.cpp:1285
cs_lagr_specific_physics_t * cs_glob_lagr_specific_physics
cs_lagr_extra_module_t * cs_get_lagr_extra_module(void)
Definition: cs_lagr.cpp:1653
cs_lagr_shape_model_t * cs_get_lagr_shape_model(void)
Definition: cs_lagr.cpp:1410
cs_lagr_fragmentation_model_t * cs_glob_lagr_fragmentation_model
cs_lagr_brownian_t * cs_get_lagr_brownian(void)
Definition: cs_lagr.cpp:1494
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.cpp:1063
void cs_lagr_init_arrays(void)
Definition: cs_lagr.cpp:966
cs_lagr_agglomeration_model_t * cs_get_lagr_agglomeration_model(void)
Definition: cs_lagr.cpp:1422
cs_lagr_physico_chemical_t * cs_glob_lagr_physico_chemical
cs_lagr_precipitation_model_t * cs_glob_lagr_precipitation_model
cs_lagr_source_terms_t * cs_get_lagr_source_terms(void)
Definition: cs_lagr.cpp:1458
void cs_lagr_solve_initialize(const cs_real_t *dt)
Definition: cs_lagr.cpp:1668
void cs_lagr_injection_set_default(cs_lagr_injection_set_t *zis)
Initialize injection set data structure fields to defaults.
Definition: cs_lagr.cpp:1212
cs_lagr_consolidation_model_t * cs_get_lagr_consolidation_model(void)
Definition: cs_lagr.cpp:1434
void cs_lagr_initialize_extra(cs_lnum_t n_continuous_phases)
Definition: cs_lagr.cpp:956
cs_lagr_clogging_model_t * cs_get_lagr_clogging_model(void)
Definition: cs_lagr.cpp:1398
@ 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
cs_lagr_particle_counter_t * cs_lagr_update_particle_counter(void)
Update global particle counter.
Definition: cs_lagr.cpp:1302
cs_lagr_brownian_t * cs_glob_lagr_brownian
cs_lagr_specific_physics_t * cs_get_lagr_specific_physics(void)
Provide access to cs_lagr_specific_physics_t.
Definition: cs_lagr.cpp:1359
cs_lagr_encrustation_t * cs_get_lagr_encrustation(void)
Definition: cs_lagr.cpp:1470
cs_lagr_time_step_t * cs_get_lagr_time_step(void)
Definition: cs_lagr.cpp:1446
void cs_lagr_map_specific_physics(void)
Map specific phyical model features to Lagrangian structures.
Definition: cs_lagr.cpp:1150
const cs_lagr_zone_data_t * cs_glob_lagr_volume_conditions
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_lagr_physico_chemical_t * cs_get_lagr_physico_chemical(void)
Definition: cs_lagr.cpp:1482
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
void cs_lagr_finalize_zone_conditions(void)
Finalize the global boundary and volume condition structures.
Definition: cs_lagr.cpp:1592
cs_lagr_time_step_t * cs_glob_lagr_time_step
cs_lagr_reentrained_model_t * cs_get_lagr_reentrained_model(void)
Provide access to cs_lagr_reentrained_model_t.
Definition: cs_lagr.cpp:1373
int cs_glob_lagr_log_frequency_n
const cs_lagr_particle_counter_t * cs_glob_lagr_particle_counter
cs_lagr_zone_data_t * cs_lagr_get_volume_conditions(void)
Return pointer to the main volume conditions structure.
Definition: cs_lagr.cpp:1568
cs_lagr_dim_t * cs_glob_lagr_dim
void cs_lagr_finalize(void)
Definition: cs_lagr.cpp:984
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
Definition: cs_lagr.h:566
cs_real_t base_diameter
Definition: cs_lagr.h:572
cs_real_t scalar_kernel
Definition: cs_lagr.h:571
cs_real_t max_stat_weight
Definition: cs_lagr.h:570
cs_lnum_t n_max_classes
Definition: cs_lagr.h:568
cs_real_t min_stat_weight
Definition: cs_lagr.h:569
Definition: cs_lagr.h:882
int iclogt
Definition: cs_lagr.h:921
int inclg
Definition: cs_lagr.h:915
int has_part_impact_nbr
Definition: cs_lagr.h:904
char ** nombrd
Definition: cs_lagr.h:955
int npstft
Definition: cs_lagr.h:899
int ihdepm
Definition: cs_lagr.h:930
int inclgt
Definition: cs_lagr.h:918
int inbr
Definition: cs_lagr.h:912
int iscovc
Definition: cs_lagr.h:927
int npstf
Definition: cs_lagr.h:891
cs_real_t tstatp
Definition: cs_lagr.h:947
int ihsum
Definition: cs_lagr.h:939
int iclgst
Definition: cs_lagr.h:909
int iclogh
Definition: cs_lagr.h:924
int ihdepv
Definition: cs_lagr.h:933
int ihdiam
Definition: cs_lagr.h:936
Definition: cs_lagr.h:873
int lamvbr
Definition: cs_lagr.h:875
Definition: cs_lagr.h:545
cs_real_t jamlim
Definition: cs_lagr.h:547
cs_real_t diam_mean
Definition: cs_lagr.h:550
cs_real_t mporos
Definition: cs_lagr.h:548
cs_real_t csthpp
Definition: cs_lagr.h:549
Definition: cs_lagr.h:590
cs_real_t force_consol
Definition: cs_lagr.h:595
cs_real_t slope_consol
Definition: cs_lagr.h:594
cs_lnum_t iconsol
Definition: cs_lagr.h:592
cs_real_t rate_consol
Definition: cs_lagr.h:593
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 n_boundary_stats
Definition: cs_lagr.h:175
Definition: cs_lagr.h:810
cs_real_t * visref
Definition: cs_lagr.h:834
cs_real_t dnpenc
Definition: cs_lagr.h:837
int iencra
Definition: cs_lagr.h:815
cs_real_t * tprenc
Definition: cs_lagr.h:829
cs_real_t * enc2
Definition: cs_lagr.h:824
int npencr
Definition: cs_lagr.h:818
cs_real_t * enc1
Definition: cs_lagr.h:822
Definition: cs_lagr.h:962
cs_real_3_t * grad_lagr_time_r_et
Definition: cs_lagr.h:1085
cs_field_t * scal_t
Definition: cs_lagr.h:1008
cs_real_3_t * grad_tempf
Definition: cs_lagr.h:1063
cs_field_t * cvar_gradrij
Definition: cs_lagr.h:1054
cs_field_t * vel
Definition: cs_lagr.h:1018
int itytur
Definition: cs_lagr.h:968
cs_field_t * cpro_cp
Definition: cs_lagr.h:1027
int turb_model
Definition: cs_lagr.h:969
cs_field_t * cvar_omg
Definition: cs_lagr.h:1048
cs_real_3_t * grad_lagr_time
Definition: cs_lagr.h:1069
cs_field_t * viscl
Definition: cs_lagr.h:1021
cs_field_t * rad_energy
Definition: cs_lagr.h:1030
cs_field_t * x_eau
Definition: cs_lagr.h:1034
cs_real_4_t * anisotropic_euler
Definition: cs_lagr.h:1089
cs_field_t * tstar
Definition: cs_lagr.h:999
cs_field_t * cvar_ep
Definition: cs_lagr.h:1045
cs_field_t * lagr_time
Definition: cs_lagr.h:1066
cs_field_t * alpha
Definition: cs_lagr.h:996
cs_real_3_t * anisotropic_lagr_time
Definition: cs_lagr.h:1078
cs_field_t * x_oxyd
Definition: cs_lagr.h:1033
int ncharb
Definition: cs_lagr.h:972
int n_phases
Definition: cs_lagr.h:964
cs_field_t * pressure
Definition: cs_lagr.h:1005
cs_real_3_t * anisotropic_bx
Definition: cs_lagr.h:1081
cs_real_33_t * grad_vel
Definition: cs_lagr.h:1060
cs_field_t * temperature
Definition: cs_lagr.h:1009
cs_real_t cmu
Definition: cs_lagr.h:984
cs_real_3_t * grad_pr
Definition: cs_lagr.h:1057
cs_field_t * cvar_k
Definition: cs_lagr.h:1039
cs_field_t * x_m
Definition: cs_lagr.h:1035
cs_field_t * temperature_turbulent_flux
Definition: cs_lagr.h:1015
cs_field_t * ustar
Definition: cs_lagr.h:993
cs_field_t * temperature_variance
Definition: cs_lagr.h:1012
int icp
Definition: cs_lagr.h:981
cs_field_t * cromf
Definition: cs_lagr.h:1002
cs_field_t * cpro_viscls
Definition: cs_lagr.h:1024
int radiative_model
Definition: cs_lagr.h:978
cs_field_t * cvar_gradk
Definition: cs_lagr.h:1042
int ncharm
Definition: cs_lagr.h:975
cs_field_t * cvar_rij
Definition: cs_lagr.h:1051
cs_real_t visls0
Definition: cs_lagr.h:987
int iturb
Definition: cs_lagr.h:967
Definition: cs_lagr.h:579
cs_real_t base_diameter
Definition: cs_lagr.h:582
cs_real_t scalar_kernel
Definition: cs_lagr.h:581
Definition: cs_lagr.h:615
cs_real_t diameter_variance
Definition: cs_lagr.h:659
cs_real_t density
Definition: cs_lagr.h:675
int injection_frequency
Definition: cs_lagr.h:624
int temperature_profile
Definition: cs_lagr.h:642
cs_real_t shape
Definition: cs_lagr.h:661
cs_real_t velocity_magnitude
Definition: cs_lagr.h:653
int velocity_profile
Definition: cs_lagr.h:637
cs_real_t cp
Definition: cs_lagr.h:679
cs_lagr_injection_profile_compute_t * injection_profile_func
Definition: cs_lagr.h:628
cs_real_t diameter
Definition: cs_lagr.h:658
cs_gnum_t n_inject
Definition: cs_lagr.h:621
int cluster
Definition: cs_lagr.h:648
int location_id
Definition: cs_lagr.h:619
cs_real_t fouling_index
Definition: cs_lagr.h:677
int coal_number
Definition: cs_lagr.h:644
void * injection_profile_input
Definition: cs_lagr.h:631
cs_real_t flow_rate
Definition: cs_lagr.h:683
int zone_id
Definition: cs_lagr.h:617
int set_id
Definition: cs_lagr.h:618
int aggregat_class_id
Definition: cs_lagr.h:650
cs_real_t emissivity
Definition: cs_lagr.h:685
cs_real_t stat_weight
Definition: cs_lagr.h:681
cs_real_t temperature
Definition: cs_lagr.h:656
cs_real_t aggregat_fractal_dim
Definition: cs_lagr.h:651
Definition: cs_lagr.h:801
int * i_face_zone_id
Definition: cs_lagr.h:803
Definition: cs_lagr.h:273
int verbosity
Definition: cs_lagr.h:365
bool transport_GLM_rotated
Definition: cs_lagr.h:359
int dlvo
Definition: cs_lagr.h:320
int n_stat_classes
Definition: cs_lagr.h:354
int cs_used
Definition: cs_lagr.h:293
int deposition
Definition: cs_lagr.h:318
int physical_model
Definition: cs_lagr.h:287
int fragmentation
Definition: cs_lagr.h:352
int roughness
Definition: cs_lagr.h:324
int precipitation
Definition: cs_lagr.h:343
int n_user_variables
Definition: cs_lagr.h:356
int idistu
Definition: cs_lagr.h:308
int shape
Definition: cs_lagr.h:337
int fouling
Definition: cs_lagr.h:344
int n_temperature_layers
Definition: cs_lagr.h:288
int modcpl
Definition: cs_lagr.h:302
int agglomeration
Definition: cs_lagr.h:348
int consolidation
Definition: cs_lagr.h:341
int resuspension
Definition: cs_lagr.h:328
int clogging
Definition: cs_lagr.h:332
int idiffl
Definition: cs_lagr.h:314
bool viscous_terms
Definition: cs_lagr.h:362
Definition: cs_lagr.h:371
cs_gnum_t n_g_cumulative_total
Definition: cs_lagr.h:375
cs_real_t w_exit
Definition: cs_lagr.h:412
cs_gnum_t n_g_new
Definition: cs_lagr.h:385
cs_gnum_t n_g_resuspended
Definition: cs_lagr.h:400
cs_gnum_t n_g_exit
Definition: cs_lagr.h:388
cs_real_t w_fouling
Definition: cs_lagr.h:421
cs_real_t w_total
Definition: cs_lagr.h:406
cs_gnum_t n_g_failed
Definition: cs_lagr.h:403
cs_gnum_t n_g_fouling
Definition: cs_lagr.h:397
cs_gnum_t n_g_total
Definition: cs_lagr.h:382
cs_real_t w_resuspended
Definition: cs_lagr.h:424
cs_real_t w_deposited
Definition: cs_lagr.h:418
cs_gnum_t n_g_merged
Definition: cs_lagr.h:391
cs_gnum_t n_g_cumulative_failed
Definition: cs_lagr.h:379
cs_real_t w_merged
Definition: cs_lagr.h:415
cs_gnum_t n_g_deposited
Definition: cs_lagr.h:394
cs_real_t w_new
Definition: cs_lagr.h:409
Definition: cs_lagr.h:844
cs_real_t cstham
Definition: cs_lagr.h:847
cs_real_t fion
Definition: cs_lagr.h:866
cs_real_t phi_s
Definition: cs_lagr.h:860
cs_real_t lambda_vdw
Definition: cs_lagr.h:851
cs_real_t epseau
Definition: cs_lagr.h:854
cs_real_t phi_p
Definition: cs_lagr.h:857
cs_real_t valen
Definition: cs_lagr.h:863
Definition: cs_lagr.h:525
cs_real_t diameter
Definition: cs_lagr.h:530
int nbrclas
Definition: cs_lagr.h:528
cs_real_t * mp_diss
Definition: cs_lagr.h:538
cs_real_t rho
Definition: cs_lagr.h:532
int * nbprec
Definition: cs_lagr.h:534
cs_real_t * solub
Definition: cs_lagr.h:536
Definition: cs_lagr.h:503
int iflow
Definition: cs_lagr.h:511
cs_real_t denasp
Definition: cs_lagr.h:515
int ireent
Definition: cs_lagr.h:507
cs_real_t rayasp
Definition: cs_lagr.h:517
cs_real_t modyeq
Definition: cs_lagr.h:516
cs_real_t rayasg
Definition: cs_lagr.h:518
cs_real_t espasg
Definition: cs_lagr.h:514
Definition: cs_lagr.h:557
cs_real_t param_chmb
Definition: cs_lagr.h:559
Definition: cs_lagr.h:692
cs_real_t * volm
Definition: cs_lagr.h:745
int npts
Definition: cs_lagr.h:729
cs_real_t * t_st_k
Definition: cs_lagr.h:757
int ltsmas
Definition: cs_lagr.h:703
cs_real_t vmax
Definition: cs_lagr.h:736
cs_real_t tmamax
Definition: cs_lagr.h:739
int ltsthe
Definition: cs_lagr.h:711
cs_real_t * volp
Definition: cs_lagr.h:742
cs_real_3_t * t_st_vel
Definition: cs_lagr.h:751
cs_real_t * t_st_t_e
Definition: cs_lagr.h:763
cs_real_6_t * t_st_rij
Definition: cs_lagr.h:760
int ntxerr
Definition: cs_lagr.h:733
cs_real_t * t_st_imp_vel
Definition: cs_lagr.h:754
int ltsdyn
Definition: cs_lagr.h:697
int nstits
Definition: cs_lagr.h:726
cs_real_t * t_st_t_i
Definition: cs_lagr.h:766
cs_real_t * t_st_p
Definition: cs_lagr.h:748
Definition: cs_lagr.h:431
int & impvar
Definition: cs_lagr.h:477
int solve_temperature
Definition: cs_lagr.h:460
cs_real_t tpart
Definition: cs_lagr.h:486
cs_real_t cppart
Definition: cs_lagr.h:496
DISABLE_WARNING_POP int solve_temperature_seen
Definition: cs_lagr.h:453
int solve_mass
Definition: cs_lagr.h:475
int & itpvar
Definition: cs_lagr.h:463
int & idpvar
Definition: cs_lagr.h:470
DISABLE_WARNING_PUSH DISABLE_WARNING(-Wdeprecated-declarations) cs_lagr_specific_physics_t()
Default constructor with suppression of deprecated declarations, needed to hide warnings simply induc...
Definition: cs_lagr.h:442
int solve_diameter
Definition: cs_lagr.h:468
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 cell_wise_integ
Definition: cs_lagr.h:259
cs_lnum_t max_track_propagation_loops
Definition: cs_lagr.h:263
int t_order
Definition: cs_lagr.h:220
int iilagr
Definition: cs_lagr.h:196
int iadded_mass
Definition: cs_lagr.h:252
int max_perio_or_rank_crossed
Definition: cs_lagr.h:266
Definition: cs_lagr.h:602
cs_real_t dtp
Definition: cs_lagr.h:605
cs_real_t ttclag
Definition: cs_lagr.h:608
Definition: cs_lagr.h:773
int n_zones
Definition: cs_lagr.h:777
cs_lagr_injection_set_t ** injection_set
Definition: cs_lagr.h:782
char * elt_type
Definition: cs_lagr.h:785
cs_real_t * particle_mass_flow
Definition: cs_lagr.h:788
int * zone_type
Definition: cs_lagr.h:778
int location_id
Definition: cs_lagr.h:775
cs_real_t * particle_heat_flow
Definition: cs_lagr.h:792
int * n_injection_sets
Definition: cs_lagr.h:780