source: sasview/sansmodels/include/parallelepiped.h @ 162c778

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 162c778 was 6319646, checked in by Jae Cho <jhjcho@…>, 13 years ago

new includes for scale fix for P*S

  • Property mode set to 100644
File size: 2.3 KB
RevLine 
[503a972]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();
[6319646]65  double calculate_VR();
[503a972]66  double evaluate_rphi(double q, double phi);
67};
68#endif
Note: See TracBrowser for help on using the repository browser.