source: sasview/sansmodels/src/c_extensions/core_shell.h @ 67424cd

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 67424cd was 67424cd, checked in by Mathieu Doucet <doucetm@…>, 13 years ago

Reorganizing models in preparation of cpp cleanup

  • Property mode set to 100644
File size: 1.6 KB
Line 
1#if !defined(core_shell_h)
2#define core_shell_h
3
4/**
5 * Structure definition for core-shell parameters
6 */
7 //[PYTHONCLASS] = CoreShellModel
8 //[DISP_PARAMS] = radius, thickness
9 //[DESCRIPTION] =<text>Form factor for a monodisperse spherical particle with particle
10 //    with a core-shell structure:
11 //
12 //    The form factor is normalized by the
13 //    total particle volume.
14 //
15 //             radius: core radius, thickness: shell thickness
16 //
17 //     Ref: Guinier, A. and G. Fournet,
18 //     John Wiley and Sons, New York, 1955.
19 //                             </text>
20 //[FIXED]= <text> thickness.width;radius.width</text>
21
22
23typedef struct {
24    /// Scale factor
25    //  [DEFAULT]=scale=1.0
26    double scale;
27    /// Core Radius [A] 60.0
28    //  [DEFAULT]=radius=60.0 [A]
29    double radius;
30    /// Shell Thickness [A] 10.0
31    //  [DEFAULT]=thickness=10 [A]
32    double thickness;
33    /// Core SLD [1/A^(2)] 1.0e-6
34    //  [DEFAULT]=core_sld=1.0e-6 [1/A^(2)]
35    double core_sld;
36        /// Shell SLD [1/A^(2)] 2.0e-6
37        //  [DEFAULT]=shell_sld=2.0e-6 [1/A^(2)]
38        double shell_sld;
39        /// Solvent SLD [1/A^(2)] 3.0e-6
40        //  [DEFAULT]=solvent_sld=3.0e-6 [1/A^(2)]
41        double solvent_sld;
42        /// Incoherent Background [1/cm] 0.000
43        //  [DEFAULT]=background=0 [1/cm]
44        double background;
45} CoreShellParameters;
46
47
48
49/// 1D scattering function
50//double core_shell_analytical_1D(CoreShellParameters *pars, double q);
51
52/// 2D scattering function
53//double core_shell_analytical_2D(CoreShellParameters *pars, double q, double phi);
54//double core_shell_analytical_2DXY(CoreShellParameters *pars, double qx, double qy);
55
56#endif
Note: See TracBrowser for help on using the repository browser.