source: sasview/sansmodels/src/include/multishell.h @ 446c8d9

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 446c8d9 was 101065a, checked in by Mathieu Doucet <doucetm@…>, 13 years ago

keep only header files in c_extensions and rename it 'include'

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