[ae3ce4e] | 1 | #if !defined(core_shell_h) |
---|
| 2 | #define core_shell_h |
---|
| 3 | |
---|
[0f5bc9f] | 4 | /** |
---|
| 5 | * Structure definition for core-shell parameters |
---|
[ae3ce4e] | 6 | */ |
---|
| 7 | //[PYTHONCLASS] = CoreShellModel |
---|
[0f5bc9f] | 8 | //[DISP_PARAMS] = radius, thickness |
---|
[25579e8] | 9 | //[DESCRIPTION] =<text> Form factor for a monodisperse spherical |
---|
| 10 | // particle with a core-shell structure: |
---|
| 11 | // The form factor is normalized by the |
---|
| 12 | // total particle volume. |
---|
| 13 | // |
---|
| 14 | // radius: core radius |
---|
| 15 | // thickness: shell thickness |
---|
| 16 | // |
---|
| 17 | // Ref: Guinier, A. and G. Fournet, |
---|
| 18 | // John Wiley and Sons, New York, 1955. |
---|
| 19 | // </text> |
---|
[836fe6e] | 20 | //[FIXED]= <text> thickness.width;radius.width</text> |
---|
[ae3ce4e] | 21 | typedef struct { |
---|
[0f5bc9f] | 22 | /// Scale factor |
---|
[ae3ce4e] | 23 | // [DEFAULT]=scale=1.0 |
---|
| 24 | double scale; |
---|
| 25 | /// Core Radius (A) 60.0 |
---|
| 26 | // [DEFAULT]=radius=60.0 A |
---|
| 27 | double radius; |
---|
| 28 | /// Shell Thickness (A) 10.0 |
---|
| 29 | // [DEFAULT]=thickness=10 A |
---|
| 30 | double thickness; |
---|
| 31 | /// Core SLD (Å-2) 1.0e-6 |
---|
| 32 | // [DEFAULT]=core_sld=1.0e-6 A-2 |
---|
| 33 | double core_sld; |
---|
| 34 | /// Shell SLD (Å-2) 2.0e-6 |
---|
| 35 | // [DEFAULT]=shell_sld=2.0e-6 A-2 |
---|
| 36 | double shell_sld; |
---|
| 37 | /// Solvent SLD (Å-2) 3.0e-6 |
---|
| 38 | // [DEFAULT]=solvent_sld=3.0e-6 A-2 |
---|
| 39 | double solvent_sld; |
---|
| 40 | /// Incoherent Background (cm-1) 0.000 |
---|
| 41 | // [DEFAULT]=background=0 cm-1 |
---|
[0f5bc9f] | 42 | double background; |
---|
[ae3ce4e] | 43 | } CoreShellParameters; |
---|
| 44 | |
---|
| 45 | |
---|
| 46 | |
---|
| 47 | /// 1D scattering function |
---|
| 48 | double core_shell_analytical_1D(CoreShellParameters *pars, double q); |
---|
| 49 | |
---|
| 50 | /// 2D scattering function |
---|
| 51 | double core_shell_analytical_2D(CoreShellParameters *pars, double q, double phi); |
---|
| 52 | double core_shell_analytical_2DXY(CoreShellParameters *pars, double qx, double qy); |
---|
| 53 | |
---|
| 54 | #endif |
---|