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

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

Moving sansmodels to trunk

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