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 | * [DESCRIPTION] = Please see details... |
---|
8 | * [FIXED]= <text> cyl_phi.width; |
---|
9 | * cyl_theta.width; cyl_psi.width; length.width; r_minor.width; r_ratio.width |
---|
10 | *</text> |
---|
11 | * [ORIENTATION_PARAMS]= cyl_phi; cyl_theta; cyl_psi; cyl_phi.width; cyl_theta.width; cyl_psi.width |
---|
12 | * */ |
---|
13 | |
---|
14 | |
---|
15 | typedef struct { |
---|
16 | /// Scale factor |
---|
17 | // [DEFAULT]=scale=1.0 |
---|
18 | double scale; |
---|
19 | /// Minor radius [A] |
---|
20 | // [DEFAULT]=r_minor=20.0 [A] |
---|
21 | double r_minor; |
---|
22 | /// Ratio of major/minor radii |
---|
23 | // [DEFAULT]=r_ratio=1.5 |
---|
24 | double r_ratio; |
---|
25 | /// Length of the cylinder [A] |
---|
26 | // [DEFAULT]=length=400.0 [A] |
---|
27 | double length; |
---|
28 | /// Contrast [1/A²] |
---|
29 | // [DEFAULT]=contrast=3.0e-6 [1/A²] |
---|
30 | double contrast; |
---|
31 | /// Incoherent Background [1/cm] 0.000 |
---|
32 | // [DEFAULT]=background=0 [1/cm] |
---|
33 | double background; |
---|
34 | /// Orientation of the cylinder axis w/respect incoming beam [rad] |
---|
35 | // [DEFAULT]=cyl_theta=1.57 [rad] |
---|
36 | double cyl_theta; |
---|
37 | /// Orientation of the cylinder in the plane of the detector [rad] |
---|
38 | // [DEFAULT]=cyl_phi=0.0 [rad] |
---|
39 | double cyl_phi; |
---|
40 | /// Orientation of major radius of the cross-section w/respect vector q [rad] |
---|
41 | // [DEFAULT]=cyl_psi=0.0 [rad] |
---|
42 | double cyl_psi; |
---|
43 | } EllipticalCylinderParameters; |
---|
44 | |
---|
45 | |
---|
46 | |
---|
47 | /// 1D scattering function |
---|
48 | double elliptical_cylinder_analytical_1D(EllipticalCylinderParameters *pars, double q); |
---|
49 | |
---|
50 | /// 2D scattering function |
---|
51 | double elliptical_cylinder_analytical_2D(EllipticalCylinderParameters *pars, double q, double phi); |
---|
52 | double elliptical_cylinder_analytical_2DXY(EllipticalCylinderParameters *pars, double qx, double qy); |
---|
53 | double elliptical_cylinder_analytical_2D_scaled(EllipticalCylinderParameters *pars, double q, double q_x, double q_y); |
---|
54 | |
---|
55 | #endif |
---|