8.3
general documentation
cs_lagr.h
Go to the documentation of this file.
1#ifndef __CS_LAGR_H__
2#define __CS_LAGR_H__
3
4/*============================================================================
5 * Functions and types for the Lagrangian module
6 *============================================================================*/
7
8/*
9 This file is part of code_saturne, a general-purpose CFD tool.
10
11 Copyright (C) 1998-2024 EDF S.A.
12
13 This program is free software; you can redistribute it and/or modify it under
14 the terms of the GNU General Public License as published by the Free Software
15 Foundation; either version 2 of the License, or (at your option) any later
16 version.
17
18 This program is distributed in the hope that it will be useful, but WITHOUT
19 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
20 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
21 details.
22
23 You should have received a copy of the GNU General Public License along with
24 this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
25 Street, Fifth Floor, Boston, MA 02110-1301, USA.
26*/
27
28/*----------------------------------------------------------------------------*/
29
30#include "cs_defs.h"
31
32/*----------------------------------------------------------------------------
33 * Standard C library headers
34 *----------------------------------------------------------------------------*/
35
36#include "assert.h"
37
38/*----------------------------------------------------------------------------
39 * Local headers
40 *----------------------------------------------------------------------------*/
41
42#include "cs_base.h"
43#include "cs_field.h"
44
45#include "cs_lagr_injection.h"
46
47/*----------------------------------------------------------------------------*/
48
50
51/*============================================================================
52 * Type definitions
53 *============================================================================*/
54
55/*----------------------------------------------------------------------------*/
70/*----------------------------------------------------------------------------*/
71
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
258
260/*-----------------------------------------------------------*/
261
262typedef struct {
263
278
287
293
299
303
304 int dlvo;
305
309
313
317
321 int shape;
322
326
329
333
337
339
341
344
346
348/*----------------------------------------------*/
349
350typedef struct {
351
355
359
362
365
368
371
374
377
380
383
386
389
392
395
398
401
404
406
408/* ---------------------------------------------------------- */
409
410typedef struct {
411
412 /* activation (=1) or not (=0) of an evolution equation on the particle
413 temperature (in degrees Celsius).
414 Useful if \ref physical_model=1 and if there is a thermal scalar
415 associated with the continuous phase.
416 */
418
419 /* activation (=1) or not (=0) of an evolution equation on the particle
420 diameter. Useful if \ref physical_model = 1.
421 */
423
424 /* activation (=1) or not (=0) of an evolution equation on the particle mass
425 Useful if \ref physical_model = 1
426 */
428
429 /* initialization temperature (in degree Celsius) for the particles already
430 present in the calculation domain when an evolution equation on
431 the particle temperature is activated during a calculation
432 (\ref physical_model = 1 and \ref itpvar = 1).
433 Useful if \ref isuila = 1 and \ref itpvar = 0 in the previous calculation.
434 */
436
437 /* initialization value for the specific heat (\f$ J.kg^{-1}.K^{-1} \f$)
438 of the particles already present
439 in the calculation domain when an evolution equation
440 on the particle temperature is activated during a calculation
441 (\ref physical_model = 1 and \ref itpvar = 1).
442 Useful if \ref isuila = 1 and \ref itpvar = 0 in the previous calculation
443 */
445
447
449/* -------------------------------------- */
450
451typedef struct {
452
453 /* - 0: no resuspension model
454 - 1: resuspension model */
456
457 /* - 0: no head losses calculation for influence of the deposit on the flow
458 - 1: head losses calculation for influence of the deposit on the flow */
459 int iflow;
460
461 /* Parameters of the particle resuspension model*/
467
469
471/* -------------------------------------- */
472
473typedef struct {
474
475 /* number of particle classes*/
477 /* diameter of particles formed by precipitation*/
479 /* density of particles formed by precipitation*/
481 /* number of precipitated particles */
482 int *nbprec;
483 /* */
485 /* number of precipitated particles */
487
489
491/* ------------------------------------------ */
492
493typedef struct {
494
499
501
503/* ------------------------------------------------ */
504
505typedef struct {
506
508
510
512/* ------------------------------------------ */
513
514typedef struct {
515
521
523
525/* ------------------------------------------ */
526
527typedef struct {
528
531 cs_real_t (*function_kernel)(cs_lnum_t);
532
534
536/* ----------------------------------------------- */
537
538typedef struct {
539
544
546
548/*----------------------------------*/
549
550typedef struct {
551
552 /* current step id (for 2nd order scheme) */
553 int nor;
554
555 /* duration of a Lagrangian iteration */
557
558 /* physical time of the Lagrangian simulation */
560
562
564/*------------------------------------------------------------------*/
565
566typedef struct {
567
569 int set_id;
580
583
589
594
605 cs_real_t velocity[3];
614 cs_real_t orientation[3];
615 cs_real_t radii[3];
616 cs_real_t angular_vel[3];
619 cs_real_t euler[4];
621 cs_real_t shape_param[4];
639
641/*----------------------------------------------*/
642
643typedef struct {
644
649
655
656 /* if \ref physical_model = 1 and \ref itpvar = 1, \ref ltsthe
657 activates (=1) or not (=0) the two-way coupling on temperature.
658 if \ref physical_model = 2, \ref ltsthe activates (=1) or not (=0) the
659 two-way coupling on the eulerian variables related to pulverised
660 coal combustion.
661 Useful if \ref iilagr = CS_LAGR_TWOWAY_COUPLING */
663
678
680 int npts;
681
685
688
691
693
695/*----------------------------------------------------*/
696
697typedef struct {
698
709 char *elt_type;
717
719/*---------------------------------------*/
720
721typedef struct {
722
724
726
728/*--------------------------------*/
729
730typedef struct {
731
732 /* Activates (=1) or not (=0) the option of coal particle fouling.
733 It then is necessary to specify the domain boundaries
734 on which fouling may take place. Useful if \ref physical_model = 2*/
736
737 /* encrustation data*/
739 // TODO cf particles->n_part_fou in cs_lagr_tracking.c
740
741 /* encrustation data*/
742 cs_real_t *enc1; // size: ncharm2
743 /* encrustation data*/
744 cs_real_t *enc2; // size: ncharm2
745
746 /* Limit temperature (in degree Celsius) below which the coal particles do
747 not cause any fouling (if the fouling model is activated).
748 Useful if \ref physical_model = 2 and \ref iencra = 1*/
749 cs_real_t *tprenc; // size: ncharm2
750
751 /* Ash critical viscosity in \f$ kg.m^{-1}.s^{-1} \f$, in the fouling model
752 cf J.D. Watt et T. Fereday (J.Inst.Fuel, Vol.42-p99).
753 Useful if \ref physical_model = 2 and \ref iencra = 1*/
754 cs_real_t *visref; // size: ncharm2
755
756 /* encrustation data */
758
760
762/*-----------------------------------------*/
763
764typedef struct {
765
768
772
775
778
781
784
787
789
791/*-------------------------------*/
792
793typedef struct {
794
795 int lamvbr;
798
800/*----------------------------------------------*/
801
802typedef struct {
803
811 int npstf;
812
820
825
830
832 int inbr;
833
835 int inclg;
836
839
842
845
848
849 /* id for mean of particle deposition height */
851
852 /* id for variance of particle deposition height */
854
855 /* id for mean diameter of deposited particles */
857
858 /* id for sum of deposited particle diameters */
859 int ihsum;
860
868
875 char **nombrd;
876
878
880/*-----------------------------------------------*/
881
882typedef struct {
883
884 /* Turbulence model */
885 int iturb;
887
888 /* cpincl */
890
891 /* ppppar */
893
894 /* radiation */
896
897 /* icp */
898 int icp;
899
900 /* cmu */
902
903 /* visls0 */
905
906 /* Referenced fields
907 ----------------- */
908
909 /* wall ustar */
911
912 /* wall tstar */
914
915 /* Fluid density */
917
918 /* Fluid pressure */
920
921 /* Fluid temperature */
924
925 /* Fluid temperature variance */
927
928 /* Turbulent heat flux */
930
931 /* Fluid velocity */
933
934 /* Fluid viscosity */
936
937 /* Fluid viscosity */
939
940 /* Fluid specific heat capacity */
942
943 /* Radiative energy */
945
946 /* Combustion */
950
951 /* Turbulence */
952 /* Turbulent intensity */
954
955 /* Turbulent dissipation */
957
958 /* Omega from k-omega SST model*/
960
961 /* Reynolds Stress Tensor */
963
964 /* Total pressure gradient */
966
967 /* velocity gradient */
969
970 /* fluid temperature gradient */
972
973 /* Lagrangian time field */
975
976 /* Lagrangian time gradient */
978
980
981/*============================================================================
982 * Global variables
983 *============================================================================*/
984
988
992
995
998
1001
1002/* Lagrangian log output every frequency_n time steps */
1003
1005
1006/* Statisics on boundaries */
1007
1008extern cs_real_t *bound_stat;
1009
1015
1018
1026
1028
1032
1033/* Projection matrices for global to local coordinates on boundary faces */
1035
1036/*============================================================================
1037 * Public function prototypes
1038 *============================================================================*/
1039
1040/*----------------------------------------------------------------------------*/
1044/*----------------------------------------------------------------------------*/
1045
1046void
1048
1049/*----------------------------------------------------------------------------*/
1062/*----------------------------------------------------------------------------*/
1063
1066 int zone_id,
1067 int set_id);
1068
1069/*----------------------------------------------------------------------------*/
1075/*----------------------------------------------------------------------------*/
1076
1077void
1079
1080/*----------------------------------------------------------------------------*/
1086/*----------------------------------------------------------------------------*/
1087
1090
1091/*----------------------------------------------------------------------------*/
1100/*----------------------------------------------------------------------------*/
1101
1104
1105/*----------------------------------------------------------------------------
1106 * Provide access to cs_lagr_particle_counter_t
1107 *
1108 * needed to initialize structure with GUI
1109 *----------------------------------------------------------------------------*/
1110
1113
1114/*----------------------------------------------------------------------------
1115 * Provide access to cs_lagr_reentrained_model_t
1116 *
1117 * needed to initialize structure with GUI
1118 *----------------------------------------------------------------------------*/
1119
1122
1123/*----------------------------------------------------------------------------
1124 * Provide access to cs_lagr_precipitation_model_t
1125 *
1126 * needed to initialize structure with GUI
1127 *----------------------------------------------------------------------------*/
1128
1131
1132/*----------------------------------------------------------------------------
1133 * Provide access to cs_lagr_clogging_model_t
1134 *
1135 * needed to initialize structure with GUI
1136 *----------------------------------------------------------------------------*/
1137
1140
1141/*----------------------------------------------------------------------------
1142 * Provide access to cs_lagr_shape_model_t
1143 *
1144 * needed to initialize structure with GUI
1145 *----------------------------------------------------------------------------*/
1146
1149
1150/*----------------------------------------------------------------------------
1151 * Provide access to cs_lagr_agglomeration_model_t
1152 *
1153 * needed to initialize structure with GUI
1154 *----------------------------------------------------------------------------*/
1155
1158
1159/*----------------------------------------------------------------------------
1160 * Provide access to cs_lagr_consolidation_model_t
1161 *
1162 * needed to initialize structure with GUI
1163 *----------------------------------------------------------------------------*/
1164
1167
1168/*----------------------------------------------------------------------------
1169 * Provide access to cs_lagr_time_step_t
1170 *
1171 * needed to initialize structure with GUI
1172 *----------------------------------------------------------------------------*/
1173
1176
1177/*----------------------------------------------------------------------------
1178 * Provide access to cs_lagr_source_terms_t
1179 *
1180 * needed to initialize structure with GUI
1181 *----------------------------------------------------------------------------*/
1182
1185
1186/*----------------------------------------------------------------------------
1187 * Provide access to cs_lagr_encrustation_t
1188 *
1189 * needed to initialize structure with GUI
1190 *----------------------------------------------------------------------------*/
1191
1194
1195/*----------------------------------------------------------------------------
1196 * Provide access to cs_lagr_physico_chemical_t
1197 *
1198 * needed to initialize structure with GUI
1199 *----------------------------------------------------------------------------*/
1200
1203
1204/*----------------------------------------------------------------------------
1205 * Provide access to cs_lagr_brownian_t
1206 *
1207 * needed to initialize structure with GUI
1208 *----------------------------------------------------------------------------*/
1209
1212
1213/*----------------------------------------------------------------------------*/
1219/*----------------------------------------------------------------------------*/
1220
1223
1224/*----------------------------------------------------------------------------*/
1230/*----------------------------------------------------------------------------*/
1231
1234
1235/*----------------------------------------------------------------------------*/
1243/*----------------------------------------------------------------------------*/
1244
1247
1248/*----------------------------------------------------------------------------*/
1252/*----------------------------------------------------------------------------*/
1253
1254void
1256
1257/*----------------------------------------------------------------------------
1258 * Destroy finalize the global cs_lagr_internal_condition_t structure.
1259 *----------------------------------------------------------------------------*/
1260
1261void
1263
1264/*----------------------------------------------------------------------------
1265 * Provide access to cs_lagr_boundary_interactions_t
1266 *
1267 * needed to initialize structure with GUI
1268 *----------------------------------------------------------------------------*/
1269
1272
1273/*----------------------------------------------------------------------------
1274 * Provide access to cs_lagr_extra_module_t
1275 *----------------------------------------------------------------------------*/
1276
1279
1280/*----------------------------------------------------------------------------
1281 * Prepare for execution of the Lagrangian model.
1282 *
1283 * This should be called before the fist call to cs_lagr_solve_time_step.
1284 *
1285 * parameters:
1286 * dt <-- time step (per cell)
1287 *----------------------------------------------------------------------------*/
1288
1289void
1291
1292/*----------------------------------------------------------------------------
1293 * Initialize lagrangian arrays
1294 *----------------------------------------------------------------------------*/
1295
1296void
1298
1299/*----------------------------------------------------------------------------
1300 * Free lagrangian arrays
1301 *----------------------------------------------------------------------------*/
1302
1303void
1304cs_lagr_finalize(void);
1305
1306/*----------------------------------------------------------------------------*/
1315/*----------------------------------------------------------------------------*/
1316
1317void
1318cs_lagr_add_fields(void);
1319
1320/*--------------------------------------------------------------------
1321 * Execute one time step of the Lagrangian model.
1322 *
1323 * This is the main function for that model.
1324 *
1325 * parameters:
1326 * itypfb <-- boundary face types
1327 * dt <-- time step (per cell)
1328 *-------------------------------------------------------------------- */
1329
1330void
1332 const cs_real_t *dt);
1333
1334/*----------------------------------------------------------------------------*/
1335
1337
1338#endif /* __CS_LAGR_H__ */
#define BEGIN_C_DECLS
Definition: cs_defs.h:542
double cs_real_t
Floating-point value.
Definition: cs_defs.h:342
cs_real_t cs_real_3_t[3]
vector of 3 floating-point values
Definition: cs_defs.h:359
uint64_t cs_gnum_t
global mesh entity number
Definition: cs_defs.h:325
#define END_C_DECLS
Definition: cs_defs.h:543
cs_real_t cs_real_33_t[3][3]
3x3 matrix of floating-point values
Definition: cs_defs.h:368
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:335
@ 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:1456
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:1018
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:1219
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:1572
const cs_lagr_const_dim_t * cs_glob_lagr_const_dim
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:1343
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:1377
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:1474
cs_lagr_particle_counter_t * cs_lagr_get_particle_counter(void)
Get read/write pointer to global particle counter.
Definition: cs_lagr.cpp:1118
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:1485
cs_lagr_shape_model_t * cs_get_lagr_shape_model(void)
Definition: cs_lagr.cpp:1243
cs_lagr_fragmentation_model_t * cs_glob_lagr_fragmentation_model
cs_lagr_brownian_t * cs_get_lagr_brownian(void)
Definition: cs_lagr.cpp:1327
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:912
void cs_lagr_init_arrays(void)
Definition: cs_lagr.cpp:826
cs_lagr_agglomeration_model_t * cs_get_lagr_agglomeration_model(void)
Definition: cs_lagr.cpp:1255
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:1291
@ CS_LAGR_IN_IMPOSED_COMPONENTS
Definition: cs_lagr.h:105
@ CS_LAGR_IN_IMPOSED_NORM
Definition: cs_lagr.h:104
@ CS_LAGR_IN_IMPOSED_FLUID_VALUE
Definition: cs_lagr.h:102
void cs_lagr_solve_initialize(const cs_real_t *dt)
Definition: cs_lagr.cpp:1500
void cs_lagr_injection_set_default(cs_lagr_injection_set_t *zis)
Initialize injection set data structure fields to defaults.
Definition: cs_lagr.cpp:1045
cs_lagr_consolidation_model_t * cs_get_lagr_consolidation_model(void)
Definition: cs_lagr.cpp:1267
cs_lagr_clogging_model_t * cs_get_lagr_clogging_model(void)
Definition: cs_lagr.cpp:1231
cs_lagr_particle_counter_t * cs_lagr_update_particle_counter(void)
Update global particle counter.
Definition: cs_lagr.cpp:1135
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:1192
cs_lagr_encrustation_t * cs_get_lagr_encrustation(void)
Definition: cs_lagr.cpp:1303
cs_lagr_time_step_t * cs_get_lagr_time_step(void)
Definition: cs_lagr.cpp:1279
void cs_lagr_map_specific_physics(void)
Map specific phyical model features to Lagrangian structures.
Definition: cs_lagr.cpp:986
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:1315
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:1425
cs_lagr_time_step_t * cs_glob_lagr_time_step
@ 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_reentrained_model_t * cs_get_lagr_reentrained_model(void)
Provide access to cs_lagr_reentrained_model_t.
Definition: cs_lagr.cpp:1206
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:1401
cs_lagr_dim_t * cs_glob_lagr_dim
void cs_lagr_finalize(void)
Definition: cs_lagr.cpp:843
cs_lagr_shape_model_t * cs_glob_lagr_shape_model
cs_lagr_time_scheme_t * cs_glob_lagr_time_scheme
cs_lagr_clogging_model_t * cs_glob_lagr_clogging_model
integer, dimension(:), pointer, save itypfb
boundary condition type at the boundary face ifac (see cs_user_boundary_conditions)
Definition: pointe.f90:69
Field descriptor.
Definition: cs_field.h:131
Definition: cs_lagr.h:514
cs_real_t base_diameter
Definition: cs_lagr.h:520
cs_real_t scalar_kernel
Definition: cs_lagr.h:519
cs_real_t max_stat_weight
Definition: cs_lagr.h:518
cs_lnum_t n_max_classes
Definition: cs_lagr.h:516
cs_real_t min_stat_weight
Definition: cs_lagr.h:517
Definition: cs_lagr.h:802
int iclogt
Definition: cs_lagr.h:841
int inclg
Definition: cs_lagr.h:835
int has_part_impact_nbr
Definition: cs_lagr.h:824
char ** nombrd
Definition: cs_lagr.h:875
int npstft
Definition: cs_lagr.h:819
int ihdepm
Definition: cs_lagr.h:850
int inclgt
Definition: cs_lagr.h:838
int inbr
Definition: cs_lagr.h:832
int iscovc
Definition: cs_lagr.h:847
int npstf
Definition: cs_lagr.h:811
cs_real_t tstatp
Definition: cs_lagr.h:867
int ihsum
Definition: cs_lagr.h:859
int iclgst
Definition: cs_lagr.h:829
int iclogh
Definition: cs_lagr.h:844
int ihdepv
Definition: cs_lagr.h:853
int ihdiam
Definition: cs_lagr.h:856
Definition: cs_lagr.h:793
int lamvbr
Definition: cs_lagr.h:795
Definition: cs_lagr.h:493
cs_real_t jamlim
Definition: cs_lagr.h:495
cs_real_t diam_mean
Definition: cs_lagr.h:498
cs_real_t mporos
Definition: cs_lagr.h:496
cs_real_t csthpp
Definition: cs_lagr.h:497
Definition: cs_lagr.h:538
cs_real_t force_consol
Definition: cs_lagr.h:543
cs_real_t slope_consol
Definition: cs_lagr.h:542
cs_lnum_t iconsol
Definition: cs_lagr.h:540
cs_real_t rate_consol
Definition: cs_lagr.h:541
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:730
cs_real_t * visref
Definition: cs_lagr.h:754
cs_real_t dnpenc
Definition: cs_lagr.h:757
int iencra
Definition: cs_lagr.h:735
cs_real_t * tprenc
Definition: cs_lagr.h:749
cs_real_t * enc2
Definition: cs_lagr.h:744
int npencr
Definition: cs_lagr.h:738
cs_real_t * enc1
Definition: cs_lagr.h:742
Definition: cs_lagr.h:882
cs_field_t * scal_t
Definition: cs_lagr.h:922
cs_real_3_t * grad_tempf
Definition: cs_lagr.h:971
cs_field_t * vel
Definition: cs_lagr.h:932
int itytur
Definition: cs_lagr.h:886
cs_field_t * cpro_cp
Definition: cs_lagr.h:941
cs_field_t * cvar_omg
Definition: cs_lagr.h:959
cs_real_3_t * grad_lagr_time
Definition: cs_lagr.h:977
cs_field_t * viscl
Definition: cs_lagr.h:935
cs_field_t * rad_energy
Definition: cs_lagr.h:944
cs_field_t * x_eau
Definition: cs_lagr.h:948
cs_field_t * tstar
Definition: cs_lagr.h:913
cs_field_t * cvar_ep
Definition: cs_lagr.h:956
cs_field_t * lagr_time
Definition: cs_lagr.h:974
cs_field_t * x_oxyd
Definition: cs_lagr.h:947
int ncharb
Definition: cs_lagr.h:889
cs_field_t * pressure
Definition: cs_lagr.h:919
cs_real_33_t * grad_vel
Definition: cs_lagr.h:968
cs_field_t * temperature
Definition: cs_lagr.h:923
cs_real_t cmu
Definition: cs_lagr.h:901
cs_real_3_t * grad_pr
Definition: cs_lagr.h:965
cs_field_t * cvar_k
Definition: cs_lagr.h:953
cs_field_t * x_m
Definition: cs_lagr.h:949
cs_field_t * temperature_turbulent_flux
Definition: cs_lagr.h:929
cs_field_t * ustar
Definition: cs_lagr.h:910
cs_field_t * temperature_variance
Definition: cs_lagr.h:926
int icp
Definition: cs_lagr.h:898
cs_field_t * cromf
Definition: cs_lagr.h:916
cs_field_t * cpro_viscls
Definition: cs_lagr.h:938
int radiative_model
Definition: cs_lagr.h:895
int ncharm
Definition: cs_lagr.h:892
cs_field_t * cvar_rij
Definition: cs_lagr.h:962
cs_real_t visls0
Definition: cs_lagr.h:904
int iturb
Definition: cs_lagr.h:885
Definition: cs_lagr.h:527
cs_real_t base_diameter
Definition: cs_lagr.h:530
cs_real_t scalar_kernel
Definition: cs_lagr.h:529
Definition: cs_lagr.h:566
cs_real_t diameter_variance
Definition: cs_lagr.h:610
cs_real_t density
Definition: cs_lagr.h:626
int injection_frequency
Definition: cs_lagr.h:575
int temperature_profile
Definition: cs_lagr.h:593
cs_real_t shape
Definition: cs_lagr.h:612
cs_real_t velocity_magnitude
Definition: cs_lagr.h:604
int velocity_profile
Definition: cs_lagr.h:588
cs_real_t cp
Definition: cs_lagr.h:630
cs_lagr_injection_profile_compute_t * injection_profile_func
Definition: cs_lagr.h:579
cs_real_t diameter
Definition: cs_lagr.h:609
cs_gnum_t n_inject
Definition: cs_lagr.h:572
int cluster
Definition: cs_lagr.h:599
int location_id
Definition: cs_lagr.h:570
cs_real_t fouling_index
Definition: cs_lagr.h:628
int coal_number
Definition: cs_lagr.h:595
void * injection_profile_input
Definition: cs_lagr.h:582
cs_real_t flow_rate
Definition: cs_lagr.h:634
int zone_id
Definition: cs_lagr.h:568
int set_id
Definition: cs_lagr.h:569
int aggregat_class_id
Definition: cs_lagr.h:601
cs_real_t emissivity
Definition: cs_lagr.h:636
cs_real_t stat_weight
Definition: cs_lagr.h:632
cs_real_t temperature
Definition: cs_lagr.h:607
cs_real_t aggregat_fractal_dim
Definition: cs_lagr.h:602
Definition: cs_lagr.h:721
int * i_face_zone_id
Definition: cs_lagr.h:723
Definition: cs_lagr.h:262
int dlvo
Definition: cs_lagr.h:304
int n_stat_classes
Definition: cs_lagr.h:338
int deposition
Definition: cs_lagr.h:302
int physical_model
Definition: cs_lagr.h:276
int fragmentation
Definition: cs_lagr.h:336
int roughness
Definition: cs_lagr.h:308
int precipitation
Definition: cs_lagr.h:327
int n_user_variables
Definition: cs_lagr.h:340
int idistu
Definition: cs_lagr.h:292
int shape
Definition: cs_lagr.h:321
int fouling
Definition: cs_lagr.h:328
int n_temperature_layers
Definition: cs_lagr.h:277
int modcpl
Definition: cs_lagr.h:286
int agglomeration
Definition: cs_lagr.h:332
int consolidation
Definition: cs_lagr.h:325
int resuspension
Definition: cs_lagr.h:312
int clogging
Definition: cs_lagr.h:316
int idiffl
Definition: cs_lagr.h:298
bool viscous_terms
Definition: cs_lagr.h:343
Definition: cs_lagr.h:350
cs_gnum_t n_g_cumulative_total
Definition: cs_lagr.h:354
cs_real_t w_exit
Definition: cs_lagr.h:391
cs_gnum_t n_g_new
Definition: cs_lagr.h:364
cs_gnum_t n_g_resuspended
Definition: cs_lagr.h:379
cs_gnum_t n_g_exit
Definition: cs_lagr.h:367
cs_real_t w_fouling
Definition: cs_lagr.h:400
cs_real_t w_total
Definition: cs_lagr.h:385
cs_gnum_t n_g_failed
Definition: cs_lagr.h:382
cs_gnum_t n_g_fouling
Definition: cs_lagr.h:376
cs_gnum_t n_g_total
Definition: cs_lagr.h:361
cs_real_t w_resuspended
Definition: cs_lagr.h:403
cs_real_t w_deposited
Definition: cs_lagr.h:397
cs_gnum_t n_g_merged
Definition: cs_lagr.h:370
cs_gnum_t n_g_cumulative_failed
Definition: cs_lagr.h:358
cs_real_t w_merged
Definition: cs_lagr.h:394
cs_gnum_t n_g_deposited
Definition: cs_lagr.h:373
cs_real_t w_new
Definition: cs_lagr.h:388
Definition: cs_lagr.h:764
cs_real_t cstham
Definition: cs_lagr.h:767
cs_real_t fion
Definition: cs_lagr.h:786
cs_real_t phi_s
Definition: cs_lagr.h:780
cs_real_t lambda_vdw
Definition: cs_lagr.h:771
cs_real_t epseau
Definition: cs_lagr.h:774
cs_real_t phi_p
Definition: cs_lagr.h:777
cs_real_t valen
Definition: cs_lagr.h:783
Definition: cs_lagr.h:473
cs_real_t diameter
Definition: cs_lagr.h:478
int nbrclas
Definition: cs_lagr.h:476
cs_real_t * mp_diss
Definition: cs_lagr.h:486
cs_real_t rho
Definition: cs_lagr.h:480
int * nbprec
Definition: cs_lagr.h:482
cs_real_t * solub
Definition: cs_lagr.h:484
Definition: cs_lagr.h:451
int iflow
Definition: cs_lagr.h:459
cs_real_t denasp
Definition: cs_lagr.h:463
int ireent
Definition: cs_lagr.h:455
cs_real_t rayasp
Definition: cs_lagr.h:465
cs_real_t modyeq
Definition: cs_lagr.h:464
cs_real_t rayasg
Definition: cs_lagr.h:466
cs_real_t espasg
Definition: cs_lagr.h:462
Definition: cs_lagr.h:505
cs_real_t param_chmb
Definition: cs_lagr.h:507
Definition: cs_lagr.h:643
int npts
Definition: cs_lagr.h:680
int ltsmas
Definition: cs_lagr.h:654
cs_real_t vmax
Definition: cs_lagr.h:687
cs_real_t tmamax
Definition: cs_lagr.h:690
int ltsthe
Definition: cs_lagr.h:662
int ntxerr
Definition: cs_lagr.h:684
int ltsdyn
Definition: cs_lagr.h:648
int nstits
Definition: cs_lagr.h:677
Definition: cs_lagr.h:410
int itpvar
Definition: cs_lagr.h:417
cs_real_t tpart
Definition: cs_lagr.h:435
cs_real_t cppart
Definition: cs_lagr.h:444
int idpvar
Definition: cs_lagr.h:422
int impvar
Definition: cs_lagr.h:427
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:550
cs_real_t dtp
Definition: cs_lagr.h:556
cs_real_t ttclag
Definition: cs_lagr.h:559
int nor
Definition: cs_lagr.h:553
Definition: cs_lagr.h:697
int n_zones
Definition: cs_lagr.h:701
cs_lagr_injection_set_t ** injection_set
Definition: cs_lagr.h:706
char * elt_type
Definition: cs_lagr.h:709
int * zone_type
Definition: cs_lagr.h:702
int location_id
Definition: cs_lagr.h:699
int * n_injection_sets
Definition: cs_lagr.h:704
cs_real_t * particle_flow_rate
Definition: cs_lagr.h:712