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 98b12205 was
6319646,
checked in by Jae Cho <jhjcho@…>, 13 years ago
|
new includes for scale fix for P*S
|
-
Property mode set to
100644
|
File size:
1.6 KB
|
Rev | Line | |
---|
[503a972] | 1 | #if !defined(lamellarFF_HG_h) |
---|
| 2 | #define lamellarFF_HG_h |
---|
| 3 | #include "parameters.hh" |
---|
| 4 | |
---|
| 5 | /** Structure definition for lamellar parameters |
---|
| 6 | * [PYTHONCLASS] = LamellarFFHGModel |
---|
| 7 | * [DISP_PARAMS] = t_length, h_thickness |
---|
| 8 | [DESCRIPTION] = <text> Parameters: t_length = tail length, h_thickness = head thickness, |
---|
| 9 | scale = Scale factor, |
---|
| 10 | background = incoherent Background |
---|
| 11 | sld_tail = tail scattering length density , |
---|
| 12 | sld_solvent = solvent scattering length density. |
---|
| 13 | NOTE: The total bilayer thickness |
---|
| 14 | = 2(h_thickness+ t_length). |
---|
| 15 | |
---|
| 16 | </text> |
---|
| 17 | [FIXED]= t_length.width, h_thickness.width |
---|
| 18 | [ORIENTATION_PARAMS]= |
---|
| 19 | **/ |
---|
| 20 | |
---|
| 21 | class LamellarFFHGModel{ |
---|
| 22 | public: |
---|
| 23 | // Model parameters |
---|
| 24 | /// Scale factor |
---|
| 25 | // [DEFAULT]=scale=1.0 |
---|
| 26 | Parameter scale; |
---|
| 27 | /// tail length [A] |
---|
| 28 | // [DEFAULT]=t_length=15.0 [A] |
---|
| 29 | Parameter t_length; |
---|
| 30 | /// head thickness |
---|
| 31 | // [DEFAULT]=h_thickness=10.0 [A] |
---|
| 32 | Parameter h_thickness; |
---|
| 33 | /// tail scrattering length density[1/A^(2)] |
---|
| 34 | // [DEFAULT]=sld_tail=4e-7 [1/A^(2)] |
---|
| 35 | Parameter sld_tail; |
---|
| 36 | /// head group scrattering length density[1/A^(2)] |
---|
| 37 | // [DEFAULT]=sld_head=3e-6 [1/A^(2)] |
---|
| 38 | Parameter sld_head; |
---|
| 39 | /// solvent scrattering length density[1/A^(2)] |
---|
| 40 | // [DEFAULT]=sld_solvent=6e-6 [1/A^(2)] |
---|
| 41 | Parameter sld_solvent; |
---|
| 42 | /// Incoherent Background [1/cm] 0.00 |
---|
| 43 | // [DEFAULT]=background=0.0 [1/cm] |
---|
| 44 | Parameter background; |
---|
| 45 | |
---|
| 46 | // Constructor |
---|
| 47 | LamellarFFHGModel(); |
---|
| 48 | |
---|
| 49 | // Operators to get I(Q) |
---|
| 50 | double operator()(double q); |
---|
| 51 | double operator()(double qx, double qy); |
---|
| 52 | double calculate_ER(); |
---|
[6319646] | 53 | double calculate_VR(); |
---|
[503a972] | 54 | double evaluate_rphi(double q, double phi); |
---|
| 55 | }; |
---|
| 56 | |
---|
| 57 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.