[503a972] | 1 | #if !defined(binaryHS_h) |
---|
| 2 | #define binaryHS_h |
---|
| 3 | #include "parameters.hh" |
---|
| 4 | |
---|
| 5 | /** |
---|
| 6 | * Structure definition for binary hard sphere parameters |
---|
| 7 | |
---|
| 8 | [PYTHONCLASS] = BinaryHSModel |
---|
| 9 | [DISP_PARAMS] = l_radius,s_radius |
---|
| 10 | [DESCRIPTION] =<text> Model parameters: l_radius : large radius of binary hard sphere |
---|
| 11 | s_radius : small radius of binary hard sphere |
---|
| 12 | vol_frac_ls : volume fraction of large spheres |
---|
| 13 | vol_frac_ss : volume fraction of small spheres |
---|
| 14 | ls_sld: large sphere scattering length density |
---|
| 15 | ss_sld: small sphere scattering length density |
---|
| 16 | solvent_sld: solvent scattering length density |
---|
| 17 | background: incoherent background |
---|
| 18 | </text> |
---|
| 19 | [FIXED]= l_radius.width;s_radius.width |
---|
| 20 | [ORIENTATION_PARAMS]= <text> </text> |
---|
| 21 | */ |
---|
| 22 | |
---|
| 23 | class BinaryHSModel{ |
---|
| 24 | public: |
---|
| 25 | // Model parameters |
---|
| 26 | /// large radius of the binary hard sphere [A] |
---|
| 27 | // [DEFAULT]=l_radius= 100.0 [A] |
---|
| 28 | Parameter l_radius; |
---|
| 29 | |
---|
| 30 | /// small radius of the binary hard sphere [A] |
---|
| 31 | // [DEFAULT]=s_radius= 25.0 [A] |
---|
| 32 | Parameter s_radius; |
---|
| 33 | |
---|
| 34 | /// volume fraction of large spheres |
---|
| 35 | // [DEFAULT]=vol_frac_ls= 0.1 |
---|
| 36 | Parameter vol_frac_ls; |
---|
| 37 | |
---|
| 38 | /// volume fraction of small spheres |
---|
| 39 | // [DEFAULT]=vol_frac_ss= 0.2 |
---|
| 40 | Parameter vol_frac_ss; |
---|
| 41 | |
---|
| 42 | /// large sphere scattering length density [1/A^(2)] |
---|
| 43 | // [DEFAULT]=ls_sld= 3.5e-6 [1/A^(2)] |
---|
| 44 | Parameter ls_sld; |
---|
| 45 | |
---|
| 46 | /// lsmall sphere scattering length density [1/A^(2)] |
---|
| 47 | // [DEFAULT]=ss_sld= 5e-7 [1/A^(2)] |
---|
| 48 | Parameter ss_sld; |
---|
| 49 | |
---|
| 50 | /// solvent scattering length density [1/A^(2)] |
---|
| 51 | // [DEFAULT]=solvent_sld= 6.36e-6 [1/A^(2)] |
---|
| 52 | Parameter solvent_sld; |
---|
| 53 | |
---|
| 54 | /// Incoherent Background [1/cm] |
---|
| 55 | // [DEFAULT]=background=0.001 [1/cm] |
---|
| 56 | Parameter background; |
---|
| 57 | |
---|
| 58 | //Constructor |
---|
| 59 | BinaryHSModel(); |
---|
| 60 | |
---|
| 61 | //Operators to get I(Q) |
---|
| 62 | double operator()(double q); |
---|
| 63 | double operator()(double qx , double qy); |
---|
| 64 | double calculate_ER(); |
---|
[6319646] | 65 | double calculate_VR(); |
---|
[503a972] | 66 | double evaluate_rphi(double q, double phi); |
---|
| 67 | }; |
---|
| 68 | |
---|
| 69 | #endif |
---|