source: sasview/sansmodels/src/sans/models/c_extensions/triaxial_ellipsoid.h @ 20f00bed

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 20f00bed was 186c4eb, checked in by Jae Cho <jhjcho@…>, 14 years ago

fixed a bug, not displaying polydispersion parameters for the triaxialellipsoid model

  • Property mode set to 100644
File size: 2.3 KB
RevLine 
[5068697]1#if !defined(triaxial_ellipsoid_h)
2#define triaxial_ellipsoid_h
3/** Structure definition for cylinder parameters
4 * [PYTHONCLASS] = TriaxialEllipsoidModel
[186c4eb]5 * [DISP_PARAMS] = semi_axisA, semi_axisB, semi_axisC,axis_theta, axis_phi, axis_psi
[7ad9887]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>
[975ec8e]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>
[5068697]12 **/
13typedef struct {
14    /// Scale factor
15    //  [DEFAULT]=scale=1.0
16    double scale;
[3c102d4]17    /// semi -axis A of the triaxial_ellipsoid [A]
18    //  [DEFAULT]=semi_axisA= 35.0 [A]
[5068697]19    double semi_axisA;
20    /// semi -axis B of the triaxial_ellipsoid [A]
[3c102d4]21    //  [DEFAULT]=semi_axisB=100.0 [A]
[5068697]22    double semi_axisB;
23        /// semi -axis C of the triaxial_ellipsoid [A]
24    //  [DEFAULT]=semi_axisC=400.0 [A]
25    double semi_axisC;
[13eb1c4]26    /// sldEll [1/A^(2)]
27    //  [DEFAULT]=sldEll=1.0e-6 [1/A^(2)]
28    double sldEll;
29    /// sldSolv [1/A^(2)]
30    //  [DEFAULT]=sldSolv=6.3e-6 [1/A^(2)]
31    double sldSolv;
[5068697]32        /// Incoherent Background [1/cm] 0.00
33        //  [DEFAULT]=background=0.0 [1/cm]
34        double background;
35    /// Orientation of the triaxial_ellipsoid axis w/respect incoming beam [rad]
[3c102d4]36    //  [DEFAULT]=axis_theta=1.0 [rad]
[5068697]37    double axis_theta;
38    /// Orientation of the triaxial_ellipsoid in the plane of the detector [rad]
[3c102d4]39    //  [DEFAULT]=axis_phi=1.0 [rad]
[5068697]40    double axis_phi;
[975ec8e]41    /// Orientation of the cross section of the triaxial_ellipsoid in the plane of the detector [rad]
42    //  [DEFAULT]=axis_psi=0.0 [rad]
43    double axis_psi;
[5068697]44
45} TriaxialEllipsoidParameters;
46
47
48
49/// 1D scattering function
50double triaxial_ellipsoid_analytical_1D(TriaxialEllipsoidParameters *pars, double q);
51
52/// 2D scattering function
53double triaxial_ellipsoid_analytical_2D(TriaxialEllipsoidParameters *pars, double q, double phi);
54double triaxial_ellipsoid_analytical_2DXY(TriaxialEllipsoidParameters *pars, double qx, double qy);
55double triaxial_ellipsoid_analytical_2D_scaled(TriaxialEllipsoidParameters *pars, double q, double q_x, double q_y);
56
57#endif
Note: See TracBrowser for help on using the repository browser.