source: sasview/sansmodels/src/sans/models/c_extensions/spheroid.h @ 0ab485b

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 0ab485b was 5eb9154, checked in by Jae Cho <jhjcho@…>, 15 years ago

calculation of the effective radius are added

  • Property mode set to 100644
File size: 2.8 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                        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                        oblate: polar radius < equatorial radius
24                        prolate :  polar radius > equatorial radius
25                        </text>
26
27   [FIXED] = <text>equat_core.width;polar_core.width; equat_shell.width; polar_shell.width; axis_phi.width; axis_theta.width</text>
28   [ORIENTATION_PARAMS]= <text>axis_phi; axis_theta; axis_phi.width; axis_theta.width</text>
29
30 **/
31typedef struct {
32    /// Scale factor
33    //  [DEFAULT]=scale=1.0
34    double scale;
35    /// Equatorial radius of core [A]
36    //  [DEFAULT]=equat_core=200.0 [A]
37    double equat_core;
38        /// Polar radius of core [A]
39    //  [DEFAULT]=polar_core=20.0 [A]
40    double polar_core;
41        /// equatorial radius of shell [A]
42    //  [DEFAULT]=equat_shell=250.0 [A]
43    double equat_shell;
44        /// polar radius of shell [A]
45    //  [DEFAULT]=polar_shell=30.0 [A]
46    double polar_shell;
47    ///  Scattering contrast [1/A²]
48    //  [DEFAULT]=contrast=1.0e-6 [1/A²]
49    double contrast;
50        /// Solvent scattering length density  [1/A²]
51    //  [DEFAULT]=sld_solvent=6.3e-6 [1/A²]
52    double sld_solvent;
53        /// Incoherent Background [1/cm] 0.001
54        //  [DEFAULT]=background=0.001 [1/cm]
55        double background;
56        //Disable for now
57    /// Orientation of the oblate axis w/respect incoming beam [rad]
58    //  [DEFAULT]=axis_theta=0.0 [rad]
59    double axis_theta;
60    /// Orientation of the oblate in the plane of the detector [rad]
61    //  [DEFAULT]=axis_phi=0.0 [rad]
62    double axis_phi;
63
64} SpheroidParameters;
65
66
67
68/// 1D scattering function
69double spheroid_analytical_1D(SpheroidParameters *pars, double q);
70
71/// 2D scattering function
72double spheroid_analytical_2D(SpheroidParameters *pars, double q, double phi);
73double spheroid_analytical_2DXY(SpheroidParameters *pars, double qx, double qy);
74double spheroid_analytical_2D_scaled(SpheroidParameters *pars, double q, double q_x, double q_y);
75
76#endif
Note: See TracBrowser for help on using the repository browser.