source: sasview/src/sas/models/include/DiamCyl.h @ 79492222

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 79492222 was 79492222, checked in by krzywon, 8 years ago

Changed the file and folder names to remove all SANS references.

  • Property mode set to 100644
File size: 894 bytes
Line 
1#if !defined(DiamCyl_h)
2#define DiamCyl_h
3#include "parameters.hh"
4
5/**
6* To calculate the 2nd virial coefficient
7* [PYTHONCLASS] = DiamCylFunc
8* [DISP_PARAMS] = radius, length
9  [DESCRIPTION] =<text>To calculate the 2nd virial coefficient for
10  the non-spherical object, then find the
11  radius of sphere that has this value of
12  virial coefficient.
13                                </text>
14        [FIXED]= <text>
15                                radius.width; length.width
16                        </text>
17**/
18
19class DiamCylFunc{
20public:
21  // Model parameters
22  /// Radius [A]
23  //  [DEFAULT]=radius=20.0 A
24  Parameter radius;
25  /// Length [A]
26  //  [DEFAULT]=length= 400 A
27  Parameter length;
28
29  // Constructor
30  DiamCylFunc();
31
32  // Operators to get I(Q)
33  double operator()(double q);
34  double operator()(double qx, double qy);
35  double calculate_ER();
36  double calculate_VR();
37  double evaluate_rphi(double q, double phi);
38};
39
40#endif
Note: See TracBrowser for help on using the repository browser.