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 06dfd39 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:
1.4 KB
|
Rev | Line | |
---|
[503a972] | 1 | #if !defined(SquareWell_h) |
---|
| 2 | #define SquareWell_h |
---|
| 3 | #include "parameters.hh" |
---|
| 4 | |
---|
| 5 | /**Structure definition for SquareWell parameters |
---|
| 6 | */ |
---|
| 7 | // [PYTHONCLASS] = SquareWellStructure |
---|
| 8 | // [DISP_PARAMS] = effect_radius |
---|
| 9 | // [DESCRIPTION] = <text> Structure Factor for interacting particles: . |
---|
| 10 | // |
---|
| 11 | // The interaction potential is |
---|
| 12 | // |
---|
| 13 | // U(r)= inf , r < 2R |
---|
| 14 | // = -d , 2R <= r <=2Rw |
---|
| 15 | // = 0 , r >= 2Rw |
---|
| 16 | // |
---|
| 17 | // R: effective radius (A)of the particle |
---|
| 18 | // v: volume fraction |
---|
| 19 | // d: well depth |
---|
| 20 | // w: well width; multiples of the |
---|
| 21 | // particle diameter |
---|
| 22 | // |
---|
| 23 | // Ref: Sharma, R. V.; Sharma, |
---|
| 24 | // K. C., Physica, 1977, 89A, 213. |
---|
| 25 | // </text> |
---|
| 26 | // [FIXED]= effect_radius.width |
---|
| 27 | //[ORIENTATION_PARAMS]= <text> </text> |
---|
| 28 | |
---|
| 29 | class SquareWellStructure{ |
---|
| 30 | public: |
---|
| 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(); |
---|
[6319646] | 55 | double calculate_VR(); |
---|
[503a972] | 56 | double evaluate_rphi(double q, double phi); |
---|
| 57 | }; |
---|
| 58 | |
---|
| 59 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.