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 17a6843 was
ae3ce4e,
checked in by Mathieu Doucet <doucetm@…>, 17 years ago
|
Moving sansmodels to trunk
|
-
Property mode set to
100644
|
File size:
819 bytes
|
Rev | Line | |
---|
[ae3ce4e] | 1 | #if !defined(sphere_h) |
---|
| 2 | #define sphere_h |
---|
| 3 | |
---|
| 4 | /** |
---|
| 5 | * Structure definition for sphere parameters |
---|
| 6 | */ |
---|
| 7 | //[PYTHONCLASS] = SphereModel |
---|
| 8 | typedef struct { |
---|
| 9 | /// Scale factor |
---|
| 10 | // [DEFAULT]=scale=1.0e-6 |
---|
| 11 | double scale; |
---|
| 12 | |
---|
| 13 | /// Radius of sphere [A] |
---|
| 14 | // [DEFAULT]=radius=60.0 A |
---|
| 15 | double radius; |
---|
| 16 | |
---|
| 17 | /// Contrast [Å-2] |
---|
| 18 | // [DEFAULT]=contrast=1.0 A-2 |
---|
| 19 | double contrast; |
---|
| 20 | |
---|
| 21 | /// Incoherent Background [cm-1] |
---|
| 22 | // [DEFAULT]=background=0 cm-1 |
---|
| 23 | double background; |
---|
| 24 | } SphereParameters; |
---|
| 25 | |
---|
| 26 | |
---|
| 27 | |
---|
| 28 | /// 1D scattering function |
---|
| 29 | double sphere_analytical_1D(SphereParameters *pars, double q); |
---|
| 30 | |
---|
| 31 | /// 2D scattering function |
---|
| 32 | double sphere_analytical_2D(SphereParameters *pars, double q, double phi); |
---|
| 33 | double sphere_analytical_2DXY(SphereParameters *pars, double qx, double qy); |
---|
| 34 | |
---|
| 35 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.