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