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 8a6d4af was
1ed3834,
checked in by Jae Cho <jhjcho@…>, 16 years ago
|
unit symbol Angst. back to A and re-organized model descriptions
|
-
Property mode set to
100644
|
File size:
1.3 KB
|
Line | |
---|
1 | #if !defined(sphere_h) |
---|
2 | #define sphere_h |
---|
3 | |
---|
4 | /** |
---|
5 | * Structure definition for sphere parameters |
---|
6 | */ |
---|
7 | //[PYTHONCLASS] = SphereModel |
---|
8 | //[DISP_PARAMS] = radius |
---|
9 | //[DESCRIPTION] =<text>P(q)=(scale/V)*[3V(scatter_sld-solvent_sld)*(sin(qR)-qRcos(qR)) |
---|
10 | // /(qR)^3]^(2)+bkg |
---|
11 | // |
---|
12 | // bkg:background, R: radius of sphere |
---|
13 | // V:The volume of the scatter |
---|
14 | // contrast:SLD difference between |
---|
15 | // scatter and solvent |
---|
16 | // scatter_sld: the SLD of the scatter |
---|
17 | // solvent_sld: the SLD of the solvent |
---|
18 | // |
---|
19 | // </text> |
---|
20 | //[FIXED]= radius.width |
---|
21 | //[ORIENTATION_PARAMS]= <text> </text> |
---|
22 | |
---|
23 | typedef struct { |
---|
24 | /// Scale factor |
---|
25 | // [DEFAULT]=scale= 1.0 |
---|
26 | double scale; |
---|
27 | |
---|
28 | /// Radius of sphere [A] |
---|
29 | // [DEFAULT]=radius=60.0 [A] |
---|
30 | double radius; |
---|
31 | |
---|
32 | /// Contrast [1/Ų] |
---|
33 | // [DEFAULT]=contrast= 1.0e-6 [1/A²] |
---|
34 | double contrast; |
---|
35 | |
---|
36 | /// Incoherent Background [1/cm] |
---|
37 | // [DEFAULT]=background=0 [1/cm] |
---|
38 | double background; |
---|
39 | } SphereParameters; |
---|
40 | |
---|
41 | |
---|
42 | |
---|
43 | /// 1D scattering function |
---|
44 | double sphere_analytical_1D(SphereParameters *pars, double q); |
---|
45 | |
---|
46 | /// 2D scattering function |
---|
47 | double sphere_analytical_2D(SphereParameters *pars, double q, double phi); |
---|
48 | double sphere_analytical_2DXY(SphereParameters *pars, double qx, double qy); |
---|
49 | |
---|
50 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.