[cd2f75d] | 1 | #if !defined(coresecondmoment_h) |
---|
| 2 | #define coresecondmoment_h |
---|
| 3 | #include "parameters.hh" |
---|
| 4 | |
---|
| 5 | /** |
---|
| 6 | * Structure definition for sphere parameters |
---|
| 7 | */ |
---|
[60eea02] | 8 | //[PYTHONCLASS] = Core2ndMomentModel |
---|
[cd2f75d] | 9 | //[DISP_PARAMS] = radius_core |
---|
| 10 | //[DESCRIPTION] =<text>Calculate CoreSecondMoment Model |
---|
| 11 | // |
---|
| 12 | // scale:calibration factor, |
---|
| 13 | // density_poly: density of the layer |
---|
| 14 | // sld_poly: the SLD of the layer |
---|
| 15 | // volf_cores: volume fraction of cores |
---|
| 16 | // ads_amount: adsorbed amount |
---|
| 17 | // second_moment: second moment of the layer |
---|
| 18 | // sld_solv: the SLD of the solvent |
---|
| 19 | // background |
---|
| 20 | // |
---|
| 21 | // </text> |
---|
| 22 | //[FIXED]= radius_core.width |
---|
| 23 | //[ORIENTATION_PARAMS]= <text> </text> |
---|
| 24 | |
---|
[60eea02] | 25 | class Core2ndMomentModel{ |
---|
[cd2f75d] | 26 | public: |
---|
| 27 | // Model parameters |
---|
| 28 | /// Scale factor |
---|
| 29 | // [DEFAULT]=scale= 1.0 |
---|
| 30 | Parameter scale; |
---|
| 31 | |
---|
| 32 | /// Density of layer[g/cm^(3)] |
---|
| 33 | // [DEFAULT]=density_poly=0.7 [g/cm^(3)] |
---|
| 34 | Parameter density_poly; |
---|
| 35 | |
---|
| 36 | /// sld_poly [1/A^(2)] |
---|
| 37 | // [DEFAULT]=sld_poly= 1.5e-6 [1/A^(2)] |
---|
| 38 | Parameter sld_poly; |
---|
| 39 | |
---|
| 40 | /// radius_core [A] |
---|
| 41 | // [DEFAULT]=radius_core= 500.0 [A] |
---|
| 42 | Parameter radius_core; |
---|
| 43 | |
---|
| 44 | // Model parameters |
---|
| 45 | /// volume fraction of_cores |
---|
| 46 | // [DEFAULT]=volf_cores= 0.14 |
---|
| 47 | Parameter volf_cores; |
---|
| 48 | |
---|
| 49 | /// adsorbed amount [mg/m^(2)] |
---|
| 50 | // [DEFAULT]=ads_amount=1.9 [mg/m^(2)] |
---|
| 51 | Parameter ads_amount; |
---|
| 52 | |
---|
| 53 | /// sld_solv [1/A^(2)] |
---|
| 54 | // [DEFAULT]=sld_solv= 6.3e-6 [1/A^(2)] |
---|
| 55 | Parameter sld_solv; |
---|
| 56 | |
---|
| 57 | /// second_moment [A] |
---|
| 58 | // [DEFAULT]=second_moment=23.0 [A] |
---|
| 59 | Parameter second_moment; |
---|
| 60 | |
---|
| 61 | /// Incoherent Background [1/cm] |
---|
| 62 | // [DEFAULT]=background=0 [1/cm] |
---|
| 63 | Parameter background; |
---|
| 64 | |
---|
| 65 | // Constructor |
---|
[60eea02] | 66 | Core2ndMomentModel(); |
---|
[cd2f75d] | 67 | |
---|
| 68 | // Operators to get I(Q) |
---|
| 69 | double operator()(double q); |
---|
| 70 | double operator()(double qx, double qy); |
---|
| 71 | double calculate_ER(); |
---|
| 72 | double evaluate_rphi(double q, double phi); |
---|
| 73 | }; |
---|
| 74 | |
---|
| 75 | |
---|
| 76 | #endif |
---|