source: sasview/sansmodels/src/include/SquareWell.h @ 446c8d9

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 446c8d9 was 101065a, checked in by Mathieu Doucet <doucetm@…>, 13 years ago

keep only header files in c_extensions and rename it 'include'

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