source: sasview/sansmodels/src/sans/models/c_extensions/fuzzysphere.h @ 1aaa579

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 1aaa579 was c724ccd, checked in by Jae Cho <jhjcho@…>, 15 years ago

More models added and correction of Wrappergenerator on model parameter value precision

  • Property mode set to 100644
File size: 1.8 KB
Line 
1#if !defined(fuzzysphere_h)
2#define fuzzysphere_h
3
4/**
5 * Structure definition for FuzzySphere parameters
6 */
7 //[PYTHONCLASS] = FuzzySphereModel
8 //[DISP_PARAMS] = radius, fuzziness
9 //[DESCRIPTION] =<text>
10 //                             scale: scale factor times volume fraction,
11 //                                     or just volume fraction for absolute scale data
12 //                             radius: radius of the solid sphere
13 //                             fuzziness = the STD of the height of fuzzy interfacial
14 //                              thickness (ie., so-called interfacial roughness)
15 //                             sldSph: the SLD of the sphere
16 //                             sldSolv: the SLD of the solvent
17 //                             background: incoherent background
18 //                     Note: By definition, this function works only when fuzziness << radius.
19 //             </text>
20 //[FIXED]=  radius.width; fuzziness.width
21 //[ORIENTATION_PARAMS]= <text> </text>
22
23typedef struct {
24    /// Scale factor
25    //  [DEFAULT]=scale= 0.01
26    double scale;
27
28    /// Radius of sphere [A]
29    //  [DEFAULT]=radius=60.0 [A]
30    double radius;
31
32    /// surface roughness [A]
33    //  [DEFAULT]=fuzziness= 10.0 [A]
34    double fuzziness;
35
36    /// sldSph [1/A^(2)]
37    //  [DEFAULT]=sldSph= 1.0e-6 [1/A^(2)]
38    double sldSph;
39
40    /// sldSolv [1/A^(2)]
41    //  [DEFAULT]=sldSolv= 3.0e-6 [1/A^(2)]
42    double sldSolv;
43
44        /// Incoherent Background [1/cm]
45        //  [DEFAULT]=background=0.001 [1/cm]
46        double background;
47} FuzzySphereParameters;
48
49/// kernel
50double fuzzysphere_kernel(double dp[], double q);
51
52/// 1D scattering function
53double fuzzysphere_analytical_1D(FuzzySphereParameters *pars, double q);
54
55/// 2D scattering function
56double fuzzysphere_analytical_2D(FuzzySphereParameters *pars, double q, double phi);
57double fuzzysphere_analytical_2DXY(FuzzySphereParameters *pars, double qx, double qy);
58double fuzzysphere_analytical_2D_scaled(FuzzySphereParameters *pars, double q, double q_x, double q_y);
59#endif
Note: See TracBrowser for help on using the repository browser.