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

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 793c988 was 27a0771, checked in by Gervaise Alina <gervyh@…>, 15 years ago

add more models

  • Property mode set to 100644
File size: 1.5 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
10   [DESCRIPTION] = <text> Calculates the scattered intensity from a lyotropic lamellar phase</text>
11   [FIXED]= delta.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=400 [A]
21    double spacing;
22        /// bilayer thicknes [A]
23    //  [DEFAULT]=delta=30 [A]
24    double delta;
25        /// polydispersity of the bilayer thickness  [A]
26    //  [DEFAULT]=sigma=0.15
27    double sigma;
28    /// Contrast [1/A²]
29    //  [DEFAULT]=contrast=5.3e-6 [1/A²]
30    double contrast;
31         /// Number of lamellar plates
32    //  [DEFAULT]=n_plates=20
33    double n_plates;
34    /// caille parameters
35    //  [DEFAULT]=caille=0.1
36    double caille;
37        /// Incoherent Background [1/cm]
38        //  [DEFAULT]=background=0.0 [1/cm]
39        double background;
40   
41} LamellarPSParameters;
42
43
44
45/// 1D scattering function
46double lamellarPS_analytical_1D(LamellarPSParameters *pars, double q);
47
48/// 2D scattering function
49double lamellarPS_analytical_2D(LamellarPSParameters *pars, double q, double phi);
50double lamellarPS_analytical_2DXY(LamellarPSParameters *pars, double qx, double qy);
51double lamellarPS_analytical_2D_scaled(LamellarPSParameters *pars, double q, double q_x, double q_y);
52
53#endif
Note: See TracBrowser for help on using the repository browser.