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