1 | #if !defined(corefourshell_h) |
---|
2 | #define corefourshell_h |
---|
3 | |
---|
4 | /** |
---|
5 | * Structure definition for sphere parameters |
---|
6 | */ |
---|
7 | //[PYTHONCLASS] = CoreFourShellModel |
---|
8 | //[DISP_PARAMS] = rad_core0, thick_shell1,thick_shell2,thick_shell3,thick_shell4 |
---|
9 | //[DESCRIPTION] =<text> Calculates the scattering intensity from a core-4 shell structure. |
---|
10 | // scale = scale factor * volume fraction |
---|
11 | // rad_core0: the radius of the core |
---|
12 | // sld_core0: the SLD of the core |
---|
13 | // thick_shelli: the thickness of the i'th shell from the core |
---|
14 | // sld_shelli: the SLD of the i'th shell from the core |
---|
15 | // sld_solv: the SLD of the solvent |
---|
16 | // background: incoherent background |
---|
17 | // </text> |
---|
18 | //[FIXED]=<text> thick_shell4.width; thick_shell1.width;thick_shell2.width;thick_shell3.width;rad_core0.width </text> |
---|
19 | //[ORIENTATION_PARAMS]= <text> </text> |
---|
20 | |
---|
21 | typedef struct { |
---|
22 | /// Scale factor |
---|
23 | // [DEFAULT]=scale= 1.0 |
---|
24 | double scale; |
---|
25 | |
---|
26 | /// Radius of the core0 [A] |
---|
27 | // [DEFAULT]=rad_core0=60. [A] |
---|
28 | double rad_core0; |
---|
29 | |
---|
30 | /// sld of core0 [1/A^(2)] |
---|
31 | // [DEFAULT]=sld_core0= 6.4e-6 [1/A^(2)] |
---|
32 | double sld_core0; |
---|
33 | |
---|
34 | /// thickness of the shell1 [A] |
---|
35 | // [DEFAULT]=thick_shell1=10.0 [A] |
---|
36 | double thick_shell1; |
---|
37 | |
---|
38 | /// sld of shell1 [1/A^(2)] |
---|
39 | // [DEFAULT]=sld_shell1= 1.0e-6 [1/A^(2)] |
---|
40 | double sld_shell1; |
---|
41 | |
---|
42 | /// thickness of the shell2 [A] |
---|
43 | // [DEFAULT]=thick_shell2=10.0 [A] |
---|
44 | double thick_shell2; |
---|
45 | |
---|
46 | /// sld of shell2 [1/A^(2)] |
---|
47 | // [DEFAULT]=sld_shell2= 2.0e-6 [1/A^(2)] |
---|
48 | double sld_shell2; |
---|
49 | |
---|
50 | /// thickness of the shell3 [A] |
---|
51 | // [DEFAULT]=thick_shell3=10.0 [A] |
---|
52 | double thick_shell3; |
---|
53 | |
---|
54 | /// sld of shell3 [1/A^(2)] |
---|
55 | // [DEFAULT]=sld_shell3= 3.0e-6 [1/A^(2)] |
---|
56 | double sld_shell3; |
---|
57 | |
---|
58 | /// thickness of the shell4 [A] |
---|
59 | // [DEFAULT]=thick_shell4=10.0 [A] |
---|
60 | double thick_shell4; |
---|
61 | |
---|
62 | /// sld of shell4 [1/A^(2)] |
---|
63 | // [DEFAULT]=sld_shell4= 4.0e-6 [1/A^(2)] |
---|
64 | double sld_shell4; |
---|
65 | |
---|
66 | /// sld_solv[1/A^(2)] |
---|
67 | // [DEFAULT]=sld_solv= 6.4e-6 [1/A^(2)] |
---|
68 | double sld_solv; |
---|
69 | |
---|
70 | /// Incoherent Background [1/cm] |
---|
71 | // [DEFAULT]=background=0.001 [1/cm] |
---|
72 | double background; |
---|
73 | } CoreFourShellParameters; |
---|
74 | |
---|
75 | |
---|
76 | |
---|
77 | /// 1D scattering function |
---|
78 | double corefourshell_analytical_1D(CoreFourShellParameters *pars, double q); |
---|
79 | |
---|
80 | /// 2D scattering function |
---|
81 | double corefourshell_analytical_2D(CoreFourShellParameters *pars, double q, double phi); |
---|
82 | double corefourshell_analytical_2DXY(CoreFourShellParameters *pars, double qx, double qy); |
---|
83 | |
---|
84 | #endif |
---|