source: sasview/src/sans/models/include/triaxial_ellipsoid.h @ 79d5b6c

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.1.1release-4.1.2release-4.2.2release_4.0.1ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change on this file since 79d5b6c was b8a8e4e, checked in by Mathieu Doucet <doucetm@…>, 11 years ago

Checkpoint

  • Property mode set to 100644
File size: 2.1 KB
Line 
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
16class TriaxialEllipsoidModel{
17public:
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 calculate_VR();
58  double evaluate_rphi(double q, double phi);
59};
60#endif
Note: See TracBrowser for help on using the repository browser.