1 | #if !defined(hollow_cylinder_h) |
---|
2 | #define hollow_cylinder_h |
---|
3 | |
---|
4 | /** |
---|
5 | * Structure definition for hollow cylinder parameters |
---|
6 | */ |
---|
7 | //[PYTHONCLASS] = HollowCylinderModel |
---|
8 | //[DISP_PARAMS] = core_radius, shell_radius, length, axis_theta, axis_phi |
---|
9 | //[DESCRIPTION] = <text></text> |
---|
10 | //[FIXED]= <text> axis_phi.width; axis_theta.width; length.width;core_radius.width; shell_radius</text> |
---|
11 | //[ORIENTATION_PARAMS]= axis_phi; axis_theta;axis_phi.width; axis_theta.width |
---|
12 | |
---|
13 | |
---|
14 | typedef struct { |
---|
15 | /// Scale factor |
---|
16 | // [DEFAULT]=scale=1.0 |
---|
17 | double scale; |
---|
18 | |
---|
19 | /// Core radius [A] |
---|
20 | // [DEFAULT]=core_radius=20.0 [A] |
---|
21 | double core_radius; |
---|
22 | |
---|
23 | /// Shell radius [A] |
---|
24 | // [DEFAULT]=shell_radius=30.0 [A] |
---|
25 | double shell_radius; |
---|
26 | |
---|
27 | /// Hollow cylinder length [A] |
---|
28 | // [DEFAULT]=length=400.0 [A] |
---|
29 | double length; |
---|
30 | |
---|
31 | /// Contrast [1/A²] |
---|
32 | // [DEFAULT]=contrast=5.3e-6 [1/A²] |
---|
33 | double contrast; |
---|
34 | |
---|
35 | /// Incoherent Background [1/cm] |
---|
36 | // [DEFAULT]=background=0.01 [1/cm] |
---|
37 | double background; |
---|
38 | |
---|
39 | /// Orientation of the long axis of the hollow cylinder w/respect incoming beam [rad] |
---|
40 | // [DEFAULT]=axis_theta=1.57 [rad] |
---|
41 | double axis_theta; |
---|
42 | |
---|
43 | /// Orientation of the long axis of the hollow cylinder in the plane of the detector [rad] |
---|
44 | // [DEFAULT]=axis_phi=0.0 [rad] |
---|
45 | double axis_phi; |
---|
46 | |
---|
47 | } HollowCylinderParameters; |
---|
48 | |
---|
49 | |
---|
50 | |
---|
51 | /// 1D scattering function |
---|
52 | double hollow_cylinder_analytical_1D(HollowCylinderParameters *pars, double q); |
---|
53 | |
---|
54 | /// 2D scattering function |
---|
55 | double hollow_cylinder_analytical_2D(HollowCylinderParameters *pars, double q, double phi); |
---|
56 | double hollow_cylinder_analytical_2DXY(HollowCylinderParameters *pars, double qx, double qy); |
---|
57 | double hollow_cylinder_analytical_2D_scaled(HollowCylinderParameters *pars, double q, double q_x, double q_y); |
---|
58 | |
---|
59 | #endif |
---|