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 63c2095 was
25579e8,
checked in by Jae Cho <jhjcho@…>, 16 years ago
|
Enable structure factors
|
-
Property mode set to
100644
|
File size:
1.3 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 | |
---|
25 | |
---|
26 | typedef struct { |
---|
27 | /// Radius of particle [A] |
---|
28 | // [DEFAULT]=radius=50.0 A |
---|
29 | double radius; |
---|
30 | |
---|
31 | /// Volume fraction |
---|
32 | // [DEFAULT]=volfraction= 0.040 |
---|
33 | double volfraction; |
---|
34 | |
---|
35 | /// Well depth [kT] |
---|
36 | // [DEFAULT]=welldepth= 1.50 kT |
---|
37 | double welldepth; |
---|
38 | |
---|
39 | /// Well width |
---|
40 | // [DEFAULT]=wellwidth= 1.20 |
---|
41 | double wellwidth; |
---|
42 | |
---|
43 | } SquareWellParameters; |
---|
44 | |
---|
45 | |
---|
46 | |
---|
47 | /// 1D scattering function |
---|
48 | double SquareWell_analytical_1D(SquareWellParameters *pars, double q); |
---|
49 | |
---|
50 | /// 2D scattering function |
---|
51 | double SquareWell_analytical_2D(SquareWellParameters *pars, double q, double phi); |
---|
52 | double SquareWell_analytical_2DXY(SquareWellParameters *pars, double qx, double qy); |
---|
53 | |
---|
54 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.