1 | #if !defined(core_shell_cylinder_h) |
---|
2 | #define core_shell_cylinder_h |
---|
3 | |
---|
4 | /** |
---|
5 | * Structure definition for core-shell cylinder parameters |
---|
6 | */ |
---|
7 | //[PYTHONCLASS] = CoreShellCylinderModel |
---|
8 | //[DISP_PARAMS] = radius, thickness, length, axis_theta, axis_phi |
---|
9 | typedef struct { |
---|
10 | /// Scale factor |
---|
11 | // [DEFAULT]=scale=1.0 |
---|
12 | double scale; |
---|
13 | |
---|
14 | /// Core radius [A] |
---|
15 | // [DEFAULT]=radius=20.0 A |
---|
16 | double radius; |
---|
17 | |
---|
18 | /// Shell thickness [A] |
---|
19 | // [DEFAULT]=thickness=10.0 A |
---|
20 | double thickness; |
---|
21 | |
---|
22 | /// Core length [A] |
---|
23 | // [DEFAULT]=length=400.0 A |
---|
24 | double length; |
---|
25 | |
---|
26 | /// Core SLD [A-2] |
---|
27 | // [DEFAULT]=core_sld=1.0e-6 A-2 |
---|
28 | double core_sld; |
---|
29 | |
---|
30 | /// Shell SLD [A-2] |
---|
31 | // [DEFAULT]=shell_sld=4.0e-6 A-2 |
---|
32 | double shell_sld; |
---|
33 | |
---|
34 | /// Solvent SLD [A-2] |
---|
35 | // [DEFAULT]=solvent_sld=1.0e-6 A-2 |
---|
36 | double solvent_sld; |
---|
37 | |
---|
38 | /// Incoherent Background [cm-1] |
---|
39 | // [DEFAULT]=background=0 cm-1 |
---|
40 | double background; |
---|
41 | |
---|
42 | /// Orientation of the long axis of the core-shell cylinder w/respect incoming beam [rad] |
---|
43 | // [DEFAULT]=axis_theta=1.57 rad |
---|
44 | double axis_theta; |
---|
45 | |
---|
46 | /// Orientation of the long axis of the core-shell cylinder in the plane of the detector [rad] |
---|
47 | // [DEFAULT]=axis_phi=0.0 rad |
---|
48 | double axis_phi; |
---|
49 | |
---|
50 | } CoreShellCylinderParameters; |
---|
51 | |
---|
52 | |
---|
53 | |
---|
54 | /// 1D scattering function |
---|
55 | double core_shell_cylinder_analytical_1D(CoreShellCylinderParameters *pars, double q); |
---|
56 | |
---|
57 | /// 2D scattering function |
---|
58 | double core_shell_cylinder_analytical_2D(CoreShellCylinderParameters *pars, double q, double phi); |
---|
59 | double core_shell_cylinder_analytical_2DXY(CoreShellCylinderParameters *pars, double qx, double qy); |
---|
60 | double core_shell_cylinder_analytical_2D_scaled(CoreShellCylinderParameters *pars, double q, double q_x, double q_y); |
---|
61 | |
---|
62 | #endif |
---|