/usr/include/BALL/MOLMEC/AMBER/amber.h is in libball1.4-dev 1.4.3~beta1-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 | // -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
// Molecular Mechanics: Amber force field class
#ifndef BALL_MOLMEC_AMBER_AMBER_H
#define BALL_MOLMEC_AMBER_AMBER_H
#ifndef BALL_COMMON_H
# include <BALL/common.h>
#endif
#ifndef BALL_MOLMEC_COMMON_FORCEFIELD_H
# include <BALL/MOLMEC/COMMON/forceField.h>
#endif
#ifndef BALL_KERNEL_SYSTEM_H
# include <BALL/KERNEL/system.h>
#endif
#ifndef BALL_COMMON_EXCEPTION_H
# include <BALL/COMMON/exception.h>
#endif
namespace BALL
{
/** AMBER force field class.
\ingroup AMBER
*/
class BALL_EXPORT AmberFF
: public ForceField
{
public:
/** @name Constant Definitions
*/
//@{
/** Option names
*/
struct BALL_EXPORT Option
{
/** The parameter file name (@see Default::FILENAME)
*/
static const char* FILENAME;
/** Nonbonded cutoff. This value is used as cutoff radius in
calculations of nonbonded interactions. The unit of this option
is \f${\AA}\f$ (@see Default::NONBONDED_CUTOFF)
*/
static const char* NONBONDED_CUTOFF;
/** Van der Waals cutoff
*/
static const char* VDW_CUTOFF;
/** Van der Waals cuton
*/
static const char* VDW_CUTON;
/** Electrostatic cutoff
*/
static const char* ELECTROSTATIC_CUTOFF;
/** Electrostatic cuton
*/
static const char* ELECTROSTATIC_CUTON;
/** 1-4 vdw interaction scaling factor.
*/
static const char* SCALING_VDW_1_4;
/** 1-4 electrostatic interaction scaling factor.
*/
static const char* SCALING_ELECTROSTATIC_1_4;
/** use of distance dependent dielectric constant
*/
static const char* DISTANCE_DEPENDENT_DIELECTRIC;
/** automatically assign charges to the system (during setup)
*/
static const char* ASSIGN_CHARGES;
/** automatically assign type names to the system (during setup)
*/
static const char* ASSIGN_TYPENAMES;
/** automatically assign types to the system's atoms (during setup)
*/
static const char* ASSIGN_TYPES;
/** during charge assignment, overwrite even non-zero charges
*/
static const char* OVERWRITE_CHARGES;
/** during charge assignment, overwrite even non-empty type names
*/
static const char* OVERWRITE_TYPENAMES;
};
/** Default values for AMBER options.
*/
struct BALL_EXPORT Default
{
/** Default filename for the parameter file (@see Option::FILENAME).
*/
static const char* FILENAME;
/** Default non bonded cutoff of 20.0 \f${\AA}\f$.
*/
static const float NONBONDED_CUTOFF;
/** Default van der Waals cutoff of 15.0 \f${\AA}\f$.
*/
static const float VDW_CUTOFF;
/** Default van der Waals cuton of 13.0 \f${\AA}\f$.
*/
static const float VDW_CUTON;
/** Default electrostatic cutoff of 15.0 \f${\AA}\f$.
*/
static const float ELECTROSTATIC_CUTOFF;
/** Default electrostatic cuton of 13.0 \f${\AA}\f$.
*/
static const float ELECTROSTATIC_CUTON;
/** Default electrosstatic scaling factor for 1-4 interaction. The
default is 2.0.
*/
static const float SCALING_ELECTROSTATIC_1_4;
/** Vdw scaling factor for 1-4 interaction
*/
static const float SCALING_VDW_1_4;
/** Use of distance dependent dielectric constant.
default: false
*/
static const bool DISTANCE_DEPENDENT_DIELECTRIC;
/** automatically assign charges to the system (during setup)
*/
static const bool ASSIGN_CHARGES;
/** automatically assign type names to the system (during setup)
*/
static const bool ASSIGN_TYPENAMES;
/** automatically assign types to the system's atoms (during setup)
*/
static const bool ASSIGN_TYPES;
/** during charge assignment, overwrite even non-zero charges
*/
static const bool OVERWRITE_CHARGES;
/** during charge assignment, overwrite even non-empty type names
*/
static const bool OVERWRITE_TYPENAMES;
};
//@}
/** @name Constructors and Destructor
*/
//@{
BALL_CREATE(AmberFF)
/** Default constructor.
*/
AmberFF();
/** Constructor.
*/
AmberFF(System& system);
/** Constructor.
*/
AmberFF(System& system, const Options& options);
/** Copy constructor
*/
AmberFF(const AmberFF& force_field);
/** Destructor.
*/
virtual ~AmberFF();
//@}
/** @name Assignment
*/
//@{
/** Assignment operator
*/
const AmberFF& operator = (const AmberFF& force_field)
;
/** Clear method
*/
virtual void clear()
;
//@}
/** @name Setup Methods
*/
//@{
/** Force field specific setup
*/
virtual bool specificSetup()
throw(Exception::TooManyErrors);
//@}
/** @name Accessors specific to the AMBER force field
*/
//@{
/** Return the bond stretch contribution to the total energy
*/
double getStretchEnergy() const;
/** Return the angle bend contribution to the total energy
*/
double getBendEnergy() const;
/** Return the torsion contribution to the total energy.
This energy comprises proper and improper torsions.
*/
double getTorsionEnergy() const;
/** Return the nonbonded contribution to the total energy.
This energy comprises Van der Waals energy, hydrogen bond energy, and elesctrostatic energy.
*/
double getNonbondedEnergy() const;
/** Return the electrostatic contribution to the total energy.
*/
double getESEnergy() const;
/** Return the Van der Waals and hydrogen bond contribution to the total energy.
*/
double getVdWEnergy() const;
/** Return true, if the parameters have already been initialized
*/
bool hasInitializedParameters() const;
/** Return the recommended number of iterations between updates.
This method return 20 as a default value.
*/
Size getUpdateFrequency() const;
/// Get the current results in String form
virtual String getResults() const
;
//@}
protected:
String filename_;
bool parameters_initialized_;
};
} // namespace BALL
#endif // BALL_MOLMEC_AMBER_H
|