ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease4.1.1release4.1.2release4.2.2release_4.0.1ticket1009ticket1094headlessticket12422dresolutionticket1243ticket1249ticket885unittestsaveload
Last change
on this file since 79492222 was
79492222,
checked in by krzywon, 9 years ago

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


Property mode set to
100644

File size:
1.7 KB

Line  

1  #if !defined(flexcyl_ellipX_h) 

2  #define flexcyl_ellipX_h 

3  #include "parameters.hh" 

4  

5  /** Structure definition for Flexible cylinder w/ EllipX parameters 

6  * [PYTHONCLASS] = FlexCylEllipXModel 

7  * [DISP_PARAMS] = length, kuhn_length, radius, axis_ratio 

8  [DESCRIPTION] = <text> Note : scale and contrast=sldCylsldSolv are both multiplicative factors in the 

9  model and are perfectly correlated. One or 

10  both of these parameters must be held fixed 

11  during model fitting. 

12  </text> 

13  [FIXED]= <text>length.width; kuhn_length.width; radius.width; axis_ratio.width</text> 

14  [ORIENTATION_PARAMS]= <text></text> 

15  **/ 

16  

17  class FlexCylEllipXModel{ 

18  public: 

19  // Model parameters 

20  /// Scale factor 

21  // [DEFAULT]=scale=1.0 

22  Parameter scale; 

23  /// Length of the flexible cylinder [A] 

24  // [DEFAULT]=length=1000 [A] 

25  Parameter length; 

26  /// Kuhn length of the flexible cylinder [A] 

27  // [DEFAULT]=kuhn_length=100 [A] 

28  Parameter kuhn_length; 

29  /// Radius of the flexible cylinder [A] 

30  // [DEFAULT]=radius=20.0 [A] 

31  Parameter radius; 

32  /// axis_ratio (major_radius/radius 

33  // [DEFAULT]=axis_ratio=1.5 

34  Parameter axis_ratio; 

35  /// SLD of cylinder [1/A^(2)] 

36  // [DEFAULT]=sldCyl=1.0e6 [1/A^(2)] 

37  Parameter sldCyl; 

38  /// SLD of solvent [1/A^(2)] 

39  // [DEFAULT]=sldSolv=6.3e6 [1/A^(2)] 

40  Parameter sldSolv; 

41  /// Incoherent Background [1/cm] 

42  // [DEFAULT]=background=0.0001 [1/cm] 

43  Parameter background; 

44  

45  // Constructor 

46  FlexCylEllipXModel(); 

47  

48  // Operators to get I(Q) 

49  double operator()(double q); 

50  double operator()(double qx, double qy); 

51  double calculate_ER(); 

52  double calculate_VR(); 

53  double evaluate_rphi(double q, double phi); 

54  }; 

55  

56  #endif 

Note: See
TracBrowser
for help on using the repository browser.