source: sasview/sansmodels/src/sans/models/c_extensions/elliptical_cylinder.h @ e71440c

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 e71440c 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.6 KB
Line 
1#if !defined(ell_cylinder_h)
2#define ell_cylinder_h
3
4/** Structure definition for cylinder parameters
5 * [PYTHONCLASS] = EllipticalCylinderModel
6 * [DISP_PARAMS] = r_minor, r_ratio, length, cyl_theta, cyl_phi, cyl_psi
7 *
8 * */
9typedef struct {
10    /// Scale factor
11    //  [DEFAULT]=scale=1.0
12    double scale;
13    /// Minor radius [A]
14    //  [DEFAULT]=r_minor=20.0 A
15    double r_minor;
16    /// Ratio of major/minor radii
17    //  [DEFAULT]=r_ratio=1.5 A
18    double r_ratio;
19    /// Length of the cylinder [A]
20    //  [DEFAULT]=length=400.0 A
21    double length;
22    /// Contrast [A-2]
23    //  [DEFAULT]=contrast=3.0e-6 A-2
24    double contrast;
25        /// Incoherent Background (cm-1) 0.000
26        //  [DEFAULT]=background=0 cm-1
27        double background;
28    /// Orientation of the cylinder axis w/respect incoming beam [rad]
29    //  [DEFAULT]=cyl_theta=1.57 rad
30    double cyl_theta;
31    /// Orientation of the cylinder in the plane of the detector [rad]
32    //  [DEFAULT]=cyl_phi=0.0 rad
33    double cyl_phi;
34    /// Orientation of major radius of the cross-section w/respect vector q [rad]
35    //  [DEFAULT]=cyl_psi=0.0 rad
36    double cyl_psi;
37} EllipticalCylinderParameters;
38
39
40
41/// 1D scattering function
42double elliptical_cylinder_analytical_1D(EllipticalCylinderParameters *pars, double q);
43
44/// 2D scattering function
45double elliptical_cylinder_analytical_2D(EllipticalCylinderParameters *pars, double q, double phi);
46double elliptical_cylinder_analytical_2DXY(EllipticalCylinderParameters *pars, double qx, double qy);
47double elliptical_cylinder_analytical_2D_scaled(EllipticalCylinderParameters *pars, double q, double q_x, double q_y);
48
49#endif
Note: See TracBrowser for help on using the repository browser.