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 c1e865a was
e6fa43e,
checked in by Jae Cho <jhjcho@…>, 15 years ago
|
more corrections on this model
|
-
Property mode set to
100644
|
File size:
1.5 KB
|
Line | |
---|
1 | /* |
---|
2 | TODO: Add 2D model |
---|
3 | */ |
---|
4 | |
---|
5 | #if !defined(flexible_cylinder_h) |
---|
6 | #define flexible_cylinder_h |
---|
7 | /** Structure definition for Flexible cylinder parameters |
---|
8 | * [PYTHONCLASS] = FlexibleCylinderModel |
---|
9 | * [DISP_PARAMS] = length, kuhn_length, radius |
---|
10 | [DESCRIPTION] = <text> Note : 'scale' and 'contrast' are both multiplicative factors in the |
---|
11 | model and are perfectly correlated. One or |
---|
12 | both of these parameters must be held fixed |
---|
13 | during model fitting. |
---|
14 | </text> |
---|
15 | [FIXED]= <text>length.width; kuhn_length.width; radius.width</text> |
---|
16 | [ORIENTATION_PARAMS]= <text></text> |
---|
17 | |
---|
18 | |
---|
19 | **/ |
---|
20 | typedef struct { |
---|
21 | /// Scale factor |
---|
22 | // [DEFAULT]=scale=1.0 |
---|
23 | double scale; |
---|
24 | /// Length of the flexible cylinder [A] |
---|
25 | // [DEFAULT]=length=1000 [A] |
---|
26 | double length; |
---|
27 | /// Kuhn length of the flexible cylinder [A] |
---|
28 | // [DEFAULT]=kuhn_length=100 [A] |
---|
29 | double kuhn_length; |
---|
30 | /// Radius of the flexible cylinder [A] |
---|
31 | // [DEFAULT]=radius=20.0 [A] |
---|
32 | double radius; |
---|
33 | /// Contrast [1/A²] |
---|
34 | // [DEFAULT]=contrast=5.3e-6 [1/A²] |
---|
35 | double contrast; |
---|
36 | /// Incoherent Background [1/cm] |
---|
37 | // [DEFAULT]=background=0.0001 [1/cm] |
---|
38 | double background; |
---|
39 | |
---|
40 | |
---|
41 | } FlexibleCylinderParameters; |
---|
42 | |
---|
43 | |
---|
44 | |
---|
45 | /// 1D scattering function |
---|
46 | double flexible_cylinder_analytical_1D(FlexibleCylinderParameters *pars, double q); |
---|
47 | |
---|
48 | /// 2D scattering function |
---|
49 | double flexible_cylinder_analytical_2D(FlexibleCylinderParameters *pars, double q, double phi); |
---|
50 | double flexible_cylinder_analytical_2DXY(FlexibleCylinderParameters *pars, double qx, double qy); |
---|
51 | |
---|
52 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.