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