[27a0771] | 1 | #if !defined(prolate_h) |
---|
| 2 | #define prolate_h |
---|
| 3 | /** Structure definition for prolate parameters |
---|
| 4 | * [PYTHONCLASS] = ProlateModel |
---|
| 5 | * [DISP_PARAMS] = major_core, minor_core, major_shell,minor_shell, axis_theta, axis_phi |
---|
| 6 | [DESCRIPTION] = <text> Calculates the form factor for a monodisperse prolate ellipsoid particle with a |
---|
| 7 | core/shell structure |
---|
| 8 | Note:It is the users' responsibility to ensure that shell radii are larger than core radii, and |
---|
| 9 | that major radii are larger than minor radii.</text> |
---|
| 10 | |
---|
| 11 | [FIXED] = <text>axis_phi.width; axis_theta.width; major_core.width;minor_core.width; major_shell; minor_shell</text> |
---|
| 12 | [ORIENTATION_PARAMS] = <text>axis_phi; axis_theta; axis_phi.width; axis_theta.width</text> |
---|
| 13 | |
---|
| 14 | **/ |
---|
| 15 | typedef struct { |
---|
| 16 | /// Scale factor |
---|
| 17 | // [DEFAULT]=scale=1.0 |
---|
| 18 | double scale; |
---|
| 19 | /// Major core of prolate [A] |
---|
| 20 | // [DEFAULT]=major_core=100.0 [A] |
---|
| 21 | double major_core; |
---|
| 22 | /// Minor core of prolate [A] |
---|
| 23 | // [DEFAULT]=minor_core=50.0 [A] |
---|
| 24 | double minor_core; |
---|
| 25 | /// Major shell of prolate [A] |
---|
| 26 | // [DEFAULT]=major_shell=110.0 [A] |
---|
| 27 | double major_shell; |
---|
| 28 | /// Minor shell of prolate [A] |
---|
| 29 | // [DEFAULT]=minor_shell=60.0 [A] |
---|
| 30 | double minor_shell; |
---|
| 31 | /// Scattering contrast [1/A²] |
---|
| 32 | // [DEFAULT]=contrast=1.0e-6 [1/A²] |
---|
| 33 | double contrast; |
---|
| 34 | /// Solvent scattering length density [1/A²] |
---|
| 35 | // [DEFAULT]=sld_solvent=6.3e-6 [1/A²] |
---|
| 36 | double sld_solvent; |
---|
| 37 | /// Incoherent Background [1/cm] 0.001 |
---|
| 38 | // [DEFAULT]=background=0.001 [1/cm] |
---|
| 39 | double background; |
---|
| 40 | /// Orientation of the prolate axis w/respect incoming beam [rad] |
---|
| 41 | // [DEFAULT]=axis_theta=1.0 [rad] |
---|
| 42 | double axis_theta; |
---|
| 43 | /// Orientation of the prolate in the plane of the detector [rad] |
---|
| 44 | // [DEFAULT]=axis_phi=1.0 [rad] |
---|
| 45 | double axis_phi; |
---|
| 46 | |
---|
| 47 | } ProlateParameters; |
---|
| 48 | |
---|
| 49 | |
---|
| 50 | |
---|
| 51 | /// 1D scattering function |
---|
| 52 | double prolate_analytical_1D(ProlateParameters *pars, double q); |
---|
| 53 | |
---|
| 54 | /// 2D scattering function |
---|
| 55 | double prolate_analytical_2D(ProlateParameters *pars, double q, double phi); |
---|
| 56 | double prolate_analytical_2DXY(ProlateParameters *pars, double qx, double qy); |
---|
| 57 | double prolate_analytical_2D_scaled(ProlateParameters *pars, double q, double q_x, double q_y); |
---|
| 58 | |
---|
| 59 | #endif |
---|