[5068697] | 1 | #if !defined(triaxial_ellipsoid_h) |
---|
| 2 | #define triaxial_ellipsoid_h |
---|
| 3 | /** Structure definition for cylinder parameters |
---|
| 4 | * [PYTHONCLASS] = TriaxialEllipsoidModel |
---|
| 5 | * [DISP_PARAMS] = axis_theta, axis_phi |
---|
| 6 | [DESCRIPTION] = <text> Note: |
---|
| 7 | Constraints must be applied during fitting to ensure that the inequality a<b<c is not |
---|
| 8 | violated. The calculation will not report an error, but the results will not be correct. |
---|
| 9 | </text> |
---|
| 10 | [FIXED]= <text>axis_phi.width; axis_theta.width; semi_axisA.width; semi_axisB.width; semi_axisC.width </text> |
---|
| 11 | [ORIENTATION_PARAMS]= <text>axis_phi; axis_theta; axis_phi.width; axis_theta.width</text> |
---|
| 12 | |
---|
| 13 | |
---|
| 14 | **/ |
---|
| 15 | typedef struct { |
---|
| 16 | /// Scale factor |
---|
| 17 | // [DEFAULT]=scale=1.0 |
---|
| 18 | double scale; |
---|
| 19 | /// semi -axis B of the triaxial_ellipsoid [A] |
---|
| 20 | // [DEFAULT]=semi_axisB= 35.0 [A] |
---|
| 21 | double semi_axisA; |
---|
| 22 | /// semi -axis B of the triaxial_ellipsoid [A] |
---|
| 23 | // [DEFAULT]=semi_axisA=100.0 [A] |
---|
| 24 | double semi_axisB; |
---|
| 25 | /// semi -axis C of the triaxial_ellipsoid [A] |
---|
| 26 | // [DEFAULT]=semi_axisC=400.0 [A] |
---|
| 27 | double semi_axisC; |
---|
| 28 | /// Contrast [1/A²] |
---|
| 29 | // [DEFAULT]=contrast=5.3e-6 [1/A²] |
---|
| 30 | double contrast; |
---|
| 31 | /// Incoherent Background [1/cm] 0.00 |
---|
| 32 | // [DEFAULT]=background=0.0 [1/cm] |
---|
| 33 | double background; |
---|
| 34 | /// Orientation of the triaxial_ellipsoid axis w/respect incoming beam [rad] |
---|
| 35 | // [DEFAULT]=axis_theta=1.0 [rad] |
---|
| 36 | double axis_theta; |
---|
| 37 | /// Orientation of the triaxial_ellipsoid in the plane of the detector [rad] |
---|
| 38 | // [DEFAULT]=axis_phi=1.0 [rad] |
---|
| 39 | double axis_phi; |
---|
| 40 | |
---|
| 41 | } TriaxialEllipsoidParameters; |
---|
| 42 | |
---|
| 43 | |
---|
| 44 | |
---|
| 45 | /// 1D scattering function |
---|
| 46 | double triaxial_ellipsoid_analytical_1D(TriaxialEllipsoidParameters *pars, double q); |
---|
| 47 | |
---|
| 48 | /// 2D scattering function |
---|
| 49 | double triaxial_ellipsoid_analytical_2D(TriaxialEllipsoidParameters *pars, double q, double phi); |
---|
| 50 | double triaxial_ellipsoid_analytical_2DXY(TriaxialEllipsoidParameters *pars, double qx, double qy); |
---|
| 51 | double triaxial_ellipsoid_analytical_2D_scaled(TriaxialEllipsoidParameters *pars, double q, double q_x, double q_y); |
---|
| 52 | |
---|
| 53 | #endif |
---|