55#include "utils/Constants.hpp"
62 SimInfo::MoleculeIterator i;
63 Molecule::IntegrableObjectIterator j;
75 for (sd = mol->beginIntegrableObject(j); sd != NULL;
76 sd = mol->nextIntegrableObject(j)) {
83 vel += (dt2 / mass * Constants::energyConvert) * frc;
100 ji += (dt2 * Constants::energyConvert) * Tb;
102 rotAlgo_->rotate(sd, ji, dt);
109 rattle_->constraintA();
113 SimInfo::MoleculeIterator i;
114 Molecule::IntegrableObjectIterator j;
125 for (sd = mol->beginIntegrableObject(j); sd != NULL;
126 sd = mol->nextIntegrableObject(j)) {
132 vel += (dt2 / mass * Constants::energyConvert) * frc;
145 ji += (dt2 * Constants::energyConvert) * Tb;
153 rattle_->constraintB();
156 RealType NVE::calcConservedQuantity() {
return thermo.getTotalEnergy(); }
One of the heavy-weight classes of OpenMD, SimInfo maintains objects and variables relating to the cu...
Molecule * beginMolecule(MoleculeIterator &i)
Returns the first molecule in this SimInfo and intialize the iterator.
Molecule * nextMolecule(MoleculeIterator &i)
Returns the next avaliable Molecule based on the iterator.
"Don't move, or you're dead! Stand up! Captain, we've got them!"
Vector3d getTrq()
Returns the current torque of this stuntDouble.
Vector3d lab2Body(const Vector3d &v)
Converts a lab fixed vector to a body fixed vector.
Vector3d getVel()
Returns the current velocity of this stuntDouble.
RealType getMass()
Returns the mass of this stuntDouble.
Vector3d getPos()
Returns the current position of this stuntDouble.
void setPos(const Vector3d &pos)
Sets the current position of this stuntDouble.
void setVel(const Vector3d &vel)
Sets the current velocity of this stuntDouble.
Vector3d getJ()
Returns the current angular momentum of this stuntDouble (body -fixed).
bool isDirectional()
Tests if this stuntDouble is a directional one.
Vector3d getFrc()
Returns the current force of this stuntDouble.
void setJ(const Vector3d &angMom)
Sets the current angular momentum of this stuntDouble (body-fixed).
This basic Periodic Table class was originally taken from the data.cpp file in OpenBabel.