[5068697] | 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 |
---|
[975ec8e] | 9 | * [DISP_PARAMS] = core_thick, layer_thick, radius, axis_theta, axis_phi |
---|
[5068697] | 10 | [DESCRIPTION] = <text> |
---|
| 11 | </text> |
---|
[975ec8e] | 12 | [FIXED]= <text>core_thick.width;layer_thick.width; radius.width; axis_theta.width; axis_phi.width</text> |
---|
[5068697] | 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; |
---|
[975ec8e] | 24 | /// Thickness of the core disk [A] |
---|
| 25 | // [DEFAULT]=core_thick=10.0 [A] |
---|
| 26 | double core_thick; |
---|
[5068697] | 27 | /// Thickness of the staked disk [A] |
---|
[975ec8e] | 28 | // [DEFAULT]=layer_thick=15.0 [A] |
---|
| 29 | double layer_thick; |
---|
[5068697] | 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; |
---|
[975ec8e] | 39 | /// number of stacking |
---|
| 40 | // [DEFAULT]=n_stacking=1 |
---|
| 41 | double n_stacking; |
---|
| 42 | /// GSD of disks sigma_d |
---|
| 43 | // [DEFAULT]=sigma_d=0 |
---|
| 44 | double sigma_d; |
---|
| 45 | /// Incoherent Background [1/cm] |
---|
[5068697] | 46 | // [DEFAULT]=background=0.001 [1/cm] |
---|
| 47 | double background; |
---|
| 48 | /// Orientation of the staked disk axis w/respect incoming beam [rad] |
---|
[975ec8e] | 49 | // [DEFAULT]=axis_theta=0.0 [rad] |
---|
[5068697] | 50 | double axis_theta; |
---|
| 51 | /// Orientation of the staked disk in the plane of the detector [rad] |
---|
[975ec8e] | 52 | // [DEFAULT]=axis_phi=0.0 [rad] |
---|
[5068697] | 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 |
---|