source: sasview/sansmodels/src/sans/models/c_extensions/binaryHS_PSF11.h @ 812b901

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 812b901 was 2c4b289, checked in by Gervaise Alina <gervyh@…>, 15 years ago
  • Property mode set to 100644
File size: 2.0 KB
Line 
1#if !defined(binaryHS_PSF11_h)
2#define binaryHS_PSF11_h
3
4/**
5 * Structure definition for binary hard sphere parameters
6
7        [PYTHONCLASS] = BinaryHSPSF11Model
8        [DISP_PARAMS] = l_radius,s_radius
9        [DESCRIPTION] =<text>
10                                                Model parameters:
11                                               
12                                                l_radius : large radius of the binary hard sphere
13                                                s_radius : small radius of the binary hard sphere
14                                                vol_frac_ls : volume fraction of large spheres
15                                                vol_frac_ss : volume fraction of small spheres
16                                                ls_sld: large sphere  scattering length density
17                                                ss_sld: small sphere scattering length density
18                                                solvent_sld: solvent scattering length density
19                                                background: incoherent background
20               </text>
21        [FIXED]= l_radius.width;s_radius.width
22        [ORIENTATION_PARAMS]= <text> </text>
23 */
24typedef struct {
25   
26        ///     large radius of the binary hard sphere [A]
27    //  [DEFAULT]=l_radius= 160.0 [A]
28    double l_radius;
29
30    /// small radius of the binary hard sphere [A]
31    //  [DEFAULT]=s_radius= 25.0 [A]
32    double s_radius;
33
34        ///     volume fraction of large spheres
35    //  [DEFAULT]=vol_frac_ls= 0.2
36    double vol_frac_ls;
37
38        ///     volume fraction of small spheres
39    //  [DEFAULT]=vol_frac_ss= 0.2
40    double vol_frac_ss;
41
42        ///     large sphere scattering length density [1/Ų]
43    //  [DEFAULT]=ls_sld= 3.5e-6 [1/A²]
44    double ls_sld;
45
46        ///     lsmall sphere scattering length density [1/Ų]
47    //  [DEFAULT]=ss_sld= 5e-7 [1/A²]
48    double ss_sld;
49
50    /// solvent scattering length density [1/Ų]
51    //  [DEFAULT]=solvent_sld= 6.36e-6 [1/A²]
52    double solvent_sld;
53
54        /// Incoherent Background [1/cm]
55        //  [DEFAULT]=background=0.001 [1/cm]
56        double background;
57
58} BinaryHSPSF11Parameters;
59
60
61
62/// 1D scattering function
63double binaryHS_PSF11_analytical_1D(BinaryHSPSF11Parameters *pars, double q);
64
65/// 2D scattering function
66double binaryHS_PSF11_analytical_2D(BinaryHSPSF11Parameters *pars, double q, double phi);
67double binaryHS_PSF11_analytical_2DXY(BinaryHSPSF11Parameters *pars, double qx, double qy);
68
69#endif
Note: See TracBrowser for help on using the repository browser.