source: sasview/sansmodels/src/sans/models/c_extensions/hollow_cylinder.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.1 KB
Line 
1#if !defined(hollow_cylinder_h)
2#define hollow_cylinder_h
3
4/**
5 * Structure definition for hollow cylinder parameters
6 */
7 //[PYTHONCLASS] = HollowCylinderModel
8 //[DISP_PARAMS] = core_radius, radius, length, axis_theta, axis_phi
9 //[DESCRIPTION] = <text> P(q) = scale*<f*f>/Vol + bkg, where f is the scattering amplitude.
10 //                                     core_radius = the radius of core
11 //                             radius = the radius of shell
12 //                     length = the total length of the cylinder
13 //                             contrast = SLD of solvent - SLD of shell
14 //                             background = incoherent background
15 //     </text>
16 //[FIXED]= <text> axis_phi.width; axis_theta.width; length.width;core_radius.width; radius</text>
17 //[ORIENTATION_PARAMS]= axis_phi; axis_theta;axis_phi.width; axis_theta.width
18
19
20typedef struct {
21    /// Scale factor
22    //  [DEFAULT]=scale=1.0
23    double scale;
24
25    /// Core radius [A]
26    //  [DEFAULT]=core_radius=20.0 [A]
27    double core_radius;
28
29    /// Shell radius [A]
30    //  [DEFAULT]=radius=30.0 [A]
31    double radius;
32
33    /// Hollow cylinder length [A]
34    //  [DEFAULT]=length=400.0 [A]
35    double length;
36
37    /// Contrast  [1/A^(2)]
38    //  [DEFAULT]=contrast=5.3e-6 [1/A^(2)]
39    double contrast;
40
41        /// Incoherent Background [1/cm]
42        //  [DEFAULT]=background=0.01 [1/cm]
43        double background;
44
45    /// Orientation of the long axis of the hollow cylinder w/respect incoming beam [rad]
46    //  [DEFAULT]=axis_theta=1.57 [rad]
47    double axis_theta;
48
49    /// Orientation of the long axis of the hollow cylinder in the plane of the detector [rad]
50    //  [DEFAULT]=axis_phi=0.0 [rad]
51    double axis_phi;
52
53} HollowCylinderParameters;
54
55
56
57/// 1D scattering function
58double hollow_cylinder_analytical_1D(HollowCylinderParameters *pars, double q);
59
60/// 2D scattering function
61double hollow_cylinder_analytical_2D(HollowCylinderParameters *pars, double q, double phi);
62double hollow_cylinder_analytical_2DXY(HollowCylinderParameters *pars, double qx, double qy);
63double hollow_cylinder_analytical_2D_scaled(HollowCylinderParameters *pars, double q, double q_x, double q_y);
64
65#endif
Note: See TracBrowser for help on using the repository browser.