source: sasview/sansmodels/src/sans/models/c_extensions/vesicle.h @ 812b901

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 812b901 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.5 KB
RevLine 
[3d25331f]1#if !defined(vesicle_h)
2#define vesicle_h
3
4/**
5 * Structure definition for vesicle parameters
6
7        [PYTHONCLASS] = VesicleModel
8        [DISP_PARAMS] = core_radius
9        [DESCRIPTION] =<text>
10                                                Model parameters:
11                                                scale : scale factor
12                                                core_radius : Core radius of the vesicle
13                                                thickness: shell thickness
14                                                core_sld: core scattering length density
15                                                shell_sld: shell scattering length density
16                                                background: incoherent background
17               </text>
18        [FIXED]=  core_radius.width
19        [ORIENTATION_PARAMS]= <text> </text>
20 */
21typedef struct {
22    /// Scale factor
23    //  [DEFAULT]=scale= 1.0
24    double scale;
25
26    /// Core radius of the vesicle [A]
27    //  [DEFAULT]=core_radius= 100.0 [A]
28    double core_radius;
29
30        ///     shell thickness [Å]
31    //  [DEFAULT]=thickness= 30.0 [A]
32    double thickness;
33
34        ///     core scattering length density [1/Ų]
35    //  [DEFAULT]=core_sld= 6.36e-6 [1/A²]
36    double core_sld;
37
38    /// shell scattering length density [1/Ų]
39    //  [DEFAULT]=shell_sld= 5.0e-7 [1/A²]
40    double shell_sld;
41
42        /// Incoherent Background [1/cm]
43        //  [DEFAULT]=background=0 [1/cm]
44        double background;
45
46} VesicleParameters;
47
48
49
50/// 1D scattering function
51double vesicle_analytical_1D(VesicleParameters *pars, double q);
52
53/// 2D scattering function
54double vesicle_analytical_2D(VesicleParameters *pars, double q, double phi);
55double vesicle_analytical_2DXY(VesicleParameters *pars, double qx, double qy);
56
57#endif
Note: See TracBrowser for help on using the repository browser.