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 7945367 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:
1.3 KB
|
Line | |
---|
1 | #if !defined(lamellar_h) |
---|
2 | #define lamellar_h |
---|
3 | #include "parameters.hh" |
---|
4 | |
---|
5 | /** Structure definition for lamellar parameters |
---|
6 | * [PYTHONCLASS] = LamellarModel |
---|
7 | * [DISP_PARAMS] = bi_thick |
---|
8 | [DESCRIPTION] = <text>[Dilute Lamellar Form Factor](from a lyotropic lamellar phase) |
---|
9 | I(q)= 2*pi*P(q)/(delta *q^(2)), where |
---|
10 | P(q)=2*(contrast/q)^(2)*(1-cos(q*delta))^(2)) |
---|
11 | bi_thick = bilayer thickness |
---|
12 | sld_bi = SLD of bilayer |
---|
13 | sld_sol = SLD of solvent |
---|
14 | background = Incoherent background |
---|
15 | scale = scale factor |
---|
16 | |
---|
17 | </text> |
---|
18 | [FIXED]= <text>bi_thick.width</text> |
---|
19 | **/ |
---|
20 | |
---|
21 | class LamellarModel{ |
---|
22 | public: |
---|
23 | // Model parameters |
---|
24 | /// Scale factor |
---|
25 | // [DEFAULT]=scale=1.0 |
---|
26 | Parameter scale; |
---|
27 | /// delta bilayer thickness [A] |
---|
28 | // [DEFAULT]=bi_thick=50.0 [A] |
---|
29 | Parameter bi_thick; |
---|
30 | /// SLD of bilayer [1/A^(2)] |
---|
31 | // [DEFAULT]=sld_bi=1.0e-6 [1/A^(2)] |
---|
32 | Parameter sld_bi; |
---|
33 | /// SLD of solvent [1/A^(2)] |
---|
34 | // [DEFAULT]=sld_sol=6.3e-6 [1/A^(2)] |
---|
35 | Parameter sld_sol; |
---|
36 | /// Incoherent Background [1/cm] 0.00 |
---|
37 | // [DEFAULT]=background=0.0 [1/cm] |
---|
38 | Parameter background; |
---|
39 | // Constructor |
---|
40 | LamellarModel(); |
---|
41 | |
---|
42 | // Operators to get I(Q) |
---|
43 | double operator()(double q); |
---|
44 | double operator()(double qx, double qy); |
---|
45 | double calculate_ER(); |
---|
46 | double calculate_VR(); |
---|
47 | double evaluate_rphi(double q, double phi); |
---|
48 | }; |
---|
49 | |
---|
50 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.