[3d25331f] | 1 | #if !defined(multishell_h) |
---|
| 2 | #define multishell_h |
---|
| 3 | |
---|
| 4 | /** |
---|
| 5 | * Structure definition for sphere parameters |
---|
| 6 | |
---|
| 7 | [PYTHONCLASS] = MultiShellModel |
---|
| 8 | [DISP_PARAMS] = core_radius |
---|
| 9 | [DESCRIPTION] =<text> |
---|
| 10 | Model parameters: |
---|
| 11 | scale : scale factor |
---|
| 12 | core_radius : Core radius of the multishell |
---|
| 13 | s_thickness: shell thickness |
---|
| 14 | w_thickness: water thickness |
---|
| 15 | core_sld: core scattering length density |
---|
| 16 | shell_sld: shell scattering length density |
---|
| 17 | n_pairs:number of pairs of water/shell |
---|
| 18 | background: incoherent background |
---|
| 19 | </text> |
---|
| 20 | [FIXED]= core_radius.width |
---|
| 21 | [ORIENTATION_PARAMS]= <text> </text> |
---|
| 22 | */ |
---|
| 23 | typedef struct { |
---|
| 24 | /// Scale factor |
---|
| 25 | // [DEFAULT]=scale= 1.0 |
---|
| 26 | double scale; |
---|
| 27 | |
---|
| 28 | /// Core radius of the multishell [A] |
---|
| 29 | // [DEFAULT]=core_radius=60.0 [A] |
---|
| 30 | double core_radius; |
---|
| 31 | |
---|
| 32 | /// shell thickness [Å] |
---|
| 33 | // [DEFAULT]=s_thickness= 10.0 [A] |
---|
| 34 | double s_thickness; |
---|
| 35 | |
---|
| 36 | /// water thickness [Å] |
---|
| 37 | // [DEFAULT]=w_thickness= 10.0 [A] |
---|
| 38 | double w_thickness; |
---|
| 39 | |
---|
| 40 | /// core scattering length density [1/Ų] |
---|
| 41 | // [DEFAULT]=core_sld= 6.4e-6 [1/A²] |
---|
| 42 | double core_sld; |
---|
| 43 | |
---|
| 44 | /// shell scattering length density [1/Ų] |
---|
| 45 | // [DEFAULT]=shell_sld= 4.0e-7 [1/A²] |
---|
| 46 | double shell_sld; |
---|
| 47 | |
---|
| 48 | /// number of pairs of water and shell |
---|
| 49 | // [DEFAULT]=n_pairs= 2 |
---|
| 50 | double n_pairs; |
---|
| 51 | |
---|
| 52 | /// Incoherent Background [1/cm] |
---|
| 53 | // [DEFAULT]=background=0 [1/cm] |
---|
| 54 | double background; |
---|
| 55 | |
---|
| 56 | } MultiShellParameters; |
---|
| 57 | |
---|
| 58 | |
---|
| 59 | |
---|
| 60 | /// 1D scattering function |
---|
| 61 | double multishell_analytical_1D(MultiShellParameters *pars, double q); |
---|
| 62 | |
---|
| 63 | /// 2D scattering function |
---|
| 64 | double multishell_analytical_2D(MultiShellParameters *pars, double q, double phi); |
---|
| 65 | double multishell_analytical_2DXY(MultiShellParameters *pars, double qx, double qy); |
---|
| 66 | |
---|
| 67 | #endif |
---|