source: sasview/sansmodels/src/include/parallelepiped.h @ b4293d2

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 b4293d2 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: 2.3 KB
Line 
1#if !defined(parallelepiped_h)
2#define parallelepiped_h
3#include "parameters.hh"
4
5/** Structure definition for Parallelepiped parameters
6 * [PYTHONCLASS] = ParallelepipedModel
7 * [DISP_PARAMS] = short_a, short_b, long_c,parallel_phi,parallel_psi, parallel_theta
8   [DESCRIPTION] = <text> Form factor for a rectangular solid with uniform scattering length density.
9
10                scale:Scale factor
11                short_a: length of short edge  [A]
12                short_b: length of another short edge [A]
13                long_c: length of long edge  of the parallelepiped [A]
14                sldPipe: Pipe_sld
15                sldSolv: solvent_sld
16                background:Incoherent Background [1/cm]
17                </text>
18        [FIXED]= <text>short_a.width; short_b.width; long_c.width;parallel_phi.width;parallel_psi.width; parallel_theta.width</text>
19        [ORIENTATION_PARAMS]= <text>parallel_phi;parallel_psi; parallel_theta; parallel_phi.width;parallel_psi.width; parallel_theta.width</text>
20
21
22 **/
23
24class ParallelepipedModel{
25public:
26  // Model parameters
27  /// Scale factor
28  //  [DEFAULT]=scale=1.0
29  Parameter scale;
30  ///  Length of short edge of the parallelepiped [A]
31  //  [DEFAULT]=short_a=35 [A]
32  Parameter short_a;
33  /// Length of short edge edge of the parallelepiped [A]
34  //  [DEFAULT]=short_b=75 [A]
35  Parameter short_b;
36  /// Length of long edge of the parallelepiped [A]
37  //  [DEFAULT]=long_c=400 [A]
38  Parameter long_c;
39  /// SLD_Pipe [1/A^(2)]
40  //  [DEFAULT]=sldPipe=6.3e-6 [1/A^(2)]
41  Parameter sldPipe;
42  /// sldSolv [1/A^(2)]
43  //  [DEFAULT]=sldSolv=1.0e-6 [1/A^(2)]
44  Parameter sldSolv;
45  /// Incoherent Background [1/cm]
46  //  [DEFAULT]=background=0.0 [1/cm]
47  Parameter background;
48  /// Orientation of the parallelepiped axis w/respect incoming beam [deg]
49  //  [DEFAULT]=parallel_theta=0.0 [deg]
50  Parameter parallel_theta;
51  /// Orientation of the longitudinal axis of the parallelepiped in the plane of the detector [deg]
52  //  [DEFAULT]=parallel_phi=0.0 [deg]
53  Parameter parallel_phi;
54  /// Orientation of the cross-sectional minor axis of the parallelepiped in the plane of the detector [deg]
55  //  [DEFAULT]=parallel_psi=0.0 [deg]
56  Parameter parallel_psi;
57
58  // Constructor
59  ParallelepipedModel();
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 evaluate_rphi(double q, double phi);
66};
67#endif
Note: See TracBrowser for help on using the repository browser.