programmer's documentation
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-2016 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,
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,
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,
83  cs_real_t temp,
84  cs_real_t debye_length,
85  cs_real_t free_space_permit,
86  cs_real_t water_permit);
87 
88 /*----------------------------------------------------------------------------
89  * Calculation of the EDL interaction between two spheres
90  * using the formula from Bell & al (1970)
91  * based on the McCartney & Levine method
92  *----------------------------------------------------------------------------*/
93 
96  cs_real_t rpart1,
97  cs_real_t rpart2,
100  cs_real_t phi2,
102  cs_real_t temp,
103  cs_real_t debye_length,
104  cs_real_t free_space_permit,
105  cs_real_t water_permit);
106 
107 /*----------------------------------------------------------------------------*/
108 
110 
111 #endif /* __CS_LAGR_DLVO_H__ */
112 
double precision, save phi2
Electrokinetic potential of the second solid.
Definition: lagran.f90:1015
double precision kboltz
Boltzmann constant (J/K)
Definition: lagran.f90:1032
double precision, save cstham
Hamaker constant for the particle/fluid/substrate system.
Definition: lagran.f90:1006
cs_real_t cs_lagr_edl_sphere_plane(cs_real_t distp, cs_real_t rpart, cs_real_t valen, 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:147
#define BEGIN_C_DECLS
Definition: cs_defs.h:419
double precision, save valen
Valency of ions in the solution (used for EDL forces)
Definition: lagran.f90:1018
double precision, save phi1
Electrokinetic potential of the first solid.
Definition: lagran.f90:1012
double precision lambwl
Characteristic retardation wavelength (m) for Hamaker constant.
Definition: lagran.f90:1040
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:94
cs_real_t cs_lagr_edl_sphere_sphere(cs_real_t distcc, cs_real_t rpart1, cs_real_t rpart2, cs_real_t valen, 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:196
#define END_C_DECLS
Definition: cs_defs.h:420
double cs_real_t
Definition: cs_defs.h:296
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:127