source: sasview/sansmodels/src/sans/models/c_extensions/elliptical_cylinder.h @ 4ce29e0

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 4ce29e0 was 96672c0, checked in by Gervaise Alina <gervyh@…>, 16 years ago

code for description modified

  • Property mode set to 100644
File size: 1.7 KB
RevLine 
[ae3ce4e]1#if !defined(ell_cylinder_h)
2#define ell_cylinder_h
3
[0f5bc9f]4/** Structure definition for cylinder parameters
[ae3ce4e]5 * [PYTHONCLASS] = EllipticalCylinderModel
[0f5bc9f]6 * [DISP_PARAMS] = r_minor, r_ratio, length, cyl_theta, cyl_phi, cyl_psi
[96672c0]7 * [DESCRIPTION] = ""
[ae3ce4e]8 * */
9typedef struct {
[0f5bc9f]10    /// Scale factor
[ae3ce4e]11    //  [DEFAULT]=scale=1.0
12    double scale;
13    /// Minor radius [A]
14    //  [DEFAULT]=r_minor=20.0 A
15    double r_minor;
16    /// Ratio of major/minor radii
17    //  [DEFAULT]=r_ratio=1.5 A
18    double r_ratio;
19    /// Length of the cylinder [A]
20    //  [DEFAULT]=length=400.0 A
21    double length;
22    /// Contrast [A-2]
23    //  [DEFAULT]=contrast=3.0e-6 A-2
24    double contrast;
25        /// Incoherent Background (cm-1) 0.000
26        //  [DEFAULT]=background=0 cm-1
[0f5bc9f]27        double background;
[ae3ce4e]28    /// Orientation of the cylinder axis w/respect incoming beam [rad]
29    //  [DEFAULT]=cyl_theta=1.57 rad
30    double cyl_theta;
31    /// Orientation of the cylinder in the plane of the detector [rad]
32    //  [DEFAULT]=cyl_phi=0.0 rad
[0f5bc9f]33    double cyl_phi;
[ae3ce4e]34    /// Orientation of major radius of the cross-section w/respect vector q [rad]
35    //  [DEFAULT]=cyl_psi=0.0 rad
[0f5bc9f]36    double cyl_psi;
[ae3ce4e]37} EllipticalCylinderParameters;
38
39
40
41/// 1D scattering function
42double elliptical_cylinder_analytical_1D(EllipticalCylinderParameters *pars, double q);
43
44/// 2D scattering function
45double elliptical_cylinder_analytical_2D(EllipticalCylinderParameters *pars, double q, double phi);
46double elliptical_cylinder_analytical_2DXY(EllipticalCylinderParameters *pars, double qx, double qy);
47double elliptical_cylinder_analytical_2D_scaled(EllipticalCylinderParameters *pars, double q, double q_x, double q_y);
48
49#endif
Note: See TracBrowser for help on using the repository browser.