source: sasview/sansmodels/src/include/core_shell.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.5 KB
RevLine 
[ae3ce4e]1#if !defined(core_shell_h)
2#define core_shell_h
[011e0e4]3#include "parameters.hh"
[ae3ce4e]4
[0f5bc9f]5/**
6 * Structure definition for core-shell parameters
[ae3ce4e]7 */
8 //[PYTHONCLASS] = CoreShellModel
[0f5bc9f]9 //[DISP_PARAMS] = radius, thickness
[1ed3834]10 //[DESCRIPTION] =<text>Form factor for a monodisperse spherical particle with particle
11 //    with a core-shell structure:
12 //
[70faf5d]13 //    The form factor is normalized by the
14 //    total particle volume.
[25579e8]15 //
[1ed3834]16 //             radius: core radius, thickness: shell thickness
[70faf5d]17 //
18 //     Ref: Guinier, A. and G. Fournet,
19 //     John Wiley and Sons, New York, 1955.
[25579e8]20 //                             </text>
[836fe6e]21 //[FIXED]= <text> thickness.width;radius.width</text>
[25a608f5]22
23
[011e0e4]24class CoreShellModel{
25public:
26  // Model parameters
27
28  /// Core Radius [A] 60.0
29  //  [DEFAULT]=radius=60.0 [A]
30  Parameter radius;
31  /// Scale factor
32  //  [DEFAULT]=scale=1.0
33  Parameter scale;
34  /// Shell Thickness [A] 10.0
35  //  [DEFAULT]=thickness=10 [A]
36  Parameter thickness;
37  /// Core SLD [1/A^(2)] 1.0e-6
38  //  [DEFAULT]=core_sld=1.0e-6 [1/A^(2)]
39  Parameter core_sld;
40/// Shell SLD [1/A^(2)] 2.0e-6
41//  [DEFAULT]=shell_sld=2.0e-6 [1/A^(2)]
42  Parameter shell_sld;
43/// Solvent SLD [1/A^(2)] 3.0e-6
44//  [DEFAULT]=solvent_sld=3.0e-6 [1/A^(2)]
45  Parameter solvent_sld;
46/// Incoherent Background [1/cm] 0.000
47//  [DEFAULT]=background=0 [1/cm]
48  Parameter background;
49
50  // Constructor
51  CoreShellModel();
52
53  // Operators to get I(Q)
54  double operator()(double q);
55  double operator()(double qx, double qy);
56  double calculate_ER();
57  double evaluate_rphi(double q, double phi);
58};
59
[ae3ce4e]60
61#endif
Note: See TracBrowser for help on using the repository browser.