#include <BALL/MOLMEC/COMMON/snapShot.h>
List of all members.
Detailed Description
SnapShot class, containing the actual data of one single snapshot. It consists of the posistions, velocities and forces for each atom along with kinetic and potential energy of selected atoms. It is used by the SnapShotManager .
Definition at line 31 of file snapShot.h.
Constructor & Destructor Documentation
BALL::SnapShot::SnapShot |
( |
|
) |
|
The default constructor. It creates an empty SnapShot object.
BALL::SnapShot::SnapShot |
( |
const SnapShot & |
snapshot |
) |
|
virtual BALL::SnapShot::~SnapShot |
( |
|
) |
[virtual] |
Member Function Documentation
void BALL::SnapShot::applySnapShot |
( |
System & |
system |
) |
const |
Apply the data contained in a SnapShot to a System. Copy all available data to the system. Note that some trajectory file formats do not contain all this information and vectors might be zero or even worse undefined when read SnapShots are read from such a file.
- Parameters:
-
| system | the System which will be manipulated |
virtual void BALL::SnapShot::clear |
( |
|
) |
[virtual] |
Read all atom forces from a System and store them in this instance of SnapShot.
- Parameters:
-
| system | the System from which data will be read |
const ::std::vector<Vector3>& BALL::SnapShot::getAtomForces |
( |
|
) |
const |
Read all atom positions from a System and store them in this instance of SnapShot.
- Parameters:
-
| system | the System from which data will be read |
const ::std::vector<Vector3>& BALL::SnapShot::getAtomPositions |
( |
|
) |
const |
Get the vector containing the atom postions.
Read all atom velocities from a System and store them in this instance of SnapShot.
- Parameters:
-
| system | the System from which data will be read |
const ::std::vector<Vector3>& BALL::SnapShot::getAtomVelocities |
( |
|
) |
const |
Get the vector containing the atom velocitites.
Size BALL::SnapShot::getIndex |
( |
|
) |
const |
Get the index of this instance.
DoubleReal BALL::SnapShot::getKineticEnergy |
( |
|
) |
const |
Get the value for the kinetic energy of this snapshot's system.
Size BALL::SnapShot::getNumberOfAtoms |
( |
|
) |
const |
Get the number of atoms that are covered by this snapshot.
DoubleReal BALL::SnapShot::getPotentialEnergy |
( |
|
) |
const |
Get the value for the potential energy of this snapshot's system.
bool BALL::SnapShot::isValid |
( |
|
) |
const |
Indicates validity of the SnapShot
- Returns:
- true if this instance is valid
bool BALL::SnapShot::operator== |
( |
const SnapShot & |
snapshot |
) |
const |
void BALL::SnapShot::setAtomForces |
( |
System & |
system |
) |
const |
Set all Atom forces of a System to the values stored in this instance of SnapShot.
- Parameters:
-
| system | the system which will be manipulated |
void BALL::SnapShot::setAtomForces |
( |
const ::std::vector< Vector3 > & |
atom_forces |
) |
|
void BALL::SnapShot::setAtomPositions |
( |
System & |
system |
) |
const |
Set all Atom positions of a System to the values stored in this instance of SnapShot.
- Parameters:
-
| system | the system which will be manipulated |
void BALL::SnapShot::setAtomPositions |
( |
const ::std::vector< Vector3 > & |
atom_postions |
) |
|
Specify all atom positions.
void BALL::SnapShot::setAtomVelocities |
( |
const ::std::vector< Vector3 > & |
atom_velocities |
) |
|
Specify all atom velocities.
void BALL::SnapShot::setAtomVelocitites |
( |
System & |
system |
) |
const |
Set all Atom velocities of a System to the values stored in this instance of SnapShot.
- Parameters:
-
| system | the system which will be manipulated |
void BALL::SnapShot::setIndex |
( |
Size |
index |
) |
|
void BALL::SnapShot::setKineticEnergy |
( |
DoubleReal |
kinetic_energy |
) |
|
Set the value for the kinetic energy of this snapshot's system.
void BALL::SnapShot::setNumberOfAtoms |
( |
Size |
number_of_atoms |
) |
|
Set the number of atoms that are covered by this snapshot.
void BALL::SnapShot::setPotentialEnergy |
( |
DoubleReal |
potential_energy |
) |
|
Set the value for the potential energy of this snapshot's system.
Take a SnapShot from a system. Copy all positions, velocities and forces from the System system
to this instance of SnapShot.
- Parameters:
-
| system | the System from which to take the data |
Member Data Documentation