source: sasview/sansmodels/src/sans/models/c_extensions/ellipsoid.h @ 4e2f6ef8

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 4e2f6ef8 was 0f5bc9f, checked in by Mathieu Doucet <doucetm@…>, 16 years ago

Update of all C models to the new style of C++ models

  • Property mode set to 100644
File size: 1.5 KB
Line 
1#if !defined(ellipsoid_h)
2#define ellipsoid_h
3
4/**
5 * Structure definition for ellipsoid parameters
6 * The ellipsoid has axes radius_b, radius_b, radius_a.
7 * Ref: Jan Skov Pedersen, Advances in Colloid and Interface Science, 70 (1997) 171-210
8 */
9 //[PYTHONCLASS] = EllipsoidModel
10 //[DISP_PARAMS] = radius_a, radius_b, axis_theta, axis_phi
11typedef struct {
12    /// Scale factor
13    //  [DEFAULT]=scale=1.0
14    double scale;
15
16    /// Rotation axis radius_a [A]
17    //  [DEFAULT]=radius_a=20.0 A
18    double radius_a;
19
20    /// Radius_b [A]
21    //  [DEFAULT]=radius_b=400 A
22    double radius_b;
23
24    /// Contrast [Å-2]
25    //  [DEFAULT]=contrast=3.0e-6 A-2
26    double contrast;
27
28        /// Incoherent Background [cm-1]
29        //  [DEFAULT]=background=0 cm-1
30        double background;
31
32    /// Orientation of the long axis of the ellipsoid w/respect incoming beam [rad]
33    //  [DEFAULT]=axis_theta=1.57 rad
34    double axis_theta;
35    /// Orientation of the long axis of the ellipsoid in the plane of the detector [rad]
36    //  [DEFAULT]=axis_phi=0.0 rad
37    double axis_phi;
38} EllipsoidParameters;
39
40
41
42/// 1D scattering function
43double ellipsoid_analytical_1D(EllipsoidParameters *pars, double q);
44
45/// 2D scattering function
46double ellipsoid_analytical_2D(EllipsoidParameters *pars, double q, double phi);
47double ellipsoid_analytical_2DXY(EllipsoidParameters *pars, double qx, double qy);
48double ellipsoid_analytical_2D_scaled(EllipsoidParameters *pars, double q, double q_x, double q_y);
49
50#endif
Note: See TracBrowser for help on using the repository browser.