source: sasview/sansmodels/prototypes/src/simcylinder_fast.h @ ee0f3fc

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 ee0f3fc was 7df1a50, checked in by Jae Cho <jhjcho@…>, 13 years ago

moving a file

  • Property mode set to 100644
File size: 1.4 KB
Line 
1#if !defined(simcylinderf_h)
2#define simcylinderf_h
3
4#include "modelCalculations.h"
5
6/** Structure definition for simulated cylinder parameters
7 * [PYTHONCLASS] = SimCylinderF
8 * */
9typedef 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    /// Length of the cylinder
19    //  [DEFAULT]=length=400.0
20    double length;
21
22    /// Theta angle relative to beam
23    //  [DEFAULT]=theta=0.0
24    double theta;
25
26    /// Phi angle relative to x-axis
27    //  [DEFAULT]=phi=0.0
28    double phi;
29
30    /// Number of space points
31    //  [DEFAULT]=npoints=50000
32    double npoints;
33
34    /// Random number seed
35    //  [DEFAULT]=seed=1000.0
36    double seed;
37
38    // Variables for numerical calculations
39    CalcParameters calcPars;
40   
41} SimCylinderFParameters;
42
43/// 1D scattering function
44double simcylinder_fast_analytical_1D(SimCylinderFParameters *pars, double q);
45
46/// 2D scattering function
47double simcylinder_fast_analytical_2D(SimCylinderFParameters *pars, double q, double phi);
48
49int simcylinder_fast_generatePoints(SpacePoint * points, int n, double radius, double length, int seed);
50SpacePoint fast_rotate(SpacePoint p, double theta, double phi, double omega);
51double simcylinder_simple_analytical_2D(SimCylinderFParameters *pars, double q, double phi);
52
53#endif
Note: See TracBrowser for help on using the repository browser.