source: sasview/sansmodels/src/sans/models/c_extensions/lamellar.h @ 42f193a

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 42f193a was 42f193a, checked in by Jae Cho <jhjcho@…>, 15 years ago

some corrections on dips-parameters and adding 2D cal

  • Property mode set to 100644
File size: 1.4 KB
Line 
1#if !defined(lamellar_h)
2#define lamellar_h
3/** Structure definition for lamellar parameters
4 * [PYTHONCLASS] = LamellarModel
5   [DESCRIPTION] = <text>[Dilute Lamellar Form Factor](from a lyotropic lamellar phase)
6           I(q)= 2*pi*P(q)/(delta *q^(2)), where
7                P(q)=2*(contrast/q)^(2)*(1-cos(q*delta)
8                *e^(1/2*(q*sigma)^(2)).
9                delta = bilayer thickness
10                sigma = variation in bilayer thickness
11                        = delta*polydispersity
12                contrast = SLD_solvent - SLD_bilayer
13        Note: the polydispersity in delta is included.
14 </text>
15 **/
16typedef struct {
17    /// Scale factor
18    //  [DEFAULT]=scale=1.0
19    double scale;
20    /// delta bilayer thickness [A]
21    //  [DEFAULT]=delta=50.0 [A]
22    double delta;
23    /// variation in bilayer thickness
24    //  [DEFAULT]=sigma=0.15
25    double sigma;
26    /// Contrast [1/A²]
27    //  [DEFAULT]=contrast=5.3e-6 [1/A²]
28    double contrast;
29        /// Incoherent Background [1/cm] 0.00
30        //  [DEFAULT]=background=0.0 [1/cm]
31        double background;
32
33
34} LamellarParameters;
35
36
37
38/// 1D scattering function
39double lamellar_analytical_1D(LamellarParameters *pars, double q);
40
41/// 2D scattering function
42double lamellar_analytical_2D(LamellarParameters *pars, double q, double phi);
43double lamellar_analytical_2DXY(LamellarParameters *pars, double qx, double qy);
44double lamellar_analytical_2D_scaled(LamellarParameters *pars, double q, double q_x, double q_y);
45
46#endif
Note: See TracBrowser for help on using the repository browser.