source: sasview/src/sas/models/include/raspberry.h @ c93122e

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 c93122e 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: 2.1 KB
Line 
1#if !defined(raspberry_h)
2#define raspberry_h
3#include "parameters.hh"
4
5/**
6 * Structure definition for RaspBerryModel parameters
7 */
8//[PYTHONCLASS] = RaspBerryModel
9//[DISP_PARAMS] = radius_Lsph
10//[DESCRIPTION] =<text> RaspBerryModel:
11//                              volf_Lsph = volume fraction large spheres
12//                              radius_Lsph = radius large sphere (A)
13//                              sld_Lsph = sld large sphere (A-2)
14//                              volf_Ssph = volume fraction small spheres
15//                              radius_Ssph = radius small sphere (A)
16//                              surfrac_Ssph = fraction of small spheres at surface
17//                              sld_Ssph = sld small sphere
18//                              delta_Ssph = small sphere penetration (A)
19//                              sld_solv   = sld solvent
20//                              background = background (cm-1)
21//                      Ref: J. coll. inter. sci. (2010) vol. 343 (1) pp. 36-41.
22//              </text>
23//[FIXED]=  radius_Lsph.width
24//[ORIENTATION_PARAMS]= <text> </text>
25
26class RaspBerryModel{
27public:
28  // Model parameters
29  /// volf_Lsph
30  //  [DEFAULT]=volf_Lsph=0.05
31  Parameter volf_Lsph;
32  /// radius_Lsph [A]
33  //  [DEFAULT]=radius_Lsph= 5000.0 [A]
34  Parameter radius_Lsph;
35  /// sld_Lsph [1/A^(2)]
36  //  [DEFAULT]=sld_Lsph= -4.0e-7 [1/A^(2)]
37  Parameter sld_Lsph;
38  /// volf_Ssph
39  //  [DEFAULT]=volf_Ssph=0.005
40  Parameter volf_Ssph;
41  /// radius_Ssph [A]
42  //  [DEFAULT]=radius_Ssph= 100.0 [A]
43  Parameter radius_Ssph;
44  /// surfrac_Ssph
45  //  [DEFAULT]=surfrac_Ssph=0.4
46  Parameter surfrac_Ssph;
47  /// sld_Ssph [1/A^(2)]
48  //  [DEFAULT]=sld_Ssph= 3.5e-6 [1/A^(2)]
49  Parameter sld_Ssph; 
50  /// delta_Ssph [A]
51  //  [DEFAULT]=delta_Ssph= 0.0
52  Parameter delta_Ssph;
53  /// sld_solv [1/A^(2)]
54  //  [DEFAULT]=sld_solv= 6.3e-6 [1/A^(2)]
55  Parameter sld_solv;
56  /// Incoherent Background [1/cm]
57  //  [DEFAULT]=background=0.0 [1/cm]
58  Parameter background;
59
60  // Constructor
61  RaspBerryModel();
62
63  // Operators to get I(Q)
64  double operator()(double q);
65  double operator()(double qx, double qy);
66  double calculate_ER();
67  double calculate_VR();
68  double evaluate_rphi(double q, double phi);
69};
70double raspberry_kernel(double dp[], double q);
71double rasp_bes(double qval, double rad);
72#endif
Note: See TracBrowser for help on using the repository browser.