#include <BALL/MOLMEC/MDSIMULATION/molecularDynamics.h>
List of all members.
Detailed Description
Molecular Dynamics base class. This class is the base class for classical molecular dynamics simulations. Actual MD classes are derived from this class and then implement the actual simulation classes for the different ensembles or methods.
Constructor & Destructor Documentation
BALL::MolecularDynamics::MolecularDynamics |
( |
|
) |
|
BALL::MolecularDynamics::MolecularDynamics |
( |
ForceField & |
force_field |
) |
|
Constructor. It expects the forcefield
virtual BALL::MolecularDynamics::~MolecularDynamics |
( |
|
) |
[virtual] |
Member Function Documentation
void BALL::MolecularDynamics::enableEnergyAbortCondition |
( |
bool |
state |
) |
|
Specify if the MDSimulation aborts if the Energy is greater than abort_energy_
bool BALL::MolecularDynamics::energyAbortConditionEnabled |
( |
|
) |
const |
Query if the MDSimulation aborts if the Energy is greater than abort_energy_.
Size BALL::MolecularDynamics::getEnergyOutputFrequency |
( |
|
) |
const |
Get the energy output frequency
float BALL::MolecularDynamics::getEnergyToAbort |
( |
|
) |
const |
Query the energy to abort the simulation. The default value is 10^8.
ForceField* BALL::MolecularDynamics::getForceField |
( |
|
) |
const |
Get the force field the MD simulation is bound to
double BALL::MolecularDynamics::getKineticEnergy |
( |
|
) |
const |
Get the current kinetic energy of the system
Size BALL::MolecularDynamics::getMaximalNumberOfIterations |
( |
|
) |
const |
Get the maximal number of iterations of the MD simulation
double BALL::MolecularDynamics::getMaximalSimulationTime |
( |
|
) |
const |
Get the maximal simulation time of the MD simulation
Size BALL::MolecularDynamics::getNumberOfIterations |
( |
|
) |
const |
Get the current iteration of the MD simulation
double BALL::MolecularDynamics::getPotentialEnergy |
( |
|
) |
const |
Get the current potential energy of the system
Size BALL::MolecularDynamics::getSnapShotFrequency |
( |
|
) |
const |
Get the snapshot frequency
double BALL::MolecularDynamics::getTemperature |
( |
|
) |
const |
Get the current temperature of the system
double BALL::MolecularDynamics::getTime |
( |
|
) |
const |
Get the current time of the MD simulation
double BALL::MolecularDynamics::getTimeStep |
( |
|
) |
const |
Get the current time step
double BALL::MolecularDynamics::getTotalEnergy |
( |
|
) |
const |
Get the current total energy of the system
bool BALL::MolecularDynamics::isValid |
( |
|
) |
const |
Has the molecular dynamics class been successfully set up?
Assign a molecular dynamics objects.
void BALL::MolecularDynamics::setCurrentTime |
( |
double |
time |
) |
|
Set the current time of the MD run in picoseconds
void BALL::MolecularDynamics::setEnergyOutputFrequency |
( |
Size |
number |
) |
|
Set the energy output frequency. The current energies during the simulation will be printed every number steps.
void BALL::MolecularDynamics::setEnergyToAbort |
( |
float |
value |
) |
|
Specify the energy to abort the simulation. The default value is 10^8.
void BALL::MolecularDynamics::setMaximalNumberOfIterations |
( |
Size |
number |
) |
|
Set the maximal number of iterations that will be carried out. If the number of the start iteration is 0 (which is the default), this method sets the total number of simulated iterations.
void BALL::MolecularDynamics::setMaximalSimulationTime |
( |
double |
time |
) |
|
Set the maximal simulation time in ps that will be carried out. If the start time is zero(which is the default), then this method sets the total simulation time.
void BALL::MolecularDynamics::setNumberOfIteration |
( |
Size |
number |
) |
|
Set the number of the current iteration
void BALL::MolecularDynamics::setReferenceTemperature |
( |
double |
temperature |
) |
|
Set the reference temperature for the system. In isothermal ensembles, this is the simulation temperature set set by the thermostat.
void BALL::MolecularDynamics::setSnapShotFrequency |
( |
Size |
number |
) |
|
Set the snapshot frequency
virtual void BALL::MolecularDynamics::setTimeStep |
( |
double |
step |
) |
[virtual] |
bool BALL::MolecularDynamics::simulate |
( |
bool |
restart = false |
) |
|
Start the molecular dynamics simulation. This method calls simulateIterations with the maximum number of iterations.
- See also:
- setMaximumNumberOfIterations
- Returns:
- false if an error occured, e.g. the energy was too high
virtual bool BALL::MolecularDynamics::simulateIterations |
( |
Size |
number, |
|
|
bool |
restart = false | |
|
) |
| | [virtual] |
Start the molecular dynamics simulation and carry out the given number of iterations. This is the proper simulation method, which is implemented in the derived classes only. The implementation provided by MolecularDynamics is simply empty.
- Returns:
- false if an error occured, e.g. the energy was too high
Reimplemented in BALL::CanonicalMD, and BALL::MicroCanonicalMD.
bool BALL::MolecularDynamics::simulateTime |
( |
double |
simulation_time, |
|
|
bool |
restart = false | |
|
) |
| | |
Simulate a given time interval. This method determines the number of steps necessary to simulate a given time interval and executes a simulation for that interval by calling simulateIterations .
- Returns:
- false if an error occured, e.g. the energy was too high
virtual bool BALL::MolecularDynamics::specificSetup |
( |
|
) |
[virtual] |
void BALL::MolecularDynamics::updateInstantaneousTemperature |
( |
|
) |
[protected] |
Member Data Documentation
The options for this class