source: sasview/sansmodels/src/sans/models/c_extensions/lamellarPS_HG.h @ 70bf68c

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 70bf68c was 27a0771, checked in by Gervaise Alina <gervyh@…>, 16 years ago

add more models

  • Property mode set to 100644
File size: 1.8 KB
Line 
1/*
2        TODO: Add 2D model
3*/
4
5#if !defined(lamellarPS_HG_h)
6#define lamellarPS_HG_h
7/** Structure definition for concentrated lamellar form factor parameters
8 * [PYTHONCLASS] = LamellarPSHGModel
9 * [DISP_PARAMS] = deltaT,deltaH
10   [DESCRIPTION] = <text> Calculates the scattered intensity from a concentrated lamellar phase</text>
11   [FIXED]= deltaT.with;deltaH.with
12   [ORIENTATION_PARAMS]=
13
14 **/
15typedef struct {
16    /// Scale factor
17    //  [DEFAULT]=scale=1.0
18    double scale;
19    /// repeat spacing of the lamellar [A]
20    //  [DEFAULT]=spacing=40 [A]
21    double spacing;
22        ///  tail thickness [A]
23    //  [DEFAULT]=deltaT=10 [A]
24    double deltaT;
25        ///  head thickness [A]
26    //  [DEFAULT]=deltaH=2.0 [A]
27    double deltaH;
28    /// scattering density length of tails [1/A²]
29    //  [DEFAULT]=sld_tail=4e-7 [1/A²]
30    double sld_tail;
31        /// scattering density length of head [1/A²]
32    //  [DEFAULT]=sld_head=2e-6 [1/A²]
33    double sld_head;
34        /// scattering density length of solvent [1/A²]
35    //  [DEFAULT]=sld_solvent=6e-6 [1/A²]
36    double sld_solvent;
37         /// Number of lamellar plates
38    //  [DEFAULT]=n_plates=30
39    double n_plates;
40    /// caille parameters
41    //  [DEFAULT]=caille=0.001
42    double caille;
43        /// Incoherent Background [1/cm]
44        //  [DEFAULT]=background=0.001 [1/cm]
45        double background;
46   
47} LamellarPSHGParameters;
48
49
50
51/// 1D scattering function
52double lamellarPS_HG_analytical_1D(LamellarPSHGParameters *pars, double q);
53
54/// 2D scattering function
55double lamellarPS_HG_analytical_2D(LamellarPSHGParameters *pars, double q, double phi);
56double lamellarPS_HG_analytical_2DXY(LamellarPSHGParameters *pars, double qx, double qy);
57double lamellarPS_HG_analytical_2D_scaled(LamellarPSHGParameters *pars, double q, double q_x, double q_y);
58
59#endif
Note: See TracBrowser for help on using the repository browser.