source: sasview/sansmodels/src/sans/models/prototypes/src/disperse_cylinder.h @ ae3ce4e

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

Moving sansmodels to trunk

  • Property mode set to 100644
File size: 1.7 KB
Line 
1#if !defined(disperse_cylinder_h)
2#define disperse_cylinder_h
3
4/** Structure definition for dispersed cylinder parameters
5 * [PYTHONCLASS] = DispCylinderModel
6 * [BASESTRUCT]  = CylinderParameters
7 * [BASE_H]      = cylinder
8 * */
9typedef struct {
10    /// Scale factor
11    //  [DEFAULT]=scale=1.0
12    double scale;
13    /// Radius of the cylinder [A]
14    //  [DEFAULT]=radius=20.0 A
15    double radius;
16    /// Length of the cylinder [A]
17    //  [DEFAULT]=length=400.0 A
18    double length;
19    /// Contrast [A-2]
20    //  [DEFAULT]=contrast=3.0e-6 A-2
21    double contrast;
22        /// Incoherent Background (cm-1) 0.000
23        //  [DEFAULT]=background=0 cm-1
24        double background;   
25    /// Orientation of the cylinder axis w/respect incoming beam [rad]
26    //  [DEFAULT]=cyl_theta=1.57 rad
27    double cyl_theta;
28    /// Orientation of the cylinder in the plane of the detector [rad]
29    //  [DEFAULT]=cyl_phi=0.0 rad
30   
31    ///
32    //  [DEFAULT]=cyl_phi=0.0 rad
33    double cyl_phi;   
34   
35    ///
36    //  [DEFAULT]=sigma_theta=0.0 rad
37    double sigma_theta;
38   
39    ///
40    //  [DEFAULT]=sigma_phi=0.0 rad
41    double sigma_phi;
42   
43    ///
44    //  [DEFAULT]=sigma_radius=0.0 rad
45    double sigma_radius;
46   
47    ///
48    //  [DEFAULT]=sigma_radius=0.0 rad
49    double sigma_length;
50   
51    ///
52    //  [DEFAULT]=n_pts=25
53    double n_pts;
54   
55   
56} DispCylinderParameters;
57
58
59
60/// 1D scattering function
61double disperse_cylinder_analytical_1D(DispCylinderParameters *pars, double q);
62
63/// 2D scattering function
64double disperse_cylinder_analytical_2D(DispCylinderParameters *pars, double q, double phi);
65double disperse_cylinder_dist( double x, double mean, double sigma );
66
67#endif
Note: See TracBrowser for help on using the repository browser.