source:
sasview/sansmodels/src/sans/models/c_extensions/sphere.h
@
847091f
Last change on this file since 847091f was 70faf5d, checked in by Jae Cho <jhjcho@…>, 15 years ago | |
---|---|
|
|
File size: 1.3 KB |
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 |
[70faf5d] | 9 | //[DESCRIPTION] =<text>P(q)=(scale/V) |
10 | // *[3V(scatter_sld-solvent_sld)*(sin(qR)-qRcos(qR))/(qR)^3]^(2) | |
[96672c0] | 11 | // +bkg |
12 | // bkg: background level | |
13 | // R: radius of the sphere | |
14 | // V:The volume of the scatter | |
15 | // scatter_sld: the scattering length density of the scatter | |
16 | // solvent_sld: the scattering length density of the solvent | |
17 | // </text> | |
[da3dae3] | 18 | //[FIXED]= radius.width |
[25a608f5] | 19 | //[ORIENTATION_PARAMS]= <text> </text> |
[70faf5d] | 20 | |
[ae3ce4e] | 21 | typedef struct { |
[0f5bc9f] | 22 | /// Scale factor |
[98bfd10] | 23 | // [DEFAULT]=scale= 1.0 |
[ae3ce4e] | 24 | double scale; |
[0f5bc9f] | 25 | |
[70faf5d] | 26 | /// Radius of sphere [Å] |
27 | // [DEFAULT]=radius=60.0 [Å] | |
[ae3ce4e] | 28 | double radius; |
[0f5bc9f] | 29 | |
[70faf5d] | 30 | /// Contrast [1/Ų] |
31 | // [DEFAULT]=contrast= 1.0e-6 [1/Ų] | |
[ae3ce4e] | 32 | double contrast; |
[0f5bc9f] | 33 | |
[70faf5d] | 34 | /// Incoherent Background [1/cm] |
35 | // [DEFAULT]=background=0 [1/cm] | |
[0f5bc9f] | 36 | double background; |
[ae3ce4e] | 37 | } SphereParameters; |
38 | ||
39 | ||
40 | ||
41 | /// 1D scattering function | |
42 | double sphere_analytical_1D(SphereParameters *pars, double q); | |
43 | ||
44 | /// 2D scattering function | |
45 | double sphere_analytical_2D(SphereParameters *pars, double q, double phi); | |
46 | double sphere_analytical_2DXY(SphereParameters *pars, double qx, double qy); | |
47 | ||
48 | #endif |
Note: See TracBrowser
for help on using the repository browser.