1 | #if !defined(ell_cylinder_h) |
---|
2 | #define ell_cylinder_h |
---|
3 | |
---|
4 | /** Structure definition for cylinder parameters |
---|
5 | * [PYTHONCLASS] = EllipticalCylinderModel |
---|
6 | * [DISP_PARAMS] = r_minor, r_ratio, length, cyl_theta, cyl_phi, cyl_psi |
---|
7 | * |
---|
8 | * */ |
---|
9 | typedef struct { |
---|
10 | /// Scale factor |
---|
11 | // [DEFAULT]=scale=1.0 |
---|
12 | double scale; |
---|
13 | /// Minor radius [A] |
---|
14 | // [DEFAULT]=r_minor=20.0 A |
---|
15 | double r_minor; |
---|
16 | /// Ratio of major/minor radii |
---|
17 | // [DEFAULT]=r_ratio=1.5 A |
---|
18 | double r_ratio; |
---|
19 | /// Length of the cylinder [A] |
---|
20 | // [DEFAULT]=length=400.0 A |
---|
21 | double length; |
---|
22 | /// Contrast [A-2] |
---|
23 | // [DEFAULT]=contrast=3.0e-6 A-2 |
---|
24 | double contrast; |
---|
25 | /// Incoherent Background (cm-1) 0.000 |
---|
26 | // [DEFAULT]=background=0 cm-1 |
---|
27 | double background; |
---|
28 | /// Orientation of the cylinder axis w/respect incoming beam [rad] |
---|
29 | // [DEFAULT]=cyl_theta=1.57 rad |
---|
30 | double cyl_theta; |
---|
31 | /// Orientation of the cylinder in the plane of the detector [rad] |
---|
32 | // [DEFAULT]=cyl_phi=0.0 rad |
---|
33 | double cyl_phi; |
---|
34 | /// Orientation of major radius of the cross-section w/respect vector q [rad] |
---|
35 | // [DEFAULT]=cyl_psi=0.0 rad |
---|
36 | double cyl_psi; |
---|
37 | } EllipticalCylinderParameters; |
---|
38 | |
---|
39 | |
---|
40 | |
---|
41 | /// 1D scattering function |
---|
42 | double elliptical_cylinder_analytical_1D(EllipticalCylinderParameters *pars, double q); |
---|
43 | |
---|
44 | /// 2D scattering function |
---|
45 | double elliptical_cylinder_analytical_2D(EllipticalCylinderParameters *pars, double q, double phi); |
---|
46 | double elliptical_cylinder_analytical_2DXY(EllipticalCylinderParameters *pars, double qx, double qy); |
---|
47 | double elliptical_cylinder_analytical_2D_scaled(EllipticalCylinderParameters *pars, double q, double q_x, double q_y); |
---|
48 | |
---|
49 | #endif |
---|