source: sasview/src/sas/models/include/massfractal.h @ b2ac7b0

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 b2ac7b0 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
Line 
1#if !defined(massfractal_h)
2#define massfractal_h
3#include "parameters.hh"
4
5/**
6 * Structure definition for sphere parameters
7 */
8//[PYTHONCLASS] = MassFractalModel
9//[DESCRIPTION] =<text> The scattering intensity  I(x) = scale*P(x)*S(x) + background, where
10//               scale = scale_factor  * V * delta^(2)
11//       p(x)=  F(x*radius)^(2)
12//       F(x) = 3*[sin(x)-x cos(x)]/x**3
13//       S(x) = [(gamma(Dm-1)*colength^(Dm-1)*[1+(x^2*colength^2)]^((1-Dm)/2)
14//                                              * sin[(Dm-1)*arctan(x*colength)])/x]
15//       where delta = sldParticle -sldSolv.
16//       radius       =  Particle radius
17//       mass_dim  =  Mass fractal dimension
18//       co_length  =  Cut-off length
19//       background   =  background
20//              Ref.:Mildner, Hall,J Phys D Appl Phys(1986), 9, 1535-1545
21//              Note I: This model is valid for 1<mass_dim<6.
22//              Note II: This model is not in absolute scale.
23//              </text>
24//[ORIENTATION_PARAMS]= <text> </text>
25
26class MassFractalModel{
27public:
28  // Model parameters
29  /// Scale factor
30  //  [DEFAULT]=scale= 1.0
31  Parameter scale;
32
33  /// Radius [A]
34  //  [DEFAULT]=radius=10.0 [A]
35  Parameter radius;
36
37  /// Mass fractal dimension
38  //  [DEFAULT]=mass_dim=1.9
39  Parameter mass_dim;
40
41  /// Cut-off Length [A]
42  //  [DEFAULT]=co_length=100.0 [A]
43  Parameter co_length;
44
45  /// Incoherent Background
46  //  [DEFAULT]=background=0.0
47  Parameter background;
48
49  // Constructor
50  MassFractalModel();
51
52  // Operators to get I(Q)
53  double operator()(double q);
54  double operator()(double qx, double qy);
55  double calculate_ER();
56  double calculate_VR();
57  double evaluate_rphi(double q, double phi);
58};
59
60#endif
Note: See TracBrowser for help on using the repository browser.