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