BALL  1.4.79
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Protected Attributes | List of all members
BALL::CharmmFF Class Reference

#include <BALL/MOLMEC/CHARMM/charmm.h>

Inheritance diagram for BALL::CharmmFF:
BALL::ForceField

Classes

struct  Default
 
struct  Option
 

Public Member Functions

Constructors and Destructors
 CharmmFF ()
 
 CharmmFF (System &system)
 
 CharmmFF (System &system, const Options &options)
 
 CharmmFF (const CharmmFF &force_field)
 
virtual ~CharmmFF ()
 
Assignment
const CharmmFFoperator= (const CharmmFF &force_field)
 
virtual void clear ()
 
Setup Methods
virtual bool specificSetup () throw (Exception::TooManyErrors)
 
Accessors specific to the CHARMM force field
double getStretchEnergy () const
 
double getBendEnergy () const
 
double getTorsionEnergy () const
 
double getImproperTorsionEnergy () const
 
double getProperTorsionEnergy () const
 
double getNonbondedEnergy () const
 
double getESEnergy () const
 
double getVdWEnergy () const
 
double getSolvationEnergy () const
 
bool hasInitializedParameters () const
 
virtual String getResults () const
 Get the current results in String form. More...
 
- 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. More...
 
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 Size getUpdateFrequency () const
 
virtual void update () throw (Exception::TooManyErrors)
 
std::ostream & error () throw (Exception::TooManyErrors)
 

Protected Attributes

String filename_
 
bool parameters_initialized_
 
- Protected Attributes inherited from BALL::ForceField
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_
 

Additional Inherited Members

- Public Types inherited from BALL::ForceField
typedef std::vector< std::pair
< Atom *, Atom * > > 
PairVector
 
- Public Attributes inherited from BALL::ForceField
Options options
 
PeriodicBoundary periodic_boundary
 
- Protected Member Functions inherited from BALL::ForceField
void collectAtoms_ (const System &system)
 
void sortSelectedAtomVector_ ()
 
virtual void performRequiredUpdates_ ()
 

Detailed Description

CHARMM force field class.

Definition at line 29 of file charmm.h.

Constructor & Destructor Documentation

BALL::CharmmFF::CharmmFF ( )

Default constructor.

BALL::CharmmFF::CharmmFF ( System system)

Constructor.

BALL::CharmmFF::CharmmFF ( System system,
const Options options 
)

Constructor.

BALL::CharmmFF::CharmmFF ( const CharmmFF force_field)

Copy constructor

virtual BALL::CharmmFF::~CharmmFF ( )
virtual

Destructor.

Member Function Documentation

virtual void BALL::CharmmFF::clear ( )
virtual

Clear method

Reimplemented from BALL::ForceField.

double BALL::CharmmFF::getBendEnergy ( ) const

Return the angle bend contribution to the total energy

double BALL::CharmmFF::getESEnergy ( ) const

Return the electrostatic contribution to the total energy.

double BALL::CharmmFF::getImproperTorsionEnergy ( ) const

Return the improper torsion contribution to the total energy.

double BALL::CharmmFF::getNonbondedEnergy ( ) const

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

double BALL::CharmmFF::getProperTorsionEnergy ( ) const

Return the proper torsion contribution to the total energy.

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

Get the current results in String form.

Reimplemented from BALL::ForceField.

double BALL::CharmmFF::getSolvationEnergy ( ) const

Return the solvation contribution to the total energy.

double BALL::CharmmFF::getStretchEnergy ( ) const

Return the bond stretch contribution to the total energy

double BALL::CharmmFF::getTorsionEnergy ( ) const

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

double BALL::CharmmFF::getVdWEnergy ( ) const

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

bool BALL::CharmmFF::hasInitializedParameters ( ) const

Return true, if the parameters have already been initialized

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

Assignment operator

virtual bool BALL::CharmmFF::specificSetup ( )
throw (Exception::TooManyErrors
)
virtual

Force field specific setup

Reimplemented from BALL::ForceField.

Member Data Documentation

String BALL::CharmmFF::filename_
protected

Definition at line 293 of file charmm.h.

bool BALL::CharmmFF::parameters_initialized_
protected

Definition at line 295 of file charmm.h.