source: sasview/sansmodels/src/sans/models/c_extensions/Hardsphere.h @ 8cfdd5e

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 8cfdd5e was 25579e8, checked in by Jae Cho <jhjcho@…>, 16 years ago

Enable structure factors

  • Property mode set to 100644
File size: 1.1 KB
Line 
1#if !defined(Hardsphere_h)
2#define Hardsphere_h
3
4/**
5 * Structure definition for HardsphereStructure (factor) parameters
6 */
7 //[PYTHONCLASS] = HardsphereStructure
8 //[DISP_PARAMS] = radius
9 //[DESCRIPTION] =<text>Structure factor for interacting particles:
10 //
11 //  The interparticle potential is
12 //
13 //                     U(r)= inf   , r < 2R
14 //                         = 0     , r >= 2R
15 //
16 //                                             R: radius of the Hardsphere particle
17 //                                             V:The volume fraction
18 //
19 //    Ref: Percus., J. K.,etc., J. Phy. Rev.
20 //    1958, 110, 1.
21 //      </text>
22 //[FIXED]= radius.width 
23typedef struct {
24    /// Radius of hardsphere [A]
25    //  [DEFAULT]=radius=50.0 A
26    double radius;
27
28    /// Volume fraction
29    //  [DEFAULT]=volfraction= 0.2
30    double volfraction;
31} HardsphereParameters;
32
33
34
35/// 1D scattering function
36double Hardsphere_analytical_1D(HardsphereParameters *pars, double q);
37
38/// 2D scattering function
39double Hardsphere_analytical_2D(HardsphereParameters *pars, double q, double phi);
40double Hardsphere_analytical_2DXY(HardsphereParameters *pars, double qx, double qy);
41
42#endif
Note: See TracBrowser for help on using the repository browser.