source: sasview/sansmodels/src/sans/models/c_extensions/lamellarFF_HG.h @ 34c3020

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 34c3020 was 34c3020, checked in by Gervaise Alina <gervyh@…>, 15 years ago

add model1D

  • Property mode set to 100644
File size: 1.7 KB
Line 
1#if !defined(lamellarFF_HG_h)
2#define lamellarFF_HG_h
3/** Structure definition for lamellar parameters
4 * [PYTHONCLASS] = LamellarFFHGModel
5 * [DISP_PARAMS] =  t_length, h_thickness
6   [DESCRIPTION] = <text>
7                                        NOTE: The total bilayer thickness = 2(h_thickness + t_length)
8                                        The meaning of the multiplicative scale factor is not well-defined, but should be on the
9                                        order of the volume fraction of solution occupied by the lamellar crystallites. Please see
10                                        the original references for clarification.
11                                   </text>
12        [FIXED]= t_length.width, h_thickness.width
13        [ORIENTATION_PARAMS]=
14 **/
15typedef struct {
16    /// Scale factor
17    //  [DEFAULT]=scale=1.0
18    double scale;
19    /// tail length [A]
20    //  [DEFAULT]=t_length=15.0 [A]
21    double t_length;
22    /// head thickness
23    //  [DEFAULT]=h_thickness=10.0 [A]
24    double h_thickness;
25        /// tail scrattering density length[1/A²]
26    //  [DEFAULT]=sld_tail=4e-7 [1/A²]
27    double sld_tail;
28    /// head group scrattering density length[1/A²]
29    //  [DEFAULT]=sld_head=3e-6 [1/A²]
30    double sld_head;
31         /// solvent scrattering density length[1/A²]
32    //  [DEFAULT]=sld_solvent=6e-6 [1/A²]
33    double sld_solvent;
34        /// Incoherent Background [1/cm] 0.00
35        //  [DEFAULT]=background=0.0 [1/cm]
36        double background;
37   
38} LamellarFF_HGParameters;
39
40
41
42/// 1D scattering function
43double lamellarFF_HG_analytical_1D(LamellarFF_HGParameters *pars, double q);
44
45/// 2D scattering function
46double lamellarFF_HG_analytical_2D(LamellarFF_HGParameters *pars, double q, double phi);
47double lamellarFF_HG_analytical_2DXY(LamellarFF_HGParameters *pars, double qx, double qy);
48double lamellarFF_HG_analytical_2D_scaled(LamellarFF_HGParameters *pars, double q, double q_x, double q_y);
49
50#endif
Note: See TracBrowser for help on using the repository browser.