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 93f0a586 was
ae3ce4e,
checked in by Mathieu Doucet <doucetm@…>, 17 years ago
|
Moving sansmodels to trunk
|
-
Property mode set to
100644
|
File size:
1.6 KB
|
Line | |
---|
1 | #if !defined(ell_cylinder_h) |
---|
2 | #define ell_cylinder_h |
---|
3 | |
---|
4 | /** Structure definition for cylinder parameters |
---|
5 | * [PYTHONCLASS] = EllipticalCylinderModel |
---|
6 | * */ |
---|
7 | typedef struct { |
---|
8 | /// Scale factor |
---|
9 | // [DEFAULT]=scale=1.0 |
---|
10 | double scale; |
---|
11 | /// Minor radius [A] |
---|
12 | // [DEFAULT]=r_minor=20.0 A |
---|
13 | double r_minor; |
---|
14 | /// Ratio of major/minor radii |
---|
15 | // [DEFAULT]=r_ratio=1.5 A |
---|
16 | double r_ratio; |
---|
17 | /// Length of the cylinder [A] |
---|
18 | // [DEFAULT]=length=400.0 A |
---|
19 | double length; |
---|
20 | /// Contrast [A-2] |
---|
21 | // [DEFAULT]=contrast=3.0e-6 A-2 |
---|
22 | double contrast; |
---|
23 | /// Incoherent Background (cm-1) 0.000 |
---|
24 | // [DEFAULT]=background=0 cm-1 |
---|
25 | double background; |
---|
26 | /// Orientation of the cylinder axis w/respect incoming beam [rad] |
---|
27 | // [DEFAULT]=cyl_theta=1.57 rad |
---|
28 | double cyl_theta; |
---|
29 | /// Orientation of the cylinder in the plane of the detector [rad] |
---|
30 | // [DEFAULT]=cyl_phi=0.0 rad |
---|
31 | double cyl_phi; |
---|
32 | /// Orientation of major radius of the cross-section w/respect vector q [rad] |
---|
33 | // [DEFAULT]=cyl_psi=0.0 rad |
---|
34 | double cyl_psi; |
---|
35 | } EllipticalCylinderParameters; |
---|
36 | |
---|
37 | |
---|
38 | |
---|
39 | /// 1D scattering function |
---|
40 | double elliptical_cylinder_analytical_1D(EllipticalCylinderParameters *pars, double q); |
---|
41 | |
---|
42 | /// 2D scattering function |
---|
43 | double elliptical_cylinder_analytical_2D(EllipticalCylinderParameters *pars, double q, double phi); |
---|
44 | double elliptical_cylinder_analytical_2DXY(EllipticalCylinderParameters *pars, double qx, double qy); |
---|
45 | double elliptical_cylinder_analytical_2D_scaled(EllipticalCylinderParameters *pars, double q, double q_x, double q_y); |
---|
46 | |
---|
47 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.