source: sasview/src/sas/models/include/binaryHS.h @ 79492222

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 79492222 was 79492222, checked in by krzywon, 9 years ago

Changed the file and folder names to remove all SANS references.

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