source: sasview/sansmodels/src/sans/models/c_extensions/elliptical_cylinder.h @ 20f00bed

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 20f00bed was f10063e, checked in by Jae Cho <jhjcho@…>, 15 years ago

Updated the definition of SLD params according to new libigor functions

  • Property mode set to 100644
File size: 2.3 KB
Line 
1#if !defined(ell_cylinder_h)
2#define ell_cylinder_h
3
4/** Structure definition for cylinder parameters
5 * [PYTHONCLASS] = EllipticalCylinderModel
6 * [DISP_PARAMS] = r_minor, r_ratio, length, cyl_theta, cyl_phi, cyl_psi
7 * [DESCRIPTION] = <text> Model parameters: r_minor = the radius of minor axis of the cross section
8r_ratio = the ratio of (r_major /r_minor >= 1)
9length = the length of the cylinder
10sldCyl = SLD of the cylinder
11sldSolv = SLD of solvent -
12background = incoherent background
13  *</text>
14 * [FIXED]= <text> cyl_phi.width;
15 * cyl_theta.width; cyl_psi.width; length.width; r_minor.width; r_ratio.width
16 *</text>
17 * [ORIENTATION_PARAMS]= cyl_phi; cyl_theta; cyl_psi;  cyl_phi.width; cyl_theta.width; cyl_psi.width
18 * */
19
20
21typedef struct {
22    /// Scale factor
23    //  [DEFAULT]=scale=1.0
24    double scale;
25    /// Minor radius [A]
26    //  [DEFAULT]=r_minor=20.0 [A]
27    double r_minor;
28    /// Ratio of major/minor radii
29    //  [DEFAULT]=r_ratio=1.5
30    double r_ratio;
31    /// Length of the cylinder [A]
32    //  [DEFAULT]=length=400.0 [A]
33    double length;
34    /// SLD of cylinder [1/A^(2)]
35    //  [DEFAULT]=sldCyl=4.0e-6 [1/A^(2)]
36    double sldCyl;
37    /// SLD of solvent [1/A^(2)]
38    //  [DEFAULT]=sldSolv=1.0e-6 [1/A^(2)]
39    double sldSolv;
40        /// Incoherent Background [1/cm] 0.000
41        //  [DEFAULT]=background=0 [1/cm]
42        double background;
43    /// Orientation of the cylinder axis w/respect incoming beam [rad]
44    //  [DEFAULT]=cyl_theta=1.57 [rad]
45    double cyl_theta;
46    /// Orientation of the cylinder in the plane of the detector [rad]
47    //  [DEFAULT]=cyl_phi=0.0 [rad]
48    double cyl_phi;
49    /// Orientation of major radius of the cross-section w/respect vector q [rad]
50    //  [DEFAULT]=cyl_psi=0.0 [rad]
51    double cyl_psi;
52} EllipticalCylinderParameters;
53
54
55
56/// 1D scattering function
57double elliptical_cylinder_analytical_1D(EllipticalCylinderParameters *pars, double q);
58
59/// 2D scattering function
60double elliptical_cylinder_analytical_2D(EllipticalCylinderParameters *pars, double q, double phi);
61double elliptical_cylinder_analytical_2DXY(EllipticalCylinderParameters *pars, double qx, double qy);
62double elliptical_cylinder_analytical_2D_scaled(EllipticalCylinderParameters *pars, double q, double q_x, double q_y);
63
64#endif
Note: See TracBrowser for help on using the repository browser.