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 d6513cd was
0f5bc9f,
checked in by Mathieu Doucet <doucetm@…>, 16 years ago
|
Update of all C models to the new style of C++ models
|
-
Property mode set to
100644
|
File size:
1.8 KB
|
Rev | Line | |
---|
[ae3ce4e] | 1 | #if !defined(core_shell_cylinder_h) |
---|
| 2 | #define core_shell_cylinder_h |
---|
| 3 | |
---|
[0f5bc9f] | 4 | /** |
---|
| 5 | * Structure definition for core-shell cylinder parameters |
---|
[ae3ce4e] | 6 | */ |
---|
| 7 | //[PYTHONCLASS] = CoreShellCylinderModel |
---|
[0f5bc9f] | 8 | //[DISP_PARAMS] = radius, thickness, length, axis_theta, axis_phi |
---|
[ae3ce4e] | 9 | typedef struct { |
---|
[0f5bc9f] | 10 | /// Scale factor |
---|
[ae3ce4e] | 11 | // [DEFAULT]=scale=1.0 |
---|
| 12 | double scale; |
---|
[0f5bc9f] | 13 | |
---|
[ae3ce4e] | 14 | /// Core radius [A] |
---|
| 15 | // [DEFAULT]=radius=20.0 A |
---|
| 16 | double radius; |
---|
[0f5bc9f] | 17 | |
---|
[ae3ce4e] | 18 | /// Shell thickness [A] |
---|
| 19 | // [DEFAULT]=thickness=10.0 A |
---|
| 20 | double thickness; |
---|
[0f5bc9f] | 21 | |
---|
[ae3ce4e] | 22 | /// Core length [A] |
---|
| 23 | // [DEFAULT]=length=400.0 A |
---|
| 24 | double length; |
---|
[0f5bc9f] | 25 | |
---|
[ae3ce4e] | 26 | /// Core SLD [A-2] |
---|
| 27 | // [DEFAULT]=core_sld=1.0e-6 A-2 |
---|
| 28 | double core_sld; |
---|
[0f5bc9f] | 29 | |
---|
[ae3ce4e] | 30 | /// Shell SLD [A-2] |
---|
| 31 | // [DEFAULT]=shell_sld=4.0e-6 A-2 |
---|
| 32 | double shell_sld; |
---|
[0f5bc9f] | 33 | |
---|
[ae3ce4e] | 34 | /// Solvent SLD [A-2] |
---|
| 35 | // [DEFAULT]=solvent_sld=1.0e-6 A-2 |
---|
| 36 | double solvent_sld; |
---|
[0f5bc9f] | 37 | |
---|
[ae3ce4e] | 38 | /// Incoherent Background [cm-1] |
---|
| 39 | // [DEFAULT]=background=0 cm-1 |
---|
[0f5bc9f] | 40 | double background; |
---|
| 41 | |
---|
[ae3ce4e] | 42 | /// Orientation of the long axis of the core-shell cylinder w/respect incoming beam [rad] |
---|
| 43 | // [DEFAULT]=axis_theta=1.57 rad |
---|
| 44 | double axis_theta; |
---|
[0f5bc9f] | 45 | |
---|
[ae3ce4e] | 46 | /// Orientation of the long axis of the core-shell cylinder in the plane of the detector [rad] |
---|
| 47 | // [DEFAULT]=axis_phi=0.0 rad |
---|
[0f5bc9f] | 48 | double axis_phi; |
---|
| 49 | |
---|
[ae3ce4e] | 50 | } CoreShellCylinderParameters; |
---|
| 51 | |
---|
| 52 | |
---|
| 53 | |
---|
| 54 | /// 1D scattering function |
---|
| 55 | double core_shell_cylinder_analytical_1D(CoreShellCylinderParameters *pars, double q); |
---|
| 56 | |
---|
| 57 | /// 2D scattering function |
---|
| 58 | double core_shell_cylinder_analytical_2D(CoreShellCylinderParameters *pars, double q, double phi); |
---|
| 59 | double core_shell_cylinder_analytical_2DXY(CoreShellCylinderParameters *pars, double qx, double qy); |
---|
| 60 | double core_shell_cylinder_analytical_2D_scaled(CoreShellCylinderParameters *pars, double q, double q_x, double q_y); |
---|
| 61 | |
---|
| 62 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.