source: sasview/sansmodels/src/sans/models/c_extensions/prolate.h @ 18695bf

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 18695bf 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.2 KB
Line 
1#if !defined(prolate_h)
2#define prolate_h
3/** Structure definition for prolate parameters
4 * [PYTHONCLASS] = ProlateModel
5 * [DISP_PARAMS] = major_core, minor_core, major_shell,minor_shell
6   [DESCRIPTION] = <text>[ProlateCoreShellModel] Calculates the form factor for a prolate
7                        ellipsoid particle with a core_shell structure.
8                        The form factor is averaged over all possible
9                        orientations of the ellipsoid such that P(q)
10                        = scale*<f^2>/Vol + bkg, where f is the
11                        single particle scattering amplitude.
12                        [Parameters]:
13                        major_core = radius of major_core,
14                        minor_core = radius of minor_core,
15                        major_shell = radius of major_shell,
16                        minor_shell = radius of minor_shell,
17                        contrast = SLD_core - SLD_shell
18                        sld_solvent = SLD_solvent
19                        background = Incoherent bkg
20                        scale = scale
21                        Note:It is the users' responsibility to ensure
22                        that shell radii are larger than core radii.
23                        </text>
24   [FIXED] = <text>major_core.width;minor_core.width; major_shell.width; minor_shell.width</text>
25   [ORIENTATION_PARAMS] =
26
27 **/
28typedef struct {
29    /// Scale factor
30    //  [DEFAULT]=scale=1.0
31    double scale;
32    /// Major core of prolate [A]
33    //  [DEFAULT]=major_core=100.0 [A]
34    double major_core;
35        /// Minor core of prolate [A]
36    //  [DEFAULT]=minor_core=50.0 [A]
37    double minor_core;
38        /// Major shell of prolate [A]
39    //  [DEFAULT]=major_shell=110.0 [A]
40    double major_shell;
41        /// Minor shell of prolate [A]
42    //  [DEFAULT]=minor_shell=60.0 [A]
43    double minor_shell;
44    ///  Scattering contrast [1/A^(2)]
45    //  [DEFAULT]=contrast=1.0e-6 [1/A^(2)]
46    double contrast;
47        /// Solvent scattering length density  [1/A^(2)]
48    //  [DEFAULT]=sld_solvent=6.3e-6 [1/A^(2)]
49    double sld_solvent;
50        /// Incoherent Background [1/cm] 0.001
51        //  [DEFAULT]=background=0.001 [1/cm]
52        double background;
53
54} ProlateParameters;
55
56
57
58/// 1D scattering function
59double prolate_analytical_1D(ProlateParameters *pars, double q);
60
61/// 2D scattering function
62double prolate_analytical_2D(ProlateParameters *pars, double q, double phi);
63double prolate_analytical_2DXY(ProlateParameters *pars, double qx, double qy);
64//double prolate_analytical_2D_scaled(ProlateParameters *pars, double q, double q_x, double q_y);
65
66#endif
Note: See TracBrowser for help on using the repository browser.