Debian Codegraph @

include/BALL/MOLMEC/CHARMM/charmmImproperTorsion.h

raw symbols SCIP
1 // -*- Mode: C++; tab-width: 2; -*-
2 // vi: set ts=2:
3 //
4
5 // Molecular Mechanics: Charmm force field, bond stretch component
6
7 #ifndef BALL_MOLMEC_CHARMM_CHARMMIMPROPERTORSION_H
8 #define BALL_MOLMEC_CHARMM_CHARMMIMPROPERTORSION_H
9
10 #ifndef BALL_COMMON_H
11 # include <BALL/common.h>
12 #endif
13
14 #ifndef BALL_MOLMEC_PARAMETER_QUADRATICIMPROPERTORSION_H
15 # include <BALL/MOLMEC/PARAMETER/quadraticImproperTorsion.h>
16 #endif
17
18 #ifndef BALL_MOLMEC_PARAMETER_RESIDUETORSIONS_H
19 # include <BALL/MOLMEC/PARAMETER/residueTorsions.h>
20 #endif
21
22 #ifndef BALL_MOLMEC_COMMON_FORCEFIELDCOMPONENT_H
23 # include <BALL/MOLMEC/COMMON/forceFieldComponent.h>
24 #endif
25
26 #ifndef BALL_MOLMEC_COMMON_FORCEFIELD_H
27 # include <BALL/MOLMEC/COMMON/forceField.h>
28 #endif
29
30 namespace BALL
31 {
32 /** Charmm improper torsion component.
33 The CHARMM force field employs a harmonic out-of-plane potential for improper
34 torsions. An imporper torsion is defined for four atoms <i> A </i>, <i> B </i>, <i> C </i>,
35 and <i> D </i> where <i> A </i> is the central atom <i> B </i>, <i> C </i>, and <i> D </i> are bound to. \par
36 The out-of-plane-angle <b> phi </b> is defined as the angle between the planes defined
37 by <i> ABC </i> and <i> BCD </i>.
38 The improper torsion energy $E_{imp}$ is then defined as
39 $ E_{imp} = k (\theta - \theta_0)^2 $
40 where $k$ and $\theta_0$ are constants read from the parameter section and depend on
41 the atom types of <i> A </i>, <i> B </i>, <i> C </i>, and <i> D </i>. \par
42
43 \ingroup CHARMM
44 */
45 class BALL_EXPORT CharmmImproperTorsion
46 : public ForceFieldComponent
47 {
48 public:
49
50 /// flag to enable improper torsions
51 #define CHARMM_IMPROPER_TORSIONS_ENABLED "enable IT"
52
53 /** @name Constructors and Destructors
54 */
55 //@{
56
57 BALL_CREATE(CharmmImproperTorsion)
58
59 /** Default constructor.
60 */
61 CharmmImproperTorsion();
62
63 /** Constructor.
64 */
65 CharmmImproperTorsion(ForceField& force_field);
66
67 /** Copy constructor
68 */
69 CharmmImproperTorsion(const CharmmImproperTorsion& charmm_stretch);
70
71 /** Destructor.
72 */
73 virtual ~CharmmImproperTorsion();
74
75 //@}
76 /** @name Setup Methods
77 */
78 //@{
79
80 /** Setup method.
81 * @throws BALL::Exception::TooManyErrors
82 */
83 virtual bool setup();
84
85 //@}
86 /** @name Accessors
87 */
88 //@{
89
90 /** Calculates and returns the component's energy.
91 */
92 virtual double updateEnergy();
93
94 /** Calculates and returns the component's forces.
95 */
96 virtual void updateForces();
97
98 //@}
99
100 private:
101
102 /*_ @name Private Attributes
103 */
104 //_@{
105
106 /*_ array with the torsions
107 */
108 vector<QuadraticImproperTorsion::Data> impropers_;
109
110 QuadraticImproperTorsion improper_parameters_;
111
112 ResidueTorsions improper_atoms_;
113
114 //_@}
115
116 };
117 } // namespace BALL
118
119 #endif // BALL_MOLMEC_CHARMM_CHARMMIMPROPERTORSION_H