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