source:
sasview/sansmodels/src/sans/models/c_extensions/sphere.h
@
75fbd17
Last change on this file since 75fbd17 was 2399b2a, checked in by Jae Cho <jhjcho@…>, 14 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 |
[f10063e] | 9 | //[DESCRIPTION] =<text>P(q)=(scale/V)*[3V(sldSph-sldSolv)*(sin(qR)-qRcos(qR)) |
[1ed3834] | 10 | // /(qR)^3]^(2)+bkg |
11 | // | |
12 | // bkg:background, R: radius of sphere | |
13 | // V:The volume of the scatter | |
[f10063e] | 14 | // sldSph: the SLD of the sphere |
15 | // sldSolv: the SLD of the solvent | |
[1ed3834] | 16 | // |
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 | |
[1ed3834] | 26 | /// Radius of sphere [A] |
27 | // [DEFAULT]=radius=60.0 [A] | |
[ae3ce4e] | 28 | double radius; |
[0f5bc9f] | 29 | |
[f10063e] | 30 | /// sldSph [1/A^(2)] |
31 | // [DEFAULT]=sldSph= 2.0e-6 [1/A^(2)] | |
32 | double sldSph; | |
33 | ||
34 | /// sldSolv [1/A^(2)] | |
35 | // [DEFAULT]=sldSolv= 1.0e-6 [1/A^(2)] | |
36 | double sldSolv; | |
[0f5bc9f] | 37 | |
[70faf5d] | 38 | /// Incoherent Background [1/cm] |
39 | // [DEFAULT]=background=0 [1/cm] | |
[0f5bc9f] | 40 | double background; |
[ae3ce4e] | 41 | } SphereParameters; |
42 | ||
43 | ||
44 | ||
45 | /// 1D scattering function | |
[2399b2a] | 46 | //double sphere_analytical_1D(SphereParameters *pars, double q); |
[ae3ce4e] | 47 | |
48 | /// 2D scattering function | |
[2399b2a] | 49 | //double sphere_analytical_2D(SphereParameters *pars, double q, double phi); |
50 | //double sphere_analytical_2DXY(SphereParameters *pars, double qx, double qy); | |
[ae3ce4e] | 51 | |
52 | #endif |
Note: See TracBrowser
for help on using the repository browser.