|
MaMiCo 1.2
|
interface to access a single molecule in the MD simulation. More...
#include <Molecule.h>

Public Member Functions | |
| virtual | ~Molecule () |
| virtual tarch::la::Vector< dim, double > | getVelocity () const =0 |
| virtual void | setVelocity (const tarch::la::Vector< dim, double > &velocity)=0 |
| virtual tarch::la::Vector< dim, double > | getPosition () const =0 |
| virtual void | setPosition (const tarch::la::Vector< dim, double > &position)=0 |
| virtual void | setForce (const tarch::la::Vector< dim, double > &force)=0 |
| virtual tarch::la::Vector< dim, double > | getForce () const =0 |
| virtual double | getPotentialEnergy () const =0 |
| virtual void | setPotentialEnergy (const double &potentialEnergy)=0 |
interface to access a single molecule in the MD simulation.
This class provides interface to access a single molecule in the MD simulation. The MaMiCo molecule in datastructures also inherits from this class.
| dim | Number of dimensions; it can be 1, 2 or 3 |
|
inlinevirtual |
Destructor
Reimplemented in coupling::datastructures::Molecule< dim >.
|
pure virtual |
returns the force acting on this molecule.
Implemented in coupling::datastructures::Molecule< dim >.
|
pure virtual |
returns the position of the molecule
Implemented in coupling::datastructures::Molecule< dim >.
|
pure virtual |
returns the potential energy of the molecule
Implemented in coupling::datastructures::Molecule< dim >.
|
pure virtual |
returnsthe velocity of the molecule
Implemented in coupling::datastructures::Molecule< dim >.
|
pure virtual |
sets the force acting on this molecule. This function is only called in the USHER scheme so far If you want to set the force of a newly created molecule, you need to implement this function.
| force |
Implemented in coupling::datastructures::Molecule< dim >.
|
pure virtual |
sets the position of the molecule
| position |
Implemented in coupling::datastructures::Molecule< dim >.
|
pure virtual |
sets the potential energy of the molecule
| potentialEnergy |
Implemented in coupling::datastructures::Molecule< dim >.
|
pure virtual |
sets the velocity of the molecule
| velocity |
Implemented in coupling::datastructures::Molecule< dim >.