programmer's documentation
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
cs_lagr_dlvo.h
Go to the documentation of this file.
1 #ifndef __CS_LAGR_DLVO_H__
2 #define __CS_LAGR_DLVO_H__
3 
4 /*============================================================================
5  * Functions and types for the clogging modeling
6  *============================================================================*/
7 
8 /*
9  This file is part of Code_Saturne, a general-purpose CFD tool.
10 
11  Copyright (C) 1998-2014 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 /*----------------------------------------------------------------------------
31  * Local headers
32  *----------------------------------------------------------------------------*/
33 
34 #include "cs_defs.h"
35 
36 #include "cs_lagr_tracking.h"
37 
38 /*----------------------------------------------------------------------------*/
39 
41 
42 /*=============================================================================
43  * Function definitions
44  *============================================================================*/
45 
46 /*----------------------------------------------------------------------------
47  * Van der Waals interaction between a sphere and a plane
48  * using formulas from Czarnecki (large distances)
49  * and Gregory (small distances)
50  *----------------------------------------------------------------------------*/
51 
54  cs_real_t rpart,
55  cs_real_t lambwl,
56  cs_real_t cstham);
57 
58 /*----------------------------------------------------------------------------
59  * Calculation of the Van der Waals interaction between two spheres
60  * following the formula from Gregory (1981a)
61  *----------------------------------------------------------------------------*/
62 
65  cs_real_t rpart1,
66  cs_real_t rpart2,
67  cs_real_t lambwl,
68  cs_real_t cstham);
69 
70 /*----------------------------------------------------------------------------
71  * Electric Double Layer (EDL) interaction between a sphere and a plane
72  * using the formula from Bell & al (1970)
73  * based on the McCartney & Levine method
74  *----------------------------------------------------------------------------*/
75 
78  cs_real_t rpart,
79  cs_real_t phi1,
80  cs_real_t phi2,
81  cs_real_t kboltz,
82  cs_real_t temp,
83  cs_real_t debye_length,
84  cs_real_t free_space_permit,
85  cs_real_t water_permit);
86 
87 /*----------------------------------------------------------------------------
88  * Calculation of the EDL interaction between two spheres
89  * using the formula from Bell & al (1970)
90  * based on the McCartney & Levine method
91  *----------------------------------------------------------------------------*/
92 
95  cs_real_t rpart1,
96  cs_real_t rpart2,
97  cs_real_t phi1,
98  cs_real_t phi2,
99  cs_real_t kboltz,
100  cs_real_t temp,
101  cs_real_t debye_length,
102  cs_real_t free_space_permit,
103  cs_real_t water_permit);
104 
105 /*----------------------------------------------------------------------------*/
106 
108 
109 #endif /* __CS_LAGR_DLVO_H__ */
110 
#define BEGIN_C_DECLS
Definition: cs_defs.h:405
cs_real_t cs_lagr_van_der_waals_sphere_plane(cs_real_t distp, cs_real_t rpart, cs_real_t lambwl, cs_real_t cstham)
Definition: cs_lagr_dlvo.c:90
#define END_C_DECLS
Definition: cs_defs.h:406
double cs_real_t
Definition: cs_defs.h:296
cs_real_t cs_lagr_edl_sphere_plane(cs_real_t distp, cs_real_t rpart, cs_real_t phi1, cs_real_t phi2, cs_real_t kboltz, cs_real_t temp, cs_real_t debye_length, cs_real_t free_space_permit, cs_real_t water_permit)
Definition: cs_lagr_dlvo.c:143
cs_real_t cs_lagr_van_der_waals_sphere_sphere(cs_real_t distcc, cs_real_t rpart1, cs_real_t rpart2, cs_real_t lambwl, cs_real_t cstham)
Definition: cs_lagr_dlvo.c:123
cs_real_t cs_lagr_edl_sphere_sphere(cs_real_t distcc, cs_real_t rpart1, cs_real_t rpart2, cs_real_t phi1, cs_real_t phi2, cs_real_t kboltz, cs_real_t temp, cs_real_t debye_length, cs_real_t free_space_permit, cs_real_t water_permit)
Definition: cs_lagr_dlvo.c:192