source: sasview/src/sas/models/include/masssurfacefractal.h @ 60dca65c

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 60dca65c 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.7 KB
Line 
1#if !defined(masssurfacefractal_h)
2#define masssurfacefractal_h
3#include "parameters.hh"
4
5/**
6 * Structure definition for sphere parameters
7 */
8//[PYTHONCLASS] = MassSurfaceFractal
9//[DESCRIPTION] =<text> The scattering intensity  I(x) = scale*P(x) + background,
10//       p(x)= {[1+(x^2*a)]^(Dm/2) * [1+(x^2*b)]^(6-Ds-Dm)/2}^(-1)
11//       a = Rg^2/(3*Dm/2)
12//       b = rg^2/(3*(6-Ds-Dm)/2)
13//       scale        =  scale factor * N*Volume^2*contrast^2
14//       mass_dim       =  Dm (mass fractal dimension)
15//       surface_dim  =  Ds
16//       cluster_rg  =  Rg
17//       primary_rg    =  rg
18//       background   =  background
19//      Ref: Schmidt, J Appl Cryst, eq(19), (1991), 24, 414-435
20//       : Hurd, Schaefer, Martin, Phys Rev A, eq(2),(1987),35, 2361-2364
21//  Note that 0 < Ds< 6 and 0 < Dm < 6.
22//              </text>
23//[ORIENTATION_PARAMS]= <text> </text>
24
25class MassSurfaceFractal{
26public:
27  // Model parameters
28  /// Scale factor
29  //  [DEFAULT]=scale= 1.0
30  Parameter scale;
31
32  /// Mass fractal dimension
33  //  [DEFAULT]=mass_dim=1.8
34  Parameter mass_dim;
35
36  /// Surface fractal dimension
37  //  [DEFAULT]=surface_dim=2.3
38  Parameter surface_dim;
39
40  /// cluster_rg [A]
41  //  [DEFAULT]=cluster_rg=86.7 [A]
42  Parameter cluster_rg;
43
44 /// primary_rg [A]
45  //  [DEFAULT]=primary_rg=4000.0 [A]
46  Parameter primary_rg;
47
48  /// Incoherent Background
49  //  [DEFAULT]=background=0.0
50  Parameter background;
51
52  // Constructor
53  MassSurfaceFractal();
54
55  // Operators to get I(Q)
56  double operator()(double q);
57  double operator()(double qx, double qy);
58  double calculate_ER();
59  double calculate_VR();
60  double evaluate_rphi(double q, double phi);
61};
62
63#endif
Note: See TracBrowser for help on using the repository browser.