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 | // contrast = SLD of solvent - SLD of shell |
---|
14 | // background = incoherent background |
---|
15 | // </text> |
---|
16 | //[FIXED]= <text> axis_phi.width; axis_theta.width; length.width;core_radius.width; radius</text> |
---|
17 | //[ORIENTATION_PARAMS]= axis_phi; axis_theta;axis_phi.width; axis_theta.width |
---|
18 | |
---|
19 | |
---|
20 | typedef struct { |
---|
21 | /// Scale factor |
---|
22 | // [DEFAULT]=scale=1.0 |
---|
23 | double scale; |
---|
24 | |
---|
25 | /// Core radius [A] |
---|
26 | // [DEFAULT]=core_radius=20.0 [A] |
---|
27 | double core_radius; |
---|
28 | |
---|
29 | /// Shell radius [A] |
---|
30 | // [DEFAULT]=radius=30.0 [A] |
---|
31 | double radius; |
---|
32 | |
---|
33 | /// Hollow cylinder length [A] |
---|
34 | // [DEFAULT]=length=400.0 [A] |
---|
35 | double length; |
---|
36 | |
---|
37 | /// Contrast [1/A^(2)] |
---|
38 | // [DEFAULT]=contrast=5.3e-6 [1/A^(2)] |
---|
39 | double contrast; |
---|
40 | |
---|
41 | /// Incoherent Background [1/cm] |
---|
42 | // [DEFAULT]=background=0.01 [1/cm] |
---|
43 | double background; |
---|
44 | |
---|
45 | /// Orientation of the long axis of the hollow cylinder w/respect incoming beam [rad] |
---|
46 | // [DEFAULT]=axis_theta=1.57 [rad] |
---|
47 | double axis_theta; |
---|
48 | |
---|
49 | /// Orientation of the long axis of the hollow cylinder in the plane of the detector [rad] |
---|
50 | // [DEFAULT]=axis_phi=0.0 [rad] |
---|
51 | double axis_phi; |
---|
52 | |
---|
53 | } HollowCylinderParameters; |
---|
54 | |
---|
55 | |
---|
56 | |
---|
57 | /// 1D scattering function |
---|
58 | double hollow_cylinder_analytical_1D(HollowCylinderParameters *pars, double q); |
---|
59 | |
---|
60 | /// 2D scattering function |
---|
61 | double hollow_cylinder_analytical_2D(HollowCylinderParameters *pars, double q, double phi); |
---|
62 | double hollow_cylinder_analytical_2DXY(HollowCylinderParameters *pars, double qx, double qy); |
---|
63 | double hollow_cylinder_analytical_2D_scaled(HollowCylinderParameters *pars, double q, double q_x, double q_y); |
---|
64 | |
---|
65 | #endif |
---|