source: sasview/sansmodels/include/multishell.h @ 077207b

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 077207b was 6319646, checked in by Jae Cho <jhjcho@…>, 13 years ago

new includes for scale fix for P*S

  • Property mode set to 100644
File size: 1.8 KB
Line 
1#if !defined(multishell_h)
2#define multishell_h
3#include "parameters.hh"
4
5/**
6 * Structure definition for sphere parameters
7
8        [PYTHONCLASS] = MultiShellModel
9        [DISP_PARAMS] = core_radius, s_thickness, w_thickness
10        [DESCRIPTION] =<text> MultiShell (Sphere) Model (or Multilamellar Vesicles): Model parameters;
11                                scale : scale factor
12                                core_radius : Core radius of the multishell
13                                s_thickness: shell thickness
14                                w_thickness: water thickness
15                                core_sld: core scattering length density
16                                shell_sld: shell scattering length density
17                                n_pairs:number of pairs of water/shell
18                                background: incoherent background
19               </text>
20        [FIXED]=  core_radius.width; s_thickness.width; w_thickness.width
21        [ORIENTATION_PARAMS]= <text> </text>
22 */
23
24class MultiShellModel{
25public:
26  // Model parameters
27  /// Scale factor
28  //  [DEFAULT]=scale= 1.0
29  Parameter scale;
30
31  /// Core radius of the multishell [A]
32  //  [DEFAULT]=core_radius=60.0 [A]
33  Parameter core_radius;
34
35  /// shell thickness [A]
36  //  [DEFAULT]=s_thickness= 10.0 [A]
37  Parameter s_thickness;
38
39  /// water thickness [A]
40  //  [DEFAULT]=w_thickness= 10.0 [A]
41  Parameter w_thickness;
42
43  /// core scattering length density [1/A^(2)]
44  //  [DEFAULT]=core_sld= 6.4e-6 [1/A^(2)]
45  Parameter core_sld;
46
47  /// shell scattering length density [1/A^(2)]
48  //  [DEFAULT]=shell_sld= 4.0e-7 [1/A^(2)]
49  Parameter shell_sld;
50
51  /// number of pairs of water and shell
52  //  [DEFAULT]=n_pairs= 2
53  Parameter n_pairs;
54
55  /// Incoherent Background [1/cm]
56  //  [DEFAULT]=background=0 [1/cm]
57  Parameter background;
58
59  //Constructor
60  MultiShellModel();
61
62  //Operators to get I(Q)
63  double operator()(double q);
64  double operator()(double qx , double qy);
65  double calculate_ER();
66  double calculate_VR();
67  double evaluate_rphi(double q, double phi);
68};
69
70#endif
Note: See TracBrowser for help on using the repository browser.