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

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 25579e8 was da3dae3, checked in by Gervaise Alina <gervyh@…>, 16 years ago

wrappergenerator modified

  • Property mode set to 100644
File size: 1.2 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
[96672c0]9 //[DESCRIPTION] =<text>P(q)=(scale/V)*[3V(scatter_sld-solvent_sld)*(sin(qR)-qRcos(qR))/(qR)^3]^(2)
10 //                                             +bkg
11 //                                             bkg: background level
12 //                                             R: radius of the sphere
13 //                                             V:The volume of the scatter
14 //                                             scatter_sld: the scattering length density of the scatter
15 //                                             solvent_sld: the scattering length density of the solvent
16 //                             </text>
[da3dae3]17 //[FIXED]=  radius.width
[96672c0]18 
[ae3ce4e]19typedef struct {
[0f5bc9f]20    /// Scale factor
[98bfd10]21    //  [DEFAULT]=scale= 1.0
[ae3ce4e]22    double scale;
[0f5bc9f]23
24    /// Radius of sphere [A]
[ae3ce4e]25    //  [DEFAULT]=radius=60.0 A
26    double radius;
[0f5bc9f]27
28    /// Contrast [Å-2]
[98bfd10]29    //  [DEFAULT]=contrast= 1.0e-6 A-2
[ae3ce4e]30    double contrast;
[0f5bc9f]31
[ae3ce4e]32        /// Incoherent Background [cm-1]
33        //  [DEFAULT]=background=0 cm-1
[0f5bc9f]34        double background;
[ae3ce4e]35} SphereParameters;
36
37
38
39/// 1D scattering function
40double sphere_analytical_1D(SphereParameters *pars, double q);
41
42/// 2D scattering function
43double sphere_analytical_2D(SphereParameters *pars, double q, double phi);
44double sphere_analytical_2DXY(SphereParameters *pars, double qx, double qy);
45
46#endif
Note: See TracBrowser for help on using the repository browser.