|
MaMiCo 1.2
|
molecule representation for coupling component. Dericed from the class coupling::interface::Molecule More...
#include <Molecule.h>


Public Member Functions | |
| Molecule (const tarch::la::Vector< dim, double > &position, const tarch::la::Vector< dim, double > &velocity, const tarch::la::Vector< dim, double > &force, const double &potentialEnergy) | |
| virtual | ~Molecule () |
| tarch::la::Vector< dim, double > | getVelocity () const |
| void | setVelocity (const tarch::la::Vector< dim, double > &velocity) |
| tarch::la::Vector< dim, double > | getPosition () const |
| void | setPosition (const tarch::la::Vector< dim, double > &position) |
| void | setForce (const tarch::la::Vector< dim, double > &force) |
| tarch::la::Vector< dim, double > | getForce () const |
| double | getPotentialEnergy () const |
| void | setPotentialEnergy (const double &potentialEnergy) |
Private Attributes | |
| tarch::la::Vector< dim, double > | _position |
| tarch::la::Vector< dim, double > | _velocity |
| tarch::la::Vector< dim, double > | _force |
| double | _potentialEnergy |
molecule representation for coupling component. Dericed from the class coupling::interface::Molecule
| dim | Number of dimensions; it can be 1, 2 or 3 |
|
inline |
Constructor: initialises the molecule;
| position | |
| velocity | |
| force | |
| potentialEnergy |
|
inlinevirtual |
Destructor
Reimplemented from coupling::interface::Molecule< dim >.
|
inlinevirtual |
returns the force of the molecule
Implements coupling::interface::Molecule< dim >.
|
inlinevirtual |
returns the velocity of the molecule
Implements coupling::interface::Molecule< dim >.
|
inlinevirtual |
returns potential energy of the molecule
Implements coupling::interface::Molecule< dim >.
|
inlinevirtual |
returns the velocity of the molecule
Implements coupling::interface::Molecule< dim >.
|
inlinevirtual |
sets the force acting on this molecule. This function is called in the USHER scheme so far only if the force of a newly created molecule should be set
| force | Force |
Implements coupling::interface::Molecule< dim >.
|
inlinevirtual |
sets the velocity of the molecule
| position | Position |
Implements coupling::interface::Molecule< dim >.
|
inlinevirtual |
sets potential energy of the molecule
| _potentialEnergy | Potential energy of the molecule |
Implements coupling::interface::Molecule< dim >.
|
inlinevirtual |
sets the velocity of the molecule
| velocity | Velocity |
Implements coupling::interface::Molecule< dim >.
|
private |
Force vector of the molecule
|
private |
Position of the molecule
|
private |
Potential energy of the molecule
|
private |
Velocity vector of the molecule