source: sasview/src/sas/models/include/RectangularHollowPrismInfThinWalls.h @ be0c318

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