8.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-2023 EDF S.A.
12
13 This program is free software; you can redistribute it and/or modify it under
14 the terms of the GNU General Public License as published by the Free Software
15 Foundation; either version 2 of the License, or (at your option) any later
16 version.
17
18 This program is distributed in the hope that it will be useful, but WITHOUT
19 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
20 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
21 details.
22
23 You should have received a copy of the GNU General Public License along with
24 this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
25 Street, Fifth Floor, Boston, MA 02110-1301, USA.
26*/
27
28/*----------------------------------------------------------------------------*/
29
30#include "cs_defs.h"
31
32/*----------------------------------------------------------------------------
33 * Standard C library headers
34 *----------------------------------------------------------------------------*/
35
36#include "assert.h"
37
38/*----------------------------------------------------------------------------
39 * Local headers
40 *----------------------------------------------------------------------------*/
41
42#include "cs_base.h"
43#include "cs_field.h"
44
45#include "cs_lagr_injection.h"
46
47/*----------------------------------------------------------------------------*/
48
50
51/*============================================================================
52 * Type definitions
53 *============================================================================*/
54
55/*----------------------------------------------------------------------------*/
70/*----------------------------------------------------------------------------*/
71
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 {
152};
153
155/*----------------------*/
156
157typedef struct {
158
159 int nusbrd;
161
162 int ndlaim;
163
165 int nlayer;
166
168
170/*---------------------*/
171
172typedef struct {
173
174 int ntersl;
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
276
284
290
296
300
301 int dlvo;
302
306
310
314
318 int shape;
319
323
326
330
334
336
338
340
342/*----------------------------------------------*/
343
344typedef struct {
345
349
353
355 cs_gnum_t n_g_total;
356
358 cs_gnum_t n_g_new;
359
361 cs_gnum_t n_g_exit;
362
364 cs_gnum_t n_g_merged;
365
367 cs_gnum_t n_g_deposited;
368
370 cs_gnum_t n_g_fouling;
371
374
376 cs_gnum_t n_g_failed;
377
380
383
386
389
392
395
398
400
402/* ---------------------------------------------------------- */
403
404typedef struct {
405
406 /* activation (=1) or not (=0) of an evolution equation on the particle
407 temperature (in degrees Celsius).
408 Useful if \ref physical_model=1 and if there is a thermal scalar
409 associated with the continuous phase.
410 */
412
413 /* activation (=1) or not (=0) of an evolution equation on the particle
414 diameter. Useful if \ref physical_model = 1.
415 */
417
418 /* activation (=1) or not (=0) of an evolution equation on the particle mass
419 Useful if \ref physical_model = 1
420 */
422
423 /* initialization temperature (in degree Celsius) for the particles already
424 present in the calculation domain when an evolution equation on
425 the particle temperature is activated during a calculation
426 (\ref physical_model = 1 and \ref itpvar = 1).
427 Useful if \ref isuila = 1 and \ref itpvar = 0 in the previous calculation.
428 */
430
431 /* initialization value for the specific heat (\f$ J.kg^{-1}.K^{-1} \f$)
432 of the particles already present
433 in the calculation domain when an evolution equation
434 on the particle temperature is activated during a calculation
435 (\ref physical_model = 1 and \ref itpvar = 1).
436 Useful if \ref isuila = 1 and \ref itpvar = 0 in the previous calculation
437 */
439
441
443/* -------------------------------------- */
444
445typedef struct {
446
447 /* - 0: no resuspension model
448 - 1: resuspension model */
450
451 /* - 0: no head losses calculation for influence of the deposit on the flow
452 - 1: head losses calculation for influence of the deposit on the flow */
453 int iflow;
454
455 /* Parameters of the particle resuspension model*/
461
463
465/* -------------------------------------- */
466
467typedef struct {
468
469 /* number of particle classes*/
471 /* diameter of particles formed by precipitation*/
473 /* density of particles formed by precipitation*/
475 /* number of precipitated particles */
476 int *nbprec;
477 /* */
479 /* number of precipitated particles */
481
483
485/* ------------------------------------------ */
486
495
497/* ------------------------------------------------ */
498
499typedef struct {
500
502
504
506/* ------------------------------------------ */
507
517
519/* ------------------------------------------ */
520
528
530/* ----------------------------------------------- */
531
540
542/*----------------------------------*/
543
544typedef struct {
545
546 /* current step id (for 2nd order scheme) */
547 int nor;
548
549 /* duration of a Lagrangian iteration */
551
552 /* physical time of the Lagrangian simulation */
554
556
558/*------------------------------------------------------------------*/
559
633
635/*----------------------------------------------*/
636
637typedef struct {
638
643
649
650 /* if \ref physical_model = 1 and \ref itpvar = 1, \ref ltsthe
651 activates (=1) or not (=0) the two-way coupling on temperature.
652 if \ref physical_model = 2, \ref ltsthe activates (=1) or not (=0) the
653 two-way coupling on the eulerian variables related to pulverised
654 coal combustion.
655 Useful if \ref iilagr = CS_LAGR_TWOWAY_COUPLING */
657
660 int itsli;
661
662 /* explicit source term for the turbulent dissipation and the
663 turbulent energy if the \f$k-\varepsilon\f$ turbulence model is used
664 for the continuous phase */
665 int itske;
666
669 int itste;
670
673 int itsti;
674
677
678 /* source term for the light volatile matters */
679 int *itsmv1; //ncharm2
680
681 /* source term for the heavy volatile matters */
682 int *itsmv2; //ncharm2
683
685 int itsco;
686
689
704
706 int npts;
707
711
714
717
720
722
724/*----------------------------------------------------*/
725
746
748/*---------------------------------------*/
749
750typedef struct {
751
753
755
757/*--------------------------------*/
758
759typedef struct {
760
761 /* Activates (=1) or not (=0) the option of coal particle fouling.
762 It then is necessary to specify the domain boundaries
763 on which fouling may take place. Useful if \ref physical_model = 2*/
765
766 /* encrustation data*/
768 // TODO cf particles->n_part_fou in cs_lagr_tracking.c
769
770 /* encrustation data*/
771 cs_real_t *enc1; // size: ncharm2
772 /* encrustation data*/
773 cs_real_t *enc2; // size: ncharm2
774
775 /* Limit temperature (in degree Celsius) below which the coal particles do
776 not cause any fouling (if the fouling model is activated).
777 Useful if \ref physical_model = 2 and \ref iencra = 1*/
778 cs_real_t *tprenc; // size: ncharm2
779
780 /* Ash critical viscosity in \f$ kg.m^{-1}.s^{-1} \f$, in the fouling model
781 cf J.D. Watt et T. Fereday (J.Inst.Fuel, Vol.42-p99).
782 Useful if \ref physical_model = 2 and \ref iencra = 1*/
783 cs_real_t *visref; // size: ncharm2
784
785 /* encrustation data */
787
789
791/*-----------------------------------------*/
792
818
820/*-------------------------------*/
821
822typedef struct {
823
824 int lamvbr;
825
827
829/*----------------------------------------------*/
830
831typedef struct {
832
840 int npstf;
841
849
854
859
861 int inbr;
862
864 int inclg;
865
868
871
874
877
878 /* id for mean of particle deposition height */
880
881 /* id for variance of particle deposition height */
883
884 /* id for mean diameter of deposited particles */
886
887 /* id for sum of deposited particle diameters */
888 int ihsum;
889
897
904 char **nombrd;
905
907
909/*-----------------------------------------------*/
910
911typedef struct {
912
913 /* Turbulence model */
914 int iturb;
916
917 /* cpincl */
919
920 /* ppppar */
922
923 /* radiation */
925
926 /* icp */
927 int icp;
928
929 /* diftl0 */
931
932 /* cmu */
934
935 /* visls0 */
937
938 /* Referenced fields
939 ----------------- */
940
941 /* wall ustar */
943
944 /* Fluid density */
946
947 /* Fluid pressure */
949
950 /* Fluid temparature */
953
954 /* Fluid velocity */
956
957 /* Fluid viscosity */
959
960 /* Fluid viscosity */
962
963 /* Fluid specific heat capacity */
965
966 /* Radiat. */
968
969 /* Combustion */
973
974 /* Turbulence */
975 /* Turbulent intensity */
977
978 /* Turbulent dissipation */
980
981 /* Omega from k-omega SST model*/
983
984 /* Reynolds Stress Tensor */
986
987 /* Total pressure gradient */
989
990 /* velocity gradient */
992
993 /* Lagrangian time field */
995
996 /* Lagrangian time gradient */
998
1000
1002/*--------------------------------------------*/
1003
1004typedef struct {
1005
1006 int ih2o; // cpincl
1007 int io2; // cpincl
1008 int ico; // cpincl
1009
1010 int iatc; // ppthch
1013
1014 int natom; // = 5;
1015 cs_real_t *wmolat; // dim = natom
1016
1017 int ngazem; // = 20;
1018 cs_real_t *wmole; // ngazem
1019 int *iym1;
1020
1021 int ncharm; // cpincl
1022 cs_real_t *a1ch; // ncharm
1036
1038
1039/*============================================================================
1040 * Global variables
1041 *============================================================================*/
1042
1044
1046
1048
1050
1053
1056
1059
1060/* Lagrangian log output every frequency_n time steps */
1061
1063
1064/* Statisics on boundaries */
1065
1066extern cs_real_t *bound_stat;
1067
1073
1076
1084
1087
1091
1092/* Projection matrices for global to local coordinates on boundary faces */
1094
1095/*============================================================================
1096 * Public function prototypes
1097 *============================================================================*/
1098
1099/*----------------------------------------------------------------------------*/
1112/*----------------------------------------------------------------------------*/
1113
1116 int zone_id,
1117 int set_id);
1118
1119/*----------------------------------------------------------------------------*/
1125/*----------------------------------------------------------------------------*/
1126
1127void
1129
1130/*----------------------------------------------------------------------------*/
1136/*----------------------------------------------------------------------------*/
1137
1140
1141/*----------------------------------------------------------------------------*/
1150/*----------------------------------------------------------------------------*/
1151
1154
1155/*----------------------------------------------------------------------------
1156 * Provide access to cs_lagr_particle_counter_t
1157 *
1158 * needed to initialize structure with GUI
1159 *----------------------------------------------------------------------------*/
1160
1163
1164/*----------------------------------------------------------------------------
1165 * Provide access to cs_lagr_reentrained_model_t
1166 *
1167 * needed to initialize structure with GUI
1168 *----------------------------------------------------------------------------*/
1169
1172
1173/*----------------------------------------------------------------------------
1174 * Provide access to cs_lagr_precipitation_model_t
1175 *
1176 * needed to initialize structure with GUI
1177 *----------------------------------------------------------------------------*/
1178
1181
1182/*----------------------------------------------------------------------------
1183 * Provide access to cs_lagr_clogging_model_t
1184 *
1185 * needed to initialize structure with GUI
1186 *----------------------------------------------------------------------------*/
1187
1190
1191/*----------------------------------------------------------------------------
1192 * Provide access to cs_lagr_shape_model_t
1193 *
1194 * needed to initialize structure with GUI
1195 *----------------------------------------------------------------------------*/
1196
1199
1200/*----------------------------------------------------------------------------
1201 * Provide access to cs_lagr_agglomeration_model_t
1202 *
1203 * needed to initialize structure with GUI
1204 *----------------------------------------------------------------------------*/
1205
1208
1209/*----------------------------------------------------------------------------
1210 * Provide access to cs_lagr_consolidation_model_t
1211 *
1212 * needed to initialize structure with GUI
1213 *----------------------------------------------------------------------------*/
1214
1217
1218/*----------------------------------------------------------------------------
1219 * Provide access to cs_lagr_time_step_t
1220 *
1221 * needed to initialize structure with GUI
1222 *----------------------------------------------------------------------------*/
1223
1226
1227/*----------------------------------------------------------------------------
1228 * Provide access to cs_lagr_source_terms_t
1229 *
1230 * needed to initialize structure with GUI
1231 *----------------------------------------------------------------------------*/
1232
1235
1236/*----------------------------------------------------------------------------
1237 * Provide access to cs_lagr_encrustation_t
1238 *
1239 * needed to initialize structure with GUI
1240 *----------------------------------------------------------------------------*/
1241
1244
1245/*----------------------------------------------------------------------------
1246 * Provide access to cs_lagr_physico_chemical_t
1247 *
1248 * needed to initialize structure with GUI
1249 *----------------------------------------------------------------------------*/
1250
1253
1254/*----------------------------------------------------------------------------
1255 * Provide access to cs_lagr_brownian_t
1256 *
1257 * needed to initialize structure with GUI
1258 *----------------------------------------------------------------------------*/
1259
1262
1263/*----------------------------------------------------------------------------*/
1269/*----------------------------------------------------------------------------*/
1270
1273
1274/*----------------------------------------------------------------------------*/
1280/*----------------------------------------------------------------------------*/
1281
1284
1285/*----------------------------------------------------------------------------*/
1293/*----------------------------------------------------------------------------*/
1294
1297
1298/*----------------------------------------------------------------------------*/
1302/*----------------------------------------------------------------------------*/
1303
1304void
1306
1307/*----------------------------------------------------------------------------
1308 * Destroy finalize the global cs_lagr_internal_condition_t structure.
1309 *----------------------------------------------------------------------------*/
1310
1311void
1313
1314/*----------------------------------------------------------------------------
1315 * Provide access to cs_lagr_boundary_interactions_t
1316 *
1317 * needed to initialize structure with GUI
1318 *----------------------------------------------------------------------------*/
1319
1322
1323/*----------------------------------------------------------------------------
1324 * Provide access to cs_lagr_extra_module_t
1325 *----------------------------------------------------------------------------*/
1326
1329
1330/*----------------------------------------------------------------------------
1331 * Prepare for execution of the Lagrangian model.
1332 *
1333 * This should be called before the fist call to cs_lagr_solve_time_step.
1334 *
1335 * parameters:
1336 * dt <-- time step (per cell)
1337 *----------------------------------------------------------------------------*/
1338
1339void
1341
1342/*----------------------------------------------------------------------------
1343 * Return pointers to lagrangian arrays
1344 *
1345 * This function is intended for use by Fortran wrappers.
1346 *
1347 * parameters:
1348 * dim_bound_stat --> dimensions for bound_stat pointer
1349 * p_bound_stat --> bound_stat pointer
1350 *----------------------------------------------------------------------------*/
1351
1352void
1353cs_lagr_init_c_arrays(int dim_cs_glob_lagr_source_terms[2],
1354 cs_real_t **p_cs_glob_lagr_source_terms);
1355
1356/*----------------------------------------------------------------------------
1357 * Free lagrangian arrays
1358 *
1359 * This function is intended for use by Fortran wrappers.
1360 *----------------------------------------------------------------------------*/
1361
1362void
1363cs_lagr_finalize(void);
1364
1365/*----------------------------------------------------------------------------*/
1374/*----------------------------------------------------------------------------*/
1375
1376void
1377cs_lagr_add_fields(void);
1378
1379/*--------------------------------------------------------------------
1380 * Execute one time step of the Lagrangian model.
1381 *
1382 * This is the main function for that model.
1383 *
1384 * parameters:
1385 * itypfb <-- boundary face types
1386 * dt <-- time step (per cell)
1387 *-------------------------------------------------------------------- */
1388
1389void
1390cs_lagr_solve_time_step(const int itypfb[],
1391 const cs_real_t *dt);
1392
1393/*----------------------------------------------------------------------------*/
1394
1396
1397#endif /* __CS_LAGR_H__ */
cs_real_t cs_real_33_t[3][3]
3x3 matrix of floating-point values
Definition cs_defs.h:341
#define BEGIN_C_DECLS
Definition cs_defs.h:509
double cs_real_t
Floating-point value.
Definition cs_defs.h:319
#define END_C_DECLS
Definition cs_defs.h:510
int cs_lnum_t
local mesh entity id
Definition cs_defs.h:313
cs_real_t cs_real_3_t[3]
vector of 3 floating-point values
Definition cs_defs.h:332
@ 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.c:1742
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.c:1304
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.c:1505
cs_lagr_module_shape_t
Definition cs_lagr.h:132
@ CS_LAGR_SHAPE_SPHEROID_STOC_MODEL
Definition cs_lagr.h:138
@ CS_LAGR_SHAPE_SPHERE_MODEL
Definition cs_lagr.h:135
@ CS_LAGR_SHAPE_SPHEROID_JEFFERY_MODEL
Definition cs_lagr.h:141
void cs_lagr_solve_time_step(const int itypfb[], const cs_real_t *dt)
Definition cs_lagr.c:1852
const cs_lagr_const_dim_t * cs_glob_lagr_const_dim
@ 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.c:1629
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.c:1663
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.c:1760
cs_lagr_particle_counter_t * cs_lagr_get_particle_counter(void)
Get read/write pointer to global particle counter.
Definition cs_lagr.c:1404
cs_lagr_specific_physics_t * cs_glob_lagr_specific_physics
cs_lagr_extra_module_t * cs_get_lagr_extra_module(void)
Definition cs_lagr.c:1771
cs_lagr_shape_model_t * cs_get_lagr_shape_model(void)
Definition cs_lagr.c:1529
cs_lagr_fragmentation_model_t * cs_glob_lagr_fragmentation_model
cs_lagr_brownian_t * cs_get_lagr_brownian(void)
Definition cs_lagr.c:1613
cs_lagr_reentrained_model_t * cs_glob_lagr_reentrained_model
void cs_lagr_add_fields(void)
Create additional fields needed by the Lagrangien model.
Definition cs_lagr.c:1233
cs_lagr_agglomeration_model_t * cs_get_lagr_agglomeration_model(void)
Definition cs_lagr.c:1541
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.c:1577
cs_lagr_coal_comb_t * cs_glob_lagr_coal_comb
void cs_lagr_solve_initialize(const cs_real_t *dt)
Definition cs_lagr.c:1786
void cs_lagr_injection_set_default(cs_lagr_injection_set_t *zis)
Initialize injection set data structure fields to defaults.
Definition cs_lagr.c:1331
cs_lagr_consolidation_model_t * cs_get_lagr_consolidation_model(void)
Definition cs_lagr.c:1553
void cs_lagr_init_c_arrays(int dim_cs_glob_lagr_source_terms[2], cs_real_t **p_cs_glob_lagr_source_terms)
Definition cs_lagr.c:1126
cs_lagr_clogging_model_t * cs_get_lagr_clogging_model(void)
Definition cs_lagr.c:1517
cs_lagr_particle_counter_t * cs_lagr_update_particle_counter(void)
Update global particle counter.
Definition cs_lagr.c:1421
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.c:1478
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.c:1589
@ 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.c:1565
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.c:1601
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.c:1711
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.c:1492
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.c:1687
cs_lagr_dim_t * cs_glob_lagr_dim
void cs_lagr_finalize(void)
Definition cs_lagr.c:1158
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:130
Definition cs_lagr.h:508
cs_real_t base_diameter
Definition cs_lagr.h:514
cs_real_t scalar_kernel
Definition cs_lagr.h:513
cs_real_t max_stat_weight
Definition cs_lagr.h:512
cs_lnum_t n_max_classes
Definition cs_lagr.h:510
cs_real_t min_stat_weight
Definition cs_lagr.h:511
Definition cs_lagr.h:831
int iclogt
Definition cs_lagr.h:870
int inclg
Definition cs_lagr.h:864
int has_part_impact_nbr
Definition cs_lagr.h:853
char ** nombrd
Definition cs_lagr.h:904
int npstft
Definition cs_lagr.h:848
int ihdepm
Definition cs_lagr.h:879
int inclgt
Definition cs_lagr.h:867
int inbr
Definition cs_lagr.h:861
int iscovc
Definition cs_lagr.h:876
int npstf
Definition cs_lagr.h:840
cs_real_t tstatp
Definition cs_lagr.h:896
int ihsum
Definition cs_lagr.h:888
int iclgst
Definition cs_lagr.h:858
int iclogh
Definition cs_lagr.h:873
int ihdepv
Definition cs_lagr.h:882
int ihdiam
Definition cs_lagr.h:885
Definition cs_lagr.h:822
int lamvbr
Definition cs_lagr.h:824
Definition cs_lagr.h:487
cs_real_t jamlim
Definition cs_lagr.h:489
cs_real_t diam_mean
Definition cs_lagr.h:492
cs_real_t mporos
Definition cs_lagr.h:490
cs_real_t csthpp
Definition cs_lagr.h:491
Definition cs_lagr.h:1004
cs_real_t * h02ch
Definition cs_lagr.h:1023
int iatc
Definition cs_lagr.h:1010
cs_real_t * xwatch
Definition cs_lagr.h:1033
cs_real_t * y2ch
Definition cs_lagr.h:1028
cs_real_t * e1ch
Definition cs_lagr.h:1024
int ih2o
Definition cs_lagr.h:1006
int ngazem
Definition cs_lagr.h:1017
cs_real_t * e2ch
Definition cs_lagr.h:1026
cs_real_t * a1ch
Definition cs_lagr.h:1022
cs_real_t * ehetch
Definition cs_lagr.h:1031
int natom
Definition cs_lagr.h:1014
cs_real_t prefth
Definition cs_lagr.h:1011
int * iym1
Definition cs_lagr.h:1019
cs_real_t * thcdch
Definition cs_lagr.h:1035
cs_real_t * xashch
Definition cs_lagr.h:1034
cs_real_t trefth
Definition cs_lagr.h:1012
cs_real_t * wmole
Definition cs_lagr.h:1018
int io2
Definition cs_lagr.h:1007
cs_real_t * rho0ch
Definition cs_lagr.h:1032
cs_real_t * a2ch
Definition cs_lagr.h:1025
cs_real_t * cp2ch
Definition cs_lagr.h:1029
cs_real_t * ahetch
Definition cs_lagr.h:1030
cs_real_t * wmolat
Definition cs_lagr.h:1015
int ico
Definition cs_lagr.h:1008
int ncharm
Definition cs_lagr.h:1021
cs_real_t * y1ch
Definition cs_lagr.h:1027
Definition cs_lagr.h:532
cs_real_t force_consol
Definition cs_lagr.h:537
cs_real_t slope_consol
Definition cs_lagr.h:536
cs_lnum_t iconsol
Definition cs_lagr.h:534
cs_real_t rate_consol
Definition cs_lagr.h:535
Definition cs_lagr.h:157
int ndlaim
Definition cs_lagr.h:162
int ncharm2
Definition cs_lagr.h:164
int nlayer
Definition cs_lagr.h:165
int nusbrd
Definition cs_lagr.h:159
Definition cs_lagr.h:172
int ntersl
Definition cs_lagr.h:174
int n_boundary_stats
Definition cs_lagr.h:175
Definition cs_lagr.h:759
cs_real_t * visref
Definition cs_lagr.h:783
cs_real_t dnpenc
Definition cs_lagr.h:786
int iencra
Definition cs_lagr.h:764
cs_real_t * tprenc
Definition cs_lagr.h:778
cs_real_t * enc2
Definition cs_lagr.h:773
int npencr
Definition cs_lagr.h:767
cs_real_t * enc1
Definition cs_lagr.h:771
Definition cs_lagr.h:911
cs_field_t * scal_t
Definition cs_lagr.h:951
cs_field_t * vel
Definition cs_lagr.h:955
int itytur
Definition cs_lagr.h:915
cs_field_t * cpro_cp
Definition cs_lagr.h:964
cs_field_t * cvar_omg
Definition cs_lagr.h:982
cs_real_3_t * grad_lagr_time
Definition cs_lagr.h:997
cs_field_t * viscl
Definition cs_lagr.h:958
cs_field_t * x_eau
Definition cs_lagr.h:971
cs_field_t * luminance
Definition cs_lagr.h:967
cs_field_t * cvar_ep
Definition cs_lagr.h:979
cs_field_t * lagr_time
Definition cs_lagr.h:994
cs_field_t * x_oxyd
Definition cs_lagr.h:970
int ncharb
Definition cs_lagr.h:918
cs_field_t * pressure
Definition cs_lagr.h:948
cs_real_33_t * grad_vel
Definition cs_lagr.h:991
cs_field_t * temperature
Definition cs_lagr.h:952
cs_real_t cmu
Definition cs_lagr.h:933
cs_real_3_t * grad_pr
Definition cs_lagr.h:988
cs_field_t * cvar_k
Definition cs_lagr.h:976
cs_field_t * x_m
Definition cs_lagr.h:972
cs_field_t * ustar
Definition cs_lagr.h:942
int icp
Definition cs_lagr.h:927
cs_field_t * cromf
Definition cs_lagr.h:945
cs_field_t * cpro_viscls
Definition cs_lagr.h:961
int radiative_model
Definition cs_lagr.h:924
cs_real_t diftl0
Definition cs_lagr.h:930
int ncharm
Definition cs_lagr.h:921
cs_field_t * cvar_rij
Definition cs_lagr.h:985
cs_real_t visls0
Definition cs_lagr.h:936
int iturb
Definition cs_lagr.h:914
Definition cs_lagr.h:521
cs_real_t base_diameter
Definition cs_lagr.h:524
cs_real_t scalar_kernel
Definition cs_lagr.h:523
cs_real_t(* function_kernel)(cs_lnum_t)
Definition cs_lagr.h:525
Definition cs_lagr.h:560
cs_real_t diameter_variance
Definition cs_lagr.h:604
cs_real_t density
Definition cs_lagr.h:620
int injection_frequency
Definition cs_lagr.h:569
int temperature_profile
Definition cs_lagr.h:587
cs_real_t shape
Definition cs_lagr.h:606
cs_real_t velocity_magnitude
Definition cs_lagr.h:598
int velocity_profile
Definition cs_lagr.h:582
cs_real_t shape_param[4]
Definition cs_lagr.h:615
cs_real_t cp
Definition cs_lagr.h:624
cs_lagr_injection_profile_compute_t * injection_profile_func
Definition cs_lagr.h:573
cs_real_t diameter
Definition cs_lagr.h:603
cs_gnum_t n_inject
Definition cs_lagr.h:566
cs_real_t radii[3]
Definition cs_lagr.h:609
cs_real_t velocity[3]
Definition cs_lagr.h:599
int cluster
Definition cs_lagr.h:593
int location_id
Definition cs_lagr.h:564
cs_real_t fouling_index
Definition cs_lagr.h:622
int coal_number
Definition cs_lagr.h:589
cs_real_t euler[4]
Definition cs_lagr.h:613
void * injection_profile_input
Definition cs_lagr.h:576
cs_real_t flow_rate
Definition cs_lagr.h:628
int zone_id
Definition cs_lagr.h:562
int set_id
Definition cs_lagr.h:563
int aggregat_class_id
Definition cs_lagr.h:595
cs_real_t emissivity
Definition cs_lagr.h:630
cs_real_t stat_weight
Definition cs_lagr.h:626
cs_real_t angular_vel[3]
Definition cs_lagr.h:610
cs_real_t temperature
Definition cs_lagr.h:601
cs_real_t aggregat_fractal_dim
Definition cs_lagr.h:596
cs_real_t orientation[3]
Definition cs_lagr.h:608
Definition cs_lagr.h:750
int * i_face_zone_id
Definition cs_lagr.h:752
Definition cs_lagr.h:262
int dlvo
Definition cs_lagr.h:301
int n_stat_classes
Definition cs_lagr.h:335
int deposition
Definition cs_lagr.h:299
int physical_model
Definition cs_lagr.h:274
int fragmentation
Definition cs_lagr.h:333
int roughness
Definition cs_lagr.h:305
int precipitation
Definition cs_lagr.h:324
int n_user_variables
Definition cs_lagr.h:337
int idistu
Definition cs_lagr.h:289
int shape
Definition cs_lagr.h:318
int fouling
Definition cs_lagr.h:325
int n_temperature_layers
Definition cs_lagr.h:275
int modcpl
Definition cs_lagr.h:283
int agglomeration
Definition cs_lagr.h:329
int consolidation
Definition cs_lagr.h:322
int resuspension
Definition cs_lagr.h:309
int clogging
Definition cs_lagr.h:313
int idiffl
Definition cs_lagr.h:295
Definition cs_lagr.h:344
cs_gnum_t n_g_cumulative_total
Definition cs_lagr.h:348
cs_real_t w_exit
Definition cs_lagr.h:385
cs_gnum_t n_g_new
Definition cs_lagr.h:358
cs_gnum_t n_g_resuspended
Definition cs_lagr.h:373
cs_gnum_t n_g_exit
Definition cs_lagr.h:361
cs_real_t w_fouling
Definition cs_lagr.h:394
cs_real_t w_total
Definition cs_lagr.h:379
cs_gnum_t n_g_failed
Definition cs_lagr.h:376
cs_gnum_t n_g_fouling
Definition cs_lagr.h:370
cs_gnum_t n_g_total
Definition cs_lagr.h:355
cs_real_t w_resuspended
Definition cs_lagr.h:397
cs_real_t w_deposited
Definition cs_lagr.h:391
cs_gnum_t n_g_merged
Definition cs_lagr.h:364
cs_gnum_t n_g_cumulative_failed
Definition cs_lagr.h:352
cs_real_t w_merged
Definition cs_lagr.h:388
cs_gnum_t n_g_deposited
Definition cs_lagr.h:367
cs_real_t w_new
Definition cs_lagr.h:382
Definition cs_lagr.h:793
cs_real_t cstham
Definition cs_lagr.h:796
cs_real_t fion
Definition cs_lagr.h:815
cs_real_t phi_s
Definition cs_lagr.h:809
cs_real_t lambda_vdw
Definition cs_lagr.h:800
cs_real_t epseau
Definition cs_lagr.h:803
cs_real_t phi_p
Definition cs_lagr.h:806
cs_real_t valen
Definition cs_lagr.h:812
Definition cs_lagr.h:467
cs_real_t diameter
Definition cs_lagr.h:472
int nbrclas
Definition cs_lagr.h:470
cs_real_t * mp_diss
Definition cs_lagr.h:480
cs_real_t rho
Definition cs_lagr.h:474
int * nbprec
Definition cs_lagr.h:476
cs_real_t * solub
Definition cs_lagr.h:478
Definition cs_lagr.h:445
int iflow
Definition cs_lagr.h:453
cs_real_t denasp
Definition cs_lagr.h:457
int ireent
Definition cs_lagr.h:449
cs_real_t rayasp
Definition cs_lagr.h:459
cs_real_t modyeq
Definition cs_lagr.h:458
cs_real_t rayasg
Definition cs_lagr.h:460
cs_real_t espasg
Definition cs_lagr.h:456
Definition cs_lagr.h:499
cs_real_t param_chmb
Definition cs_lagr.h:501
Definition cs_lagr.h:637
int npts
Definition cs_lagr.h:706
int itsmas
Definition cs_lagr.h:676
int itsfp4
Definition cs_lagr.h:688
int ltsmas
Definition cs_lagr.h:648
int * itsmv1
Definition cs_lagr.h:679
cs_real_t vmax
Definition cs_lagr.h:713
cs_real_t tmamax
Definition cs_lagr.h:716
int itsli
Definition cs_lagr.h:660
cs_real_t * st_val
Definition cs_lagr.h:719
int itsti
Definition cs_lagr.h:673
int ltsthe
Definition cs_lagr.h:656
int itsco
Definition cs_lagr.h:685
int ntxerr
Definition cs_lagr.h:710
int itste
Definition cs_lagr.h:669
int * itsmv2
Definition cs_lagr.h:682
int ltsdyn
Definition cs_lagr.h:642
int nstits
Definition cs_lagr.h:703
int itske
Definition cs_lagr.h:665
Definition cs_lagr.h:404
int itpvar
Definition cs_lagr.h:411
cs_real_t tpart
Definition cs_lagr.h:429
cs_real_t cppart
Definition cs_lagr.h:438
int idpvar
Definition cs_lagr.h:416
int impvar
Definition cs_lagr.h:421
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:544
cs_real_t dtp
Definition cs_lagr.h:550
cs_real_t ttclag
Definition cs_lagr.h:553
int nor
Definition cs_lagr.h:547
Definition cs_lagr.h:726
int n_zones
Definition cs_lagr.h:730
cs_lagr_injection_set_t ** injection_set
Definition cs_lagr.h:735
char * elt_type
Definition cs_lagr.h:738
int * zone_type
Definition cs_lagr.h:731
int location_id
Definition cs_lagr.h:728
int * n_injection_sets
Definition cs_lagr.h:733
cs_real_t * particle_flow_rate
Definition cs_lagr.h:741