9.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-2025 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
360
362
364/*----------------------------------------------*/
365
366typedef struct {
367
371
375
378
381
384
387
390
393
396
399
402
405
408
411
414
417
420
422
424/* ---------------------------------------------------------- */
425
426typedef struct {
427
428 /* activation (=1) or not (=0) of an evolution equation on the particle
429 temperature seen (in degrees Celsius).
430 Useful if \ref physical_model=1 and if there is a thermal scalar
431 associated with the continuous phase.
432 */
434
435 /* activation (=1) or not (=0) of an evolution equation on the particle
436 temperature (in degrees Celsius).
437 Useful if \ref physical_model=1 and if there is a thermal scalar
438 associated with the continuous phase.
439 */
440 union {
442 int itpvar; /* deprecated */
443 };
444
445 /* activation (=1) or not (=0) of an evolution equation on the particle
446 diameter. Useful if \ref physical_model = 1.
447 */
448 union {
450 int idpvar; /* deprecated */
451 };
452
453 /* activation (=1) or not (=0) of an evolution equation on the particle mass
454 Useful if \ref physical_model = 1
455 */
456 union {
458 int impvar; /* deprecated */
459 };
460
461 /* initialization temperature (in degree Celsius) for the particles already
462 present in the calculation domain when an evolution equation on
463 the particle temperature is activated during a calculation
464 (\ref physical_model = 1 and \ref solve_temperature = 1).
465 Useful if \ref isuila = 1 and \ref solve_temperature = 0 in the previous
466 calculation.
467 */
469
470 /* initialization value for the specific heat (\f$ J.kg^{-1}.K^{-1} \f$)
471 of the particles already present
472 in the calculation domain when an evolution equation
473 on the particle temperature is activated during a calculation
474 (\ref physical_model = 1 and \ref solve_temperature = 1).
475 Useful if \ref isuila = 1 and \ref solve_temperature = 0 in the previous
476 calculation
477 */
479
481
483/* -------------------------------------- */
484
485typedef struct {
486
487 /* - 0: no resuspension model
488 - 1: resuspension model */
490
491 /* - 0: no head losses calculation for influence of the deposit on the flow
492 - 1: head losses calculation for influence of the deposit on the flow */
493 int iflow;
494
495 /* Parameters of the particle resuspension model*/
501
503
505/* -------------------------------------- */
506
507typedef struct {
508
509 /* number of particle classes*/
511 /* diameter of particles formed by precipitation*/
513 /* density of particles formed by precipitation*/
515 /* number of precipitated particles */
516 int *nbprec;
517 /* */
519 /* number of precipitated particles */
521
523
525/* ------------------------------------------ */
526
527typedef struct {
528
533
535
537/* ------------------------------------------------ */
538
539typedef struct {
540
542
544
546/* ------------------------------------------ */
547
548typedef struct {
549
555
557
559/* ------------------------------------------ */
560
561typedef struct {
562
565 cs_real_t (*function_kernel)(cs_lnum_t);
566
568
570/* ----------------------------------------------- */
571
572typedef struct {
573
578
580
582/*----------------------------------*/
583
584typedef struct {
585
586 /* duration of a Lagrangian iteration */
588
589 /* physical time of the Lagrangian simulation */
591
593
595/*------------------------------------------------------------------*/
596
597typedef struct {
598
600 int set_id;
611
614
620
625
636 cs_real_t velocity[3];
645 cs_real_t orientation[3];
646 cs_real_t radii[3];
647 cs_real_t angular_vel[3];
650 cs_real_t euler[4];
652 cs_real_t shape_param[4];
670
672/*----------------------------------------------*/
673
674typedef struct {
675
680
686
687 /* if \ref physical_model = 1 and \ref solve_temperature = 1, \ref ltsthe
688 activates (=1) or not (=0) the two-way coupling on temperature.
689 if \ref physical_model = 2, \ref ltsthe activates (=1) or not (=0) the
690 two-way coupling on the eulerian variables related to pulverised
691 coal combustion.
692 Useful if \ref iilagr = CS_LAGR_TWOWAY_COUPLING */
694
709
711 int npts;
712
716
719
722
723 /* volume occupied by the particles in each cell*/
725
726 /* mass of particle in each cell*/
728
729 /* Langrangian source term for the pressure over one time step */
731
732 /* explicit Langrangian source term for the velocity over one time step */
734
735 /* implicit Langrangian source term for the velocity over one time step */
737
738 /* Langrangian source term for the TKE over one time step */
740
741 /* Langrangian source term for the Reynolds tensor over one time step */
743
744 /* explicit Langrangian source term for the temperature over one time step */
746
747 /* implicit Langrangian source term for the temperature over one time step */
749
751
753/*----------------------------------------------------*/
754
755typedef struct {
756
767 char *elt_type;
779
781/*---------------------------------------*/
782
783typedef struct {
784
786
788
790/*--------------------------------*/
791
792typedef struct {
793
794 /* Activates (=1) or not (=0) the option of coal particle fouling.
795 It then is necessary to specify the domain boundaries
796 on which fouling may take place. Useful if \ref physical_model = 2*/
798
799 /* encrustation data*/
801 // TODO cf particles->n_part_fou in cs_lagr_tracking.c
802
803 /* encrustation data*/
804 cs_real_t *enc1; // size: ncharm2
805 /* encrustation data*/
806 cs_real_t *enc2; // size: ncharm2
807
808 /* Limit temperature (in degree Celsius) below which the coal particles do
809 not cause any fouling (if the fouling model is activated).
810 Useful if \ref physical_model = 2 and \ref iencra = 1*/
811 cs_real_t *tprenc; // size: ncharm2
812
813 /* Ash critical viscosity in \f$ kg.m^{-1}.s^{-1} \f$, in the fouling model
814 cf J.D. Watt et T. Fereday (J.Inst.Fuel, Vol.42-p99).
815 Useful if \ref physical_model = 2 and \ref iencra = 1*/
816 cs_real_t *visref; // size: ncharm2
817
818 /* encrustation data */
820
822
824/*-----------------------------------------*/
825
826typedef struct {
827
830
834
837
840
843
846
849
851
853/*-------------------------------*/
854
855typedef struct {
856
857 int lamvbr;
860
862/*----------------------------------------------*/
863
864typedef struct {
865
873 int npstf;
874
882
887
892
894 int inbr;
895
897 int inclg;
898
901
904
907
910
911 /* id for mean of particle deposition height */
913
914 /* id for variance of particle deposition height */
916
917 /* id for mean diameter of deposited particles */
919
920 /* id for sum of deposited particle diameters */
921 int ihsum;
922
930
937 char **nombrd;
938
940
942/*-----------------------------------------------*/
943
944typedef struct {
945 /* number of carrier phases */
947
948 /* Turbulence model */
949 int iturb;
952
953 /* cpincl */
955
956 /* cs_coal.h */
958
959 /* radiation */
961
962 /* icp */
963 int icp;
964
965 /* cmu */
967
968 /* visls0 */
970
971 /* Referenced fields
972 ----------------- */
973
974 /* wall ustar */
976
977 /* alpha: fluid volume fraction */
979
980 /* wall tstar */
982
983 /* Fluid density */
985
986 /* Fluid pressure */
988
989 /* Fluid temperature */
992
993 /* Fluid temperature variance */
995
996 /* Turbulent heat flux */
998
999 /* Fluid velocity */
1001
1002 /* Fluid viscosity */
1004
1005 /* Fluid viscosity */
1007
1008 /* Fluid specific heat capacity */
1010
1011 /* Radiative energy */
1013
1014 /* Combustion */
1018
1019 /* Turbulence */
1020 /* Turbulent intensity */
1022
1023 /* gradient turbulent intensity */
1025
1026 /* Turbulent dissipation */
1028
1029 /* Omega from k-omega SST model*/
1031
1032 /* Reynolds Stress Tensor */
1034
1035 /* Reynolds gradient Stress Tensor */
1037
1038 /* Total pressure gradient */
1040
1041 /* velocity gradient */
1043
1044 /* fluid temperature gradient */
1046
1047 /* Lagrangian time field */
1049
1050 /* (if extended_t_scheme) gradient of Lagrangien time */
1052
1053 /* fluid seen/fluid seen covariance gradient */
1054 cs_real_3_t *grad_cov_skp[9];
1055
1056 /* fluid seen/particle velocity covariance gradient */
1057 cs_real_3_t *grad_cov_sk[6];
1058
1059 /* (if modcpl) anistropic Lagrangian time gradient tlag / bbi */
1061
1062 /* (if modcpl) anistropic diffusion term */
1064
1065 /* (if extended_t_scheme && modcpl) gradient of anistropic Lagrangien time
1066 * int the relative basis used to compute beta */
1068
1070
1071/*============================================================================
1072 * Global variables
1073 *============================================================================*/
1074
1078
1082
1085
1088
1091
1092/* Lagrangian log output every frequency_n time steps */
1093
1095
1096/* Statisics on boundaries */
1097
1098extern cs_real_t *bound_stat;
1099
1105
1108
1116
1118
1122
1123/* Projection matrices for global to local coordinates on boundary faces */
1125
1126/*============================================================================
1127 * Public function prototypes
1128 *============================================================================*/
1129
1130/*----------------------------------------------------------------------------*/
1134/*----------------------------------------------------------------------------*/
1135
1136void
1138
1139/*----------------------------------------------------------------------------*/
1152/*----------------------------------------------------------------------------*/
1153
1156 int zone_id,
1157 int set_id);
1158
1159/*----------------------------------------------------------------------------*/
1165/*----------------------------------------------------------------------------*/
1166
1167void
1169
1170/*----------------------------------------------------------------------------*/
1176/*----------------------------------------------------------------------------*/
1177
1180
1181/*----------------------------------------------------------------------------*/
1190/*----------------------------------------------------------------------------*/
1191
1194
1195/*----------------------------------------------------------------------------
1196 * Provide access to cs_lagr_particle_counter_t
1197 *
1198 * needed to initialize structure with GUI
1199 *----------------------------------------------------------------------------*/
1200
1203
1204/*----------------------------------------------------------------------------
1205 * Provide access to cs_lagr_reentrained_model_t
1206 *
1207 * needed to initialize structure with GUI
1208 *----------------------------------------------------------------------------*/
1209
1212
1213/*----------------------------------------------------------------------------
1214 * Provide access to cs_lagr_precipitation_model_t
1215 *
1216 * needed to initialize structure with GUI
1217 *----------------------------------------------------------------------------*/
1218
1221
1222/*----------------------------------------------------------------------------
1223 * Provide access to cs_lagr_clogging_model_t
1224 *
1225 * needed to initialize structure with GUI
1226 *----------------------------------------------------------------------------*/
1227
1230
1231/*----------------------------------------------------------------------------
1232 * Provide access to cs_lagr_shape_model_t
1233 *
1234 * needed to initialize structure with GUI
1235 *----------------------------------------------------------------------------*/
1236
1239
1240/*----------------------------------------------------------------------------
1241 * Provide access to cs_lagr_agglomeration_model_t
1242 *
1243 * needed to initialize structure with GUI
1244 *----------------------------------------------------------------------------*/
1245
1248
1249/*----------------------------------------------------------------------------
1250 * Provide access to cs_lagr_consolidation_model_t
1251 *
1252 * needed to initialize structure with GUI
1253 *----------------------------------------------------------------------------*/
1254
1257
1258/*----------------------------------------------------------------------------
1259 * Provide access to cs_lagr_time_step_t
1260 *
1261 * needed to initialize structure with GUI
1262 *----------------------------------------------------------------------------*/
1263
1266
1267/*----------------------------------------------------------------------------
1268 * Provide access to cs_lagr_source_terms_t
1269 *
1270 * needed to initialize structure with GUI
1271 *----------------------------------------------------------------------------*/
1272
1275
1276/*----------------------------------------------------------------------------
1277 * Provide access to cs_lagr_encrustation_t
1278 *
1279 * needed to initialize structure with GUI
1280 *----------------------------------------------------------------------------*/
1281
1284
1285/*----------------------------------------------------------------------------
1286 * Provide access to cs_lagr_physico_chemical_t
1287 *
1288 * needed to initialize structure with GUI
1289 *----------------------------------------------------------------------------*/
1290
1293
1294/*----------------------------------------------------------------------------
1295 * Provide access to cs_lagr_brownian_t
1296 *
1297 * needed to initialize structure with GUI
1298 *----------------------------------------------------------------------------*/
1299
1302
1303/*----------------------------------------------------------------------------*/
1309/*----------------------------------------------------------------------------*/
1310
1313
1314/*----------------------------------------------------------------------------*/
1320/*----------------------------------------------------------------------------*/
1321
1324
1325/*----------------------------------------------------------------------------*/
1333/*----------------------------------------------------------------------------*/
1334
1337
1338/*----------------------------------------------------------------------------*/
1342/*----------------------------------------------------------------------------*/
1343
1344void
1346
1347/*----------------------------------------------------------------------------
1348 * Destroy finalize the global cs_lagr_internal_condition_t structure.
1349 *----------------------------------------------------------------------------*/
1350
1351void
1353
1354/*----------------------------------------------------------------------------
1355 * Provide access to cs_lagr_boundary_interactions_t
1356 *
1357 * needed to initialize structure with GUI
1358 *----------------------------------------------------------------------------*/
1359
1362
1363/*----------------------------------------------------------------------------
1364 * Provide access to cs_lagr_extra_module_t
1365 *----------------------------------------------------------------------------*/
1366
1369
1370/*----------------------------------------------------------------------------
1371 * Prepare for execution of the Lagrangian model.
1372 *
1373 * This should be called before the fist call to cs_lagr_solve_time_step.
1374 *
1375 * parameters:
1376 * dt <-- time step (per cell)
1377 *----------------------------------------------------------------------------*/
1378
1379void
1381
1382/*----------------------------------------------------------------------------
1383 * Initialize lagrangian arrays
1384 *----------------------------------------------------------------------------*/
1385
1386void
1388
1389/*----------------------------------------------------------------------------
1390 * Free lagrangian arrays
1391 *----------------------------------------------------------------------------*/
1392
1393void
1394cs_lagr_finalize(void);
1395
1396/*----------------------------------------------------------------------------*/
1397
1398void
1399cs_lagr_initialize_extra(cs_lnum_t n_continuous_phases);
1400
1409/*----------------------------------------------------------------------------*/
1410
1411void
1412cs_lagr_add_fields(void);
1413
1414/*--------------------------------------------------------------------
1415 * Execute one time step of the Lagrangian model.
1416 *
1417 * This is the main function for that model.
1418 *
1419 * parameters:
1420 * itypfb <-- boundary face types
1421 * dt <-- time step (per cell)
1422 *-------------------------------------------------------------------- */
1423
1424void
1425cs_lagr_solve_time_step(const int itypfb[],
1426 const cs_real_t *dt);
1427
1428/*----------------------------------------------------------------------------*/
1429
1431
1432#endif /* __CS_LAGR_H__ */
#define BEGIN_C_DECLS
Definition: cs_defs.h:554
double cs_real_t
Floating-point value.
Definition: cs_defs.h:357
cs_real_t cs_real_3_t[3]
vector of 3 floating-point values
Definition: cs_defs.h:374
unsigned cs_gnum_t
global mesh entity number
Definition: cs_defs.h:342
cs_real_t cs_real_6_t[6]
vector of 6 floating-point values
Definition: cs_defs.h:376
#define END_C_DECLS
Definition: cs_defs.h:555
cs_real_t cs_real_33_t[3][3]
3x3 matrix of floating-point values
Definition: cs_defs.h:383
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:350
@ dt
Definition: cs_field_pointer.h:65
cs_lagr_source_terms_t * cs_glob_lagr_source_terms
void cs_lagr_finalize_internal_cond(void)
Definition: cs_lagr.cpp:1634
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:1195
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:1396
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:1731
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:1520
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:1554
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:1652
cs_lagr_particle_counter_t * cs_lagr_get_particle_counter(void)
Get read/write pointer to global particle counter.
Definition: cs_lagr.cpp:1295
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:1663
cs_lagr_shape_model_t * cs_get_lagr_shape_model(void)
Definition: cs_lagr.cpp:1420
cs_lagr_fragmentation_model_t * cs_glob_lagr_fragmentation_model
cs_lagr_brownian_t * cs_get_lagr_brownian(void)
Definition: cs_lagr.cpp:1504
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:1073
void cs_lagr_init_arrays(void)
Definition: cs_lagr.cpp:979
cs_lagr_agglomeration_model_t * cs_get_lagr_agglomeration_model(void)
Definition: cs_lagr.cpp:1432
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:1468
void cs_lagr_solve_initialize(const cs_real_t *dt)
Definition: cs_lagr.cpp:1678
void cs_lagr_injection_set_default(cs_lagr_injection_set_t *zis)
Initialize injection set data structure fields to defaults.
Definition: cs_lagr.cpp:1222
cs_lagr_consolidation_model_t * cs_get_lagr_consolidation_model(void)
Definition: cs_lagr.cpp:1444
void cs_lagr_initialize_extra(cs_lnum_t n_continuous_phases)
Definition: cs_lagr.cpp:969
@ 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_clogging_model_t * cs_get_lagr_clogging_model(void)
Definition: cs_lagr.cpp:1408
cs_lagr_particle_counter_t * cs_lagr_update_particle_counter(void)
Update global particle counter.
Definition: cs_lagr.cpp:1312
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:1369
cs_lagr_encrustation_t * cs_get_lagr_encrustation(void)
Definition: cs_lagr.cpp:1480
cs_lagr_time_step_t * cs_get_lagr_time_step(void)
Definition: cs_lagr.cpp:1456
void cs_lagr_map_specific_physics(void)
Map specific phyical model features to Lagrangian structures.
Definition: cs_lagr.cpp:1160
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:1492
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:1602
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:1383
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:1578
cs_lagr_dim_t * cs_glob_lagr_dim
void cs_lagr_finalize(void)
Definition: cs_lagr.cpp:995
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
Field descriptor.
Definition: cs_field.h:156
Definition: cs_lagr.h:548
cs_real_t base_diameter
Definition: cs_lagr.h:554
cs_real_t scalar_kernel
Definition: cs_lagr.h:553
cs_real_t max_stat_weight
Definition: cs_lagr.h:552
cs_lnum_t n_max_classes
Definition: cs_lagr.h:550
cs_real_t min_stat_weight
Definition: cs_lagr.h:551
Definition: cs_lagr.h:864
int iclogt
Definition: cs_lagr.h:903
int inclg
Definition: cs_lagr.h:897
int has_part_impact_nbr
Definition: cs_lagr.h:886
char ** nombrd
Definition: cs_lagr.h:937
int npstft
Definition: cs_lagr.h:881
int ihdepm
Definition: cs_lagr.h:912
int inclgt
Definition: cs_lagr.h:900
int inbr
Definition: cs_lagr.h:894
int iscovc
Definition: cs_lagr.h:909
int npstf
Definition: cs_lagr.h:873
cs_real_t tstatp
Definition: cs_lagr.h:929
int ihsum
Definition: cs_lagr.h:921
int iclgst
Definition: cs_lagr.h:891
int iclogh
Definition: cs_lagr.h:906
int ihdepv
Definition: cs_lagr.h:915
int ihdiam
Definition: cs_lagr.h:918
Definition: cs_lagr.h:855
int lamvbr
Definition: cs_lagr.h:857
Definition: cs_lagr.h:527
cs_real_t jamlim
Definition: cs_lagr.h:529
cs_real_t diam_mean
Definition: cs_lagr.h:532
cs_real_t mporos
Definition: cs_lagr.h:530
cs_real_t csthpp
Definition: cs_lagr.h:531
Definition: cs_lagr.h:572
cs_real_t force_consol
Definition: cs_lagr.h:577
cs_real_t slope_consol
Definition: cs_lagr.h:576
cs_lnum_t iconsol
Definition: cs_lagr.h:574
cs_real_t rate_consol
Definition: cs_lagr.h:575
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:792
cs_real_t * visref
Definition: cs_lagr.h:816
cs_real_t dnpenc
Definition: cs_lagr.h:819
int iencra
Definition: cs_lagr.h:797
cs_real_t * tprenc
Definition: cs_lagr.h:811
cs_real_t * enc2
Definition: cs_lagr.h:806
int npencr
Definition: cs_lagr.h:800
cs_real_t * enc1
Definition: cs_lagr.h:804
Definition: cs_lagr.h:944
cs_real_3_t * grad_lagr_time_r_et
Definition: cs_lagr.h:1067
cs_field_t * scal_t
Definition: cs_lagr.h:990
cs_real_3_t * grad_tempf
Definition: cs_lagr.h:1045
cs_field_t * cvar_gradrij
Definition: cs_lagr.h:1036
cs_field_t * vel
Definition: cs_lagr.h:1000
int itytur
Definition: cs_lagr.h:950
cs_field_t * cpro_cp
Definition: cs_lagr.h:1009
int turb_model
Definition: cs_lagr.h:951
cs_field_t * cvar_omg
Definition: cs_lagr.h:1030
cs_real_3_t * grad_lagr_time
Definition: cs_lagr.h:1051
cs_field_t * viscl
Definition: cs_lagr.h:1003
cs_field_t * rad_energy
Definition: cs_lagr.h:1012
cs_field_t * x_eau
Definition: cs_lagr.h:1016
cs_field_t * tstar
Definition: cs_lagr.h:981
cs_field_t * cvar_ep
Definition: cs_lagr.h:1027
cs_field_t * lagr_time
Definition: cs_lagr.h:1048
cs_field_t * alpha
Definition: cs_lagr.h:978
cs_real_3_t * anisotropic_lagr_time
Definition: cs_lagr.h:1060
cs_field_t * x_oxyd
Definition: cs_lagr.h:1015
int ncharb
Definition: cs_lagr.h:954
int n_phases
Definition: cs_lagr.h:946
cs_field_t * pressure
Definition: cs_lagr.h:987
cs_real_3_t * anisotropic_bx
Definition: cs_lagr.h:1063
cs_real_33_t * grad_vel
Definition: cs_lagr.h:1042
cs_field_t * temperature
Definition: cs_lagr.h:991
cs_real_t cmu
Definition: cs_lagr.h:966
cs_real_3_t * grad_pr
Definition: cs_lagr.h:1039
cs_field_t * cvar_k
Definition: cs_lagr.h:1021
cs_field_t * x_m
Definition: cs_lagr.h:1017
cs_field_t * temperature_turbulent_flux
Definition: cs_lagr.h:997
cs_field_t * ustar
Definition: cs_lagr.h:975
cs_field_t * temperature_variance
Definition: cs_lagr.h:994
int icp
Definition: cs_lagr.h:963
cs_field_t * cromf
Definition: cs_lagr.h:984
cs_field_t * cpro_viscls
Definition: cs_lagr.h:1006
int radiative_model
Definition: cs_lagr.h:960
cs_field_t * cvar_gradk
Definition: cs_lagr.h:1024
int ncharm
Definition: cs_lagr.h:957
cs_field_t * cvar_rij
Definition: cs_lagr.h:1033
cs_real_t visls0
Definition: cs_lagr.h:969
int iturb
Definition: cs_lagr.h:949
Definition: cs_lagr.h:561
cs_real_t base_diameter
Definition: cs_lagr.h:564
cs_real_t scalar_kernel
Definition: cs_lagr.h:563
Definition: cs_lagr.h:597
cs_real_t diameter_variance
Definition: cs_lagr.h:641
cs_real_t density
Definition: cs_lagr.h:657
int injection_frequency
Definition: cs_lagr.h:606
int temperature_profile
Definition: cs_lagr.h:624
cs_real_t shape
Definition: cs_lagr.h:643
cs_real_t velocity_magnitude
Definition: cs_lagr.h:635
int velocity_profile
Definition: cs_lagr.h:619
cs_real_t cp
Definition: cs_lagr.h:661
cs_lagr_injection_profile_compute_t * injection_profile_func
Definition: cs_lagr.h:610
cs_real_t diameter
Definition: cs_lagr.h:640
cs_gnum_t n_inject
Definition: cs_lagr.h:603
int cluster
Definition: cs_lagr.h:630
int location_id
Definition: cs_lagr.h:601
cs_real_t fouling_index
Definition: cs_lagr.h:659
int coal_number
Definition: cs_lagr.h:626
void * injection_profile_input
Definition: cs_lagr.h:613
cs_real_t flow_rate
Definition: cs_lagr.h:665
int zone_id
Definition: cs_lagr.h:599
int set_id
Definition: cs_lagr.h:600
int aggregat_class_id
Definition: cs_lagr.h:632
cs_real_t emissivity
Definition: cs_lagr.h:667
cs_real_t stat_weight
Definition: cs_lagr.h:663
cs_real_t temperature
Definition: cs_lagr.h:638
cs_real_t aggregat_fractal_dim
Definition: cs_lagr.h:633
Definition: cs_lagr.h:783
int * i_face_zone_id
Definition: cs_lagr.h:785
Definition: cs_lagr.h:273
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:359
Definition: cs_lagr.h:366
cs_gnum_t n_g_cumulative_total
Definition: cs_lagr.h:370
cs_real_t w_exit
Definition: cs_lagr.h:407
cs_gnum_t n_g_new
Definition: cs_lagr.h:380
cs_gnum_t n_g_resuspended
Definition: cs_lagr.h:395
cs_gnum_t n_g_exit
Definition: cs_lagr.h:383
cs_real_t w_fouling
Definition: cs_lagr.h:416
cs_real_t w_total
Definition: cs_lagr.h:401
cs_gnum_t n_g_failed
Definition: cs_lagr.h:398
cs_gnum_t n_g_fouling
Definition: cs_lagr.h:392
cs_gnum_t n_g_total
Definition: cs_lagr.h:377
cs_real_t w_resuspended
Definition: cs_lagr.h:419
cs_real_t w_deposited
Definition: cs_lagr.h:413
cs_gnum_t n_g_merged
Definition: cs_lagr.h:386
cs_gnum_t n_g_cumulative_failed
Definition: cs_lagr.h:374
cs_real_t w_merged
Definition: cs_lagr.h:410
cs_gnum_t n_g_deposited
Definition: cs_lagr.h:389
cs_real_t w_new
Definition: cs_lagr.h:404
Definition: cs_lagr.h:826
cs_real_t cstham
Definition: cs_lagr.h:829
cs_real_t fion
Definition: cs_lagr.h:848
cs_real_t phi_s
Definition: cs_lagr.h:842
cs_real_t lambda_vdw
Definition: cs_lagr.h:833
cs_real_t epseau
Definition: cs_lagr.h:836
cs_real_t phi_p
Definition: cs_lagr.h:839
cs_real_t valen
Definition: cs_lagr.h:845
Definition: cs_lagr.h:507
cs_real_t diameter
Definition: cs_lagr.h:512
int nbrclas
Definition: cs_lagr.h:510
cs_real_t * mp_diss
Definition: cs_lagr.h:520
cs_real_t rho
Definition: cs_lagr.h:514
int * nbprec
Definition: cs_lagr.h:516
cs_real_t * solub
Definition: cs_lagr.h:518
Definition: cs_lagr.h:485
int iflow
Definition: cs_lagr.h:493
cs_real_t denasp
Definition: cs_lagr.h:497
int ireent
Definition: cs_lagr.h:489
cs_real_t rayasp
Definition: cs_lagr.h:499
cs_real_t modyeq
Definition: cs_lagr.h:498
cs_real_t rayasg
Definition: cs_lagr.h:500
cs_real_t espasg
Definition: cs_lagr.h:496
Definition: cs_lagr.h:539
cs_real_t param_chmb
Definition: cs_lagr.h:541
Definition: cs_lagr.h:674
cs_real_t * volm
Definition: cs_lagr.h:727
int npts
Definition: cs_lagr.h:711
cs_real_t * t_st_k
Definition: cs_lagr.h:739
int ltsmas
Definition: cs_lagr.h:685
cs_real_t vmax
Definition: cs_lagr.h:718
cs_real_t tmamax
Definition: cs_lagr.h:721
int ltsthe
Definition: cs_lagr.h:693
cs_real_t * volp
Definition: cs_lagr.h:724
cs_real_3_t * t_st_vel
Definition: cs_lagr.h:733
cs_real_t * t_st_t_e
Definition: cs_lagr.h:745
cs_real_6_t * t_st_rij
Definition: cs_lagr.h:742
int ntxerr
Definition: cs_lagr.h:715
cs_real_t * t_st_imp_vel
Definition: cs_lagr.h:736
int ltsdyn
Definition: cs_lagr.h:679
int nstits
Definition: cs_lagr.h:708
cs_real_t * t_st_t_i
Definition: cs_lagr.h:748
cs_real_t * t_st_p
Definition: cs_lagr.h:730
Definition: cs_lagr.h:426
int solve_temperature
Definition: cs_lagr.h:441
int solve_temperature_seen
Definition: cs_lagr.h:433
int itpvar
Definition: cs_lagr.h:442
cs_real_t tpart
Definition: cs_lagr.h:468
cs_real_t cppart
Definition: cs_lagr.h:478
int idpvar
Definition: cs_lagr.h:450
int impvar
Definition: cs_lagr.h:458
int solve_mass
Definition: cs_lagr.h:457
int solve_diameter
Definition: cs_lagr.h:449
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:584
cs_real_t dtp
Definition: cs_lagr.h:587
cs_real_t ttclag
Definition: cs_lagr.h:590
Definition: cs_lagr.h:755
int n_zones
Definition: cs_lagr.h:759
cs_lagr_injection_set_t ** injection_set
Definition: cs_lagr.h:764
char * elt_type
Definition: cs_lagr.h:767
cs_real_t * particle_mass_flow
Definition: cs_lagr.h:770
int * zone_type
Definition: cs_lagr.h:760
int location_id
Definition: cs_lagr.h:757
cs_real_t * particle_heat_flow
Definition: cs_lagr.h:774
int * n_injection_sets
Definition: cs_lagr.h:762