source: sasview/sansmodels/src/include/rpa.h @ b4293d2

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 b4293d2 was 101065a, checked in by Mathieu Doucet <doucetm@…>, 13 years ago

keep only header files in c_extensions and rename it 'include'

  • Property mode set to 100644
File size: 3.5 KB
RevLine 
[35aface]1#if !defined(o_h)
2#define rpa_h
[7ffa8196]3#include "parameters.hh"
[35aface]4
5/**
6 * Structure definition for sphere parameters
7 */
[7ffa8196]8//[PYTHONCLASS] = RPAModel
9//[DISP_PARAMS] = background
10//[DESCRIPTION] =<text>  THIS FORMALISM APPLIES TO MULTICOMPONENT POLYMER MIXTURES IN THE
11//                                                      HOMOGENEOUS (MIXED) PHASE REGION ONLY.;
12//                                                      CASE 0: C/D BINARY MIXTURE OF HOMOPOLYMERS
13//                                                      CASE 1: C-D DIBLOCK COPOLYMER
14//                                                      CASE 2: B/C/D TERNARY MIXTURE OF HOMOPOLYMERS
15//                                                      CASE 3: B/C-D MIXTURE OF HOMOPOLYMER B AND
16//                                                              DIBLOCK COPOLYMER C-D
17//                                                      CASE 4: B-C-D TRIBLOCK COPOLYMER
18//                                                      CASE 5: A/B/C/D QUATERNARY MIXTURE OF HOMOPOLYMERS
19//                                                      CASE 6: A/B/C-D MIXTURE OF TWO HOMOPOLYMERS A/B
20//                                                              AND A DIBLOCK C-D
21//                                                      CASE 7: A/B-C-D MIXTURE OF A HOMOPOLYMER A AND A
22//                                                              TRIBLOCK B-C-D
23//                                                      CASE 8: A-B/C-D MIXTURE OF TWO DIBLOCK COPOLYMERS
24//                                                              A-B AND C-D
25//                                                      CASE 9: A-B-C-D FOUR-BLOCK COPOLYMER
26//                                                      See details in the model function help
27//              </text>
28//[FIXED]=  <text></text>
29//[NON_FITTABLE_PARAMS]= <text> lcase_n; Na; Phia; va; La; Nb; Phib; vb; Lb;Nc; Phic; vc; Lc;Nd; Phid; vd; Ld; </text>
30//[ORIENTATION_PARAMS]= <text> </text>
[35aface]31
[7ffa8196]32class RPAModel{
33public:
34  // Model parameters
35  /// The Case number
36  //  [DEFAULT]=lcase_n=0
37  Parameter lcase_n;
[35aface]38
[7ffa8196]39  /// Segment Length ba
40  //  [DEFAULT]=ba= 5.0
41  Parameter ba;
42  /// Segment Length bb
43  //  [DEFAULT]=bb=5.0
44  Parameter bb;
45  /// Segment Length bc
46  //  [DEFAULT]=bc= 5.0
47  Parameter bc;
48  /// Segment Length bd
49  //  [DEFAULT]=bd= 5.0
50  Parameter bd;
[35aface]51
[7ffa8196]52  /// Chi Param ab
53  //  [DEFAULT]=Kab=-0.0004
54  Parameter Kab;
55  /// Chi Param ac
56  //  [DEFAULT]=Kac=-0.0004
57  Parameter Kac;
58  /// Chi Param ad
59  //  [DEFAULT]=Kad=-0.0004
60  Parameter Kad;
61  /// Chi Param bc
62  //  [DEFAULT]=Kbc=-0.0004
63  Parameter Kbc;
64  /// Chi Param bd
65  //  [DEFAULT]=Kbd=-0.0004
66  Parameter Kbd;
67  /// Chi Param cd
68  //  [DEFAULT]=Kcd=-0.0004
69  Parameter Kcd;
[35aface]70
[7ffa8196]71  /// Scale factor
72  //  [DEFAULT]=scale= 1.0
73  Parameter scale;
74  /// Incoherent Background [1/cm]
75  //  [DEFAULT]=background=0 [1/cm]
76  Parameter background;
[35aface]77
[7ffa8196]78  /// Degree OF POLYMERIZATION of a
79  //  [DEFAULT]=Na=1000.0
80  Parameter Na;
81  /// Volume Fraction of a
82  //  [DEFAULT]=Phia=0.25
83  Parameter Phia;
84  /// Specific Volume of a
85  //  [DEFAULT]=va=100.0
86  Parameter va;
87  /// Scattering Length of a
88  //  [DEFAULT]=La=1.0e-012
89  Parameter La;
[35aface]90
[7ffa8196]91  /// Degree OF POLYMERIZATION of b
92  //  [DEFAULT]=Nb=1000.0
93  Parameter Nb;
94  /// Volume Fraction of b
95  //  [DEFAULT]=Phib=0.25
96  Parameter Phib;
97  /// Specific Volume of b
98  //  [DEFAULT]=vb=100.0
99  Parameter vb;
100  /// Scattering Length of b
101  //  [DEFAULT]=Lb=1.0e-012
102  Parameter Lb;
[35aface]103
[7ffa8196]104  /// Degree OF POLYMERIZATION of c
105  //  [DEFAULT]=Nc=1000.0
106  Parameter Nc;
107  /// Volume Fraction of c
108  //  [DEFAULT]=Phic=0.25
109  Parameter Phic;
110  /// Specific Volume of c
111  //  [DEFAULT]=vc=100.0
112  Parameter vc;
113  /// Scattering Length of c
114  //  [DEFAULT]=Lc=1.0e-012
115  Parameter Lc;
[35aface]116
[7ffa8196]117  /// Degree OF POLYMERIZATION of d
118  //  [DEFAULT]=Nd=1000.0
119  Parameter Nd;
120  /// Volume Fraction of d
121  //  [DEFAULT]=Phid=0.25
122  Parameter Phid;
123  /// Specific Volume of d
124  //  [DEFAULT]=vd=100.0
125  Parameter vd;
126  /// Scattering Length of d
127  //  [DEFAULT]=Ld=0.0e-012
128  Parameter Ld;
[35aface]129
[7ffa8196]130  // Constructor
131  RPAModel();
[35aface]132
[7ffa8196]133  // Operators to get I(Q)
134  double operator()(double q);
135  double operator()(double qx, double qy);
136  double calculate_ER();
137  double evaluate_rphi(double q, double phi);
138};
[35aface]139#endif
Note: See TracBrowser for help on using the repository browser.