source: sasview/sansmodels/src/sans/models/c_extensions/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 af03ddd, checked in by Mathieu Doucet <doucetm@…>, 16 years ago

Model C extension update

  • Property mode set to 100644
File size: 1.3 KB
Line 
1#if !defined(cylinder_h)
2#define cylinder_h
3
4/** Structure definition for cylinder parameters
5 * [PYTHONCLASS] = CylinderModel
6 * [DISP_PARAMS] = radius, length, cyl_theta, cyl_phi
7 * */
8typedef struct {
9    /// Scale factor
10    //  [DEFAULT]=scale=1.0
11    double scale;
12    /// Radius of the cylinder [A]
13    //  [DEFAULT]=radius=20.0 A
14    double radius;
15    /// Length of the cylinder [A]
16    //  [DEFAULT]=length=400.0 A
17    double length;
18    /// Contrast [A-2]
19    //  [DEFAULT]=contrast=3.0e-6 A-2
20    double contrast;
21        /// Incoherent Background (cm-1) 0.000
22        //  [DEFAULT]=background=0 cm-1
23        double background;
24    /// Orientation of the cylinder axis w/respect incoming beam [rad]
25    //  [DEFAULT]=cyl_theta=1.0 rad
26    double cyl_theta;
27    /// Orientation of the cylinder in the plane of the detector [rad]
28    //  [DEFAULT]=cyl_phi=1.0 rad
29    double cyl_phi;
30} CylinderParameters;
31
32
33
34/// 1D scattering function
35double cylinder_analytical_1D(CylinderParameters *pars, double q);
36
37/// 2D scattering function
38double cylinder_analytical_2D(CylinderParameters *pars, double q, double phi);
39double cylinder_analytical_2DXY(CylinderParameters *pars, double qx, double qy);
40double cylinder_analytical_2D_scaled(CylinderParameters *pars, double q, double q_x, double q_y);
41
42#endif
Note: See TracBrowser for help on using the repository browser.