source: sasview/sansmodels/src/sans/models/c_extensions/binaryHS.h @ 1aaa579

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 1aaa579 was 4cbaf35, checked in by Jae Cho <jhjcho@…>, 15 years ago

corrected problems in parameters called from Wrapper

  • Property mode set to 100644
File size: 1.9 KB
RevLine 
[3d25331f]1#if !defined(binaryHS_h)
2#define binaryHS_h
3
4/**
5 * Structure definition for binary hard sphere parameters
6
7        [PYTHONCLASS] = BinaryHSModel
8        [DISP_PARAMS] = l_radius,s_radius
[975ec8e]9        [DESCRIPTION] =<text> Model parameters: l_radius : large radius of binary hard sphere
10                        s_radius : small radius of binary hard sphere
11                        vol_frac_ls : volume fraction of large spheres
12                        vol_frac_ss : volume fraction of small spheres
13                        ls_sld: large sphere  scattering length density
14                        ss_sld: small sphere scattering length density
15                        solvent_sld: solvent scattering length density
16                        background: incoherent background
[3d25331f]17               </text>
18        [FIXED]= l_radius.width;s_radius.width
19        [ORIENTATION_PARAMS]= <text> </text>
20 */
21typedef struct {
[975ec8e]22
[3d25331f]23        ///     large radius of the binary hard sphere [A]
[975ec8e]24    //  [DEFAULT]=l_radius= 100.0 [A]
[3d25331f]25    double l_radius;
26
27    /// small radius of the binary hard sphere [A]
28    //  [DEFAULT]=s_radius= 25.0 [A]
29    double s_radius;
30
[975ec8e]31        ///     volume fraction of large spheres
32    //  [DEFAULT]=vol_frac_ls= 0.1
[3d25331f]33    double vol_frac_ls;
34
[975ec8e]35        ///     volume fraction of small spheres
36    //  [DEFAULT]=vol_frac_ss= 0.2
[3d25331f]37    double vol_frac_ss;
38
[27972c1d]39        ///     large sphere scattering length density [1/A^(2)]
[4cbaf35]40    //  [DEFAULT]=ls_sld= 3.5e-6 [1/A^(2)]
[3d25331f]41    double ls_sld;
42
[27972c1d]43        ///     lsmall sphere scattering length density [1/A^(2)]
44    //  [DEFAULT]=ss_sld= 5e-7 [1/A^(2)]
[3d25331f]45    double ss_sld;
46
[27972c1d]47    /// solvent scattering length density [1/A^(2)]
48    //  [DEFAULT]=solvent_sld= 6.36e-6 [1/A^(2)]
[3d25331f]49    double solvent_sld;
50
51        /// Incoherent Background [1/cm]
52        //  [DEFAULT]=background=0.001 [1/cm]
53        double background;
54
55} BinaryHSParameters;
56
57
58
59/// 1D scattering function
60double binaryHS_analytical_1D(BinaryHSParameters *pars, double q);
61
62/// 2D scattering function
63double binaryHS_analytical_2D(BinaryHSParameters *pars, double q, double phi);
64double binaryHS_analytical_2DXY(BinaryHSParameters *pars, double qx, double qy);
65
66#endif
Note: See TracBrowser for help on using the repository browser.