1 | #if !defined(binaryHS_h) |
---|
2 | #define binaryHS_h |
---|
3 | |
---|
4 | /** |
---|
5 | * Structure definition for binary hard sphere parameters |
---|
6 | |
---|
7 | [PYTHONCLASS] = BinaryHSModel |
---|
8 | [DISP_PARAMS] = l_radius,s_radius |
---|
9 | [DESCRIPTION] =<text> Model parameters: l_radius : large radius of binary hard sphere |
---|
10 | s_radius : small radius of binary hard sphere |
---|
11 | vol_frac_ls : volume fraction of large spheres |
---|
12 | vol_frac_ss : volume fraction of small spheres |
---|
13 | ls_sld: large sphere scattering length density |
---|
14 | ss_sld: small sphere scattering length density |
---|
15 | solvent_sld: solvent scattering length density |
---|
16 | background: incoherent background |
---|
17 | </text> |
---|
18 | [FIXED]= l_radius.width;s_radius.width |
---|
19 | [ORIENTATION_PARAMS]= <text> </text> |
---|
20 | */ |
---|
21 | typedef struct { |
---|
22 | |
---|
23 | /// large radius of the binary hard sphere [A] |
---|
24 | // [DEFAULT]=l_radius= 100.0 [A] |
---|
25 | double l_radius; |
---|
26 | |
---|
27 | /// small radius of the binary hard sphere [A] |
---|
28 | // [DEFAULT]=s_radius= 25.0 [A] |
---|
29 | double s_radius; |
---|
30 | |
---|
31 | /// volume fraction of large spheres |
---|
32 | // [DEFAULT]=vol_frac_ls= 0.1 |
---|
33 | double vol_frac_ls; |
---|
34 | |
---|
35 | /// volume fraction of small spheres |
---|
36 | // [DEFAULT]=vol_frac_ss= 0.2 |
---|
37 | double vol_frac_ss; |
---|
38 | |
---|
39 | /// large sphere scattering length density [1/Ų] |
---|
40 | // [DEFAULT]=ls_sld= 3.5e-6 [1/A²] |
---|
41 | double ls_sld; |
---|
42 | |
---|
43 | /// lsmall sphere scattering length density [1/Ų] |
---|
44 | // [DEFAULT]=ss_sld= 5e-7 [1/A²] |
---|
45 | double ss_sld; |
---|
46 | |
---|
47 | /// solvent scattering length density [1/Ų] |
---|
48 | // [DEFAULT]=solvent_sld= 6.36e-6 [1/A²] |
---|
49 | double solvent_sld; |
---|
50 | |
---|
51 | /// Incoherent Background [1/cm] |
---|
52 | // [DEFAULT]=background=0.001 [1/cm] |
---|
53 | double background; |
---|
54 | |
---|
55 | } BinaryHSParameters; |
---|
56 | |
---|
57 | |
---|
58 | |
---|
59 | /// 1D scattering function |
---|
60 | double binaryHS_analytical_1D(BinaryHSParameters *pars, double q); |
---|
61 | |
---|
62 | /// 2D scattering function |
---|
63 | double binaryHS_analytical_2D(BinaryHSParameters *pars, double q, double phi); |
---|
64 | double binaryHS_analytical_2DXY(BinaryHSParameters *pars, double qx, double qy); |
---|
65 | |
---|
66 | #endif |
---|