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 d3619421 was
ae3ce4e,
checked in by Mathieu Doucet <doucetm@…>, 17 years ago
|
Moving sansmodels to trunk
|
-
Property mode set to
100644
|
File size:
1.5 KB
|
Line | |
---|
1 | #if !defined(ellipsoid_h) |
---|
2 | #define ellipsoid_h |
---|
3 | |
---|
4 | /** |
---|
5 | * Structure definition for ellipsoid parameters |
---|
6 | * The ellipsoid has axes radius_b, radius_b, radius_a. |
---|
7 | * Ref: Jan Skov Pedersen, Advances in Colloid and Interface Science, 70 (1997) 171-210 |
---|
8 | */ |
---|
9 | //[PYTHONCLASS] = EllipsoidModel |
---|
10 | typedef struct { |
---|
11 | /// Scale factor |
---|
12 | // [DEFAULT]=scale=1.0 |
---|
13 | double scale; |
---|
14 | |
---|
15 | /// Rotation axis radius_a [A] |
---|
16 | // [DEFAULT]=radius_a=20.0 A |
---|
17 | double radius_a; |
---|
18 | |
---|
19 | /// Radius_b [A] |
---|
20 | // [DEFAULT]=radius_b=400 A |
---|
21 | double radius_b; |
---|
22 | |
---|
23 | /// Contrast [Å-2] |
---|
24 | // [DEFAULT]=contrast=3.0e-6 A-2 |
---|
25 | double contrast; |
---|
26 | |
---|
27 | /// Incoherent Background [cm-1] |
---|
28 | // [DEFAULT]=background=0 cm-1 |
---|
29 | double background; |
---|
30 | |
---|
31 | /// Orientation of the long axis of the ellipsoid w/respect incoming beam [rad] |
---|
32 | // [DEFAULT]=axis_theta=1.57 rad |
---|
33 | double axis_theta; |
---|
34 | /// Orientation of the long axis of the ellipsoid in the plane of the detector [rad] |
---|
35 | // [DEFAULT]=axis_phi=0.0 rad |
---|
36 | double axis_phi; |
---|
37 | } EllipsoidParameters; |
---|
38 | |
---|
39 | |
---|
40 | |
---|
41 | /// 1D scattering function |
---|
42 | double ellipsoid_analytical_1D(EllipsoidParameters *pars, double q); |
---|
43 | |
---|
44 | /// 2D scattering function |
---|
45 | double ellipsoid_analytical_2D(EllipsoidParameters *pars, double q, double phi); |
---|
46 | double ellipsoid_analytical_2DXY(EllipsoidParameters *pars, double qx, double qy); |
---|
47 | double ellipsoid_analytical_2D_scaled(EllipsoidParameters *pars, double q, double q_x, double q_y); |
---|
48 | |
---|
49 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.