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