source: sasview/sansmodels/src/sans/models/c_extensions/stacked_disks.h @ 43ecc75f

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 43ecc75f was 27972c1d, checked in by Jae Cho <jhjcho@…>, 15 years ago

removed all non asc font in the units

  • Property mode set to 100644
File size: 2.6 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> One layer of disk consists of a core, a top layer, and a bottom layer.
11                radius =  the radius of the disk
12                core_thick = thickness of the core
13                layer_thick = thickness of a layer
14                core_sld = the SLD of the core
15                layer_sld = the SLD of the layers
16                n_stacking = the number of the disks
17                sigma_d =  Gaussian STD of d-spacing
18                solvent_sld = the SLD of the solvent
19                </text>
20        [FIXED]= <text>core_thick.width;layer_thick.width; radius.width; axis_theta.width; axis_phi.width</text>
21        [ORIENTATION_PARAMS]= <text>axis_phi; axis_theta; axis_phi.width; axis_theta.width</text>
22
23
24 **/
25typedef struct {
26    /// Scale factor
27    //  [DEFAULT]=scale=0.01
28    double scale;
29        /// radius of the staked disk [A]
30    //  [DEFAULT]=radius=3000 [A]
31    double radius;
32    /// Thickness of the core disk [A]
33    //  [DEFAULT]=core_thick=10.0 [A]
34    double core_thick;
35        /// Thickness of the staked disk [A]
36    //  [DEFAULT]=layer_thick=15.0 [A]
37    double layer_thick;
38        /// Core scattering length density[1/A^(2)]
39    //  [DEFAULT]=core_sld=4e-6 [1/A^(2)]
40    double core_sld;
41        /// layer scattering length density[1/A^(2)]
42    //  [DEFAULT]=layer_sld=-4e-7 [1/A^(2)]
43    double layer_sld;
44        /// solvent scattering length density[1/A^(2)]
45    //  [DEFAULT]=solvent_sld=5.0e-6 [1/A^(2)]
46    double solvent_sld;
47    /// number of stacking
48    //  [DEFAULT]=n_stacking=1
49        double n_stacking;
50    /// GSD of disks sigma_d
51    //  [DEFAULT]=sigma_d=0
52    double sigma_d;
53        /// Incoherent Background [1/cm]
54        //  [DEFAULT]=background=0.001 [1/cm]
55        double background;
56    /// Orientation of the staked disk axis w/respect incoming beam [rad]
57    //  [DEFAULT]=axis_theta=0.0 [rad]
58    double axis_theta;
59    /// Orientation of the  staked disk in the plane of the detector [rad]
60    //  [DEFAULT]=axis_phi=0.0 [rad]
61    double axis_phi;
62
63
64} StackedDisksParameters;
65
66
67
68/// 1D scattering function
69double stacked_disks_analytical_1D(StackedDisksParameters *pars, double q);
70
71/// 2D scattering function
72double stacked_disks_analytical_2D(StackedDisksParameters *pars, double q, double phi);
73double stacked_disks_analytical_2DXY(StackedDisksParameters *pars, double qx, double qy);
74double stacked_disks_analytical_2D_scaled(StackedDisksParameters *pars, double q, double q_x, double q_y);
75
76#endif
Note: See TracBrowser for help on using the repository browser.