source: sasview/sansmodels/src/sans/models/c_extensions/lamellarPS_HG.h @ 5385a9e

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 5385a9e was 27972c1d, checked in by Jae Cho <jhjcho@…>, 15 years ago

removed all non asc font in the units

  • Property mode set to 100644
File size: 2.4 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,spacing
10   [DESCRIPTION] = <text>[Concentrated Lamellar (head+tail) Form Factor]: Calculates the
11           intensity from a lyotropic lamellar phase.
12           The intensity (form factor and structure factor)
13                calculated is for lamellae of two-layer scattering
14                length density that are randomly distributed in
15                solution (a powder average). The scattering
16                length density of the tail region, headgroup
17                region, and solvent are taken to be different.
18                The model can also be applied to large,
19                multi-lamellar vesicles.
20                No resolution smeared version is included
21                in the structure factor of this model.
22                *Parameters: spacing = repeat spacing,
23                deltaT = tail length,
24                deltaH = headgroup thickness,
25                n_plates = # of Lamellar plates
26                caille = Caille parameter (<0.8 or <1)
27                background = incoherent bgd
28                scale = scale factor ...
29</text>
30   [FIXED]= deltaT.width;deltaH.width;spacing.width
31   [ORIENTATION_PARAMS]=
32
33 **/
34typedef struct {
35    /// Scale factor
36    //  [DEFAULT]=scale=1.0
37    double scale;
38    /// repeat spacing of the lamellar [A]
39    //  [DEFAULT]=spacing=40 [A]
40    double spacing;
41        ///  tail thickness [A]
42    //  [DEFAULT]=deltaT=10 [A]
43    double deltaT;
44        ///  head thickness [A]
45    //  [DEFAULT]=deltaH=2.0 [A]
46    double deltaH;
47    /// scattering density length of tails [1/A^(2)]
48    //  [DEFAULT]=sld_tail=0.4e-6 [1/A^(2)]
49    double sld_tail;
50        /// scattering density length of head [1/A^(2)]
51    //  [DEFAULT]=sld_head=2e-6 [1/A^(2)]
52    double sld_head;
53        /// scattering density length of solvent [1/A^(2)]
54    //  [DEFAULT]=sld_solvent=6e-6 [1/A^(2)]
55    double sld_solvent;
56         /// Number of lamellar plates
57    //  [DEFAULT]=n_plates=30
58    double n_plates;
59    /// caille parameters
60    //  [DEFAULT]=caille=0.001
61    double caille;
62        /// Incoherent Background [1/cm]
63        //  [DEFAULT]=background=0.001 [1/cm]
64        double background;
65
66} LamellarPSHGParameters;
67
68
69
70/// 1D scattering function
71double lamellarPS_HG_analytical_1D(LamellarPSHGParameters *pars, double q);
72
73/// 2D scattering function
74double lamellarPS_HG_analytical_2D(LamellarPSHGParameters *pars, double q, double phi);
75double lamellarPS_HG_analytical_2DXY(LamellarPSHGParameters *pars, double qx, double qy);
76
77#endif
Note: See TracBrowser for help on using the repository browser.