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 0cb3d13 was
f518eef,
checked in by Robert Whitley <robert.whitley@…>, 12 years ago
|
Refs #84. Add the FractalO_Z model.
|
-
Property mode set to
100644
|
File size:
1.1 KB
|
Line | |
---|
1 | #if !defined(FractalQtoN_h) |
---|
2 | #define FractalQtoN_h |
---|
3 | #include "parameters.hh" |
---|
4 | |
---|
5 | /** |
---|
6 | * Structure definition for FractalO_Z (factor) parameters |
---|
7 | */ |
---|
8 | //[PYTHONCLASS] = FractalO_Z |
---|
9 | //[DESCRIPTION] =<text>Structure factor for interacting particles: |
---|
10 | // Schmidt J Appl Cryst (1991), 24, 414-435 See equation (19) |
---|
11 | // Hurd; Schaefer; Martin, Phys Rev A (1987), 35, 2361-2364 See equation (2) |
---|
12 | // </text>. |
---|
13 | |
---|
14 | class FractalO_Z{ |
---|
15 | public: |
---|
16 | |
---|
17 | // Model parameters |
---|
18 | |
---|
19 | /// Something scale |
---|
20 | // [DEFAULT]=scale= 10000.0 |
---|
21 | Parameter scale; |
---|
22 | |
---|
23 | // [DEFAULT]=m_fractal= 1.8 |
---|
24 | Parameter m_fractal; |
---|
25 | |
---|
26 | // [DEFAULT]=cluster_rg= 3520.0 |
---|
27 | Parameter cluster_rg; |
---|
28 | |
---|
29 | // [DEFAULT]=s_fractal= 2.5 |
---|
30 | Parameter s_fractal; |
---|
31 | |
---|
32 | // [DEFAULT]=primary_rg= 82.0 |
---|
33 | Parameter primary_rg; |
---|
34 | |
---|
35 | // [DEFAULT]=background= 0.01 |
---|
36 | Parameter background; |
---|
37 | |
---|
38 | |
---|
39 | // Constructor |
---|
40 | FractalO_Z(); |
---|
41 | |
---|
42 | // Operators to get I(Q) |
---|
43 | double operator()(double q); |
---|
44 | double operator()(double qx, double qy); |
---|
45 | double calculate_ER(); |
---|
46 | double calculate_VR(); |
---|
47 | double evaluate_rphi(double q, double phi); |
---|
48 | }; |
---|
49 | |
---|
50 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.