source: sasview/sansmodels/src/sans/models/c_extensions/Hardsphere.h @ 3b9e023

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 3b9e023 was 1ed3834, checked in by Jae Cho <jhjcho@…>, 16 years ago

unit symbol Angst. back to A and re-organized model descriptions

  • 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.
20 //     Rev. 1958, 110, 1.
21 //      </text>
22 //[FIXED]= radius.width
23
24
25typedef struct {
26    /// Radius of hardsphere [A]
27    //  [DEFAULT]=radius=50.0 [A]
28    double radius;
29
30    /// Volume fraction
31    //  [DEFAULT]=volfraction= 0.2
32    double volfraction;
33} HardsphereParameters;
34
35
36
37/// 1D scattering function
38double Hardsphere_analytical_1D(HardsphereParameters *pars, double q);
39
40/// 2D scattering function
41double Hardsphere_analytical_2D(HardsphereParameters *pars, double q, double phi);
42double Hardsphere_analytical_2DXY(HardsphereParameters *pars, double qx, double qy);
43
44#endif
Note: See TracBrowser for help on using the repository browser.