source: sasview/src/sas/models/include/RectangularHollowPrism.h @ d2143ab

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 d2143ab 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
RevLine 
[201af9f]1#if !defined(RectangularHollowPrism_h)
2#define RectangularHollowPrism_h
3#include "parameters.hh"
4
5/** Structure definition for RectangularHollowPrism parameters
6 * [PYTHONCLASS] = RectangularHollowPrismModel
7 * [DISP_PARAMS] = short_side, b2a_ratio, c2a_ratio, thickness
8   [DESCRIPTION] = <text> Form factor for a hollow rectangular prism with uniform scattering length density.
9                scale:Scale factor
10                short_side: shortest side of the rectangular prism  [A]
11                b2a_ratio: ratio b/a [adim]
12                c2a_ratio: ratio c/a [adim]
13                thickness: thickness of the walls [A]
14                sldPipe: Pipe_sld
15                sldSolv: solvent_sld
16                background:Incoherent Background [1/cm]
17                </text>
18        [FIXED]= <text> short_side.width; b2a_ratio.width; c2a_ratio.width; thicness.width; </text>
19
20 **/
21
22class RectangularHollowPrismModel{
23public:
24  // Model parameters
25 
26  /// Scale factor
27  //  [DEFAULT]=scale=1.0
28  Parameter scale;
29 
30  ///  Shortest side of rectangular prism [A]
31  //  [DEFAULT]=short_side=35 [A]
32  Parameter short_side;
33 
34  ///  Ratio b/a [adim]
35  //  [DEFAULT]=b2a_ratio=1 [adim]
36  Parameter b2a_ratio;
37 
38  ///  Ratio c/a [adim]
39  //  [DEFAULT]=c2a_ratio=1 [adim]
40  Parameter c2a_ratio;
41 
42  ///  Thickness of walls [A]
43  //  [DEFAULT]=thickness=1 [A]
44  Parameter thickness;
45 
46  /// SLD_Pipe [1/A^(2)]
47  //  [DEFAULT]=sldPipe=6.3e-6 [1/A^(2)]
48  Parameter sldPipe;
49 
50  /// sldSolv [1/A^(2)]
51  //  [DEFAULT]=sldSolv=1.0e-6 [1/A^(2)]
52  Parameter sldSolv;
53
54  /// Incoherent Background [1/cm]
55  //  [DEFAULT]=background=0.0 [1/cm]
56  Parameter background;
57 
58  // Constructor
59  RectangularHollowPrismModel();
60
61  // Operators to get I(Q)
62  double operator()(double q);
63  double operator()(double qx, double qy);
64  double calculate_ER();
65  double calculate_VR();
66  double evaluate_rphi(double q, double phi);
67};
68#endif
Note: See TracBrowser for help on using the repository browser.