source: sasview/sansmodels/src/sans/models/c_extensions/hollow_cylinder.h @ 793c988

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 793c988 was 27fea3f, checked in by Gervaise Alina <gervyh@…>, 15 years ago

add a few models 1D

  • Property mode set to 100644
File size: 1.8 KB
RevLine 
[27fea3f]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, shell_radius, length, axis_theta, axis_phi
9 //[DESCRIPTION] = <text></text>
10 //[FIXED]= <text> axis_phi.width; axis_theta.width; length.width;core_radius.width; shell_radius</text>
11 //[ORIENTATION_PARAMS]= axis_phi; axis_theta;axis_phi.width; axis_theta.width
12
13
14typedef struct {
15    /// Scale factor
16    //  [DEFAULT]=scale=1.0
17    double scale;
18
19    /// Core radius [A]
20    //  [DEFAULT]=core_radius=20.0 [A]
21    double core_radius;
22
23    /// Shell radius [A]
24    //  [DEFAULT]=shell_radius=30.0 [A]
25    double shell_radius;
26
27    /// Hollow cylinder length [A]
28    //  [DEFAULT]=length=400.0 [A]
29    double length;
30
31    /// Contrast  [1/A²]
32    //  [DEFAULT]=contrast=5.3e-6 [1/A²]
33    double contrast;
34
35        /// Incoherent Background [1/cm]
36        //  [DEFAULT]=background=0.01 [1/cm]
37        double background;
38
39    /// Orientation of the long axis of the hollow cylinder w/respect incoming beam [rad]
40    //  [DEFAULT]=axis_theta=1.57 [rad]
41    double axis_theta;
42
43    /// Orientation of the long axis of the hollow cylinder in the plane of the detector [rad]
44    //  [DEFAULT]=axis_phi=0.0 [rad]
45    double axis_phi;
46
47} HollowCylinderParameters;
48
49
50
51/// 1D scattering function
52double hollow_cylinder_analytical_1D(HollowCylinderParameters *pars, double q);
53
54/// 2D scattering function
55double hollow_cylinder_analytical_2D(HollowCylinderParameters *pars, double q, double phi);
56double hollow_cylinder_analytical_2DXY(HollowCylinderParameters *pars, double qx, double qy);
57double hollow_cylinder_analytical_2D_scaled(HollowCylinderParameters *pars, double q, double q_x, double q_y);
58
59#endif
Note: See TracBrowser for help on using the repository browser.