source: sasview/sansmodels/src/sans/models/c_extensions/pearlnecklace.h @ 8cf19e9

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 8cf19e9 was 9cc3da6, checked in by Jae Cho <jhjcho@…>, 13 years ago

correction/comments

  • Property mode set to 100644
File size: 2.0 KB
Line 
1#if !defined(o_h)
2#define pearl_necklace_h
3
4/**
5 * Structure definition for sphere parameters
6 */
7 //[PYTHONCLASS] = PearlNecklaceModel
8 //[DISP_PARAMS] = radius, edge_separation
9 //[DESCRIPTION] =<text>Calculate form factor for Pearl Necklace Model
10//                              [Macromol. Symp. 2004, 211, 25-42]
11 //                             Parameters:
12 //                             background:background
13 //                             scale: scale factor
14 //                             sld_pearl: the SLD of the pearl spheres
15 //                 sld_string: the SLD of the strings
16 //                             sld_solv: the SLD of the solvent
17 //                             num_pearls: number of the pearls
18 //                             radius: the radius of a pearl
19 //                             edge_separation: the length of string segment; surface to surface
20 //                             thick_string: thickness (ie, diameter) of the string
21 //             </text>
22 //[FIXED]=  <text>radius.width; edge_separation.width</text>
23 //[NON_FITTABLE_PARAMS]= <text></text>
24 //[ORIENTATION_PARAMS]= <text> </text>
25
26typedef struct {
27    /// Scale factor
28    //  [DEFAULT]=scale= 1.0
29        double scale;
30    /// radius [A]
31    //  [DEFAULT]=radius=80.0 [A]
32        double radius;
33        ///     edge_separation
34        //  [DEFAULT]=edge_separation= 350 [A]
35        double edge_separation;
36        ///     thick_string [A]
37        //  [DEFAULT]=thick_string= 2.5 [A]
38        double thick_string;
39        ///     num_pearls
40        //  [DEFAULT]=num_pearls= 3
41        double num_pearls;
42        ///     sld_pearl
43        //  [DEFAULT]=sld_pearl= 1.0e-06 [1/A^(2)]
44        double sld_pearl;
45        ///     sld_string
46        //  [DEFAULT]=sld_string= 1.0e-06 [1/A^(2)]
47        double sld_string;
48        ///     sld_solv
49        //  [DEFAULT]=sld_solv= 6.3e-06 [1/A^(2)]
50        double sld_solv;
51        /// Background
52        //  [DEFAULT]=background=0
53        double background;
54
55}PeralNecklaceParameters;
56
57double pearl_necklace_kernel(double dq[], double q);
58
59/// 1D scattering function
60double pearl_necklace_analytical_1D(PeralNecklaceParameters *pars, double q);
61
62/// 2D scattering function
63double pearl_necklace_analytical_2D(PeralNecklaceParameters *pars, double q, double phi);
64double pearl_necklace_analytical_2DXY(PeralNecklaceParameters *pars, double qx, double qy);
65
66#endif
Note: See TracBrowser for help on using the repository browser.