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

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 30ccad1 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
RevLine 
[ae3ce4e]1#if !defined(sphere_h)
2#define sphere_h
3
[0f5bc9f]4/**
5 * Structure definition for sphere parameters
[ae3ce4e]6 */
7 //[PYTHONCLASS] = SphereModel
[0f5bc9f]8 //[DISP_PARAMS] = radius
[f10063e]9 //[DESCRIPTION] =<text>P(q)=(scale/V)*[3V(sldSph-sldSolv)*(sin(qR)-qRcos(qR))
[1ed3834]10 //                                             /(qR)^3]^(2)+bkg
11 //
12 //                             bkg:background, R: radius of sphere
13 //                             V:The volume of the scatter
[f10063e]14 //                             sldSph: the SLD of the sphere
15 //                             sldSolv: the SLD of the solvent
[1ed3834]16 //
17 //             </text>
[da3dae3]18 //[FIXED]=  radius.width
[25a608f5]19 //[ORIENTATION_PARAMS]= <text> </text>
[70faf5d]20
[ae3ce4e]21typedef struct {
[0f5bc9f]22    /// Scale factor
[98bfd10]23    //  [DEFAULT]=scale= 1.0
[ae3ce4e]24    double scale;
[0f5bc9f]25
[1ed3834]26    /// Radius of sphere [A]
27    //  [DEFAULT]=radius=60.0 [A]
[ae3ce4e]28    double radius;
[0f5bc9f]29
[f10063e]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;
[0f5bc9f]37
[70faf5d]38        /// Incoherent Background [1/cm]
39        //  [DEFAULT]=background=0 [1/cm]
[0f5bc9f]40        double background;
[ae3ce4e]41} SphereParameters;
42
43
44
45/// 1D scattering function
[2399b2a]46//double sphere_analytical_1D(SphereParameters *pars, double q);
[ae3ce4e]47
48/// 2D scattering function
[2399b2a]49//double sphere_analytical_2D(SphereParameters *pars, double q, double phi);
50//double sphere_analytical_2DXY(SphereParameters *pars, double qx, double qy);
[ae3ce4e]51
52#endif
Note: See TracBrowser for help on using the repository browser.