source: sasview/sansmodels/src/sans/models/c_extensions/fractal.h @ 916f5c0

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 916f5c0 was 2399b2a, checked in by Jae Cho <jhjcho@…>, 14 years ago

remove some un-used c_extension models

  • Property mode set to 100644
File size: 1.7 KB
Line 
1#if !defined(fractal_h)
2#define fractal_h
3
4/**
5 * Structure definition for sphere parameters
6 */
7 //[PYTHONCLASS] = FractalModel
8 //[DISP_PARAMS] = radius
9 //[DESCRIPTION] =<text> The scattering intensity  I(x) = P(|x|)*S(|x|) + background, where
10 //       p(x)= scale * V * delta^(2)* F(x*radius)^(2)
11 //       F(x) = 3*[sin(x)-x cos(x)]/x**3
12 //       where delta = sldBlock -sldSolv.
13 //       scale        =  scale factor * Volume fraction
14 //       radius       =  Block radius
15 //       fractal_dim  =  Fractal dimension
16 //       cor_length  =  Correlation Length
17 //       sldBlock    =  SDL block
18 //       sldSolv  =  SDL solvent
19 //       background   =  background
20 //             </text>
21 //[FIXED]= <text> radius.width </text>
22 //[ORIENTATION_PARAMS]= <text> </text>
23
24typedef struct {
25    /// Scale factor
26    //  [DEFAULT]=scale= 0.05
27    double scale;
28
29    /// Radius of gyration [A]
30    //  [DEFAULT]=radius=5.0 [A]
31    double radius;
32
33    /// Fractal dimension
34    //  [DEFAULT]=fractal_dim=2.0
35    double fractal_dim;
36
37    /// Correlation Length [A]
38    //  [DEFAULT]=cor_length=100.0 [A]
39    double cor_length;
40
41    /// SDL block [1/A^(2)]
42    //  [DEFAULT]=sldBlock=2.0e-6 [1/A^(2)]
43    double sldBlock;
44
45    /// SDL solvent [1/A^(2)]
46    //  [DEFAULT]=sldSolv= 6.35e-6 [1/A^(2)]
47    double sldSolv;
48
49        /// Incoherent Background [1/cm]
50        //  [DEFAULT]=background=0.0 [1/cm]
51        double background;
52} FractalParameters;
53
54
55
56/// 1D scattering function
57//double fractal_analytical_1D(FractalParameters *pars, double q);
58
59/// 2D scattering function
60//double fractal_analytical_2D(FractalParameters *pars, double q, double phi);
61//double fractal_analytical_2DXY(FractalParameters *pars, double qx, double qy);
62
63#endif
Note: See TracBrowser for help on using the repository browser.