source: sasview/sansmodels/prototypes/src/simcylinder.h @ 5548954

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

moving a file

  • Property mode set to 100644
File size: 1.1 KB
Line 
1#if !defined(simcylinder_h)
2#define simcylinder_h
3
4#include "modelCalculations.h"
5
6/** Structure definition for simulated cylinder parameters
7 * [PYTHONCLASS] = SimCylinder
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    /// Maximum Q (for numerical calculations)
31    //  [DEFAULT]=qmax=0.1
32    double qmax;
33    // Variables for numerical calculations
34    CalcParameters calcPars;
35   
36} SimCylinderParameters;
37
38/// 1D scattering function
39double simcylinder_analytical_1D(SimCylinderParameters *pars, double q);
40
41/// 2D scattering function
42double simcylinder_analytical_2D(SimCylinderParameters *pars, double q, double phi);
43
44int simcylinder_generatePoints(SpacePoint * points, int n, double radius, double length);
45
46#endif
Note: See TracBrowser for help on using the repository browser.