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

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 72a90bd was 27a0771, checked in by Gervaise Alina <gervyh@…>, 15 years ago

add more models

  • Property mode set to 100644
File size: 2.1 KB
Line 
1#if !defined(oblate_h)
2#define oblate_h
3/** Structure definition for oblate parameters
4 * [PYTHONCLASS] = OblateModel
5 * [DISP_PARAMS] = major_core, minor_core, major_shell,minor_shell, axis_theta, axis_phi
6   [DESCRIPTION] = <text> Calculates the form factor for an oblate ellipsoid particle with a core/shell structure.
7                        Note:It is the users' responsibility to ensure that shell radii are larger than core radii, and
8                                        that major radii are larger than minor radii.</text>
9
10   [FIXED] = <text>axis_phi.width; axis_theta.width; major_core.width;minor_core.width; major_shell; minor_shell</text>
11   [ORIENTATION_PARAMS] = <text>axis_phi; axis_theta; axis_phi.width; axis_theta.width</text>
12
13 **/
14typedef struct {
15    /// Scale factor
16    //  [DEFAULT]=scale=1.0
17    double scale;
18    /// Major core of oblate [A]
19    //  [DEFAULT]=major_core=200.0 [A]
20    double major_core;
21        /// Minor core of oblate [A]
22    //  [DEFAULT]=minor_core=20.0 [A]
23    double minor_core;
24        /// Major shell of oblate [A]
25    //  [DEFAULT]=major_shell=250.0 [A]
26    double major_shell;
27        /// Minor shell of oblate [A]
28    //  [DEFAULT]=minor_shell=30.0 [A]
29    double minor_shell;
30    ///  Scattering contrast [1/A²]
31    //  [DEFAULT]=contrast=1.0e-6 [1/A²]
32    double contrast;
33        /// Solvent scattering length density  [1/A²]
34    //  [DEFAULT]=sld_solvent=6.3e-6 [1/A²]
35    double sld_solvent;
36        /// Incoherent Background [1/cm] 0.001
37        //  [DEFAULT]=background=0.001 [1/cm]
38        double background;
39    /// Orientation of the oblate axis w/respect incoming beam [rad]
40    //  [DEFAULT]=axis_theta=1.0 [rad]
41    double axis_theta;
42    /// Orientation of the oblate in the plane of the detector [rad]
43    //  [DEFAULT]=axis_phi=1.0 [rad]
44    double axis_phi;
45
46} OblateParameters;
47
48
49
50/// 1D scattering function
51double oblate_analytical_1D(OblateParameters *pars, double q);
52
53/// 2D scattering function
54double oblate_analytical_2D(OblateParameters *pars, double q, double phi);
55double oblate_analytical_2DXY(OblateParameters *pars, double qx, double qy);
56double oblate_analytical_2D_scaled(OblateParameters *pars, double q, double q_x, double q_y);
57
58#endif
Note: See TracBrowser for help on using the repository browser.