1 | #if !defined(HayterMSA_h) |
---|
2 | #define HayterMSA_h |
---|
3 | |
---|
4 | /** |
---|
5 | * Structure definition for screened Coulomb interaction |
---|
6 | */ |
---|
7 | //[PYTHONCLASS] = HayterMSAStructure |
---|
8 | //[DISP_PARAMS] = radius |
---|
9 | //[DESCRIPTION] =<text>To calculate the structure factor (the Fourier transform |
---|
10 | // of the pair correlation function g(r)) for |
---|
11 | // a system of charged, spheroidal objects in |
---|
12 | // a dielectric medium. When combined with an |
---|
13 | // appropriate form factor, this allows |
---|
14 | // for inclusion of the interparticle |
---|
15 | // interference effects due to screened coulomb |
---|
16 | // repulsion between charged particles. |
---|
17 | // (note: charge > 0 required.) |
---|
18 | // |
---|
19 | // Ref: JP Hansen and JB Hayter, Molecular |
---|
20 | // Physics 46, 651-656 (1982). |
---|
21 | // |
---|
22 | // </text> |
---|
23 | //[FIXED]= radius.width |
---|
24 | |
---|
25 | typedef struct { |
---|
26 | /// Radius of particle [A] |
---|
27 | // [DEFAULT]=radius=20.75 A |
---|
28 | double radius; |
---|
29 | |
---|
30 | /// charge |
---|
31 | // [DEFAULT]=charge= 19 |
---|
32 | double charge; |
---|
33 | |
---|
34 | /// Volume fraction |
---|
35 | // [DEFAULT]=volfraction= 0.0192 |
---|
36 | double volfraction; |
---|
37 | |
---|
38 | /// Temperature [K] |
---|
39 | // [DEFAULT]=temperature= 318.16 K |
---|
40 | double temperature; |
---|
41 | |
---|
42 | /// Monovalent salt concentration [M] |
---|
43 | // [DEFAULT]=saltconc= 0 |
---|
44 | double saltconc; |
---|
45 | |
---|
46 | /// Dielectric constant of solvent |
---|
47 | // [DEFAULT]=dielectconst= 71.08 |
---|
48 | double dielectconst; |
---|
49 | } HayterMSAParameters; |
---|
50 | |
---|
51 | |
---|
52 | |
---|
53 | /// 1D scattering function |
---|
54 | double HayterMSA_analytical_1D(HayterMSAParameters *pars, double q); |
---|
55 | |
---|
56 | /// 2D scattering function |
---|
57 | double HayterMSA_analytical_2D(HayterMSAParameters *pars, double q, double phi); |
---|
58 | double HayterMSA_analytical_2DXY(HayterMSAParameters *pars, double qx, double qy); |
---|
59 | |
---|
60 | #endif |
---|