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

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 25a608f5 was 25a608f5, checked in by Gervaise Alina <gervyh@…>, 15 years ago

add list of orientation _parameters to models

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