source: sasview/sansmodels/src/sans/models/c_extensions/prolate.h @ 0f3fefe

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

add more models

  • 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, axis_theta, axis_phi
6   [DESCRIPTION] = <text> Calculates the form factor for a monodisperse prolate ellipsoid particle with a
7                                                core/shell structure
8                                                Note:It is the users' responsibility to ensure that shell radii are larger than core radii, and
9                                        that major radii are larger than minor radii.</text>
10
11   [FIXED] = <text>axis_phi.width; axis_theta.width; major_core.width;minor_core.width; major_shell; minor_shell</text>
12   [ORIENTATION_PARAMS] = <text>axis_phi; axis_theta; axis_phi.width; axis_theta.width</text>
13
14 **/
15typedef struct {
16    /// Scale factor
17    //  [DEFAULT]=scale=1.0
18    double scale;
19    /// Major core of prolate [A]
20    //  [DEFAULT]=major_core=100.0 [A]
21    double major_core;
22        /// Minor core of prolate [A]
23    //  [DEFAULT]=minor_core=50.0 [A]
24    double minor_core;
25        /// Major shell of prolate [A]
26    //  [DEFAULT]=major_shell=110.0 [A]
27    double major_shell;
28        /// Minor shell of prolate [A]
29    //  [DEFAULT]=minor_shell=60.0 [A]
30    double minor_shell;
31    ///  Scattering contrast [1/A²]
32    //  [DEFAULT]=contrast=1.0e-6 [1/A²]
33    double contrast;
34        /// Solvent scattering length density  [1/A²]
35    //  [DEFAULT]=sld_solvent=6.3e-6 [1/A²]
36    double sld_solvent;
37        /// Incoherent Background [1/cm] 0.001
38        //  [DEFAULT]=background=0.001 [1/cm]
39        double background;
40    /// Orientation of the prolate axis w/respect incoming beam [rad]
41    //  [DEFAULT]=axis_theta=1.0 [rad]
42    double axis_theta;
43    /// Orientation of the prolate in the plane of the detector [rad]
44    //  [DEFAULT]=axis_phi=1.0 [rad]
45    double axis_phi;
46
47} ProlateParameters;
48
49
50
51/// 1D scattering function
52double prolate_analytical_1D(ProlateParameters *pars, double q);
53
54/// 2D scattering function
55double prolate_analytical_2D(ProlateParameters *pars, double q, double phi);
56double prolate_analytical_2DXY(ProlateParameters *pars, double qx, double qy);
57double prolate_analytical_2D_scaled(ProlateParameters *pars, double q, double q_x, double q_y);
58
59#endif
Note: See TracBrowser for help on using the repository browser.