source: sasview/sansmodels/include/elliptical_cylinder.h @ 98b12205

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 98b12205 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.1 KB
Line 
1#if !defined(ell_cylinder_h)
2#define ell_cylinder_h
3#include "parameters.hh"
4
5/** Structure definition for cylinder parameters
6 * [PYTHONCLASS] = EllipticalCylinderModel
7 * [DISP_PARAMS] = r_minor, r_ratio, length, cyl_theta, cyl_phi, cyl_psi
8 * [DESCRIPTION] = <text> Model parameters: r_minor = the radius of minor axis of the cross section
9r_ratio = the ratio of (r_major /r_minor >= 1)
10length = the length of the cylinder
11sldCyl = SLD of the cylinder
12sldSolv = SLD of solvent -
13background = incoherent background
14 *</text>
15 * [FIXED]= <text> cyl_phi.width;
16 * cyl_theta.width; cyl_psi.width; length.width; r_minor.width; r_ratio.width
17 *</text>
18 * [ORIENTATION_PARAMS]= cyl_phi; cyl_theta; cyl_psi;  cyl_phi.width; cyl_theta.width; cyl_psi.width
19 * */
20
21class EllipticalCylinderModel{
22public:
23  // Model parameters
24  /// Minor radius [A]
25  //  [DEFAULT]=r_minor=20.0 [A]
26  Parameter r_minor;
27  /// Scale factor
28  //  [DEFAULT]=scale=1.0
29  Parameter scale;
30  /// Ratio of major/minor radii
31  //  [DEFAULT]=r_ratio=1.5
32  Parameter r_ratio;
33  /// Length of the cylinder [A]
34  //  [DEFAULT]=length=400.0 [A]
35  Parameter length;
36  /// SLD of cylinder [1/A^(2)]
37  //  [DEFAULT]=sldCyl=4.0e-6 [1/A^(2)]
38  Parameter sldCyl;
39  /// SLD of solvent [1/A^(2)]
40  //  [DEFAULT]=sldSolv=1.0e-6 [1/A^(2)]
41  Parameter sldSolv;
42  /// Incoherent Background [1/cm] 0.000
43  //  [DEFAULT]=background=0 [1/cm]
44  Parameter background;
45  /// Orientation of the cylinder axis w/respect incoming beam [deg]
46  //  [DEFAULT]=cyl_theta=90.0 [deg]
47  Parameter cyl_theta;
48  /// Orientation of the cylinder in the plane of the detector [deg]
49  //  [DEFAULT]=cyl_phi=0.0 [deg]
50  Parameter cyl_phi;
51  /// Orientation of major radius of the cross-section w/respect vector q [deg]
52  //  [DEFAULT]=cyl_psi=0.0 [deg]
53  Parameter cyl_psi;
54
55  // Constructor
56  EllipticalCylinderModel();
57
58  // Operators to get I(Q)
59  double operator()(double q);
60  double operator()(double qx, double qy);
61  double calculate_ER();
62  double calculate_VR();
63  double evaluate_rphi(double q, double phi);
64};
65#endif
Note: See TracBrowser for help on using the repository browser.