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 cee6867 was
cabe74b,
checked in by Jae Cho <jhjcho@…>, 16 years ago
|
Added 2nd virial coeff. functions
|
-
Property mode set to
100644
|
File size:
915 bytes
|
Rev | Line | |
---|
[cabe74b] | 1 | /** |
---|
| 2 | * SquareWell Structure factor |
---|
| 3 | * @author: Jae Hie Cho / UTK |
---|
| 4 | */ |
---|
| 5 | |
---|
| 6 | #include "DiamCyl.h" |
---|
| 7 | #include "libStructureFactor.h" |
---|
| 8 | #include <math.h> |
---|
| 9 | |
---|
| 10 | |
---|
| 11 | /** |
---|
| 12 | * Function to evaluate 1D scattering function |
---|
| 13 | * @param pars: parameters of the DiaEllip |
---|
| 14 | * @param q: q-value ; NOT used |
---|
| 15 | * @return: 2 virial coefficient value |
---|
| 16 | */ |
---|
| 17 | double DiamCyld_analytical_1D(DiamCyldParameters *pars, double q) { |
---|
| 18 | double dp[2]; |
---|
| 19 | |
---|
| 20 | dp[0] = pars->radius; |
---|
| 21 | dp[1] = pars->length; |
---|
| 22 | return DiamCyl(dp, q); |
---|
| 23 | } |
---|
| 24 | |
---|
| 25 | /** |
---|
| 26 | * Function to evaluate 2D scattering function |
---|
| 27 | * @param pars: parameters of the RadiEllip |
---|
| 28 | * @param q: q-value |
---|
| 29 | * @return: function value |
---|
| 30 | */ |
---|
| 31 | double DiamCyld_analytical_2D(DiamCyldParameters *pars, double q, double phi) { |
---|
| 32 | return DiamCyld_analytical_1D(pars,q); |
---|
| 33 | } |
---|
| 34 | |
---|
| 35 | double DiamCyld_analytical_2DXY(DiamCyldParameters *pars, double qx, double qy){ |
---|
| 36 | return DiamCyld_analytical_1D(pars,sqrt(qx*qx+qy*qy)); |
---|
| 37 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.