source: sasview/sansmodels/src/sans/models/c_extensions/stacked_disks.h @ 72a90bd

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

add 1d models

  • Property mode set to 100644
File size: 2.1 KB
Line 
1/*
2        TODO: Add 2D model
3*/
4
5#if !defined(stacked_disks_h)
6#define stacked_disks_h
7/** Structure definition for stacked disks parameters
8 * [PYTHONCLASS] = StackedDisksModel
9 * [DISP_PARAMS] = length, radius, axis_theta, axis_phi
10   [DESCRIPTION] = <text>
11                </text>
12        [FIXED]= <text>length.width; radius.width; axis_theta.width; axis_phi.width</text>
13        [ORIENTATION_PARAMS]= <text>axis_phi; axis_theta; axis_phi.width; axis_theta.width</text>
14
15
16 **/
17typedef struct {
18    /// Scale factor
19    //  [DEFAULT]=scale=0.01
20    double scale;
21        /// radius of the staked disk [A]
22    //  [DEFAULT]=radius=3000 [A]
23    double radius;
24    /// Length of the staked disk [A]
25    //  [DEFAULT]=length=10.0 [A]
26    double length;
27        /// Thickness of the staked disk [A]
28    //  [DEFAULT]=thickness=15.0 [A]
29    double thickness;
30        /// Core scattering length density[1/A²]
31    //  [DEFAULT]=core_sld=4e-6 [1/A²]
32    double core_sld;
33        /// layer scattering length density[1/A²]
34    //  [DEFAULT]=layer_sld=-4e-7 [1/A²]
35    double layer_sld;
36        /// solvent scattering length density[1/A²]
37    //  [DEFAULT]=solvent_sld=5.0e-6 [1/A²]
38    double solvent_sld;
39    /// number of layers
40    //  [DEFAULT]=nlayers=1
41        double nlayers;
42    /// GSD of disks spacing
43    //  [DEFAULT]=spacing=0
44    double spacing;
45        /// Incoherent Background [1/cm]
46        //  [DEFAULT]=background=0.001 [1/cm]
47        double background;
48    /// Orientation of the staked disk axis w/respect incoming beam [rad]
49    //  [DEFAULT]=axis_theta=1.0 [rad]
50    double axis_theta;
51    /// Orientation of the  staked disk in the plane of the detector [rad]
52    //  [DEFAULT]=axis_phi=1.0 [rad]
53    double axis_phi;
54
55
56} StackedDisksParameters;
57
58
59
60/// 1D scattering function
61double stacked_disks_analytical_1D(StackedDisksParameters *pars, double q);
62
63/// 2D scattering function
64double stacked_disks_analytical_2D(StackedDisksParameters *pars, double q, double phi);
65double stacked_disks_analytical_2DXY(StackedDisksParameters *pars, double qx, double qy);
66double stacked_disks_analytical_2D_scaled(StackedDisksParameters *pars, double q, double q_x, double q_y);
67
68#endif
Note: See TracBrowser for help on using the repository browser.