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 34c3020 was
34c3020,
checked in by Gervaise Alina <gervyh@…>, 15 years ago
|
add model1D
|
-
Property mode set to
100644
|
File size:
1.2 KB
|
Rev | Line | |
---|
[34c3020] | 1 | #if !defined(lamellar_h) |
---|
| 2 | #define lamellar_h |
---|
| 3 | /** Structure definition for lamellar parameters |
---|
| 4 | * [PYTHONCLASS] = LamellarModel |
---|
| 5 | * [DISP_PARAMS] = delta |
---|
| 6 | [DESCRIPTION] = <text> I(q)= 2*pi*P(q)/(delta *q^(2)) |
---|
| 7 | where: |
---|
| 8 | P(q)=2*(contrast/q)^(2)*(1-cos(q*delta)*e^(1/2*(q*sigma)^(2)) |
---|
| 9 | </text> |
---|
| 10 | [FIXED]= delta.width |
---|
| 11 | [ORIENTATION_PARAMS]= |
---|
| 12 | **/ |
---|
| 13 | typedef struct { |
---|
| 14 | /// Scale factor |
---|
| 15 | // [DEFAULT]=scale=1.0 |
---|
| 16 | double scale; |
---|
| 17 | /// delta bilayer thickness [A] |
---|
| 18 | // [DEFAULT]=delta=50.0 [A] |
---|
| 19 | double delta; |
---|
| 20 | /// variation in bilayer thickness |
---|
| 21 | // [DEFAULT]=sigma=0.15 |
---|
| 22 | double sigma; |
---|
| 23 | /// Contrast [1/A²] |
---|
| 24 | // [DEFAULT]=contrast=5.3e-6 [1/A²] |
---|
| 25 | double contrast; |
---|
| 26 | /// Incoherent Background [1/cm] 0.00 |
---|
| 27 | // [DEFAULT]=background=0.0 [1/cm] |
---|
| 28 | double background; |
---|
| 29 | |
---|
| 30 | |
---|
| 31 | } LamellarParameters; |
---|
| 32 | |
---|
| 33 | |
---|
| 34 | |
---|
| 35 | /// 1D scattering function |
---|
| 36 | double lamellar_analytical_1D(LamellarParameters *pars, double q); |
---|
| 37 | |
---|
| 38 | /// 2D scattering function |
---|
| 39 | double lamellar_analytical_2D(LamellarParameters *pars, double q, double phi); |
---|
| 40 | double lamellar_analytical_2DXY(LamellarParameters *pars, double qx, double qy); |
---|
| 41 | double lamellar_analytical_2D_scaled(LamellarParameters *pars, double q, double q_x, double q_y); |
---|
| 42 | |
---|
| 43 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.