source: sasview/src/sas/models/include/core_shell_bicelle.h @ 898a8b9

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 898a8b9 was 79492222, checked in by krzywon, 10 years ago

Changed the file and folder names to remove all SANS references.

  • Property mode set to 100644
File size: 2.9 KB
Line 
1#if !defined(core_shell_bicelle_h)
2#define core_shell_bicelle_h
3#include "parameters.hh"
4
5/**
6 * Structure definition for core-shell bicelle parameters
7 */
8//[PYTHONCLASS] = CoreShellBicelleModel
9//[DISP_PARAMS] = radius, rim_thick, length, face_thick, axis_theta, axis_phi
10//[DESCRIPTION] = <text>P(q,alpha)= scale/Vs*f(q)^(2) + bkg,  where: f(q)= 2(core_sld
11//                      - solvant_sld)* Vc*sin[qLcos(alpha/2)]
12//                      /[qLcos(alpha/2)]*J1(qRsin(alpha))
13//                      /[qRsin(alpha)]+2(shell_sld-solvent_sld)
14//                      *Vs*sin[q(L+T)cos(alpha/2)][[q(L+T)
15//                      *cos(alpha/2)]*J1(q(R+T)sin(alpha))
16//                      /q(R+T)sin(alpha)]
17//
18//                      alpha:is the angle between the axis of
19//          the cylinder and the q-vector
20//                      Vs: the volume of the outer shell
21//                      Vc: the volume of the core
22//                      L: the length of the core
23//              shell_sld: the scattering length density
24//                      of the shell
25//                      solvent_sld: the scattering length density
26//                      of the solvent
27//                      bkg: the background
28//                      T: the thickness
29//              R+T: is the outer radius
30//              L+2T: The total length of the outershell
31//                      J1: the first order Bessel function
32//              theta: axis_theta of the cylinder
33//              phi: the axis_phi of the cylinder...
34//              </text>
35//[FIXED]= <text> axis_phi.width; axis_theta.width; length.width;radius.width; rim_thick.width;face_thick.width</text>
36//[ORIENTATION_PARAMS]= axis_phi; axis_theta;axis_phi.width; axis_theta.width
37
38class CoreShellBicelleModel{
39public:
40  // Model parameters
41
42  /// Core radius [A]
43  //  [DEFAULT]=radius=20.0 [A]
44  Parameter radius;
45
46  /// Scale factor
47  //  [DEFAULT]=scale=1.0
48  Parameter scale;
49
50  /// Shell rim thickness [A]
51  //  [DEFAULT]=rim_thick=10.0 [A]
52  Parameter rim_thick;
53
54  /// Shell face_thick [A]
55  //  [DEFAULT]=face_thick=10.0 [A]
56  Parameter face_thick;
57
58  /// Core length [A]
59  //  [DEFAULT]=length=400.0 [A]
60  Parameter length;
61
62  /// Core SLD [1/A^(2)]
63  //  [DEFAULT]=core_sld=1.0e-6 [1/A^(2)]
64  Parameter core_sld;
65
66  /// Shell face SLD [1/A^(2)]
67  //  [DEFAULT]=face_sld=4.0e-6 [1/A^(2)]
68  Parameter face_sld;
69
70  /// Shell rim SLD [1/A^(2)]
71  //  [DEFAULT]=rim_sld=4.0e-6 [1/A^(2)]
72  Parameter rim_sld;
73
74  /// Solvent SLD [1/A^(2)]
75  //  [DEFAULT]=solvent_sld=1.0e-6 [1/A^(2)]
76  Parameter solvent_sld;
77
78  /// Incoherent Background [1/cm]
79  //  [DEFAULT]=background=0 [1/cm]
80  Parameter background;
81
82  /// Orientation of the long axis of the core-shell cylinder w/respect incoming beam [deg]
83  //  [DEFAULT]=axis_theta=90.0 [deg]
84  Parameter axis_theta;
85
86  /// Orientation of the long axis of the core-shell cylinder in the plane of the detector [deg]
87  //  [DEFAULT]=axis_phi=0.0 [deg]
88  Parameter axis_phi;
89
90  // Constructor
91  CoreShellBicelleModel();
92
93  // Operators to get I(Q)
94  double operator()(double q);
95  double operator()(double qx, double qy);
96  double calculate_ER();
97  double calculate_VR();
98  double evaluate_rphi(double q, double phi);
99};
100
101#endif
Note: See TracBrowser for help on using the repository browser.