source: sasview/sansmodels/src/sans/models/c_extensions/stacked_disks.h @ 5032d1e2

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 5032d1e2 was 975ec8e, checked in by Jae Cho <jhjcho@…>, 15 years ago

working on 2D models. Still need smore corrections and unit tests.

  • Property mode set to 100644
File size: 2.2 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] = core_thick, layer_thick, radius, axis_theta, axis_phi
10   [DESCRIPTION] = <text>
11                </text>
12        [FIXED]= <text>core_thick.width;layer_thick.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    /// Thickness of the core disk [A]
25    //  [DEFAULT]=core_thick=10.0 [A]
26    double core_thick;
27        /// Thickness of the staked disk [A]
28    //  [DEFAULT]=layer_thick=15.0 [A]
29    double layer_thick;
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 stacking
40    //  [DEFAULT]=n_stacking=1
41        double n_stacking;
42    /// GSD of disks sigma_d
43    //  [DEFAULT]=sigma_d=0
44    double sigma_d;
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=0.0 [rad]
50    double axis_theta;
51    /// Orientation of the  staked disk in the plane of the detector [rad]
52    //  [DEFAULT]=axis_phi=0.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.