ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.1.1release-4.1.2release-4.2.2release_4.0.1ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change
on this file since d560a37 was
6319646,
checked in by Jae Cho <jhjcho@…>, 13 years ago
|
new includes for scale fix for P*S
|
-
Property mode set to
100644
|
File size:
1.7 KB
|
Rev | Line | |
---|
[08648c0] | 1 | #if !defined(surfacefractal_h) |
---|
| 2 | #define surfacefractal_h |
---|
| 3 | #include "parameters.hh" |
---|
| 4 | |
---|
| 5 | /** |
---|
| 6 | * Structure definition for parameters |
---|
| 7 | */ |
---|
| 8 | //[PYTHONCLASS] = SurfaceFractalModel |
---|
| 9 | //[DESCRIPTION] =<text> The scattering intensity I(x) = scale*P(x)*S(x) + background, where |
---|
| 10 | // scale = scale_factor * V * delta^(2) |
---|
| 11 | // p(x)= F(x*radius)^(2) |
---|
| 12 | // F(x) = 3*[sin(x)-x cos(x)]/x**3 |
---|
| 13 | // S(x) = [(gamma(5-Ds)*colength^(5-Ds)*[1+(x^2*colength^2)]^((Ds-5)/2) |
---|
| 14 | // * sin[(Ds-5)*arctan(x*colength)])/x] |
---|
| 15 | // where delta = sldParticle -sldSolv. |
---|
| 16 | // radius = Particle radius |
---|
| 17 | // surface_dim = Surface fractal dimension (Ds) |
---|
| 18 | // co_length = Cut-off length |
---|
| 19 | // background = background |
---|
| 20 | // Ref.:Mildner, Hall,J Phys D Appl Phys(1986), 19, 1535-1545 |
---|
| 21 | // Note I: This model is valid for 1<surface_dim<3 with limited q range. |
---|
| 22 | // Note II: This model is not in absolute scale. |
---|
| 23 | // </text> |
---|
| 24 | //[ORIENTATION_PARAMS]= <text> </text> |
---|
| 25 | |
---|
| 26 | class SurfaceFractalModel{ |
---|
| 27 | public: |
---|
| 28 | // Model parameters |
---|
| 29 | /// Scale factor |
---|
| 30 | // [DEFAULT]=scale= 1.0 |
---|
| 31 | Parameter scale; |
---|
| 32 | |
---|
| 33 | /// Radius [A] |
---|
| 34 | // [DEFAULT]=radius=10.0 [A] |
---|
| 35 | Parameter radius; |
---|
| 36 | |
---|
| 37 | /// Surface fractal dimension |
---|
| 38 | // [DEFAULT]=surface_dim=2.0 |
---|
| 39 | Parameter surface_dim; |
---|
| 40 | |
---|
| 41 | /// Cut-off Length [A] |
---|
| 42 | // [DEFAULT]=co_length=500.0 [A] |
---|
| 43 | Parameter co_length; |
---|
| 44 | |
---|
[6319646] | 45 | /// Incoherent Background |
---|
| 46 | // [DEFAULT]=background=0.0 |
---|
[08648c0] | 47 | Parameter background; |
---|
| 48 | |
---|
| 49 | // Constructor |
---|
| 50 | SurfaceFractalModel(); |
---|
| 51 | |
---|
| 52 | // Operators to get I(Q) |
---|
| 53 | double operator()(double q); |
---|
| 54 | double operator()(double qx, double qy); |
---|
| 55 | double calculate_ER(); |
---|
[6319646] | 56 | double calculate_VR(); |
---|
[08648c0] | 57 | double evaluate_rphi(double q, double phi); |
---|
| 58 | }; |
---|
| 59 | |
---|
| 60 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.