source: sasview/sansmodels/src/sans/models/c_extensions/parallelepiped.h @ 2e38ebb

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 2e38ebb was 27972c1d, checked in by Jae Cho <jhjcho@…>, 15 years ago

removed all non asc font in the units

  • Property mode set to 100644
File size: 2.4 KB
RevLine 
[8a48713]1/*
2        TODO: Add 2D model
3*/
4
5#if !defined(parallelepiped_h)
6#define parallelepiped_h
7/** Structure definition for Parallelepiped parameters
8 * [PYTHONCLASS] = ParallelepipedModel
[8e36cdd]9 * [DISP_PARAMS] = short_a, short_b, long_c,parallel_phi,parallel_psi, parallel_theta
[2cb89e7]10   [DESCRIPTION] = <text> Form factor for a rectangular solid with uniform scattering length density.
[975ec8e]11
[8a48713]12                scale:Scale factor
[8e36cdd]13                short_a: length of short edge  [A]
14                short_b: length of another short edge [A]
15                long_c: length of long edge  of the parallelepiped [A]
[2cb89e7]16                contrast: particle_sld - solvent_sld
[975ec8e]17                background:Incoherent Background [1/cm]
[8a48713]18                </text>
[8e36cdd]19        [FIXED]= <text>short_a.width; short_b.width; long_c.width;parallel_phi.width;parallel_psi.width; parallel_theta.width</text>
[975ec8e]20        [ORIENTATION_PARAMS]= <text>parallel_phi;parallel_psi; parallel_theta; parallel_phi.width;parallel_psi.width; parallel_theta.width</text>
[8a48713]21
22
23 **/
24typedef struct {
25    /// Scale factor
26    //  [DEFAULT]=scale=1.0
27    double scale;
[8e36cdd]28    ///  Length of short edge of the parallelepiped [A]
[2cb89e7]29    //  [DEFAULT]=short_a=35 [A]
30    double short_a;
[8e36cdd]31        /// Length of short edge edge of the parallelepiped [A]
32    //  [DEFAULT]=short_b=75 [A]
33    double short_b;
34        /// Length of long edge of the parallelepiped [A]
35    //  [DEFAULT]=long_c=400 [A]
36    double long_c;
[27972c1d]37    /// Contrast [1/A^(2)]
38    //  [DEFAULT]=contrast=53e-7 [1/A^(2)]
[8a48713]39    double contrast;
[975ec8e]40        /// Incoherent Background [1/cm]
[8a48713]41        //  [DEFAULT]=background=0.0 [1/cm]
42        double background;
43    /// Orientation of the parallelepiped axis w/respect incoming beam [rad]
[975ec8e]44    //  [DEFAULT]=parallel_theta=0.0 [rad]
[8a48713]45    double parallel_theta;
[975ec8e]46    /// Orientation of the longitudinal axis of the parallelepiped in the plane of the detector [rad]
47    //  [DEFAULT]=parallel_phi=0.0 [rad]
[8a48713]48    double parallel_phi;
[975ec8e]49    /// Orientation of the cross-sectional minor axis of the parallelepiped in the plane of the detector [rad]
50    //  [DEFAULT]=parallel_psi=0.0 [rad]
51    double parallel_psi;
[8a48713]52
53
54} ParallelepipedParameters;
55
56
57
58/// 1D scattering function
59double parallelepiped_analytical_1D(ParallelepipedParameters *pars, double q);
60
61/// 2D scattering function
62double parallelepiped_analytical_2D(ParallelepipedParameters *pars, double q, double phi);
63double parallelepiped_analytical_2DXY(ParallelepipedParameters *pars, double qx, double qy);
64double parallelepiped_analytical_2D_scaled(ParallelepipedParameters *pars, double q, double q_x, double q_y);
65#endif
Note: See TracBrowser for help on using the repository browser.