source: sasview/src/sas/models/include/coresecondmoment.h @ 4ee041f

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 4ee041f 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.8 KB
Line 
1#if !defined(coresecondmoment_h)
2#define coresecondmoment_h
3#include "parameters.hh"
4
5/**
6 * Structure definition for sphere parameters
7 */
8 //[PYTHONCLASS] = Core2ndMomentModel
9 //[DISP_PARAMS] = radius_core
10 //[DESCRIPTION] =<text>Calculate CoreSecondMoment Model
11 //
12 //                             scale:calibration factor,
13 //                             density_poly: density of the layer
14 //                             sld_poly: the SLD of the layer
15 //                             volf_cores: volume fraction of cores
16 //                             ads_amount: adsorbed amount
17 //                             second_moment: second moment of the layer
18 //                             sld_solv: the SLD of the solvent
19 //                             background
20 //
21 //             </text>
22 //[FIXED]=  radius_core.width
23 //[ORIENTATION_PARAMS]= <text> </text>
24
25class Core2ndMomentModel{
26public:
27  // Model parameters
28  /// Scale factor
29  //  [DEFAULT]=scale= 1.0
30  Parameter scale;
31
32  /// Density of layer[g/cm^(3)]
33  //  [DEFAULT]=density_poly=0.7 [g/cm^(3)]
34  Parameter density_poly;
35
36  /// sld_poly [1/A^(2)]
37  //  [DEFAULT]=sld_poly= 1.5e-6 [1/A^(2)]
38  Parameter sld_poly;
39
40  /// radius_core [A]
41  //  [DEFAULT]=radius_core= 500.0 [A]
42  Parameter radius_core;
43
44  // Model parameters
45  /// volume fraction of_cores
46  //  [DEFAULT]=volf_cores= 0.14
47  Parameter volf_cores;
48
49  /// adsorbed amount [mg/m^(2)]
50  //  [DEFAULT]=ads_amount=1.9 [mg/m^(2)]
51  Parameter ads_amount;
52
53  /// sld_solv [1/A^(2)]
54  //  [DEFAULT]=sld_solv= 6.3e-6 [1/A^(2)]
55  Parameter sld_solv;
56
57  /// second_moment [A]
58  //  [DEFAULT]=second_moment=23.0 [A]
59  Parameter second_moment;
60
61 /// Incoherent Background [1/cm]
62 //  [DEFAULT]=background=0 [1/cm]
63 Parameter background;
64
65  // Constructor
66 Core2ndMomentModel();
67
68  // Operators to get I(Q)
69  double operator()(double q);
70  double operator()(double qx, double qy);
71  double calculate_ER();
72  double calculate_VR();
73  double evaluate_rphi(double q, double phi);
74};
75
76
77#endif
Note: See TracBrowser for help on using the repository browser.