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

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 b22748b was 70faf5d, checked in by Jae Cho <jhjcho@…>, 16 years ago

changed notation of units

  • 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)
10 //                                             *[3V(scatter_sld-solvent_sld)*(sin(qR)-qRcos(qR))/(qR)^3]^(2)
11 //                                             +bkg
12 //                                             bkg: background level
13 //                                             R: radius of the sphere
14 //                                             V:The volume of the scatter
15 //                                             scatter_sld: the scattering length density of the scatter
16 //                                             solvent_sld: the scattering length density of the solvent
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 [Å]
27    //  [DEFAULT]=radius=60.0 [Å]
28    double radius;
29
30    /// Contrast [1/Ų]
31    //  [DEFAULT]=contrast= 1.0e-6 [1/Ų]
32    double contrast;
33
34        /// Incoherent Background [1/cm]
35        //  [DEFAULT]=background=0 [1/cm]
36        double background;
37} SphereParameters;
38
39
40
41/// 1D scattering function
42double sphere_analytical_1D(SphereParameters *pars, double q);
43
44/// 2D scattering function
45double sphere_analytical_2D(SphereParameters *pars, double q, double phi);
46double sphere_analytical_2DXY(SphereParameters *pars, double qx, double qy);
47
48#endif
Note: See TracBrowser for help on using the repository browser.