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 d8f3cd8 was
7df1a50,
checked in by Jae Cho <jhjcho@…>, 13 years ago
|
moving a file
|
-
Property mode set to
100644
|
File size:
949 bytes
|
Line | |
---|
1 | #if !defined(simspheref_h) |
---|
2 | #define simspheref_h |
---|
3 | |
---|
4 | #include "modelCalculations.h" |
---|
5 | |
---|
6 | /** Structure definition for simulated cylinder parameters |
---|
7 | * [PYTHONCLASS] = SimSphereF |
---|
8 | * */ |
---|
9 | typedef struct { |
---|
10 | /// Scale factor |
---|
11 | // [DEFAULT]=scale=1.0 |
---|
12 | double scale; |
---|
13 | |
---|
14 | /// Radius of the cylinder |
---|
15 | // [DEFAULT]=radius=20.0 |
---|
16 | double radius; |
---|
17 | |
---|
18 | /// Number of space points |
---|
19 | // [DEFAULT]=npoints=50000 |
---|
20 | double npoints; |
---|
21 | |
---|
22 | /// Random number seed |
---|
23 | // [DEFAULT]=seed=1000 |
---|
24 | double seed; |
---|
25 | |
---|
26 | // Variables for numerical calculations |
---|
27 | CalcParameters calcPars; |
---|
28 | |
---|
29 | } SimSphereFParameters; |
---|
30 | |
---|
31 | /// 1D scattering function |
---|
32 | double sphere_fast_analytical_1D(SimSphereFParameters *pars, double q); |
---|
33 | |
---|
34 | /// 2D scattering function |
---|
35 | double sphere_fast_analytical_2D(SimSphereFParameters *pars, double q, double phi); |
---|
36 | |
---|
37 | int sphere_fast_generatePoints(SpacePoint * points, int n, double radius, int seed); |
---|
38 | |
---|
39 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.