[c724ccd] | 1 | #if !defined(fuzzysphere_h) |
---|
| 2 | #define fuzzysphere_h |
---|
| 3 | |
---|
| 4 | /** |
---|
| 5 | * Structure definition for FuzzySphere parameters |
---|
| 6 | */ |
---|
| 7 | //[PYTHONCLASS] = FuzzySphereModel |
---|
| 8 | //[DISP_PARAMS] = radius, fuzziness |
---|
| 9 | //[DESCRIPTION] =<text> |
---|
| 10 | // scale: scale factor times volume fraction, |
---|
| 11 | // or just volume fraction for absolute scale data |
---|
| 12 | // radius: radius of the solid sphere |
---|
| 13 | // fuzziness = the STD of the height of fuzzy interfacial |
---|
| 14 | // thickness (ie., so-called interfacial roughness) |
---|
| 15 | // sldSph: the SLD of the sphere |
---|
| 16 | // sldSolv: the SLD of the solvent |
---|
| 17 | // background: incoherent background |
---|
| 18 | // Note: By definition, this function works only when fuzziness << radius. |
---|
| 19 | // </text> |
---|
| 20 | //[FIXED]= radius.width; fuzziness.width |
---|
| 21 | //[ORIENTATION_PARAMS]= <text> </text> |
---|
| 22 | |
---|
| 23 | typedef struct { |
---|
| 24 | /// Scale factor |
---|
| 25 | // [DEFAULT]=scale= 0.01 |
---|
| 26 | double scale; |
---|
| 27 | |
---|
| 28 | /// Radius of sphere [A] |
---|
| 29 | // [DEFAULT]=radius=60.0 [A] |
---|
| 30 | double radius; |
---|
| 31 | |
---|
| 32 | /// surface roughness [A] |
---|
| 33 | // [DEFAULT]=fuzziness= 10.0 [A] |
---|
| 34 | double fuzziness; |
---|
| 35 | |
---|
| 36 | /// sldSph [1/A^(2)] |
---|
| 37 | // [DEFAULT]=sldSph= 1.0e-6 [1/A^(2)] |
---|
| 38 | double sldSph; |
---|
| 39 | |
---|
| 40 | /// sldSolv [1/A^(2)] |
---|
| 41 | // [DEFAULT]=sldSolv= 3.0e-6 [1/A^(2)] |
---|
| 42 | double sldSolv; |
---|
| 43 | |
---|
| 44 | /// Incoherent Background [1/cm] |
---|
| 45 | // [DEFAULT]=background=0.001 [1/cm] |
---|
| 46 | double background; |
---|
| 47 | } FuzzySphereParameters; |
---|
| 48 | |
---|
| 49 | /// kernel |
---|
| 50 | double fuzzysphere_kernel(double dp[], double q); |
---|
| 51 | |
---|
| 52 | /// 1D scattering function |
---|
| 53 | double fuzzysphere_analytical_1D(FuzzySphereParameters *pars, double q); |
---|
| 54 | |
---|
| 55 | /// 2D scattering function |
---|
| 56 | double fuzzysphere_analytical_2D(FuzzySphereParameters *pars, double q, double phi); |
---|
| 57 | double fuzzysphere_analytical_2DXY(FuzzySphereParameters *pars, double qx, double qy); |
---|
| 58 | double fuzzysphere_analytical_2D_scaled(FuzzySphereParameters *pars, double q, double q_x, double q_y); |
---|
| 59 | #endif |
---|