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