Debian Codegraph @

include/BALL/MOLMEC/PARAMETER/charmmEEF1.h

raw symbols SCIP
1 // -*- Mode: C++; tab-width: 2; -*-
2 // vi: set ts=2:
3 //
4
5 // Molecular Mechanics Parameter: class describing parameters needed
6 // for the EEF1 solvation component in the CHARMM force field
7
8 #ifndef BALL_MOLMEC_PARAMETER_CHARMMEEF1_H
9 #define BALL_MOLMEC_PARAMETER_CHARMMEEF1_H
10
11 #ifndef BALL_FORMAT_PARAMETERSECTION_H
12 # include <BALL/FORMAT/parameterSection.h>
13 #endif
14
15 #ifndef BALL_MOLMEC_PARAMETER_ATOMTYPES_H
16 # include <BALL/MOLMEC/PARAMETER/atomTypes.h>
17 #endif
18
19 namespace BALL
20 {
21 /** Force Field Parameter Section for CHARMM EEF1.
22 This class reads and administers a parameter set of solvation
23 parameters for the CHARMM/EEF1 force field (Lazaridis, Karplus, ???). \par
24 armmEEF1.h
25
26 \ingroup MolmecParameters
27 */
28 class BALL_EXPORT CharmmEEF1
29 : public ParameterSection
30 {
31 public:
32
33 /** ?????
34 */
35 struct Values
36 {
37 /// ?????
38 float V;
39 /// ?????
40 float dG_ref;
41 /// ?????
42 float dG_free;
43 /// ?????
44 float r_min;
45 /// ?????
46 float sig_w;
47 /// ?????
48 float dH_ref;
49 /// ?????
50 float Cp_ref;
51 };
52
53 /** ?????
54 */
55 struct Data
56 {
57 /// ?????
58 Atom* atom;
59 /// ?????
60 Values values;
61 };
62
63
64 /** @name Constructors and Destructor
65 */
66 //@{
67
68 /** Default constructor.
69 */
70 CharmmEEF1() ;
71
72 /** Copy constructor
73 */
74 CharmmEEF1(const CharmmEEF1& charmm_EEF1) ;
75
76 /** Destructor.
77 */
78 virtual ~CharmmEEF1() ;
79
80 /** Clear method.
81 */
82 virtual void clear() ;
83
84 //@}
85
86 /** Reads a parameter section from an INI file.
87 This method reads the section given in section_name from ini_file,
88 interprets (if given) a format line, reads the data from this
89 section according to the format, and builds some datastructures for
90 fast and easy acces this data.
91 */
92 virtual bool extractSection(ForceFieldParameters& parameters,
93 const String& section_name) ;
94
95 /** ?????
96 */
97 virtual bool extractSection(Parameters& parameters,
98 const String& section_name) ;
99
100 /** Queries whether a parameter set is defined for the given atom type.
101 */
102 bool hasParameters(Atom::Type I) const ;
103
104 /** Returns the parameters for a given atom type combination.
105 */
106 CharmmEEF1::Values getParameters(Atom::Type I) const ;
107
108 /** Assign the parameters for a given atom type combination.
109 If no parameters are defined for this combination, false is
110 returned and nothing is changed.
111 */
112 bool assignParameters(CharmmEEF1::Values& parameters, Atom::Type I)
113 const ;
114
115 /** @name Assignment
116 */
117 //@{
118
119 /** Assignment operator
120 */
121 const CharmmEEF1& operator = (const CharmmEEF1& charmm_EEF1) ;
122
123 //@}
124 /** @name Predicates
125 */
126 //@{
127
128 /** Equality operator
129 */
130 bool operator == (const CharmmEEF1& charmm_EEF1) const ;
131
132 //@}
133
134 protected:
135
136 //_ ?????
137 Size number_of_atom_types_;
138
139 //_ ?????
140 float* V_;
141
142 //_ ?????
143 float* dG_ref_;
144
145 //_ ?????
146 float* dG_free_;
147
148 //_ ?????
149 float* dH_ref_;
150
151 //_ ?????
152 float* Cp_ref_;
153
154 //_ ?????
155 float* sig_w_;
156
157 //_ ?????
158 float* R_min_;
159
160 //_ ?????
161 bool* is_defined_;
162 };
163 } // namespace BALL
164
165 #endif // BALL_MOLMEC_PARAMETER_CHARMMEEF1_H