source: sasview/sansmodels/src/sans/models/c_extensions/oblate.h @ a0da535

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 a0da535 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.6 KB
RevLine 
[27a0771]1#if !defined(oblate_h)
2#define oblate_h
3/** Structure definition for oblate parameters
4 * [PYTHONCLASS] = OblateModel
[96b59384]5 * [DISP_PARAMS] = major_core, minor_core, major_shell,minor_shell
6   [DESCRIPTION] = <text>[OblateCoreShellModel] Calculates the form factor for an oblate
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>
[27a0771]24
[96b59384]25   [FIXED] = <text>major_core.width;minor_core.width; major_shell.width; minor_shell.width</text>
[975ec8e]26   [ORIENTATION_PARAMS]= <text>axis_phi; axis_theta; axis_phi.width; axis_theta.width</text>
[27a0771]27
28 **/
29typedef struct {
30    /// Scale factor
31    //  [DEFAULT]=scale=1.0
32    double scale;
33    /// Major core of oblate [A]
34    //  [DEFAULT]=major_core=200.0 [A]
35    double major_core;
36        /// Minor core of oblate [A]
37    //  [DEFAULT]=minor_core=20.0 [A]
38    double minor_core;
39        /// Major shell of oblate [A]
40    //  [DEFAULT]=major_shell=250.0 [A]
41    double major_shell;
42        /// Minor shell of oblate [A]
43    //  [DEFAULT]=minor_shell=30.0 [A]
44    double minor_shell;
[27972c1d]45    ///  Scattering contrast [1/A^(2)]
46    //  [DEFAULT]=contrast=1.0e-6 [1/A^(2)]
[27a0771]47    double contrast;
[27972c1d]48        /// Solvent scattering length density  [1/A^(2)]
49    //  [DEFAULT]=sld_solvent=6.3e-6 [1/A^(2)]
[27a0771]50    double sld_solvent;
51        /// Incoherent Background [1/cm] 0.001
52        //  [DEFAULT]=background=0.001 [1/cm]
53        double background;
[975ec8e]54        //Disable for now
[4628e31]55    /// Orientation of the oblate axis w/respect incoming beam [deg]
56    //  [DEFAULT]=axis_theta=57.325 [deg]
[27a0771]57    double axis_theta;
[4628e31]58    /// Orientation of the oblate in the plane of the detector [deg]
59    //  [DEFAULT]=axis_phi=57.325 [deg]
[27a0771]60    double axis_phi;
[975ec8e]61
[27a0771]62} OblateParameters;
63
64
65
66/// 1D scattering function
67double oblate_analytical_1D(OblateParameters *pars, double q);
68
69/// 2D scattering function
70double oblate_analytical_2D(OblateParameters *pars, double q, double phi);
71double oblate_analytical_2DXY(OblateParameters *pars, double qx, double qy);
[96b59384]72//double oblate_analytical_2D_scaled(OblateParameters *pars, double q, double q_x, double q_y);
[27a0771]73
74#endif
Note: See TracBrowser for help on using the repository browser.