source: sasview/sansmodels/src/sans/models/c_extensions/lamellarPS.h @ d9dc518

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

added 2D and model descpt.

  • Property mode set to 100644
File size: 2.1 KB
Line 
1/*
2        TODO: Add 2D model
3*/
4
5#if !defined(lamellarPS_h)
6#define lamellarPS_h
7/** Structure definition for concentrated lamellar form factor parameters
8 * [PYTHONCLASS] = LamellarPSModel
9 * [DISP_PARAMS] = spacing
10   [DESCRIPTION] = <text>[Concentrated Lamellar Form Factor] Calculates the scattered
11           intensity from a lyotropic lamellar phase.
12           The intensity (form factor and structure
13           factor)calculated is for lamellae of
14           uniform scattering length density that
15           are randomly distributed in solution
16           (a powder average). The lamellae thickness
17                is polydisperse. The model can also
18                be applied to large, multi-lamellar vesicles.
19                No resolution smeared version is included
20                in the structure factor of this model.
21                *Parameters: spacing = repeat spacing,
22                delta = bilayer thickness,
23                sigma = variation in bilayer thickness
24                contrast = SLD_solvent - SLD_bilayer
25                n_plate = # of Lamellar plates
26                caille = Caille parameter (<0.8 or <1)
27                background = incoherent bgd
28                scale = scale factor
29</text>
30   [FIXED]= 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=400 [A]
40    double spacing;
41        /// bilayer thicknes [A]
42    //  [DEFAULT]=delta=30 [A]
43    double delta;
44        /// polydispersity of the bilayer thickness  [A]
45    //  [DEFAULT]=sigma=0.15
46    double sigma;
47    /// Contrast [1/A²]
48    //  [DEFAULT]=contrast=5.3e-6 [1/A²]
49    double contrast;
50         /// Number of lamellar plates
51    //  [DEFAULT]=n_plates=20
52    double n_plates;
53    /// caille parameters
54    //  [DEFAULT]=caille=0.1
55    double caille;
56        /// Incoherent Background [1/cm]
57        //  [DEFAULT]=background=0.0 [1/cm]
58        double background;
59
60} LamellarPSParameters;
61
62
63
64/// 1D scattering function
65double lamellarPS_analytical_1D(LamellarPSParameters *pars, double q);
66
67/// 2D scattering function
68double lamellarPS_analytical_2D(LamellarPSParameters *pars, double q, double phi);
69double lamellarPS_analytical_2DXY(LamellarPSParameters *pars, double qx, double qy);
70
71#endif
Note: See TracBrowser for help on using the repository browser.