BALL 1.5.0
Loading...
Searching...
No Matches
BALL::AmberFF Class Reference

#include <BALL/MOLMEC/AMBER/amber.h>

Inheritance diagram for BALL::AmberFF:
BALL::ForceField

Classes

struct  Option
struct  Default

Public Member Functions

Constructors and Destructor
 AmberFF ()
 AmberFF (System &system)
 AmberFF (System &system, const Options &options)
 AmberFF (const AmberFF &force_field)
virtual ~AmberFF ()
Assignment
const AmberFFoperator= (const AmberFF &force_field)
virtual void clear ()
Setup Methods
virtual bool specificSetup ()
Public Member Functions inherited from BALL::ForceField
 ForceField ()
 ForceField (System &system)
 ForceField (System &system, const Options &options)
 ForceField (const ForceField &force_field)
virtual ~ForceField ()
ForceFieldoperator= (const ForceField &force_field)
bool isValid () const
bool setup (System &system)
bool setup (System &system, const Options &options)
void setMaximumNumberOfErrors (Size nr)
Size getMaximumNumberOfErrors () const
HashSet< const Atom * > & getUnassignedAtoms ()
 Get the atoms, for which the force field setup failed.
void setName (const String &name)
String getName () const
Size getNumberOfAtoms () const
Size getNumberOfMovableAtoms () const
BALL_INLINE const AtomVectorgetAtoms () const
BALL_INLINE SystemgetSystem ()
BALL_INLINE const SystemgetSystem () const
BALL_INLINE bool getUseSelection () const
BALL_INLINE void disableSelection ()
BALL_INLINE void enableSelection ()
BALL_INLINE bool isSelectionEnabled () const
ForceFieldParametersgetParameters ()
Size countComponents () const
const TimeStampgetUpdateTime () const
const TimeStampgetSetupTime () const
void insertComponent (ForceFieldComponent *force_field_component)
void removeComponent (const ForceFieldComponent *force_field_component)
void removeComponent (const String &name)
ForceFieldComponentgetComponent (const Size index) const
ForceFieldComponentgetComponent (const String &name) const
double getEnergy () const
double updateEnergy ()
void updateForces ()
double getRMSGradient () const
virtual void update ()
std::ostream & error ()

Accessors specific to the AMBER force field

String filename_
bool parameters_initialized_
double getStretchEnergy () const
double getBendEnergy () const
double getTorsionEnergy () const
double getNonbondedEnergy () const
double getESEnergy () const
double getVdWEnergy () const
bool hasInitializedParameters () const
Size getUpdateFrequency () const
virtual String getResults () const
 Get the current results in String form.

Additional Inherited Members

Public Types inherited from BALL::ForceField
typedef std::vector< std::pair< Atom *, Atom * > > PairVector
Options options
PeriodicBoundary periodic_boundary
void collectAtoms_ (const System &system)
void sortSelectedAtomVector_ ()
virtual void performRequiredUpdates_ ()
Systemsystem_
AtomVector atoms_
ForceFieldParameters parameters_
bool valid_
String name_
double energy_
vector< ForceFieldComponent * > components_
Size number_of_movable_atoms_
bool use_selection_
bool selection_enabled_
TimeStamp update_time_stamp_
TimeStamp setup_time_stamp_
HashSet< const Atom * > unassigned_atoms_
Size max_number_of_errors_
Size number_of_errors_

Detailed Description

AMBER force field class.

Definition at line 31 of file amber.h.

Constructor & Destructor Documentation

◆ AmberFF() [1/4]

BALL::AmberFF::AmberFF ( )

Default constructor.

◆ AmberFF() [2/4]

BALL::AmberFF::AmberFF ( System & system)

Constructor.

◆ AmberFF() [3/4]

BALL::AmberFF::AmberFF ( System & system,
const Options & options )

Constructor.

◆ AmberFF() [4/4]

BALL::AmberFF::AmberFF ( const AmberFF & force_field)

Copy constructor

◆ ~AmberFF()

virtual BALL::AmberFF::~AmberFF ( )
virtual

Destructor.

Member Function Documentation

◆ clear()

virtual void BALL::AmberFF::clear ( )
virtual

Clear method

Reimplemented from BALL::ForceField.

◆ getBendEnergy()

double BALL::AmberFF::getBendEnergy ( ) const

Return the angle bend contribution to the total energy

◆ getESEnergy()

double BALL::AmberFF::getESEnergy ( ) const

Return the electrostatic contribution to the total energy.

◆ getNonbondedEnergy()

double BALL::AmberFF::getNonbondedEnergy ( ) const

Return the nonbonded contribution to the total energy. This energy comprises Van der Waals energy, hydrogen bond energy, and elesctrostatic energy.

◆ getResults()

virtual String BALL::AmberFF::getResults ( ) const
virtual

Get the current results in String form.

Reimplemented from BALL::ForceField.

◆ getStretchEnergy()

double BALL::AmberFF::getStretchEnergy ( ) const

Return the bond stretch contribution to the total energy

◆ getTorsionEnergy()

double BALL::AmberFF::getTorsionEnergy ( ) const

Return the torsion contribution to the total energy. This energy comprises proper and improper torsions.

◆ getUpdateFrequency()

Size BALL::AmberFF::getUpdateFrequency ( ) const
virtual

Return the recommended number of iterations between updates. This method return 20 as a default value.

Reimplemented from BALL::ForceField.

◆ getVdWEnergy()

double BALL::AmberFF::getVdWEnergy ( ) const

Return the Van der Waals and hydrogen bond contribution to the total energy.

◆ hasInitializedParameters()

bool BALL::AmberFF::hasInitializedParameters ( ) const

Return true, if the parameters have already been initialized

◆ operator=()

const AmberFF & BALL::AmberFF::operator= ( const AmberFF & force_field)

Assignment operator

◆ specificSetup()

virtual bool BALL::AmberFF::specificSetup ( )
virtual

Force field specific setup

Exceptions
BALL::Exception::TooManyErrors

Reimplemented from BALL::ForceField.

Member Data Documentation

◆ filename_

String BALL::AmberFF::filename_
protected

Definition at line 267 of file amber.h.

◆ parameters_initialized_

bool BALL::AmberFF::parameters_initialized_
protected

Definition at line 269 of file amber.h.