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 27f8dac 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.3 KB
|
Rev | Line | |
---|
[503a972] | 1 | #if !defined(DiamEllip_h) |
---|
| 2 | #define DiamEllip_h |
---|
| 3 | #include "parameters.hh" |
---|
| 4 | |
---|
| 5 | /** |
---|
| 6 | * To calculate the 2nd virial coefficient |
---|
| 7 | * [PYTHONCLASS] = DiamEllipFunc |
---|
| 8 | * [DISP_PARAMS] = radius_a, radius_b |
---|
| 9 | [DESCRIPTION] =<text>To calculate the 2nd virial coefficient for |
---|
| 10 | the non-spherical object, then find the |
---|
| 11 | radius of sphere that has this value of |
---|
| 12 | virial coefficient: |
---|
| 13 | radius_a = polar radius, |
---|
| 14 | radius_b = equatorial radius; |
---|
| 15 | radius_a > radius_b: Prolate spheroid, |
---|
| 16 | radius_a < radius_b: Oblate spheroid. |
---|
| 17 | </text> |
---|
| 18 | [FIXED]= <text> |
---|
| 19 | radius_a.width;radius_b.width |
---|
| 20 | </text> |
---|
| 21 | |
---|
| 22 | **/ |
---|
| 23 | |
---|
| 24 | class DiamEllipFunc{ |
---|
| 25 | public: |
---|
| 26 | // Model parameters |
---|
| 27 | /// Polar radius [A] |
---|
| 28 | // [DEFAULT]=radius_a=20.0 A |
---|
| 29 | Parameter radius_a; |
---|
| 30 | |
---|
| 31 | /// Equatorial radius [A] |
---|
| 32 | // [DEFAULT]=radius_b= 400 A |
---|
| 33 | Parameter radius_b; |
---|
| 34 | |
---|
| 35 | // Constructor |
---|
| 36 | DiamEllipFunc(); |
---|
| 37 | |
---|
| 38 | // Operators to get I(Q) |
---|
| 39 | double operator()(double q); |
---|
| 40 | double operator()(double qx, double qy); |
---|
| 41 | double calculate_ER(); |
---|
[6319646] | 42 | double calculate_VR(); |
---|
[503a972] | 43 | double evaluate_rphi(double q, double phi); |
---|
| 44 | }; |
---|
| 45 | |
---|
| 46 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.