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

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 1ed3834 was 1ed3834, checked in by Jae Cho <jhjcho@…>, 15 years ago

unit symbol Angst. back to A and re-organized model descriptions

  • Property mode set to 100644
File size: 2.9 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
9 //[DESCRIPTION] = <text>P(q,alpha)= scale/Vs*f(q)^(2) + bkg,  where: f(q)= 2(core_sld
10//                      - solvant_sld)* Vc*sin[qLcos(alpha/2)]
11//                      /[qLcos(alpha/2)]*J1(qRsin(alpha))
12 //                     /[qRsin(alpha)]+2(shell_sld-solvent_sld)
13 //                     *Vs*sin[q(L+T)cos(alpha/2)][[q(L+T)
14 //                     *cos(alpha/2)]*J1(q(R+T)sin(alpha))
15 //                     /q(R+T)sin(alpha)]
16 //
17 //                     alpha:is the angle between the axis of
18 //          the cylinder and the q-vector
19 //                     Vs: the volume of the outer shell
20 //                     Vc: the volume of the core
21 //                     L: the length of the core
22 //             shell_sld: the scattering length density
23 //                     of the shell
24 //                     solvent_sld: the scattering length density
25 //                     of the solvent
26 //                     bkg: the background
27 //                     T: the thickness
28 //             R+T: is the outer radius
29 //             L+2T: The total length of the outershell
30 //                     J1: the first order Bessel function
31 //             theta: axis_theta of the cylinder
32 //             phi: the axis_phi of the cylinder...
33 //             </text>
34 //[FIXED]= <text> axis_phi.width; axis_theta.width; length.width;radius.width; thickness_width</text>
35 //[ORIENTATION_PARAMS]= axis_phi; axis_theta;axis_phi.width; axis_theta.width
36
37
38typedef struct {
39    /// Scale factor
40    //  [DEFAULT]=scale=1.0
41    double scale;
42
43    /// Core radius [A]
44    //  [DEFAULT]=radius=20.0 [A]
45    double radius;
46
47    /// Shell thickness [A]
48    //  [DEFAULT]=thickness=10.0 [A]
49    double thickness;
50
51    /// Core length [A]
52    //  [DEFAULT]=length=400.0 [A]
53    double length;
54
55    /// Core SLD [1/A²]
56    //  [DEFAULT]=core_sld=1.0e-6 [1/A²]
57    double core_sld;
58
59    /// Shell SLD [1/A²]
60    //  [DEFAULT]=shell_sld=4.0e-6 [1/A²]
61    double shell_sld;
62
63    /// Solvent SLD [1/A²]
64    //  [DEFAULT]=solvent_sld=1.0e-6 [1/A²]
65    double solvent_sld;
66
67        /// Incoherent Background [1/cm]
68        //  [DEFAULT]=background=0 [1/cm]
69        double background;
70
71    /// Orientation of the long axis of the core-shell cylinder w/respect incoming beam [rad]
72    //  [DEFAULT]=axis_theta=1.57 [rad]
73    double axis_theta;
74
75    /// Orientation of the long axis of the core-shell cylinder in the plane of the detector [rad]
76    //  [DEFAULT]=axis_phi=0.0 [rad]
77    double axis_phi;
78
79} CoreShellCylinderParameters;
80
81
82
83/// 1D scattering function
84double core_shell_cylinder_analytical_1D(CoreShellCylinderParameters *pars, double q);
85
86/// 2D scattering function
87double core_shell_cylinder_analytical_2D(CoreShellCylinderParameters *pars, double q, double phi);
88double core_shell_cylinder_analytical_2DXY(CoreShellCylinderParameters *pars, double qx, double qy);
89double core_shell_cylinder_analytical_2D_scaled(CoreShellCylinderParameters *pars, double q, double q_x, double q_y);
90
91#endif
Note: See TracBrowser for help on using the repository browser.