programmer's documentation
 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 
45 
46 /*============================================================================
47  * Type definitions
48  *============================================================================*/
49 
50 
51 typedef struct {
52 
61 
68 
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
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 
139 
140 #endif /* __CS_LAGR_CLOGGING_H__ */
141 
cs_int_t clogging_barrier(cs_lagr_particle_t particle, cs_int_t face_id, cs_real_t face_area, cs_real_t *energy_barrier, cs_real_t *surface_coverage, cs_real_t *limit, cs_real_t *mporos)
Definition: cs_lagr_clogging.c:189
cs_real_t free_space_permit
Definition: cs_lagr_clogging.h:54
void clogend(void)
Definition: cs_lagr_clogging.c:173
Definition: cs_lagr_clogging.h:51
void cloginit(const cs_real_t *faraday_cst, const cs_real_t *free_space_permit, const cs_real_t *water_permit, const cs_real_t *ionic_strength, const cs_real_t *jamming_limit, const cs_real_t *min_porosity, const cs_real_t temperature[], const cs_real_t *phi1, const cs_real_t *phi2, const cs_real_t *cstham, const cs_real_t *dcutof, const cs_real_t *lambwl, const cs_real_t *kboltz)
Definition: cs_lagr_clogging.c:92
cs_real_t phi1
Definition: cs_lagr_clogging.h:59
cs_real_t phi2
Definition: cs_lagr_clogging.h:60
#define BEGIN_C_DECLS
Definition: cs_defs.h:403
int cs_int_t
Fortran-compatible integer.
Definition: cs_defs.h:295
cs_real_t faraday_cst
Definition: cs_lagr_clogging.h:53
cs_real_t ionic_strength
Definition: cs_lagr_clogging.h:56
cs_real_t dcutof
Definition: cs_lagr_clogging.h:65
cs_real_t min_porosity
Definition: cs_lagr_clogging.h:58
cs_real_t vdwsa(cs_real_t distcc, cs_real_t rpart1, cs_real_t rpart2)
Definition: cs_lagr_clogging.c:295
cs_real_t jamming_limit
Definition: cs_lagr_clogging.h:57
cs_real_t edlsa(cs_int_t ifac, cs_real_t distcc, cs_real_t rpart1, cs_real_t rpart2)
Definition: cs_lagr_clogging.c:314
cs_real_t cstham
Definition: cs_lagr_clogging.h:64
cs_real_t * temperature
Definition: cs_lagr_clogging.h:62
#define END_C_DECLS
Definition: cs_defs.h:404
double cs_real_t
Definition: cs_defs.h:296
#define CS_PROCF(x, y)
Definition: cs_defs.h:417
cs_real_t kboltz
Definition: cs_lagr_clogging.h:67
Definition: cs_lagr_tracking.h:128
cs_real_t * debye_length
Definition: cs_lagr_clogging.h:63
cs_real_t water_permit
Definition: cs_lagr_clogging.h:55
cs_real_t lambwl
Definition: cs_lagr_clogging.h:66