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