source: sasview/sansmodels/src/sans/models/c_extensions/SquareWell.h @ cee6867

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

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

  • Property mode set to 100644
File size: 1.4 KB
RevLine 
[25579e8]1#if !defined(SquareWell_h)
2#define SquareWell_h
3
4/**Structure definition for SquareWell parameters
5*/
6//   [PYTHONCLASS] = SquareWellStructure
7//   [DISP_PARAMS] = radius
[1ed3834]8//   [DESCRIPTION] = <text> Structure Factor for interacting particles:             .
[25579e8]9//
10//  The interaction potential is
11//
12//              U(r)= inf   , r < 2R
13//                      = -d    , 2R <= r <=2Rw
14//                      = 0     , r >= 2Rw
15//
[1ed3834]16//              R: radius (A)of the particle
17//              v: volume fraction
[25579e8]18//              d: well depth
[1ed3834]19//              w: well width; multiples of the
20//              particle diameter
[25579e8]21//
[1ed3834]22//              Ref: Sharma, R. V.; Sharma,
23//      K. C., Physica, 1977, 89A, 213.
[25579e8]24//                      </text>
[70faf5d]25//   [FIXED]= radius.width
[25a608f5]26//[ORIENTATION_PARAMS]= <text> </text>
[25579e8]27
28
29typedef struct {
[1ed3834]30    /// Radius of particle [A]
31    //  [DEFAULT]=radius=50.0 [A]
[25579e8]32    double radius;
33
34    /// Volume fraction
35    //  [DEFAULT]=volfraction= 0.040
36    double volfraction;
37
38    /// Well depth [kT]
[70faf5d]39    //  [DEFAULT]=welldepth= 1.50 [kT]
[25579e8]40    double welldepth;
41
[70faf5d]42    /// Well width
43    //  [DEFAULT]=wellwidth= 1.20
[25579e8]44    double wellwidth;
45
46} SquareWellParameters;
47
48
49
50/// 1D scattering function
51double SquareWell_analytical_1D(SquareWellParameters *pars, double q);
52
53/// 2D scattering function
54double SquareWell_analytical_2D(SquareWellParameters *pars, double q, double phi);
55double SquareWell_analytical_2DXY(SquareWellParameters *pars, double qx, double qy);
56
57#endif
Note: See TracBrowser for help on using the repository browser.