9.0
general documentation
Loading...
Searching...
No Matches
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
97
99/*---------------------------------------*/
100
101enum {
106};
107
121
128
130/*---------------------------------*/
131
132typedef enum {
133
136
139
140 /*< Impose spheroids (Jeffery equations for transport) */
142
144
146/*---------------------------------------*/
147
148enum {
153};
154
156/*----------------------*/
157
158typedef struct {
159
160 int nusbrd;
162
163 int ndlaim;
164
166 int nlayer;
167
169
171/*---------------------*/
172
173typedef struct {
174
176
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
258
260/*-----------------------------------------------------------*/
261
262typedef struct {
263
278
283
292
298
304
308
309 int dlvo;
310
314
318
322
326 int shape;
327
331
334
338
342
344
346
349
351
353/*----------------------------------------------*/
354
411
413/* ---------------------------------------------------------- */
414
415typedef struct {
416
417 /* activation (=1) or not (=0) of an evolution equation on the particle
418 temperature seen (in degrees Celsius).
419 Useful if \ref physical_model=1 and if there is a thermal scalar
420 associated with the continuous phase.
421 */
423
424 /* activation (=1) or not (=0) of an evolution equation on the particle
425 temperature (in degrees Celsius).
426 Useful if \ref physical_model=1 and if there is a thermal scalar
427 associated with the continuous phase.
428 */
430
431 /* activation (=1) or not (=0) of an evolution equation on the particle
432 diameter. Useful if \ref physical_model = 1.
433 */
435
436 /* activation (=1) or not (=0) of an evolution equation on the particle mass
437 Useful if \ref physical_model = 1
438 */
440
441 /* initialization temperature (in degree Celsius) for the particles already
442 present in the calculation domain when an evolution equation on
443 the particle temperature is activated during a calculation
444 (\ref physical_model = 1 and \ref itpvar = 1).
445 Useful if \ref isuila = 1 and \ref itpvar = 0 in the previous calculation.
446 */
448
449 /* initialization value for the specific heat (\f$ J.kg^{-1}.K^{-1} \f$)
450 of the particles already present
451 in the calculation domain when an evolution equation
452 on the particle temperature is activated during a calculation
453 (\ref physical_model = 1 and \ref itpvar = 1).
454 Useful if \ref isuila = 1 and \ref itpvar = 0 in the previous calculation
455 */
457
459
461/* -------------------------------------- */
462
463typedef struct {
464
465 /* - 0: no resuspension model
466 - 1: resuspension model */
468
469 /* - 0: no head losses calculation for influence of the deposit on the flow
470 - 1: head losses calculation for influence of the deposit on the flow */
471 int iflow;
472
473 /* Parameters of the particle resuspension model*/
479
481
483/* -------------------------------------- */
484
485typedef struct {
486
487 /* number of particle classes*/
489 /* diameter of particles formed by precipitation*/
491 /* density of particles formed by precipitation*/
493 /* number of precipitated particles */
494 int *nbprec;
495 /* */
497 /* number of precipitated particles */
499
501
503/* ------------------------------------------ */
504
513
515/* ------------------------------------------------ */
516
517typedef struct {
518
520
522
524/* ------------------------------------------ */
525
535
537/* ------------------------------------------ */
538
546
548/* ----------------------------------------------- */
549
558
560/*----------------------------------*/
561
562typedef struct {
563
564 /* current step id (for 2nd order scheme) */
565 int nor;
566
567 /* duration of a Lagrangian iteration */
569
570 /* physical time of the Lagrangian simulation */
572
574
576/*------------------------------------------------------------------*/
577
651
653/*----------------------------------------------*/
654
655typedef struct {
656
661
667
668 /* if \ref physical_model = 1 and \ref itpvar = 1, \ref ltsthe
669 activates (=1) or not (=0) the two-way coupling on temperature.
670 if \ref physical_model = 2, \ref ltsthe activates (=1) or not (=0) the
671 two-way coupling on the eulerian variables related to pulverised
672 coal combustion.
673 Useful if \ref iilagr = CS_LAGR_TWOWAY_COUPLING */
675
690
692 int npts;
693
697
700
703
705
707/*----------------------------------------------------*/
708
729
731/*---------------------------------------*/
732
733typedef struct {
734
736
738
740/*--------------------------------*/
741
742typedef struct {
743
744 /* Activates (=1) or not (=0) the option of coal particle fouling.
745 It then is necessary to specify the domain boundaries
746 on which fouling may take place. Useful if \ref physical_model = 2*/
748
749 /* encrustation data*/
751 // TODO cf particles->n_part_fou in cs_lagr_tracking.c
752
753 /* encrustation data*/
754 cs_real_t *enc1; // size: ncharm2
755 /* encrustation data*/
756 cs_real_t *enc2; // size: ncharm2
757
758 /* Limit temperature (in degree Celsius) below which the coal particles do
759 not cause any fouling (if the fouling model is activated).
760 Useful if \ref physical_model = 2 and \ref iencra = 1*/
761 cs_real_t *tprenc; // size: ncharm2
762
763 /* Ash critical viscosity in \f$ kg.m^{-1}.s^{-1} \f$, in the fouling model
764 cf J.D. Watt et T. Fereday (J.Inst.Fuel, Vol.42-p99).
765 Useful if \ref physical_model = 2 and \ref iencra = 1*/
766 cs_real_t *visref; // size: ncharm2
767
768 /* encrustation data */
770
772
774/*-----------------------------------------*/
775
801
803/*-------------------------------*/
804
805typedef struct {
806
807 int lamvbr;
808
810
812/*----------------------------------------------*/
813
814typedef struct {
815
823 int npstf;
824
832
837
842
844 int inbr;
845
847 int inclg;
848
851
854
857
860
861 /* id for mean of particle deposition height */
863
864 /* id for variance of particle deposition height */
866
867 /* id for mean diameter of deposited particles */
869
870 /* id for sum of deposited particle diameters */
871 int ihsum;
872
880
887 char **nombrd;
888
890
892/*-----------------------------------------------*/
893
894typedef struct {
895 /* number of carrier phases */
897
898 /* Turbulence model */
899 int iturb;
902
903 /* cpincl */
905
906 /* ppppar */
908
909 /* radiation */
911
912 /* icp */
913 int icp;
914
915 /* cmu */
917
918 /* visls0 */
920
921 /* Referenced fields
922 ----------------- */
923
924 /* wall ustar */
926
927 /* alpha: fluid volume fraction */
929
930 /* wall tstar */
932
933 /* Fluid density */
935
936 /* Fluid pressure */
938
939 /* Fluid temperature */
942
943 /* Fluid temperature variance */
945
946 /* Turbulent heat flux */
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 /* gradient turbulent intensity */
975
976 /* Turbulent dissipation */
978
979 /* Omega from k-omega SST model*/
981
982 /* Reynolds Stress Tensor */
984
985 /* Reynolds gradient Stress Tensor */
987
988 /* Total pressure gradient */
990
991 /* velocity gradient */
993
994 /* fluid temperature gradient */
996
997 /* Lagrangian time field */
999
1000 /* Lagrangian time gradient */
1002
1003 /* fluid seen/fluid seen covariance gradient */
1005
1006 /* fluid seen/particle velocity covariance gradient */
1008
1010
1011/*============================================================================
1012 * Global variables
1013 *============================================================================*/
1014
1016
1018
1020
1022
1025
1028
1031
1032/* Lagrangian log output every frequency_n time steps */
1033
1035
1036/* Statisics on boundaries */
1037
1038extern cs_real_t *bound_stat;
1039
1045
1048
1056
1058
1062
1063/* Projection matrices for global to local coordinates on boundary faces */
1065
1066/*============================================================================
1067 * Public function prototypes
1068 *============================================================================*/
1069
1070/*----------------------------------------------------------------------------*/
1074/*----------------------------------------------------------------------------*/
1075
1076void
1078
1079/*----------------------------------------------------------------------------*/
1092/*----------------------------------------------------------------------------*/
1093
1096 int zone_id,
1097 int set_id);
1098
1099/*----------------------------------------------------------------------------*/
1105/*----------------------------------------------------------------------------*/
1106
1107void
1109
1110/*----------------------------------------------------------------------------*/
1116/*----------------------------------------------------------------------------*/
1117
1120
1121/*----------------------------------------------------------------------------*/
1130/*----------------------------------------------------------------------------*/
1131
1134
1135/*----------------------------------------------------------------------------
1136 * Provide access to cs_lagr_particle_counter_t
1137 *
1138 * needed to initialize structure with GUI
1139 *----------------------------------------------------------------------------*/
1140
1143
1144/*----------------------------------------------------------------------------
1145 * Provide access to cs_lagr_reentrained_model_t
1146 *
1147 * needed to initialize structure with GUI
1148 *----------------------------------------------------------------------------*/
1149
1152
1153/*----------------------------------------------------------------------------
1154 * Provide access to cs_lagr_precipitation_model_t
1155 *
1156 * needed to initialize structure with GUI
1157 *----------------------------------------------------------------------------*/
1158
1161
1162/*----------------------------------------------------------------------------
1163 * Provide access to cs_lagr_clogging_model_t
1164 *
1165 * needed to initialize structure with GUI
1166 *----------------------------------------------------------------------------*/
1167
1170
1171/*----------------------------------------------------------------------------
1172 * Provide access to cs_lagr_shape_model_t
1173 *
1174 * needed to initialize structure with GUI
1175 *----------------------------------------------------------------------------*/
1176
1179
1180/*----------------------------------------------------------------------------
1181 * Provide access to cs_lagr_agglomeration_model_t
1182 *
1183 * needed to initialize structure with GUI
1184 *----------------------------------------------------------------------------*/
1185
1188
1189/*----------------------------------------------------------------------------
1190 * Provide access to cs_lagr_consolidation_model_t
1191 *
1192 * needed to initialize structure with GUI
1193 *----------------------------------------------------------------------------*/
1194
1197
1198/*----------------------------------------------------------------------------
1199 * Provide access to cs_lagr_time_step_t
1200 *
1201 * needed to initialize structure with GUI
1202 *----------------------------------------------------------------------------*/
1203
1206
1207/*----------------------------------------------------------------------------
1208 * Provide access to cs_lagr_source_terms_t
1209 *
1210 * needed to initialize structure with GUI
1211 *----------------------------------------------------------------------------*/
1212
1215
1216/*----------------------------------------------------------------------------
1217 * Provide access to cs_lagr_encrustation_t
1218 *
1219 * needed to initialize structure with GUI
1220 *----------------------------------------------------------------------------*/
1221
1224
1225/*----------------------------------------------------------------------------
1226 * Provide access to cs_lagr_physico_chemical_t
1227 *
1228 * needed to initialize structure with GUI
1229 *----------------------------------------------------------------------------*/
1230
1233
1234/*----------------------------------------------------------------------------
1235 * Provide access to cs_lagr_brownian_t
1236 *
1237 * needed to initialize structure with GUI
1238 *----------------------------------------------------------------------------*/
1239
1242
1243/*----------------------------------------------------------------------------*/
1249/*----------------------------------------------------------------------------*/
1250
1253
1254/*----------------------------------------------------------------------------*/
1260/*----------------------------------------------------------------------------*/
1261
1264
1265/*----------------------------------------------------------------------------*/
1273/*----------------------------------------------------------------------------*/
1274
1277
1278/*----------------------------------------------------------------------------*/
1282/*----------------------------------------------------------------------------*/
1283
1284void
1286
1287/*----------------------------------------------------------------------------
1288 * Destroy finalize the global cs_lagr_internal_condition_t structure.
1289 *----------------------------------------------------------------------------*/
1290
1291void
1293
1294/*----------------------------------------------------------------------------
1295 * Provide access to cs_lagr_boundary_interactions_t
1296 *
1297 * needed to initialize structure with GUI
1298 *----------------------------------------------------------------------------*/
1299
1302
1303/*----------------------------------------------------------------------------
1304 * Provide access to cs_lagr_extra_module_t
1305 *----------------------------------------------------------------------------*/
1306
1309
1310/*----------------------------------------------------------------------------
1311 * Prepare for execution of the Lagrangian model.
1312 *
1313 * This should be called before the fist call to cs_lagr_solve_time_step.
1314 *
1315 * parameters:
1316 * dt <-- time step (per cell)
1317 *----------------------------------------------------------------------------*/
1318
1319void
1321
1322/*----------------------------------------------------------------------------
1323 * Initialize lagrangian arrays
1324 *----------------------------------------------------------------------------*/
1325
1326void
1328
1329/*----------------------------------------------------------------------------
1330 * Free lagrangian arrays
1331 *----------------------------------------------------------------------------*/
1332
1333void
1334cs_lagr_finalize(void);
1335
1336/*----------------------------------------------------------------------------*/
1337
1338void
1339cs_lagr_initialize_extra(cs_lnum_t n_continuous_phases);
1340
1349/*----------------------------------------------------------------------------*/
1350
1351void
1352cs_lagr_add_fields(void);
1353
1354/*--------------------------------------------------------------------
1355 * Execute one time step of the Lagrangian model.
1356 *
1357 * This is the main function for that model.
1358 *
1359 * parameters:
1360 * itypfb <-- boundary face types
1361 * dt <-- time step (per cell)
1362 *-------------------------------------------------------------------- */
1363
1364void
1365cs_lagr_solve_time_step(const int itypfb[],
1366 const cs_real_t *dt);
1367
1368/*----------------------------------------------------------------------------*/
1369
1371
1372#endif /* __CS_LAGR_H__ */
cs_real_t cs_real_33_t[3][3]
3x3 matrix of floating-point values
Definition cs_defs.h:368
#define BEGIN_C_DECLS
Definition cs_defs.h:542
double cs_real_t
Floating-point value.
Definition cs_defs.h:342
unsigned cs_gnum_t
global mesh entity number
Definition cs_defs.h:327
#define END_C_DECLS
Definition cs_defs.h:543
int cs_lnum_t
local mesh entity id
Definition cs_defs.h:335
cs_real_t cs_real_3_t[3]
vector of 3 floating-point values
Definition cs_defs.h:359
@ 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:1603
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:1165
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:1366
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:1700
const cs_lagr_const_dim_t * cs_glob_lagr_const_dim
@ 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_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:1490
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:1524
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:1621
cs_lagr_particle_counter_t * cs_lagr_get_particle_counter(void)
Get read/write pointer to global particle counter.
Definition cs_lagr.cpp:1265
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:1632
cs_lagr_shape_model_t * cs_get_lagr_shape_model(void)
Definition cs_lagr.cpp:1390
cs_lagr_fragmentation_model_t * cs_glob_lagr_fragmentation_model
cs_lagr_brownian_t * cs_get_lagr_brownian(void)
Definition cs_lagr.cpp:1474
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:1043
void cs_lagr_init_arrays(void)
Definition cs_lagr.cpp:951
cs_lagr_agglomeration_model_t * cs_get_lagr_agglomeration_model(void)
Definition cs_lagr.cpp:1402
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:1438
void cs_lagr_solve_initialize(const cs_real_t *dt)
Definition cs_lagr.cpp:1647
void cs_lagr_injection_set_default(cs_lagr_injection_set_t *zis)
Initialize injection set data structure fields to defaults.
Definition cs_lagr.cpp:1192
cs_lagr_consolidation_model_t * cs_get_lagr_consolidation_model(void)
Definition cs_lagr.cpp:1414
void cs_lagr_initialize_extra(cs_lnum_t n_continuous_phases)
Definition cs_lagr.cpp:941
cs_lagr_clogging_model_t * cs_get_lagr_clogging_model(void)
Definition cs_lagr.cpp:1378
cs_lagr_particle_counter_t * cs_lagr_update_particle_counter(void)
Update global particle counter.
Definition cs_lagr.cpp:1282
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:1339
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_encrustation_t * cs_get_lagr_encrustation(void)
Definition cs_lagr.cpp:1450
@ 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_time_step_t * cs_get_lagr_time_step(void)
Definition cs_lagr.cpp:1426
void cs_lagr_map_specific_physics(void)
Map specific phyical model features to Lagrangian structures.
Definition cs_lagr.cpp:1130
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:1462
cs_real_33_t * cs_glob_lagr_b_face_proj
void cs_lagr_finalize_zone_conditions(void)
Finalize the global boundary and volume condition structures.
Definition cs_lagr.cpp:1572
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:1353
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:1548
cs_lagr_dim_t * cs_glob_lagr_dim
void cs_lagr_finalize(void)
Definition cs_lagr.cpp:968
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:158
Definition cs_lagr.h:526
cs_real_t base_diameter
Definition cs_lagr.h:532
cs_real_t scalar_kernel
Definition cs_lagr.h:531
cs_real_t max_stat_weight
Definition cs_lagr.h:530
cs_lnum_t n_max_classes
Definition cs_lagr.h:528
cs_real_t min_stat_weight
Definition cs_lagr.h:529
Definition cs_lagr.h:814
int iclogt
Definition cs_lagr.h:853
int inclg
Definition cs_lagr.h:847
int has_part_impact_nbr
Definition cs_lagr.h:836
char ** nombrd
Definition cs_lagr.h:887
int npstft
Definition cs_lagr.h:831
int ihdepm
Definition cs_lagr.h:862
int inclgt
Definition cs_lagr.h:850
int inbr
Definition cs_lagr.h:844
int iscovc
Definition cs_lagr.h:859
int npstf
Definition cs_lagr.h:823
cs_real_t tstatp
Definition cs_lagr.h:879
int ihsum
Definition cs_lagr.h:871
int iclgst
Definition cs_lagr.h:841
int iclogh
Definition cs_lagr.h:856
int ihdepv
Definition cs_lagr.h:865
int ihdiam
Definition cs_lagr.h:868
Definition cs_lagr.h:805
int lamvbr
Definition cs_lagr.h:807
Definition cs_lagr.h:505
cs_real_t jamlim
Definition cs_lagr.h:507
cs_real_t diam_mean
Definition cs_lagr.h:510
cs_real_t mporos
Definition cs_lagr.h:508
cs_real_t csthpp
Definition cs_lagr.h:509
Definition cs_lagr.h:550
cs_real_t force_consol
Definition cs_lagr.h:555
cs_real_t slope_consol
Definition cs_lagr.h:554
cs_lnum_t iconsol
Definition cs_lagr.h:552
cs_real_t rate_consol
Definition cs_lagr.h:553
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:742
cs_real_t * visref
Definition cs_lagr.h:766
cs_real_t dnpenc
Definition cs_lagr.h:769
int iencra
Definition cs_lagr.h:747
cs_real_t * tprenc
Definition cs_lagr.h:761
cs_real_t * enc2
Definition cs_lagr.h:756
int npencr
Definition cs_lagr.h:750
cs_real_t * enc1
Definition cs_lagr.h:754
Definition cs_lagr.h:894
cs_field_t * scal_t
Definition cs_lagr.h:940
cs_real_3_t * grad_tempf
Definition cs_lagr.h:995
cs_field_t * cvar_gradrij
Definition cs_lagr.h:986
cs_field_t * vel
Definition cs_lagr.h:950
int itytur
Definition cs_lagr.h:900
cs_field_t * cpro_cp
Definition cs_lagr.h:959
int turb_model
Definition cs_lagr.h:901
cs_field_t * cvar_omg
Definition cs_lagr.h:980
cs_real_3_t * grad_lagr_time
Definition cs_lagr.h:1001
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 * tstar
Definition cs_lagr.h:931
cs_field_t * cvar_ep
Definition cs_lagr.h:977
cs_field_t * lagr_time
Definition cs_lagr.h:998
cs_field_t * alpha
Definition cs_lagr.h:928
cs_field_t * x_oxyd
Definition cs_lagr.h:965
int ncharb
Definition cs_lagr.h:904
int n_phases
Definition cs_lagr.h:896
cs_field_t * pressure
Definition cs_lagr.h:937
cs_real_33_t * grad_vel
Definition cs_lagr.h:992
cs_real_3_t * grad_cov_skp[9]
Definition cs_lagr.h:1004
cs_field_t * temperature
Definition cs_lagr.h:941
cs_real_t cmu
Definition cs_lagr.h:916
cs_real_3_t * grad_pr
Definition cs_lagr.h:989
cs_field_t * cvar_k
Definition cs_lagr.h:971
cs_field_t * x_m
Definition cs_lagr.h:967
cs_field_t * temperature_turbulent_flux
Definition cs_lagr.h:947
cs_real_3_t * grad_cov_sk[6]
Definition cs_lagr.h:1007
cs_field_t * ustar
Definition cs_lagr.h:925
cs_field_t * temperature_variance
Definition cs_lagr.h:944
int icp
Definition cs_lagr.h:913
cs_field_t * cromf
Definition cs_lagr.h:934
cs_field_t * cpro_viscls
Definition cs_lagr.h:956
int radiative_model
Definition cs_lagr.h:910
cs_field_t * cvar_gradk
Definition cs_lagr.h:974
int ncharm
Definition cs_lagr.h:907
cs_field_t * cvar_rij
Definition cs_lagr.h:983
cs_real_t visls0
Definition cs_lagr.h:919
int iturb
Definition cs_lagr.h:899
Definition cs_lagr.h:539
cs_real_t base_diameter
Definition cs_lagr.h:542
cs_real_t scalar_kernel
Definition cs_lagr.h:541
cs_real_t(* function_kernel)(cs_lnum_t)
Definition cs_lagr.h:543
Definition cs_lagr.h:578
cs_real_t diameter_variance
Definition cs_lagr.h:622
cs_real_t density
Definition cs_lagr.h:638
int injection_frequency
Definition cs_lagr.h:587
int temperature_profile
Definition cs_lagr.h:605
cs_real_t shape
Definition cs_lagr.h:624
cs_real_t velocity_magnitude
Definition cs_lagr.h:616
int velocity_profile
Definition cs_lagr.h:600
cs_real_t shape_param[4]
Definition cs_lagr.h:633
cs_real_t cp
Definition cs_lagr.h:642
cs_lagr_injection_profile_compute_t * injection_profile_func
Definition cs_lagr.h:591
cs_real_t diameter
Definition cs_lagr.h:621
cs_gnum_t n_inject
Definition cs_lagr.h:584
cs_real_t radii[3]
Definition cs_lagr.h:627
cs_real_t velocity[3]
Definition cs_lagr.h:617
int cluster
Definition cs_lagr.h:611
int location_id
Definition cs_lagr.h:582
cs_real_t fouling_index
Definition cs_lagr.h:640
int coal_number
Definition cs_lagr.h:607
cs_real_t euler[4]
Definition cs_lagr.h:631
void * injection_profile_input
Definition cs_lagr.h:594
cs_real_t flow_rate
Definition cs_lagr.h:646
int zone_id
Definition cs_lagr.h:580
int set_id
Definition cs_lagr.h:581
int aggregat_class_id
Definition cs_lagr.h:613
cs_real_t emissivity
Definition cs_lagr.h:648
cs_real_t stat_weight
Definition cs_lagr.h:644
cs_real_t angular_vel[3]
Definition cs_lagr.h:628
cs_real_t temperature
Definition cs_lagr.h:619
cs_real_t aggregat_fractal_dim
Definition cs_lagr.h:614
cs_real_t orientation[3]
Definition cs_lagr.h:626
Definition cs_lagr.h:733
int * i_face_zone_id
Definition cs_lagr.h:735
Definition cs_lagr.h:262
int dlvo
Definition cs_lagr.h:309
int n_stat_classes
Definition cs_lagr.h:343
int cs_used
Definition cs_lagr.h:282
int deposition
Definition cs_lagr.h:307
int physical_model
Definition cs_lagr.h:276
int fragmentation
Definition cs_lagr.h:341
int roughness
Definition cs_lagr.h:313
int precipitation
Definition cs_lagr.h:332
int n_user_variables
Definition cs_lagr.h:345
int idistu
Definition cs_lagr.h:297
int shape
Definition cs_lagr.h:326
int fouling
Definition cs_lagr.h:333
int n_temperature_layers
Definition cs_lagr.h:277
int modcpl
Definition cs_lagr.h:291
int agglomeration
Definition cs_lagr.h:337
int consolidation
Definition cs_lagr.h:330
int resuspension
Definition cs_lagr.h:317
int clogging
Definition cs_lagr.h:321
int idiffl
Definition cs_lagr.h:303
bool viscous_terms
Definition cs_lagr.h:348
Definition cs_lagr.h:355
cs_gnum_t n_g_cumulative_total
Definition cs_lagr.h:359
cs_real_t w_exit
Definition cs_lagr.h:396
cs_gnum_t n_g_new
Definition cs_lagr.h:369
cs_gnum_t n_g_resuspended
Definition cs_lagr.h:384
cs_gnum_t n_g_exit
Definition cs_lagr.h:372
cs_real_t w_fouling
Definition cs_lagr.h:405
cs_real_t w_total
Definition cs_lagr.h:390
cs_gnum_t n_g_failed
Definition cs_lagr.h:387
cs_gnum_t n_g_fouling
Definition cs_lagr.h:381
cs_gnum_t n_g_total
Definition cs_lagr.h:366
cs_real_t w_resuspended
Definition cs_lagr.h:408
cs_real_t w_deposited
Definition cs_lagr.h:402
cs_gnum_t n_g_merged
Definition cs_lagr.h:375
cs_gnum_t n_g_cumulative_failed
Definition cs_lagr.h:363
cs_real_t w_merged
Definition cs_lagr.h:399
cs_gnum_t n_g_deposited
Definition cs_lagr.h:378
cs_real_t w_new
Definition cs_lagr.h:393
Definition cs_lagr.h:776
cs_real_t cstham
Definition cs_lagr.h:779
cs_real_t fion
Definition cs_lagr.h:798
cs_real_t phi_s
Definition cs_lagr.h:792
cs_real_t lambda_vdw
Definition cs_lagr.h:783
cs_real_t epseau
Definition cs_lagr.h:786
cs_real_t phi_p
Definition cs_lagr.h:789
cs_real_t valen
Definition cs_lagr.h:795
Definition cs_lagr.h:485
cs_real_t diameter
Definition cs_lagr.h:490
int nbrclas
Definition cs_lagr.h:488
cs_real_t * mp_diss
Definition cs_lagr.h:498
cs_real_t rho
Definition cs_lagr.h:492
int * nbprec
Definition cs_lagr.h:494
cs_real_t * solub
Definition cs_lagr.h:496
Definition cs_lagr.h:463
int iflow
Definition cs_lagr.h:471
cs_real_t denasp
Definition cs_lagr.h:475
int ireent
Definition cs_lagr.h:467
cs_real_t rayasp
Definition cs_lagr.h:477
cs_real_t modyeq
Definition cs_lagr.h:476
cs_real_t rayasg
Definition cs_lagr.h:478
cs_real_t espasg
Definition cs_lagr.h:474
Definition cs_lagr.h:517
cs_real_t param_chmb
Definition cs_lagr.h:519
Definition cs_lagr.h:655
int npts
Definition cs_lagr.h:692
int ltsmas
Definition cs_lagr.h:666
cs_real_t vmax
Definition cs_lagr.h:699
cs_real_t tmamax
Definition cs_lagr.h:702
int ltsthe
Definition cs_lagr.h:674
int ntxerr
Definition cs_lagr.h:696
int ltsdyn
Definition cs_lagr.h:660
int nstits
Definition cs_lagr.h:689
Definition cs_lagr.h:415
int solve_temperature_seen
Definition cs_lagr.h:422
int itpvar
Definition cs_lagr.h:429
cs_real_t tpart
Definition cs_lagr.h:447
cs_real_t cppart
Definition cs_lagr.h:456
int idpvar
Definition cs_lagr.h:434
int impvar
Definition cs_lagr.h:439
Definition cs_lagr.h:182
int interpol_field
Definition cs_lagr.h:228
int isttio
Definition cs_lagr.h:210
int ilapoi
Definition cs_lagr.h:235
int extended_t_scheme
Definition cs_lagr.h:224
int isuila
Definition cs_lagr.h:217
cs_real_t added_mass_const
Definition cs_lagr.h:255
int t_order
Definition cs_lagr.h:220
int iilagr
Definition cs_lagr.h:196
int iadded_mass
Definition cs_lagr.h:252
Definition cs_lagr.h:562
cs_real_t dtp
Definition cs_lagr.h:568
cs_real_t ttclag
Definition cs_lagr.h:571
int nor
Definition cs_lagr.h:565
Definition cs_lagr.h:709
int n_zones
Definition cs_lagr.h:713
cs_lagr_injection_set_t ** injection_set
Definition cs_lagr.h:718
char * elt_type
Definition cs_lagr.h:721
int * zone_type
Definition cs_lagr.h:714
int location_id
Definition cs_lagr.h:711
int * n_injection_sets
Definition cs_lagr.h:716
cs_real_t * particle_flow_rate
Definition cs_lagr.h:724