1 | #if !defined(spheroid_h) |
---|
2 | #define spheroid_h |
---|
3 | /** Structure definition for oblate parameters |
---|
4 | * [PYTHONCLASS] = CoreShellEllipsoidModel |
---|
5 | * [DISP_PARAMS] = equat_core, polar_core, equat_shell,polar_shell,axis_phi, axis_theta |
---|
6 | [DESCRIPTION] = <text>[SpheroidCoreShellModel] Calculates the form factor for an spheroid |
---|
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 | equat_core = equatorial radius of core, |
---|
14 | polar_core = polar radius of core, |
---|
15 | equat_shell = equatorial radius of shell, |
---|
16 | polar_shell = polar radius (revolution axis) of 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 | oblate: polar radius < equatorial radius |
---|
24 | prolate : polar radius > equatorial radius |
---|
25 | </text> |
---|
26 | |
---|
27 | [FIXED] = <text>equat_core.width;polar_core.width; equat_shell.width; polar_shell.width; axis_phi.width; axis_theta.width</text> |
---|
28 | [ORIENTATION_PARAMS]= <text>axis_phi; axis_theta; axis_phi.width; axis_theta.width</text> |
---|
29 | |
---|
30 | **/ |
---|
31 | typedef struct { |
---|
32 | /// Scale factor |
---|
33 | // [DEFAULT]=scale=1.0 |
---|
34 | double scale; |
---|
35 | /// Equatorial radius of core [A] |
---|
36 | // [DEFAULT]=equat_core=200.0 [A] |
---|
37 | double equat_core; |
---|
38 | /// Polar radius of core [A] |
---|
39 | // [DEFAULT]=polar_core=20.0 [A] |
---|
40 | double polar_core; |
---|
41 | /// equatorial radius of shell [A] |
---|
42 | // [DEFAULT]=equat_shell=250.0 [A] |
---|
43 | double equat_shell; |
---|
44 | /// polar radius of shell [A] |
---|
45 | // [DEFAULT]=polar_shell=30.0 [A] |
---|
46 | double polar_shell; |
---|
47 | /// Scattering contrast [1/A^(2)] |
---|
48 | // [DEFAULT]=contrast=1.0e-6 [1/A^(2)] |
---|
49 | double contrast; |
---|
50 | /// Solvent scattering length density [1/A^(2)] |
---|
51 | // [DEFAULT]=sld_solvent=6.3e-6 [1/A^(2)] |
---|
52 | double sld_solvent; |
---|
53 | /// Incoherent Background [1/cm] 0.001 |
---|
54 | // [DEFAULT]=background=0.001 [1/cm] |
---|
55 | double background; |
---|
56 | //Disable for now |
---|
57 | /// Orientation of the oblate axis w/respect incoming beam [rad] |
---|
58 | // [DEFAULT]=axis_theta=0.0 [rad] |
---|
59 | double axis_theta; |
---|
60 | /// Orientation of the oblate in the plane of the detector [rad] |
---|
61 | // [DEFAULT]=axis_phi=0.0 [rad] |
---|
62 | double axis_phi; |
---|
63 | |
---|
64 | } SpheroidParameters; |
---|
65 | |
---|
66 | |
---|
67 | |
---|
68 | /// 1D scattering function |
---|
69 | double spheroid_analytical_1D(SpheroidParameters *pars, double q); |
---|
70 | |
---|
71 | /// 2D scattering function |
---|
72 | double spheroid_analytical_2D(SpheroidParameters *pars, double q, double phi); |
---|
73 | double spheroid_analytical_2DXY(SpheroidParameters *pars, double qx, double qy); |
---|
74 | double spheroid_analytical_2D_scaled(SpheroidParameters *pars, double q, double q_x, double q_y); |
---|
75 | |
---|
76 | #endif |
---|