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

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 6e93a02 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.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] = delta, 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                contrast = SLD_solvent - SLD_bilayer
24                n_plate = # of Lamellar plates
25                caille = Caille parameter (<0.8 or <1)
26                background = incoherent bgd
27                scale = scale factor
28</text>
29   [FIXED]= <text>delta.width; spacing.width</text>
30   [ORIENTATION_PARAMS]=
31
32 **/
33typedef struct {
34    /// Scale factor
35    //  [DEFAULT]=scale=1.0
36    double scale;
37    /// repeat spacing of the lamellar [A]
38    //  [DEFAULT]=spacing=400 [A]
39    double spacing;
40        /// bilayer thicknes [A]
41    //  [DEFAULT]=delta=30 [A]
42    double delta;
43    /// Contrast [1/A^(2)]
44    //  [DEFAULT]=contrast=5.3e-6 [1/A^(2)]
45    double contrast;
46         /// Number of lamellar plates
47    //  [DEFAULT]=n_plates=20
48    double n_plates;
49    /// caille parameters
50    //  [DEFAULT]=caille=0.1
51    double caille;
52        /// Incoherent Background [1/cm]
53        //  [DEFAULT]=background=0.0 [1/cm]
54        double background;
55
56} LamellarPSParameters;
57
58/// kernel
59double LamellarPS_kernel(double dp[], double q);
60/// 1D scattering function
61double lamellarPS_analytical_1D(LamellarPSParameters *pars, double q);
62
63/// 2D scattering function
64double lamellarPS_analytical_2D(LamellarPSParameters *pars, double q, double phi);
65double lamellarPS_analytical_2DXY(LamellarPSParameters *pars, double qx, double qy);
66
67#endif
Note: See TracBrowser for help on using the repository browser.