[27a0771] | 1 | #if !defined(prolate_h) |
---|
| 2 | #define prolate_h |
---|
| 3 | /** Structure definition for prolate parameters |
---|
| 4 | * [PYTHONCLASS] = ProlateModel |
---|
[8dc0b746] | 5 | * [DISP_PARAMS] = major_core, minor_core, major_shell,minor_shell |
---|
| 6 | [DESCRIPTION] = <text>[ProlateCoreShellModel] Calculates the form factor for a prolate |
---|
| 7 | ellipsoid particle with a core_shell structure. |
---|
| 8 | The form factor is averaged over all possible |
---|
| 9 | orientations of the ellipsoid such that P(q) |
---|
| 10 | = scale*<f^2>/Vol + bkg, where f is the |
---|
| 11 | single particle scattering amplitude. |
---|
| 12 | [Parameters]: |
---|
| 13 | major_core = radius of major_core, |
---|
| 14 | minor_core = radius of minor_core, |
---|
| 15 | major_shell = radius of major_shell, |
---|
| 16 | minor_shell = radius of minor_shell, |
---|
| 17 | contrast = SLD_core - SLD_shell |
---|
| 18 | sld_solvent = SLD_solvent |
---|
| 19 | background = Incoherent bkg |
---|
| 20 | scale = scale |
---|
| 21 | Note:It is the users' responsibility to ensure |
---|
| 22 | that shell radii are larger than core radii. |
---|
| 23 | </text> |
---|
| 24 | [FIXED] = <text>major_core.width;minor_core.width; major_shell.width; minor_shell.width</text> |
---|
| 25 | [ORIENTATION_PARAMS] = |
---|
[27a0771] | 26 | |
---|
| 27 | **/ |
---|
| 28 | typedef struct { |
---|
| 29 | /// Scale factor |
---|
| 30 | // [DEFAULT]=scale=1.0 |
---|
| 31 | double scale; |
---|
| 32 | /// Major core of prolate [A] |
---|
| 33 | // [DEFAULT]=major_core=100.0 [A] |
---|
| 34 | double major_core; |
---|
| 35 | /// Minor core of prolate [A] |
---|
| 36 | // [DEFAULT]=minor_core=50.0 [A] |
---|
| 37 | double minor_core; |
---|
| 38 | /// Major shell of prolate [A] |
---|
| 39 | // [DEFAULT]=major_shell=110.0 [A] |
---|
| 40 | double major_shell; |
---|
| 41 | /// Minor shell of prolate [A] |
---|
| 42 | // [DEFAULT]=minor_shell=60.0 [A] |
---|
| 43 | double minor_shell; |
---|
| 44 | /// Scattering contrast [1/A²] |
---|
| 45 | // [DEFAULT]=contrast=1.0e-6 [1/A²] |
---|
| 46 | double contrast; |
---|
| 47 | /// Solvent scattering length density [1/A²] |
---|
| 48 | // [DEFAULT]=sld_solvent=6.3e-6 [1/A²] |
---|
| 49 | double sld_solvent; |
---|
| 50 | /// Incoherent Background [1/cm] 0.001 |
---|
| 51 | // [DEFAULT]=background=0.001 [1/cm] |
---|
| 52 | double background; |
---|
| 53 | |
---|
| 54 | } ProlateParameters; |
---|
| 55 | |
---|
| 56 | |
---|
| 57 | |
---|
| 58 | /// 1D scattering function |
---|
| 59 | double prolate_analytical_1D(ProlateParameters *pars, double q); |
---|
| 60 | |
---|
| 61 | /// 2D scattering function |
---|
| 62 | double prolate_analytical_2D(ProlateParameters *pars, double q, double phi); |
---|
| 63 | double prolate_analytical_2DXY(ProlateParameters *pars, double qx, double qy); |
---|
[8dc0b746] | 64 | //double prolate_analytical_2D_scaled(ProlateParameters *pars, double q, double q_x, double q_y); |
---|
[27a0771] | 65 | |
---|
| 66 | #endif |
---|