[503a972] | 1 | #if !defined(triaxial_ellipsoid_h) |
---|
| 2 | #define triaxial_ellipsoid_h |
---|
| 3 | #include "parameters.hh" |
---|
| 4 | |
---|
| 5 | /** Structure definition for cylinder parameters |
---|
| 6 | * [PYTHONCLASS] = TriaxialEllipsoidModel |
---|
| 7 | * [DISP_PARAMS] = semi_axisA, semi_axisB, semi_axisC,axis_theta, axis_phi, axis_psi |
---|
| 8 | [DESCRIPTION] = <text>Note: During fitting ensure that the inequality A<B<C is not |
---|
| 9 | violated. Otherwise the calculation will |
---|
| 10 | not be correct. |
---|
| 11 | </text> |
---|
| 12 | [FIXED]= <text>axis_psi.width; axis_phi.width; axis_theta.width; semi_axisA.width; semi_axisB.width; semi_axisC.width </text> |
---|
| 13 | [ORIENTATION_PARAMS]= <text>axis_psi; axis_phi; axis_theta; axis_psi.width; axis_phi.width; axis_theta.width</text> |
---|
| 14 | **/ |
---|
| 15 | |
---|
| 16 | class TriaxialEllipsoidModel{ |
---|
| 17 | public: |
---|
| 18 | // Model parameters |
---|
| 19 | /// Scale factor |
---|
| 20 | // [DEFAULT]=scale=1.0 |
---|
| 21 | Parameter scale; |
---|
| 22 | /// semi -axis A of the triaxial_ellipsoid [A] |
---|
| 23 | // [DEFAULT]=semi_axisA= 35.0 [A] |
---|
| 24 | Parameter semi_axisA; |
---|
| 25 | /// semi -axis B of the triaxial_ellipsoid [A] |
---|
| 26 | // [DEFAULT]=semi_axisB=100.0 [A] |
---|
| 27 | Parameter semi_axisB; |
---|
| 28 | /// semi -axis C of the triaxial_ellipsoid [A] |
---|
| 29 | // [DEFAULT]=semi_axisC=400.0 [A] |
---|
| 30 | Parameter semi_axisC; |
---|
| 31 | /// sldEll [1/A^(2)] |
---|
| 32 | // [DEFAULT]=sldEll=1.0e-6 [1/A^(2)] |
---|
| 33 | Parameter sldEll; |
---|
| 34 | /// sldSolv [1/A^(2)] |
---|
| 35 | // [DEFAULT]=sldSolv=6.3e-6 [1/A^(2)] |
---|
| 36 | Parameter sldSolv; |
---|
| 37 | /// Incoherent Background [1/cm] 0.00 |
---|
| 38 | // [DEFAULT]=background=0.0 [1/cm] |
---|
| 39 | Parameter background; |
---|
| 40 | /// Orientation of the triaxial_ellipsoid axis w/respect incoming beam [deg] |
---|
| 41 | // [DEFAULT]=axis_theta=57.325 [deg] |
---|
| 42 | Parameter axis_theta; |
---|
| 43 | /// Orientation of the triaxial_ellipsoid in the plane of the detector [deg] |
---|
| 44 | // [DEFAULT]=axis_phi=57.325 [deg] |
---|
| 45 | Parameter axis_phi; |
---|
| 46 | /// Orientation of the cross section of the triaxial_ellipsoid in the plane of the detector [deg] |
---|
| 47 | // [DEFAULT]=axis_psi=0.0 [deg] |
---|
| 48 | Parameter axis_psi; |
---|
| 49 | |
---|
| 50 | // Constructor |
---|
| 51 | TriaxialEllipsoidModel(); |
---|
| 52 | |
---|
| 53 | // Operators to get I(Q) |
---|
| 54 | double operator()(double q); |
---|
| 55 | double operator()(double qx, double qy); |
---|
| 56 | double calculate_ER(); |
---|
| 57 | double evaluate_rphi(double q, double phi); |
---|
| 58 | }; |
---|
| 59 | #endif |
---|