source: sasview/src/sas/models/include/parallelepiped.h @ 54b9ad2

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 54b9ad2 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: 3.4 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; M0_sld_pipe; M_theta_pipe; M_phi_pipe;M0_sld_solv; M_theta_solv; M_phi_solv; Up_frac_i; Up_frac_f; Up_theta;</text>
20        [MAGNETIC_PARAMS]= <text> M0_sld_pipe; M_theta_pipe; M_phi_pipe; M0_sld_solv; M_theta_solv; M_phi_solv; Up_frac_i; Up_frac_f; Up_theta; </text>
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  /// M0_sld_pipe
59  //  [DEFAULT]=M0_sld_pipe=0.0e-6 [1/A^(2)]
60  Parameter M0_sld_pipe;
61
62  /// M_theta_pipe
63  //  [DEFAULT]=M_theta_pipe=0.0 [deg]
64  Parameter M_theta_pipe;
65
66  /// M_phi_pipe
67  //  [DEFAULT]=M_phi_pipe=0.0 [deg]
68  Parameter M_phi_pipe;
69
70  /// M0_sld_solv
71  //  [DEFAULT]=M0_sld_solv=0.0e-6 [1/A^(2)]
72  Parameter M0_sld_solv;
73
74  /// M_theta_solv
75  //  [DEFAULT]=M_theta_solv=0.0 [deg]
76  Parameter M_theta_solv;
77
78  /// M_phi_solv
79  //  [DEFAULT]=M_phi_solv=0.0 [deg]
80  Parameter M_phi_solv;
81
82  /// Up_frac_i
83  //  [DEFAULT]=Up_frac_i=0.5 [u/(u+d)]
84  Parameter Up_frac_i;
85
86  /// Up_frac_f
87  //  [DEFAULT]=Up_frac_f=0.5 [u/(u+d)]
88  Parameter Up_frac_f;
89
90  /// Up_theta
91  //  [DEFAULT]=Up_theta=0.0 [deg]
92  Parameter Up_theta;
93 
94  // Constructor
95  ParallelepipedModel();
96
97  // Operators to get I(Q)
98  double operator()(double q);
99  double operator()(double qx, double qy);
100  double calculate_ER();
101  double calculate_VR();
102  double evaluate_rphi(double q, double phi);
103};
104#endif
Note: See TracBrowser for help on using the repository browser.