1 | /* |
---|
2 | TODO: Add 2D model |
---|
3 | */ |
---|
4 | |
---|
5 | #if !defined(stacked_disks_h) |
---|
6 | #define stacked_disks_h |
---|
7 | /** Structure definition for stacked disks parameters |
---|
8 | * [PYTHONCLASS] = StackedDisksModel |
---|
9 | * [DISP_PARAMS] = length, radius, axis_theta, axis_phi |
---|
10 | [DESCRIPTION] = <text> |
---|
11 | </text> |
---|
12 | [FIXED]= <text>length.width; radius.width; axis_theta.width; axis_phi.width</text> |
---|
13 | [ORIENTATION_PARAMS]= <text>axis_phi; axis_theta; axis_phi.width; axis_theta.width</text> |
---|
14 | |
---|
15 | |
---|
16 | **/ |
---|
17 | typedef struct { |
---|
18 | /// Scale factor |
---|
19 | // [DEFAULT]=scale=0.01 |
---|
20 | double scale; |
---|
21 | /// radius of the staked disk [A] |
---|
22 | // [DEFAULT]=radius=3000 [A] |
---|
23 | double radius; |
---|
24 | /// Length of the staked disk [A] |
---|
25 | // [DEFAULT]=length=10.0 [A] |
---|
26 | double length; |
---|
27 | /// Thickness of the staked disk [A] |
---|
28 | // [DEFAULT]=thickness=15.0 [A] |
---|
29 | double thickness; |
---|
30 | /// Core scattering length density[1/A²] |
---|
31 | // [DEFAULT]=core_sld=4e-6 [1/A²] |
---|
32 | double core_sld; |
---|
33 | /// layer scattering length density[1/A²] |
---|
34 | // [DEFAULT]=layer_sld=-4e-7 [1/A²] |
---|
35 | double layer_sld; |
---|
36 | /// solvent scattering length density[1/A²] |
---|
37 | // [DEFAULT]=solvent_sld=5.0e-6 [1/A²] |
---|
38 | double solvent_sld; |
---|
39 | /// number of layers |
---|
40 | // [DEFAULT]=nlayers=1 |
---|
41 | double nlayers; |
---|
42 | /// GSD of disks spacing |
---|
43 | // [DEFAULT]=spacing=0 |
---|
44 | double spacing; |
---|
45 | /// Incoherent Background [1/cm] |
---|
46 | // [DEFAULT]=background=0.001 [1/cm] |
---|
47 | double background; |
---|
48 | /// Orientation of the staked disk axis w/respect incoming beam [rad] |
---|
49 | // [DEFAULT]=axis_theta=1.0 [rad] |
---|
50 | double axis_theta; |
---|
51 | /// Orientation of the staked disk in the plane of the detector [rad] |
---|
52 | // [DEFAULT]=axis_phi=1.0 [rad] |
---|
53 | double axis_phi; |
---|
54 | |
---|
55 | |
---|
56 | } StackedDisksParameters; |
---|
57 | |
---|
58 | |
---|
59 | |
---|
60 | /// 1D scattering function |
---|
61 | double stacked_disks_analytical_1D(StackedDisksParameters *pars, double q); |
---|
62 | |
---|
63 | /// 2D scattering function |
---|
64 | double stacked_disks_analytical_2D(StackedDisksParameters *pars, double q, double phi); |
---|
65 | double stacked_disks_analytical_2DXY(StackedDisksParameters *pars, double qx, double qy); |
---|
66 | double stacked_disks_analytical_2D_scaled(StackedDisksParameters *pars, double q, double q_x, double q_y); |
---|
67 | |
---|
68 | #endif |
---|