source: sasview/sansmodels/src/sans/models/c_extensions/cylinder.h @ a9dec92

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 a9dec92 was ae3ce4e, checked in by Mathieu Doucet <doucetm@…>, 17 years ago

Moving sansmodels to trunk

  • 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 * */
7typedef struct {
8    /// Scale factor
9    //  [DEFAULT]=scale=1.0
10    double scale;
11    /// Radius of the cylinder [A]
12    //  [DEFAULT]=radius=20.0 A
13    double radius;
14    /// Length of the cylinder [A]
15    //  [DEFAULT]=length=400.0 A
16    double length;
17    /// Contrast [A-2]
18    //  [DEFAULT]=contrast=3.0e-6 A-2
19    double contrast;
20        /// Incoherent Background (cm-1) 0.000
21        //  [DEFAULT]=background=0 cm-1
22        double background;   
23    /// Orientation of the cylinder axis w/respect incoming beam [rad]
24    //  [DEFAULT]=cyl_theta=1.0 rad
25    double cyl_theta;
26    /// Orientation of the cylinder in the plane of the detector [rad]
27    //  [DEFAULT]=cyl_phi=1.0 rad
28    double cyl_phi;   
29} CylinderParameters;
30
31
32
33/// 1D scattering function
34double cylinder_analytical_1D(CylinderParameters *pars, double q);
35
36/// 2D scattering function
37double cylinder_analytical_2D(CylinderParameters *pars, double q, double phi);
38double cylinder_analytical_2DXY(CylinderParameters *pars, double qx, double qy);
39double cylinder_analytical_2D_scaled(CylinderParameters *pars, double q, double q_x, double q_y);
40
41#endif
Note: See TracBrowser for help on using the repository browser.