source: sasview/sansmodels/src/c_extensions/hollow_cylinder.h @ 31af069

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 31af069 was 67424cd, checked in by Mathieu Doucet <doucetm@…>, 13 years ago

Reorganizing models in preparation of cpp cleanup

  • Property mode set to 100644
File size: 2.2 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 //                             sldCyl = SLD of the shell
14 //                             sldSolv = SLD of the solvent
15 //                             background = incoherent background
16 //     </text>
17 //[FIXED]= <text> axis_phi.width; axis_theta.width; length.width;core_radius.width; radius</text>
18 //[ORIENTATION_PARAMS]= axis_phi; axis_theta;axis_phi.width; axis_theta.width
19
20
21typedef struct {
22    /// Scale factor
23    //  [DEFAULT]=scale=1.0
24    double scale;
25
26    /// Core radius [A]
27    //  [DEFAULT]=core_radius=20.0 [A]
28    double core_radius;
29
30    /// Shell radius [A]
31    //  [DEFAULT]=radius=30.0 [A]
32    double radius;
33
34    /// Hollow cylinder length [A]
35    //  [DEFAULT]=length=400.0 [A]
36    double length;
37
38    /// SLD_cylinder  [1/A^(2)]
39    //  [DEFAULT]=sldCyl=6.3e-6 [1/A^(2)]
40    double sldCyl;
41
42    /// SLD_solvent  [1/A^(2)]
43    //  [DEFAULT]=sldSolv=1.0e-6 [1/A^(2)]
44    double sldSolv;
45
46        /// Incoherent Background [1/cm]
47        //  [DEFAULT]=background=0.01 [1/cm]
48        double background;
49
50    /// Orientation of the long axis of the hollow cylinder w/respect incoming beam [deg]
51    //  [DEFAULT]=axis_theta=90.0 [deg]
52    double axis_theta;
53
54    /// Orientation of the long axis of the hollow cylinder in the plane of the detector [deg]
55    //  [DEFAULT]=axis_phi=0.0 [deg]
56    double axis_phi;
57
58} HollowCylinderParameters;
59
60
61
62/// 1D scattering function
63double hollow_cylinder_analytical_1D(HollowCylinderParameters *pars, double q);
64
65/// 2D scattering function
66double hollow_cylinder_analytical_2D(HollowCylinderParameters *pars, double q, double phi);
67double hollow_cylinder_analytical_2DXY(HollowCylinderParameters *pars, double qx, double qy);
68double hollow_cylinder_analytical_2D_scaled(HollowCylinderParameters *pars, double q, double q_x, double q_y);
69
70#endif
Note: See TracBrowser for help on using the repository browser.