source: sasview/src/sas/models/include/fuzzysphere.h @ 4ee041f

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

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

  • Property mode set to 100644
File size: 1.6 KB
RevLine 
[503a972]1#if !defined(fuzzysphere_h)
2#define fuzzysphere_h
3#include "parameters.hh"
4
5/**
6 * Structure definition for FuzzySphere parameters
7 */
8//[PYTHONCLASS] = FuzzySphereModel
9//[DISP_PARAMS] = radius, fuzziness
10//[DESCRIPTION] =<text>
11//                              scale: scale factor times volume fraction,
12//                                      or just volume fraction for absolute scale data
13//                              radius: radius of the solid sphere
14//                              fuzziness = the STD of the height of fuzzy interfacial
15//                               thickness (ie., so-called interfacial roughness)
16//                              sldSph: the SLD of the sphere
17//                              sldSolv: the SLD of the solvent
18//                              background: incoherent background
19//                      Note: By definition, this function works only when fuzziness << radius.
20//              </text>
21//[FIXED]=  radius.width; fuzziness.width
22//[ORIENTATION_PARAMS]= <text> </text>
23
24class FuzzySphereModel{
25public:
26  // Model parameters
27  /// Radius of sphere [A]
28  //  [DEFAULT]=radius=60.0 [A]
29  Parameter radius;
30  /// Scale factor
31  //  [DEFAULT]=scale= 0.01
32  Parameter scale;
33
34
35  /// surface roughness [A]
36  //  [DEFAULT]=fuzziness= 10.0 [A]
37  Parameter fuzziness;
38
39  /// sldSph [1/A^(2)]
40  //  [DEFAULT]=sldSph= 1.0e-6 [1/A^(2)]
41  Parameter sldSph;
42
43  /// sldSolv [1/A^(2)]
44  //  [DEFAULT]=sldSolv= 3.0e-6 [1/A^(2)]
45  Parameter sldSolv;
46
47  /// Incoherent Background [1/cm]
48  //  [DEFAULT]=background=0.001 [1/cm]
49  Parameter background;
50
51  // Constructor
52  FuzzySphereModel();
53
54  // Operators to get I(Q)
55  double operator()(double q);
56  double operator()(double qx, double qy);
57  double calculate_ER();
[6319646]58  double calculate_VR();
[503a972]59  double evaluate_rphi(double q, double phi);
60};
61
62#endif
Note: See TracBrowser for help on using the repository browser.