source: sasview/sansmodels/src/sans/models/c_extensions/core_shell_cylinder.h @ 0f5bc9f

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 0f5bc9f was 0f5bc9f, checked in by Mathieu Doucet <doucetm@…>, 16 years ago

Update of all C models to the new style of C++ models

  • Property mode set to 100644
File size: 1.8 KB
Line 
1#if !defined(core_shell_cylinder_h)
2#define core_shell_cylinder_h
3
4/**
5 * Structure definition for core-shell cylinder parameters
6 */
7 //[PYTHONCLASS] = CoreShellCylinderModel
8 //[DISP_PARAMS] = radius, thickness, length, axis_theta, axis_phi
9typedef struct {
10    /// Scale factor
11    //  [DEFAULT]=scale=1.0
12    double scale;
13
14    /// Core radius [A]
15    //  [DEFAULT]=radius=20.0 A
16    double radius;
17
18    /// Shell thickness [A]
19    //  [DEFAULT]=thickness=10.0 A
20    double thickness;
21
22    /// Core length [A]
23    //  [DEFAULT]=length=400.0 A
24    double length;
25
26    /// Core SLD [A-2]
27    //  [DEFAULT]=core_sld=1.0e-6 A-2
28    double core_sld;
29
30    /// Shell SLD [A-2]
31    //  [DEFAULT]=shell_sld=4.0e-6 A-2
32    double shell_sld;
33
34    /// Solvent SLD [A-2]
35    //  [DEFAULT]=solvent_sld=1.0e-6 A-2
36    double solvent_sld;
37
38        /// Incoherent Background [cm-1]
39        //  [DEFAULT]=background=0 cm-1
40        double background;
41
42    /// Orientation of the long axis of the core-shell cylinder w/respect incoming beam [rad]
43    //  [DEFAULT]=axis_theta=1.57 rad
44    double axis_theta;
45
46    /// Orientation of the long axis of the core-shell cylinder in the plane of the detector [rad]
47    //  [DEFAULT]=axis_phi=0.0 rad
48    double axis_phi;
49
50} CoreShellCylinderParameters;
51
52
53
54/// 1D scattering function
55double core_shell_cylinder_analytical_1D(CoreShellCylinderParameters *pars, double q);
56
57/// 2D scattering function
58double core_shell_cylinder_analytical_2D(CoreShellCylinderParameters *pars, double q, double phi);
59double core_shell_cylinder_analytical_2DXY(CoreShellCylinderParameters *pars, double qx, double qy);
60double core_shell_cylinder_analytical_2D_scaled(CoreShellCylinderParameters *pars, double q, double q_x, double q_y);
61
62#endif
Note: See TracBrowser for help on using the repository browser.