source: sasview/sansmodels/src/sans/models/c_extensions/sphere.h @ fe10df5

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 fe10df5 was 2399b2a, checked in by Jae Cho <jhjcho@…>, 14 years ago

remove some un-used c_extension models

  • Property mode set to 100644
File size: 1.3 KB
Line 
1#if !defined(sphere_h)
2#define sphere_h
3
4/**
5 * Structure definition for sphere parameters
6 */
7 //[PYTHONCLASS] = SphereModel
8 //[DISP_PARAMS] = radius
9 //[DESCRIPTION] =<text>P(q)=(scale/V)*[3V(sldSph-sldSolv)*(sin(qR)-qRcos(qR))
10 //                                             /(qR)^3]^(2)+bkg
11 //
12 //                             bkg:background, R: radius of sphere
13 //                             V:The volume of the scatter
14 //                             sldSph: the SLD of the sphere
15 //                             sldSolv: the SLD of the solvent
16 //
17 //             </text>
18 //[FIXED]=  radius.width
19 //[ORIENTATION_PARAMS]= <text> </text>
20
21typedef struct {
22    /// Scale factor
23    //  [DEFAULT]=scale= 1.0
24    double scale;
25
26    /// Radius of sphere [A]
27    //  [DEFAULT]=radius=60.0 [A]
28    double radius;
29
30    /// sldSph [1/A^(2)]
31    //  [DEFAULT]=sldSph= 2.0e-6 [1/A^(2)]
32    double sldSph;
33
34    /// sldSolv [1/A^(2)]
35    //  [DEFAULT]=sldSolv= 1.0e-6 [1/A^(2)]
36    double sldSolv;
37
38        /// Incoherent Background [1/cm]
39        //  [DEFAULT]=background=0 [1/cm]
40        double background;
41} SphereParameters;
42
43
44
45/// 1D scattering function
46//double sphere_analytical_1D(SphereParameters *pars, double q);
47
48/// 2D scattering function
49//double sphere_analytical_2D(SphereParameters *pars, double q, double phi);
50//double sphere_analytical_2DXY(SphereParameters *pars, double qx, double qy);
51
52#endif
Note: See TracBrowser for help on using the repository browser.