source: sasview/src/sas/models/include/stacked_disks.h @ 7945367

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 7945367 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.4 KB
Line 
1/*
2        TODO: Add 2D model
3 */
4
5#if !defined(stacked_disks_h)
6#define stacked_disks_h
7#include "parameters.hh"
8
9/** Structure definition for stacked disks parameters
10 * [PYTHONCLASS] = StackedDisksModel
11 * [DISP_PARAMS] = core_thick, layer_thick, radius, axis_theta, axis_phi
12   [DESCRIPTION] = <text> One layer of disk consists of a core, a top layer, and a bottom layer.
13                radius =  the radius of the disk
14                core_thick = thickness of the core
15                layer_thick = thickness of a layer
16                core_sld = the SLD of the core
17                layer_sld = the SLD of the layers
18                n_stacking = the number of the disks
19                sigma_d =  Gaussian STD of d-spacing
20                solvent_sld = the SLD of the solvent
21                </text>
22        [FIXED]= <text>core_thick.width;layer_thick.width; radius.width; axis_theta.width; axis_phi.width</text>
23        [ORIENTATION_PARAMS]= <text>axis_phi; axis_theta; axis_phi.width; axis_theta.width</text>
24
25
26 **/
27
28class StackedDisksModel{
29public:
30  // Model parameters
31
32  /// Scale factor
33  //  [DEFAULT]=scale=0.01
34  Parameter scale;
35  /// Thickness of the core disk [A]
36  //  [DEFAULT]=core_thick=10.0 [A]
37  Parameter core_thick;
38  /// radius of the staked disk [A]
39  //  [DEFAULT]=radius=3000 [A]
40  Parameter radius;
41  /// Thickness of the staked disk [A]
42  //  [DEFAULT]=layer_thick=15.0 [A]
43  Parameter layer_thick;
44  /// Core scattering length density[1/A^(2)]
45  //  [DEFAULT]=core_sld=4e-6 [1/A^(2)]
46  Parameter core_sld;
47  /// layer scattering length density[1/A^(2)]
48  //  [DEFAULT]=layer_sld=-4e-7 [1/A^(2)]
49  Parameter layer_sld;
50  /// solvent scattering length density[1/A^(2)]
51  //  [DEFAULT]=solvent_sld=5.0e-6 [1/A^(2)]
52  Parameter solvent_sld;
53  /// number of stacking
54  //  [DEFAULT]=n_stacking=1
55  Parameter n_stacking;
56  /// GSD of disks sigma_d
57  //  [DEFAULT]=sigma_d=0
58  Parameter sigma_d;
59  /// Incoherent Background [1/cm]
60  //  [DEFAULT]=background=0.001 [1/cm]
61  Parameter background;
62  /// Orientation of the staked disk axis w/respect incoming beam [rad]
63  //  [DEFAULT]=axis_theta=0.0 [rad]
64  Parameter axis_theta;
65  /// Orientation of the  staked disk in the plane of the detector [rad]
66  //  [DEFAULT]=axis_phi=0.0 [rad]
67  Parameter axis_phi;
68
69  // Constructor
70  StackedDisksModel();
71
72  // Operators to get I(Q)
73  double operator()(double q);
74  double operator()(double qx, double qy);
75  double calculate_ER();
76  double calculate_VR();
77  double evaluate_rphi(double q, double phi);
78};
79
80#endif
Note: See TracBrowser for help on using the repository browser.