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