1 | #if !defined(oblate_h) |
---|
2 | #define oblate_h |
---|
3 | /** Structure definition for oblate parameters |
---|
4 | * [PYTHONCLASS] = OblateModel |
---|
5 | * [DISP_PARAMS] = major_core, minor_core, major_shell,minor_shell |
---|
6 | [DESCRIPTION] = <text>[OblateCoreShellModel] Calculates the form factor for an oblate |
---|
7 | ellipsoid particle with a core_shell structure. |
---|
8 | The form factor is averaged over all possible |
---|
9 | orientations of the ellipsoid such that P(q) |
---|
10 | = scale*<f^2>/Vol + bkg, where f is the |
---|
11 | single particle scattering amplitude. |
---|
12 | [Parameters]: |
---|
13 | major_core = radius of major_core, |
---|
14 | minor_core = radius of minor_core, |
---|
15 | major_shell = radius of major_shell, |
---|
16 | minor_shell = radius of minor_shell, |
---|
17 | contrast = SLD_core - SLD_shell |
---|
18 | sld_solvent = SLD_solvent |
---|
19 | background = Incoherent bkg |
---|
20 | scale =scale |
---|
21 | Note:It is the users' responsibility to ensure |
---|
22 | that shell radii are larger than core radii. |
---|
23 | </text> |
---|
24 | |
---|
25 | [FIXED] = <text>major_core.width;minor_core.width; major_shell.width; minor_shell.width</text> |
---|
26 | [ORIENTATION_PARAMS]= <text>axis_phi; axis_theta; axis_phi.width; axis_theta.width</text> |
---|
27 | |
---|
28 | **/ |
---|
29 | typedef struct { |
---|
30 | /// Scale factor |
---|
31 | // [DEFAULT]=scale=1.0 |
---|
32 | double scale; |
---|
33 | /// Major core of oblate [A] |
---|
34 | // [DEFAULT]=major_core=200.0 [A] |
---|
35 | double major_core; |
---|
36 | /// Minor core of oblate [A] |
---|
37 | // [DEFAULT]=minor_core=20.0 [A] |
---|
38 | double minor_core; |
---|
39 | /// Major shell of oblate [A] |
---|
40 | // [DEFAULT]=major_shell=250.0 [A] |
---|
41 | double major_shell; |
---|
42 | /// Minor shell of oblate [A] |
---|
43 | // [DEFAULT]=minor_shell=30.0 [A] |
---|
44 | double minor_shell; |
---|
45 | /// Scattering contrast [1/A²] |
---|
46 | // [DEFAULT]=contrast=1.0e-6 [1/A²] |
---|
47 | double contrast; |
---|
48 | /// Solvent scattering length density [1/A²] |
---|
49 | // [DEFAULT]=sld_solvent=6.3e-6 [1/A²] |
---|
50 | double sld_solvent; |
---|
51 | /// Incoherent Background [1/cm] 0.001 |
---|
52 | // [DEFAULT]=background=0.001 [1/cm] |
---|
53 | double background; |
---|
54 | //Disable for now |
---|
55 | /// Orientation of the oblate axis w/respect incoming beam [rad] |
---|
56 | // [DEFAULT]=axis_theta=1.0 [rad] |
---|
57 | double axis_theta; |
---|
58 | /// Orientation of the oblate in the plane of the detector [rad] |
---|
59 | // [DEFAULT]=axis_phi=1.0 [rad] |
---|
60 | double axis_phi; |
---|
61 | |
---|
62 | } OblateParameters; |
---|
63 | |
---|
64 | |
---|
65 | |
---|
66 | /// 1D scattering function |
---|
67 | double oblate_analytical_1D(OblateParameters *pars, double q); |
---|
68 | |
---|
69 | /// 2D scattering function |
---|
70 | double oblate_analytical_2D(OblateParameters *pars, double q, double phi); |
---|
71 | double oblate_analytical_2DXY(OblateParameters *pars, double qx, double qy); |
---|
72 | //double oblate_analytical_2D_scaled(OblateParameters *pars, double q, double q_x, double q_y); |
---|
73 | |
---|
74 | #endif |
---|