source: sasview/sansmodels/src/sans/models/c_extensions/spheroid.h @ 76b5220

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 76b5220 was 4628e31, checked in by Jae Cho <jhjcho@…>, 14 years ago

changed the unit of angles into degrees

  • Property mode set to 100644
File size: 2.9 KB
Line 
1#if !defined(spheroid_h)
2#define spheroid_h
3/** Structure definition for oblate parameters
4 * [PYTHONCLASS] = CoreShellEllipsoidModel
5 * [DISP_PARAMS] = equat_core, polar_core, equat_shell,polar_shell,axis_phi, axis_theta
6   [DESCRIPTION] = <text>[SpheroidCoreShellModel] Calculates the form factor for an spheroid
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                        equat_core = equatorial radius of core,
14                        polar_core = polar radius of core,
15                        equat_shell = equatorial radius of shell,
16                        polar_shell = polar radius (revolution axis) of shell,
17                        sld_core = SLD_core
18                        sld_shell = SLD_shell
19                        sld_solvent = SLD_solvent
20                        background = Incoherent bkg
21                        scale =scale
22                        Note:It is the users' responsibility to ensure
23                        that shell radii are larger than core radii.
24                        oblate: polar radius < equatorial radius
25                        prolate :  polar radius > equatorial radius
26                        </text>
27
28   [FIXED] = <text>equat_core.width;polar_core.width; equat_shell.width; polar_shell.width; axis_phi.width; axis_theta.width</text>
29   [ORIENTATION_PARAMS]= <text>axis_phi; axis_theta; axis_phi.width; axis_theta.width</text>
30
31 **/
32typedef struct {
33    /// Scale factor
34    //  [DEFAULT]=scale=1.0
35    double scale;
36    /// Equatorial radius of core [A]
37    //  [DEFAULT]=equat_core=200.0 [A]
38    double equat_core;
39        /// Polar radius of core [A]
40    //  [DEFAULT]=polar_core=20.0 [A]
41    double polar_core;
42        /// equatorial radius of shell [A]
43    //  [DEFAULT]=equat_shell=250.0 [A]
44    double equat_shell;
45        /// polar radius of shell [A]
46    //  [DEFAULT]=polar_shell=30.0 [A]
47    double polar_shell;
48    ///  Core scattering length density [1/A^(2)]
49    //  [DEFAULT]=sld_core=2.0e-6 [1/A^(2)]
50    double sld_core;
51    ///  Shell scattering length density [1/A^(2)]
52    //  [DEFAULT]=sld_shell=1.0e-6 [1/A^(2)]
53    double sld_shell;
54        /// Solvent scattering length density  [1/A^(2)]
55    //  [DEFAULT]=sld_solvent=6.3e-6 [1/A^(2)]
56    double sld_solvent;
57        /// Incoherent Background [1/cm] 0.001
58        //  [DEFAULT]=background=0.001 [1/cm]
59        double background;
60        //Disable for now
61    /// Orientation of the oblate axis w/respect incoming beam [deg]
62    //  [DEFAULT]=axis_theta=0.0 [deg]
63    double axis_theta;
64    /// Orientation of the oblate in the plane of the detector [deg]
65    //  [DEFAULT]=axis_phi=0.0 [deg]
66    double axis_phi;
67
68} SpheroidParameters;
69
70
71
72/// 1D scattering function
73double spheroid_analytical_1D(SpheroidParameters *pars, double q);
74
75/// 2D scattering function
76double spheroid_analytical_2D(SpheroidParameters *pars, double q, double phi);
77double spheroid_analytical_2DXY(SpheroidParameters *pars, double qx, double qy);
78double spheroid_analytical_2D_scaled(SpheroidParameters *pars, double q, double q_x, double q_y);
79
80#endif
Note: See TracBrowser for help on using the repository browser.