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 6057915 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.6 KB
|
Line | |
---|
1 | #if !defined(core_shell_h) |
---|
2 | #define core_shell_h |
---|
3 | #include "parameters.hh" |
---|
4 | |
---|
5 | /** |
---|
6 | * Structure definition for core-shell parameters |
---|
7 | */ |
---|
8 | //[PYTHONCLASS] = CoreShellModel |
---|
9 | //[DISP_PARAMS] = radius, thickness |
---|
10 | //[DESCRIPTION] =<text>Form factor for a monodisperse spherical particle with particle |
---|
11 | // with a core-shell structure: |
---|
12 | // |
---|
13 | // The form factor is normalized by the |
---|
14 | // total particle volume. |
---|
15 | // |
---|
16 | // radius: core radius, thickness: shell thickness |
---|
17 | // |
---|
18 | // Ref: Guinier, A. and G. Fournet, |
---|
19 | // John Wiley and Sons, New York, 1955. |
---|
20 | // </text> |
---|
21 | //[FIXED]= <text> thickness.width;radius.width</text> |
---|
22 | |
---|
23 | |
---|
24 | class CoreShellModel{ |
---|
25 | public: |
---|
26 | // Model parameters |
---|
27 | |
---|
28 | /// Core Radius [A] 60.0 |
---|
29 | // [DEFAULT]=radius=60.0 [A] |
---|
30 | Parameter radius; |
---|
31 | /// Scale factor |
---|
32 | // [DEFAULT]=scale=1.0 |
---|
33 | Parameter scale; |
---|
34 | /// Shell Thickness [A] 10.0 |
---|
35 | // [DEFAULT]=thickness=10 [A] |
---|
36 | Parameter thickness; |
---|
37 | /// Core SLD [1/A^(2)] 1.0e-6 |
---|
38 | // [DEFAULT]=core_sld=1.0e-6 [1/A^(2)] |
---|
39 | Parameter core_sld; |
---|
40 | /// Shell SLD [1/A^(2)] 2.0e-6 |
---|
41 | // [DEFAULT]=shell_sld=2.0e-6 [1/A^(2)] |
---|
42 | Parameter shell_sld; |
---|
43 | /// Solvent SLD [1/A^(2)] 3.0e-6 |
---|
44 | // [DEFAULT]=solvent_sld=3.0e-6 [1/A^(2)] |
---|
45 | Parameter solvent_sld; |
---|
46 | /// Incoherent Background [1/cm] 0.000 |
---|
47 | // [DEFAULT]=background=0 [1/cm] |
---|
48 | Parameter background; |
---|
49 | |
---|
50 | // Constructor |
---|
51 | CoreShellModel(); |
---|
52 | |
---|
53 | // Operators to get I(Q) |
---|
54 | double operator()(double q); |
---|
55 | double operator()(double qx, double qy); |
---|
56 | double calculate_ER(); |
---|
57 | double calculate_VR(); |
---|
58 | double evaluate_rphi(double q, double phi); |
---|
59 | }; |
---|
60 | |
---|
61 | |
---|
62 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.