source: sasview/sansmodels/prototypes/src/smeared_cylinder.h @ 7df1a50

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 7df1a50 was 7df1a50, checked in by Jae Cho <jhjcho@…>, 13 years ago

moving a file

  • Property mode set to 100644
File size: 1.5 KB
Line 
1#if !defined(smeared_cylinder_h)
2#define smeared_cylinder_h
3
4/** Structure definition for cylinder parameters
5 * [PYTHONCLASS] = SmearCylinderModel
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   
29    ///
30    //  [DEFAULT]=cyl_phi=0.0 rad
31    double cyl_phi;   
32   
33    ///
34    //  [DEFAULT]=sigma_theta=0.0 rad
35    double sigma_theta;
36   
37    ///
38    //  [DEFAULT]=sigma_phi=0.0 rad
39    double sigma_phi;
40   
41    ///
42    //  [DEFAULT]=sigma_radius=0.0 rad
43    double sigma_radius;
44   
45} SmearCylinderParameters;
46
47
48
49/// 1D scattering function
50double smeared_cylinder_analytical_1D(SmearCylinderParameters *pars, double q);
51
52/// 2D scattering function
53double smeared_cylinder_analytical_2D(SmearCylinderParameters *pars, double q, double phi);
54double smeared_cylinder_dist( double x, double mean, double sigma );
55
56#endif
Note: See TracBrowser for help on using the repository browser.