src/lagr/cs_lagr_clogging.h Source File

| programmer's documentation

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
cs_lagr_clogging.h
Go to the documentation of this file.
1 /*============================================================================
2 *
3 * This file is part of the Code_Saturne Kernel, element of the
4 * Code_Saturne CFD tool.
5 *
6 * Copyright (C) 1998-2008 EDF S.A., France
7 *
8 * contact: saturne-support@edf.fr
9 *
10 * The Code_Saturne Kernel is free software; you can redistribute it
11 * and/or modify it under the terms of the GNU General Public License
12 * as published by the Free Software Foundation; either version 2 of
13 * the License, or (at your option) any later version.
14 *
15 * The Code_Saturne Kernel is distributed in the hope that it will be
16 * useful, but WITHOUT ANY WARRANTY; without even the implied warranty
17 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with the Code_Saturne Kernel; if not, write to the
22 * Free Software Foundation, Inc.,
23 * 51 Franklin St, Fifth Floor,
24 * Boston, MA 02110-1301 USA
25 *
26 *============================================================================*/
27
28 #ifndef __CS_LAGR_CLOGGING_H__
29 #define __CS_LAGR_CLOGGING_H__
30
31 /*============================================================================
32 * Functions and types for the clogging modeling
33 *============================================================================*/
34
35 /*----------------------------------------------------------------------------
36 * Local headers
37 *----------------------------------------------------------------------------*/
38
39 #include "cs_defs.h"
40 #include "cs_lagr_tracking.h"
41
42 /*----------------------------------------------------------------------------*/
43
44 BEGIN_C_DECLS
45
46 /*============================================================================
47 * Type definitions
48 *============================================================================*/
49
50
51 typedef struct {
52
53 cs_real_t faraday_cst;
54 cs_real_t free_space_permit;
55 cs_real_t water_permit;
56 cs_real_t ionic_strength;
57 cs_real_t jamming_limit;
58 cs_real_t min_porosity;
59 cs_real_t phi1;
60 cs_real_t phi2;
61
62 cs_real_t* temperature;
63 cs_real_t* debye_length;
64 cs_real_t cstham;
65 cs_real_t dcutof;
66 cs_real_t lambwl;
67 cs_real_t kboltz;
68
69 } cs_lagr_clog_param_t;
70
71
72 /*----------------------------------------------------------------------------
73 * Clogging initialization:
74 * - Retrieve various parameters for storing in global structure
75 * - Compute and store the Debye screening length
76 *----------------------------------------------------------------------------*/
77
78 void
79 CS_PROCF (cloginit, CLOGINIT)(const cs_real_t *faraday_cst,
80 const cs_real_t *free_space_permit,
81 const cs_real_t *water_permit,
82 const cs_real_t *ionic_strength,
83 const cs_real_t *jamming_limit,
84 const cs_real_t *min_porosity,
85 const cs_real_t temperature[],
86 const cs_real_t *phi1,
87 const cs_real_t *phi2,
88 const cs_real_t *cstham,
89 const cs_real_t *dcutof,
90 const cs_real_t *lambwl,
91 const cs_real_t *kboltz
92 );
93
94
95 /*----------------------------------------------------------------------------
96 * Clogging ending
97 * Deallocate the arrays storing temperature and Debye length
98 *----------------------------------------------------------------------------*/
99
100 void clogend( void );
101
102
103 /*----------------------------------------------------------------------------
104 * Clogging:
105 *
106 * - Calculation of the number of deposited particles in contact with the
107 * depositing particle
108 * - Re-calculation of the energy barrier in this number is greater than zero
109 *----------------------------------------------------------------------------*/
110
111
112 cs_int_t
113 clogging_barrier(cs_lagr_particle_t particle,
114 cs_int_t face_id,
115 cs_real_t face_area,
116 cs_real_t* energy_barrier,
117 cs_real_t* surface_coverage,
118 cs_real_t* limit ,
119 cs_real_t* mporos
120
121 );
122
123 cs_real_t
124 vdwsa( cs_real_t distcc,
125 cs_real_t rpart1,
126 cs_real_t rpart2
127 );
128
129
130 cs_real_t
131 edlsa( cs_int_t ifac,
132 cs_real_t distcc,
133 cs_real_t rpart1,
134 cs_real_t rpart2
135 );
136
137
138 END_C_DECLS
139
140 #endif /* __CS_LAGR_CLOGGING_H__ */
141