source: sasview/sansmodels/src/sans/models/c_extensions/multishell.h @ 3d25331f

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 3d25331f was 3d25331f, checked in by Gervaise Alina <gervyh@…>, 15 years ago

add more model 1d and 2 D

  • Property mode set to 100644
File size: 1.8 KB
Line 
1#if !defined(multishell_h)
2#define multishell_h
3
4/**
5 * Structure definition for sphere parameters
6
7        [PYTHONCLASS] = MultiShellModel
8        [DISP_PARAMS] = core_radius
9        [DESCRIPTION] =<text>
10                                                Model parameters:
11                                                scale : scale factor
12                                                core_radius : Core radius of the multishell
13                                                s_thickness: shell thickness
14                                                w_thickness: water thickness
15                                                core_sld: core scattering length density
16                                                shell_sld: shell scattering length density
17                                                n_pairs:number of pairs of water/shell
18                                                background: incoherent background
19               </text>
20        [FIXED]=  core_radius.width
21        [ORIENTATION_PARAMS]= <text> </text>
22 */
23typedef struct {
24    /// Scale factor
25    //  [DEFAULT]=scale= 1.0
26    double scale;
27
28    /// Core radius of the multishell [A]
29    //  [DEFAULT]=core_radius=60.0 [A]
30    double core_radius;
31
32        ///     shell thickness [Å]
33    //  [DEFAULT]=s_thickness= 10.0 [A]
34    double s_thickness;
35
36    /// water thickness [Å]
37    //  [DEFAULT]=w_thickness= 10.0 [A]
38    double w_thickness;
39
40        ///     core scattering length density [1/Ų]
41    //  [DEFAULT]=core_sld= 6.4e-6 [1/A²]
42    double core_sld;
43
44    /// shell scattering length density [1/Ų]
45    //  [DEFAULT]=shell_sld= 4.0e-7 [1/A²]
46    double shell_sld;
47
48        ///     number of pairs of water and shell
49    //  [DEFAULT]=n_pairs= 2
50    double n_pairs;
51
52        /// Incoherent Background [1/cm]
53        //  [DEFAULT]=background=0 [1/cm]
54        double background;
55
56} MultiShellParameters;
57
58
59
60/// 1D scattering function
61double multishell_analytical_1D(MultiShellParameters *pars, double q);
62
63/// 2D scattering function
64double multishell_analytical_2D(MultiShellParameters *pars, double q, double phi);
65double multishell_analytical_2DXY(MultiShellParameters *pars, double qx, double qy);
66
67#endif
Note: See TracBrowser for help on using the repository browser.