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 |
---|
9 | r_ratio = the ratio of (r_major /r_minor >= 1) |
---|
10 | length = the length of the cylinder |
---|
11 | sldCyl = SLD of the cylinder |
---|
12 | sldSolv = SLD of solvent - |
---|
13 | background = 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 | |
---|
21 | class EllipticalCylinderModel{ |
---|
22 | public: |
---|
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 |
---|