source: sasview/sansmodels/src/sans/models/c_extensions/HayterMSA.h @ 19ef1e5

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

Enable structure factors

  • Property mode set to 100644
File size: 1.8 KB
Line 
1#if !defined(HayterMSA_h)
2#define HayterMSA_h
3
4/**
5 * Structure definition for screened Coulomb interaction
6 */
7 //[PYTHONCLASS] = HayterMSAStructure
8 //[DISP_PARAMS] = radius
9 //[DESCRIPTION] =<text>To calculate the structure factor (the Fourier transform   
10 //                     of the pair correlation function g(r)) for
11 //                     a system of charged, spheroidal objects in   
12 //                     a dielectric medium. When combined with an
13 //                     appropriate form factor, this allows
14 //                     for inclusion of the interparticle
15 //                     interference effects due to screened coulomb
16 //                     repulsion between charged particles.
17 //                     (note: charge > 0 required.)
18 //
19 //                     Ref: JP Hansen and JB Hayter, Molecular
20 //                           Physics 46, 651-656 (1982).
21 //
22 //                             </text>
23 //[FIXED]= radius.width 
24 
25typedef struct {
26    /// Radius of particle [A]
27    //  [DEFAULT]=radius=20.75 A
28    double radius;
29
30    /// charge
31    //  [DEFAULT]=charge= 19
32    double charge;
33
34    /// Volume fraction
35    //  [DEFAULT]=volfraction= 0.0192
36    double volfraction;
37
38        ///     Temperature [K]
39    //  [DEFAULT]=temperature= 318.16 K
40    double temperature;
41
42        ///     Monovalent salt concentration [M]
43    //  [DEFAULT]=saltconc= 0
44    double saltconc;
45
46    /// Dielectric constant of solvent
47    //  [DEFAULT]=dielectconst= 71.08
48    double dielectconst;
49} HayterMSAParameters;
50
51
52
53/// 1D scattering function
54double HayterMSA_analytical_1D(HayterMSAParameters *pars, double q);
55
56/// 2D scattering function
57double HayterMSA_analytical_2D(HayterMSAParameters *pars, double q, double phi);
58double HayterMSA_analytical_2DXY(HayterMSAParameters *pars, double qx, double qy);
59
60#endif
Note: See TracBrowser for help on using the repository browser.