1 | #if !defined(hollow_cylinder_h) |
---|
2 | #define hollow_cylinder_h |
---|
3 | |
---|
4 | /** |
---|
5 | * Structure definition for hollow cylinder parameters |
---|
6 | */ |
---|
7 | //[PYTHONCLASS] = HollowCylinderModel |
---|
8 | //[DISP_PARAMS] = core_radius, radius, length, axis_theta, axis_phi |
---|
9 | //[DESCRIPTION] = <text> P(q) = scale*<f*f>/Vol + bkg, where f is the scattering amplitude. |
---|
10 | // core_radius = the radius of core |
---|
11 | // radius = the radius of shell |
---|
12 | // length = the total length of the cylinder |
---|
13 | // sldCyl = SLD of the shell |
---|
14 | // sldSolv = SLD of the solvent |
---|
15 | // background = incoherent background |
---|
16 | // </text> |
---|
17 | //[FIXED]= <text> axis_phi.width; axis_theta.width; length.width;core_radius.width; radius</text> |
---|
18 | //[ORIENTATION_PARAMS]= axis_phi; axis_theta;axis_phi.width; axis_theta.width |
---|
19 | |
---|
20 | |
---|
21 | typedef struct { |
---|
22 | /// Scale factor |
---|
23 | // [DEFAULT]=scale=1.0 |
---|
24 | double scale; |
---|
25 | |
---|
26 | /// Core radius [A] |
---|
27 | // [DEFAULT]=core_radius=20.0 [A] |
---|
28 | double core_radius; |
---|
29 | |
---|
30 | /// Shell radius [A] |
---|
31 | // [DEFAULT]=radius=30.0 [A] |
---|
32 | double radius; |
---|
33 | |
---|
34 | /// Hollow cylinder length [A] |
---|
35 | // [DEFAULT]=length=400.0 [A] |
---|
36 | double length; |
---|
37 | |
---|
38 | /// SLD_cylinder [1/A^(2)] |
---|
39 | // [DEFAULT]=sldCyl=6.3e-6 [1/A^(2)] |
---|
40 | double sldCyl; |
---|
41 | |
---|
42 | /// SLD_solvent [1/A^(2)] |
---|
43 | // [DEFAULT]=sldSolv=1.0e-6 [1/A^(2)] |
---|
44 | double sldSolv; |
---|
45 | |
---|
46 | /// Incoherent Background [1/cm] |
---|
47 | // [DEFAULT]=background=0.01 [1/cm] |
---|
48 | double background; |
---|
49 | |
---|
50 | /// Orientation of the long axis of the hollow cylinder w/respect incoming beam [deg] |
---|
51 | // [DEFAULT]=axis_theta=90.0 [deg] |
---|
52 | double axis_theta; |
---|
53 | |
---|
54 | /// Orientation of the long axis of the hollow cylinder in the plane of the detector [deg] |
---|
55 | // [DEFAULT]=axis_phi=0.0 [deg] |
---|
56 | double axis_phi; |
---|
57 | |
---|
58 | } HollowCylinderParameters; |
---|
59 | |
---|
60 | |
---|
61 | |
---|
62 | /// 1D scattering function |
---|
63 | double hollow_cylinder_analytical_1D(HollowCylinderParameters *pars, double q); |
---|
64 | |
---|
65 | /// 2D scattering function |
---|
66 | double hollow_cylinder_analytical_2D(HollowCylinderParameters *pars, double q, double phi); |
---|
67 | double hollow_cylinder_analytical_2DXY(HollowCylinderParameters *pars, double qx, double qy); |
---|
68 | double hollow_cylinder_analytical_2D_scaled(HollowCylinderParameters *pars, double q, double q_x, double q_y); |
---|
69 | |
---|
70 | #endif |
---|