1 | #if !defined(core_shell_cylinder_h) |
---|
2 | #define core_shell_cylinder_h |
---|
3 | |
---|
4 | /** |
---|
5 | * Structure definition for core-shell cylinder parameters |
---|
6 | */ |
---|
7 | //[PYTHONCLASS] = CoreShellCylinderModel |
---|
8 | //[DISP_PARAMS] = radius, thickness, length, axis_theta, axis_phi |
---|
9 | //[DESCRIPTION] = <text>P(q,alpha)= scale/Vs*f(q)^(2) + bkg, where: f(q)= 2(core_sld |
---|
10 | // - solvant_sld)* Vc*sin[qLcos(alpha/2)] |
---|
11 | // /[qLcos(alpha/2)]*J1(qRsin(alpha)) |
---|
12 | // /[qRsin(alpha)]+2(shell_sld-solvent_sld) |
---|
13 | // *Vs*sin[q(L+T)cos(alpha/2)][[q(L+T) |
---|
14 | // *cos(alpha/2)]*J1(q(R+T)sin(alpha)) |
---|
15 | // /q(R+T)sin(alpha)] |
---|
16 | // |
---|
17 | // alpha:is the angle between the axis of |
---|
18 | // the cylinder and the q-vector |
---|
19 | // Vs: the volume of the outer shell |
---|
20 | // Vc: the volume of the core |
---|
21 | // L: the length of the core |
---|
22 | // shell_sld: the scattering length density |
---|
23 | // of the shell |
---|
24 | // solvent_sld: the scattering length density |
---|
25 | // of the solvent |
---|
26 | // bkg: the background |
---|
27 | // T: the thickness |
---|
28 | // R+T: is the outer radius |
---|
29 | // L+2T: The total length of the outershell |
---|
30 | // J1: the first order Bessel function |
---|
31 | // theta: axis_theta of the cylinder |
---|
32 | // phi: the axis_phi of the cylinder... |
---|
33 | // </text> |
---|
34 | //[FIXED]= <text> axis_phi.width; axis_theta.width; length.width;radius.width; thickness.width</text> |
---|
35 | //[ORIENTATION_PARAMS]= axis_phi; axis_theta;axis_phi.width; axis_theta.width |
---|
36 | |
---|
37 | |
---|
38 | typedef struct { |
---|
39 | /// Scale factor |
---|
40 | // [DEFAULT]=scale=1.0 |
---|
41 | double scale; |
---|
42 | |
---|
43 | /// Core radius [A] |
---|
44 | // [DEFAULT]=radius=20.0 [A] |
---|
45 | double radius; |
---|
46 | |
---|
47 | /// Shell thickness [A] |
---|
48 | // [DEFAULT]=thickness=10.0 [A] |
---|
49 | double thickness; |
---|
50 | |
---|
51 | /// Core length [A] |
---|
52 | // [DEFAULT]=length=400.0 [A] |
---|
53 | double length; |
---|
54 | |
---|
55 | /// Core SLD [1/A^(2)] |
---|
56 | // [DEFAULT]=core_sld=1.0e-6 [1/A^(2)] |
---|
57 | double core_sld; |
---|
58 | |
---|
59 | /// Shell SLD [1/A^(2)] |
---|
60 | // [DEFAULT]=shell_sld=4.0e-6 [1/A^(2)] |
---|
61 | double shell_sld; |
---|
62 | |
---|
63 | /// Solvent SLD [1/A^(2)] |
---|
64 | // [DEFAULT]=solvent_sld=1.0e-6 [1/A^(2)] |
---|
65 | double solvent_sld; |
---|
66 | |
---|
67 | /// Incoherent Background [1/cm] |
---|
68 | // [DEFAULT]=background=0 [1/cm] |
---|
69 | double background; |
---|
70 | |
---|
71 | /// Orientation of the long axis of the core-shell cylinder w/respect incoming beam [deg] |
---|
72 | // [DEFAULT]=axis_theta=90.0 [deg] |
---|
73 | double axis_theta; |
---|
74 | |
---|
75 | /// Orientation of the long axis of the core-shell cylinder in the plane of the detector [deg] |
---|
76 | // [DEFAULT]=axis_phi=0.0 [deg] |
---|
77 | double axis_phi; |
---|
78 | |
---|
79 | } CoreShellCylinderParameters; |
---|
80 | |
---|
81 | |
---|
82 | |
---|
83 | /// 1D scattering function |
---|
84 | double core_shell_cylinder_analytical_1D(CoreShellCylinderParameters *pars, double q); |
---|
85 | |
---|
86 | /// 2D scattering function |
---|
87 | double core_shell_cylinder_analytical_2D(CoreShellCylinderParameters *pars, double q, double phi); |
---|
88 | double core_shell_cylinder_analytical_2DXY(CoreShellCylinderParameters *pars, double qx, double qy); |
---|
89 | double core_shell_cylinder_analytical_2D_scaled(CoreShellCylinderParameters *pars, double q, double q_x, double q_y); |
---|
90 | |
---|
91 | #endif |
---|