source: sasview/src/sas/models/include/lamellarPS_HG.h @ b2ac7b0

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 b2ac7b0 was 79492222, checked in by krzywon, 10 years ago

Changed the file and folder names to remove all SANS references.

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