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, axis_psi |
---|
6 | [DESCRIPTION] = <text>Note: During fitting ensure that the inequality A<B<C is not |
---|
7 | violated. Otherwise the calculation will |
---|
8 | not be correct. |
---|
9 | </text> |
---|
10 | [FIXED]= <text>axis_psi.width; axis_phi.width; axis_theta.width; semi_axisA.width; semi_axisB.width; semi_axisC.width </text> |
---|
11 | [ORIENTATION_PARAMS]= <text>axis_psi; axis_phi; axis_theta; axis_psi.width; axis_phi.width; axis_theta.width</text> |
---|
12 | **/ |
---|
13 | typedef struct { |
---|
14 | /// Scale factor |
---|
15 | // [DEFAULT]=scale=1.0 |
---|
16 | double scale; |
---|
17 | /// semi -axis A of the triaxial_ellipsoid [A] |
---|
18 | // [DEFAULT]=semi_axisA= 35.0 [A] |
---|
19 | double semi_axisA; |
---|
20 | /// semi -axis B of the triaxial_ellipsoid [A] |
---|
21 | // [DEFAULT]=semi_axisB=100.0 [A] |
---|
22 | double semi_axisB; |
---|
23 | /// semi -axis C of the triaxial_ellipsoid [A] |
---|
24 | // [DEFAULT]=semi_axisC=400.0 [A] |
---|
25 | double semi_axisC; |
---|
26 | /// Contrast [1/A^(2)] |
---|
27 | // [DEFAULT]=contrast=5.3e-6 [1/A^(2)] |
---|
28 | double contrast; |
---|
29 | /// Incoherent Background [1/cm] 0.00 |
---|
30 | // [DEFAULT]=background=0.0 [1/cm] |
---|
31 | double background; |
---|
32 | /// Orientation of the triaxial_ellipsoid axis w/respect incoming beam [rad] |
---|
33 | // [DEFAULT]=axis_theta=1.0 [rad] |
---|
34 | double axis_theta; |
---|
35 | /// Orientation of the triaxial_ellipsoid in the plane of the detector [rad] |
---|
36 | // [DEFAULT]=axis_phi=1.0 [rad] |
---|
37 | double axis_phi; |
---|
38 | /// Orientation of the cross section of the triaxial_ellipsoid in the plane of the detector [rad] |
---|
39 | // [DEFAULT]=axis_psi=0.0 [rad] |
---|
40 | double axis_psi; |
---|
41 | |
---|
42 | } TriaxialEllipsoidParameters; |
---|
43 | |
---|
44 | |
---|
45 | |
---|
46 | /// 1D scattering function |
---|
47 | double triaxial_ellipsoid_analytical_1D(TriaxialEllipsoidParameters *pars, double q); |
---|
48 | |
---|
49 | /// 2D scattering function |
---|
50 | double triaxial_ellipsoid_analytical_2D(TriaxialEllipsoidParameters *pars, double q, double phi); |
---|
51 | double triaxial_ellipsoid_analytical_2DXY(TriaxialEllipsoidParameters *pars, double qx, double qy); |
---|
52 | double triaxial_ellipsoid_analytical_2D_scaled(TriaxialEllipsoidParameters *pars, double q, double q_x, double q_y); |
---|
53 | |
---|
54 | #endif |
---|