|
OpenMD 3.2
Molecular Dynamics in the Open
|
"Don't move, or you're dead! Stand up! Captain, we've got them!" More...
#include "Primitives/StuntDouble.hpp"
Public Types | |
| enum | ObjectType { otAtom , otDAtom , otRigidBody } |
Public Member Functions | |
| int | getGlobalIndex () |
| Returns the global index of this stuntDouble. | |
| void | setGlobalIndex (int index) |
| Sets the global index of this stuntDouble. | |
| int | getLocalIndex () |
| Returns the local index of this stuntDouble. | |
| void | setLocalIndex (int index) |
| Sets the local index of this stuntDouble. | |
| int | getGlobalIntegrableObjectIndex () |
| void | setGlobalIntegrableObjectIndex (int index) |
| void | setSnapshotManager (SnapshotManager *sman) |
| Sets the Snapshot Manager of this stuntDouble. | |
| bool | isAtom () |
| Tests if this stuntDouble is an atom. | |
| bool | isDirectionalAtom () |
| Tests if this stuntDouble is an directional atom. | |
| bool | isRigidBody () |
| Tests if this stuntDouble is a rigid body. | |
| bool | isDirectional () |
| Tests if this stuntDouble is a directional one. | |
| int | freeze () |
| Freezes out all velocity, angular velocity, forces and torques on this StuntDouble. | |
| Vector3d | getPrevPos () |
| Returns the previous position of this stuntDouble. | |
| Vector3d | getPos () |
| Returns the current position of this stuntDouble. | |
| Vector3d | getPos (int snapshotNo) |
| Returns the position of this stuntDouble in specified snapshot. | |
| void | setPrevPos (const Vector3d &pos) |
| Sets the previous position of this stuntDouble. | |
| void | setPos (const Vector3d &pos) |
| Sets the current position of this stuntDouble. | |
| void | setPos (const Vector3d &pos, int snapshotNo) |
| Sets the position of this stuntDouble in specified snapshot. | |
| Vector3d | getPrevVel () |
| Returns the previous velocity of this stuntDouble. | |
| Vector3d | getVel () |
| Returns the current velocity of this stuntDouble. | |
| Vector3d | getVel (int snapshotNo) |
| Returns the velocity of this stuntDouble in specified snapshot. | |
| Vector3d | getVel (Snapshot *snapshot) |
| void | setPrevVel (const Vector3d &vel) |
| Sets the previous velocity of this stuntDouble. | |
| void | setVel (const Vector3d &vel) |
| Sets the current velocity of this stuntDouble. | |
| void | setVel (const Vector3d &vel, int snapshotNo) |
| Sets the velocity of this stuntDouble in specified snapshot. | |
| RotMat3x3d | getPrevA () |
| Returns the previous rotation matrix of this stuntDouble. | |
| RotMat3x3d | getA () |
| Returns the current rotation matrix of this stuntDouble. | |
| RotMat3x3d | getA (int snapshotNo) |
| Returns the rotation matrix of this stuntDouble in specified snapshot. | |
| virtual void | setPrevA (const RotMat3x3d &a) |
| Sets the previous rotation matrix of this stuntDouble. | |
| virtual void | setA (const RotMat3x3d &a) |
| Sets the current rotation matrix of this stuntDouble. | |
| virtual void | setA (const RotMat3x3d &a, int snapshotNo) |
| Sets the rotation matrix of this stuntDouble in specified snapshot. | |
| Vector3d | getPrevJ () |
| Returns the previous angular momentum of this stuntDouble (body-fixed). | |
| Vector3d | getJ () |
| Returns the current angular momentum of this stuntDouble (body -fixed). | |
| Vector3d | getJ (int snapshotNo) |
| Returns the angular momentum of this stuntDouble in specified snapshot (body-fixed). | |
| void | setPrevJ (const Vector3d &angMom) |
| Sets the previous angular momentum of this stuntDouble (body-fixed). | |
| void | setJ (const Vector3d &angMom) |
| Sets the current angular momentum of this stuntDouble (body-fixed). | |
| void | setJ (const Vector3d &angMom, int snapshotNo) |
| Sets the angular momentum of this stuntDouble in specified snapshot(body-fixed). | |
| Vector3d | getCOM () |
| Returns system Center of Mass for stuntDouble frame from snapshot. | |
| Vector3d | getCOMvel () |
| Returns system Center of Mass velocity for stuntDouble frame from snapshot. | |
| Vector3d | getCOMw () |
| Returns system Center of Mass angular momentum for stuntDouble frame from snapshot. | |
| Vector3d | getCOM (int snapshotNo) |
| Returns system Center of Mass for stuntDouble frame from snapshot. | |
| Vector3d | getCOMvel (int snapshotNo) |
| Returns system Center of Mass velocity for stuntDouble frame from snapshot. | |
| Vector3d | getCOMw (int snapshotNo) |
| Returns system Center of Mass angular momentum for stuntDouble frame from snapshot. | |
| Quat4d | getPrevQ () |
| Returns the previous quaternion of this stuntDouble. | |
| Quat4d | getQ () |
| Returns the current quaternion of this stuntDouble. | |
| Quat4d | getQ (int snapshotNo) |
| Returns the quaternion of this stuntDouble in specified snapshot. | |
| void | setPrevQ (const Quat4d &q) |
| Sets the previous quaternion of this stuntDouble. | |
| void | setQ (const Quat4d &q) |
| Sets the current quaternion of this stuntDouble. | |
| void | setQ (const Quat4d &q, int snapshotNo) |
| Sets the quaternion of this stuntDouble in specified snapshot. | |
| Vector3d | getPrevEuler () |
| Returns the previous euler angles of this stuntDouble. | |
| Vector3d | getEuler () |
| Returns the current euler angles of this stuntDouble. | |
| Vector3d | getEuler (int snapshotNo) |
| Returns the euler angles of this stuntDouble in specified snapshot. | |
| void | setPrevEuler (const Vector3d &euler) |
| Sets the previous euler angles of this stuntDouble. | |
| void | setEuler (const Vector3d &euler) |
| Sets the current euler angles of this stuntDouble. | |
| void | setEuler (const Vector3d &euler, int snapshotNo) |
| Sets the euler angles of this stuntDouble in specified snapshot. | |
| Vector3d | getPrevDipole () |
| Returns the previous dipole vector of this stuntDouble. | |
| Vector3d | getDipole () |
| Returns the current dipole vector of this stuntDouble. | |
| Vector3d | getDipole (int snapshotNo) |
| Returns the dipole vector of this stuntDouble in specified snapshot. | |
| Mat3x3d | getPrevQuadrupole () |
| Returns the previous quadrupole tensor of this stuntDouble. | |
| Mat3x3d | getQuadrupole () |
| Returns the current quadrupole tensor of this stuntDouble. | |
| Mat3x3d | getQuadrupole (int snapshotNo) |
| Returns the quadrupole tensor of this stuntDouble in specified snapshot. | |
| Vector3d | getPrevFrc () |
| Returns the previous force of this stuntDouble. | |
| Vector3d | getFrc () |
| Returns the current force of this stuntDouble. | |
| Vector3d | getFrc (int snapshotNo) |
| Returns the force of this stuntDouble in specified snapshot. | |
| void | setPrevFrc (const Vector3d &frc) |
| Sets the previous force of this stuntDouble. | |
| void | setFrc (const Vector3d &frc) |
| Sets the current force of this stuntDouble. | |
| void | setFrc (const Vector3d &frc, int snapshotNo) |
| Sets the force of this stuntDouble in specified snapshot. | |
| void | addPrevFrc (const Vector3d &frc) |
| Adds force into the previous force of this stuntDouble. | |
| void | addFrc (const Vector3d &frc) |
| Adds force into the current force of this stuntDouble. | |
| void | addFrc (const Vector3d &frc, int snapshotNo) |
| Adds force into the force of this stuntDouble in specified snapshot. | |
| Vector3d | getPrevTrq () |
| Returns the previous torque of this stuntDouble. | |
| Vector3d | getTrq () |
| Returns the current torque of this stuntDouble. | |
| Vector3d | getTrq (int snapshotNo) |
| Returns the torque of this stuntDouble in specified snapshot. | |
| void | setPrevTrq (const Vector3d &trq) |
| Sets the previous torque of this stuntDouble. | |
| void | setTrq (const Vector3d &trq) |
| Sets the current torque of this stuntDouble. | |
| void | setTrq (const Vector3d &trq, int snapshotNo) |
| Sets the torque of this stuntDouble in specified snapshot. | |
| void | addPrevTrq (const Vector3d &trq) |
| Adds torque into the previous torque of this stuntDouble. | |
| void | addTrq (const Vector3d &trq) |
| Adds torque into the current torque of this stuntDouble. | |
| void | addTrq (const Vector3d &trq, int snapshotNo) |
| Adds torque into the torque of this stuntDouble in specified snapshot. | |
| RealType | getPrevParticlePot () |
| Returns the previous particlePot of this stuntDouble. | |
| RealType | getParticlePot () |
| Returns the current particlePot of this stuntDouble. | |
| RealType | getParticlePot (int snapshotNo) |
| Returns the particlePot of this stuntDouble in specified snapshot. | |
| void | setPrevParticlePot (const RealType &particlePot) |
| Sets the previous particlePot of this stuntDouble. | |
| void | setParticlePot (const RealType &particlePot) |
| Sets the current particlePot of this stuntDouble. | |
| void | setParticlePot (const RealType &particlePot, int snapshotNo) |
| Sets the particlePot of this stuntDouble in specified snapshot. | |
| void | addPrevParticlePot (const RealType &particlePot) |
| Adds particlePot into the previous particlePot of this stuntDouble. | |
| void | addParticlePot (const RealType &particlePot) |
| Adds particlePot into the current particlePot of this stuntDouble. | |
| void | addParticlePot (const RealType &particlePot, int snapshotNo) |
| Adds particlePot into the particlePot of this stuntDouble in specified snapshot. | |
| RealType | getPrevFlucQPos () |
| Returns the previous fluctuating charge of this stuntDouble. | |
| RealType | getFlucQPos () |
| Returns the current fluctuating charge of this stuntDouble. | |
| RealType | getFlucQPos (int snapshotNo) |
| Returns the fluctuating charge of this stuntDouble in specified snapshot. | |
| void | setPrevFlucQPos (RealType charge) |
| Sets the previous fluctuating charge of this stuntDouble. | |
| void | setFlucQPos (RealType charge) |
| Sets the current fluctuating charge of this stuntDouble. | |
| void | setFlucQPos (RealType charge, int snapshotNo) |
| Sets the fluctuating charge of this stuntDouble in specified snapshot. | |
| void | addPrevFlucQPos (RealType charge) |
| Adds fluctuating charge into the previous fluctuating charge of this stuntDouble. | |
| void | addFlucQPos (RealType charge) |
| Adds fluctuating charge into the current fluctuating charge of this stuntDouble. | |
| void | addFlucQPos (RealType charge, int snapshotNo) |
| Adds fluctuating charge into the fluctuating charge of this stuntDouble in specified snapshot. | |
| RealType | getPrevFlucQVel () |
| Returns the previous charge velocity of this stuntDouble. | |
| RealType | getFlucQVel () |
| Returns the current charge velocity of this stuntDouble. | |
| RealType | getFlucQVel (int snapshotNo) |
| Returns the charge velocity of this stuntDouble in specified snapshot. | |
| void | setPrevFlucQVel (RealType cvel) |
| Sets the previous charge velocity of this stuntDouble. | |
| void | setFlucQVel (RealType cvel) |
| Sets the current charge velocity of this stuntDouble. | |
| void | setFlucQVel (RealType cvel, int snapshotNo) |
| Sets the charge velocity of this stuntDouble in specified snapshot. | |
| void | addPrevFlucQVel (RealType cvel) |
| Adds charge velocity into the previous charge velocity of this stuntDouble. | |
| void | addFlucQVel (RealType cvel) |
| Adds charge velocity into the current charge velocity of this stuntDouble. | |
| void | addFlucQVel (RealType cvel, int snapshotNo) |
| Adds charge velocity into the charge velocity of this stuntDouble in specified snapshot. | |
| RealType | getPrevFlucQFrc () |
| Returns the previous charge force of this stuntDouble. | |
| RealType | getFlucQFrc () |
| Returns the current charge force of this stuntDouble. | |
| RealType | getFlucQFrc (int snapshotNo) |
| Returns the charge force of this stuntDouble in specified snapshot. | |
| void | setPrevFlucQFrc (RealType cfrc) |
| Sets the previous charge force of this stuntDouble. | |
| void | setFlucQFrc (RealType cfrc) |
| Sets the current charge force of this stuntDouble. | |
| void | setFlucQFrc (RealType cfrc, int snapshotNo) |
| Sets the charge force of this stuntDouble in specified snapshot. | |
| void | addPrevFlucQFrc (RealType cfrc) |
| Adds charge force into the previous charge force of this stuntDouble. | |
| void | addFlucQFrc (RealType cfrc) |
| Adds charge force into the current charge force of this stuntDouble. | |
| void | addFlucQFrc (RealType cfrc, int snapshotNo) |
| Adds charge force into the charge force of this stuntDouble in specified snapshot. | |
| Vector3d | getPrevElectricField () |
| Returns the previous electric field of this stuntDouble. | |
| Vector3d | getElectricField () |
| Returns the current electric field of this stuntDouble. | |
| Vector3d | getElectricField (int snapshotNo) |
| Returns the electric field of this stuntDouble in specified snapshot. | |
| void | setPrevElectricField (const Vector3d &eField) |
| Sets the previous electric field of this stuntDouble. | |
| void | setElectricField (const Vector3d &eField) |
| Sets the current electric field of this stuntDouble. | |
| void | setElectricField (const Vector3d &eField, int snapshotNo) |
| Sets the electric field of this stuntDouble in specified snapshot. | |
| void | addPrevElectricField (const Vector3d &eField) |
| Adds electric field into the previous electric field of this stuntDouble. | |
| void | addElectricField (const Vector3d &eField) |
| Adds electric field into the current electric field of this stuntDouble. | |
| void | addElectricField (const Vector3d &eField, int snapshotNo) |
| Adds electric field into the electric field of this stuntDouble in specified snapshot. | |
| RealType | getPrevSitePotential () |
| Returns the previous site potential of this stuntDouble. | |
| RealType | getSitePotential () |
| Returns the current site potential of this stuntDouble. | |
| RealType | getSitePotential (int snapshotNo) |
| Returns the site potential of this stuntDouble in specified snapshot. | |
| void | setPrevSitePotential (RealType spot) |
| Sets the previous site potential of this stuntDouble. | |
| void | setSitePotential (RealType spot) |
| Sets the current site potential of this stuntDouble. | |
| void | setSitePotential (RealType spot, int snapshotNo) |
| Sets the site potential of this stuntDouble in specified snapshot. | |
| void | addPrevSitePotential (RealType spot) |
| Adds site potential into the previous charge force of this stuntDouble. | |
| void | addSitePotential (RealType spot) |
| Adds site potential into the current charge force of this stuntDouble. | |
| void | addSitePotential (RealType spot, int snapshotNo) |
| Adds site potential into the site potential of this stuntDouble in specified snapshot. | |
| RealType | getPrevDensity () |
| Returns the previous density of this stuntDouble. | |
| RealType | getDensity () |
| Returns the current density of this stuntDouble. | |
| RealType | getDensity (int snapshotNo) |
| Returns the density of this stuntDouble in specified snapshot. | |
| void | setPrevDensity (RealType dens) |
| Sets the previous density of this stuntDouble. | |
| void | setDensity (RealType dens) |
| Sets the current density of this stuntDouble. | |
| void | setDensity (RealType dens, int snapshotNo) |
| Sets the density of this stuntDouble in specified snapshot. | |
| void | addPrevDensity (RealType dens) |
| Adds density into the previous charge force of this stuntDouble. | |
| void | addDensity (RealType dens) |
| Adds density into the current charge force of this stuntDouble. | |
| void | addDensity (RealType dens, int snapshotNo) |
| Adds density into the density of this stuntDouble in specified snapshot. | |
| void | zeroForcesAndTorques () |
| Set the properties of this stuntDouble to zero. | |
| void | combineForcesAndTorques (Snapshot *snapA, Snapshot *snapB, RealType multA, RealType multB) |
| Linearly combines the properties from two different snapshots. | |
| virtual Mat3x3d | getI ()=0 |
| Returns the inertia tensor of this stuntDouble. | |
| virtual std::vector< RealType > | getGrad ()=0 |
| Returns the gradient of this stuntDouble. | |
| bool | isLinear () |
| Tests the if this stuntDouble is a linear rigidbody. | |
| int | linearAxis () |
| Returns the linear axis of the rigidbody, atom and directional atom will always return -1. | |
| RealType | getMass () |
| Returns the mass of this stuntDouble. | |
| void | setMass (RealType mass) |
| Sets the mass of this stuntdoulbe. | |
| virtual std::string | getType ()=0 |
| Returns the name of this stuntDouble. | |
| virtual void | setType (const std::string &) |
| Sets the name of this stuntDouble. | |
| Vector3d | lab2Body (const Vector3d &v) |
| Converts a lab fixed vector to a body fixed vector. | |
| Vector3d | lab2Body (const Vector3d &v, int frame) |
| Vector3d | body2Lab (const Vector3d &v) |
| Converts a body fixed vector to a lab fixed vector. | |
| Vector3d | body2Lab (const Vector3d &v, int frame) |
| virtual void | accept (BaseVisitor *v)=0 |
| void | addProperty (std::shared_ptr< GenericData > genData) |
| Adds property into property map. | |
| void | removeProperty (const std::string &propName) |
| Removes property from PropertyMap by name. | |
| std::vector< std::string > | getPropertyNames () |
| Returns all names of properties. | |
| std::vector< std::shared_ptr< GenericData > > | getProperties () |
| Returns all of the properties in PropertyMap. | |
| std::shared_ptr< GenericData > | getPropertyByName (const std::string &propName) |
| Returns property. | |
Protected Member Functions | |
| StuntDouble (ObjectType objType, DataStoragePointer storage) | |
| StuntDouble (const StuntDouble &sd) | |
| StuntDouble & | operator= (const StuntDouble &sd) |
Protected Attributes | |
| ObjectType | objType_ |
| DataStoragePointer | storage_ |
| SnapshotManager * | snapshotMan_ |
| bool | linear_ |
| int | linearAxis_ |
| int | globalIndex_ |
| int | globalIntegrableObjectIndex_ |
| int | localIndex_ |
| RealType | mass_ |
"Don't move, or you're dead! Stand up! Captain, we've got them!"
"Spectacular stunt, my friends, but all for naught. Turn around please. Ha. What a pity. What a pity. So, Princess, you thought you could outwit the imperious forces of...."
"You idiots! These are not them. You've captured their stunt doubles! Search the area. Find them! Find them!"
StuntDouble is a very strange idea. A StuntDouble stands in for some object that can be manipulated by the Integrators or Minimizers. Some of the manipulable objects are Atoms, some are DirectionalAtoms, and some are RigidBodies. StuntDouble provides an interface for the Integrators and Minimizers to use, and does some preliminary sanity checking so that the program doesn't try to do something stupid like torque an Atom (The quotes above are from Spaceballs...)
Definition at line 94 of file StuntDouble.hpp.
| enum OpenMD::StuntDouble::ObjectType |
Definition at line 96 of file StuntDouble.hpp.
|
protected |
Definition at line 62 of file StuntDouble.cpp.
|
pure virtual |
The purpose of the Visitor Pattern is to encapsulate an operation that you want to perform on the elements of a data structure. In this way, you can change the operation being performed on a structure without the need of changing the classes of the elements that you are operating on. Using a Visitor pattern allows you to decouple the classes for the data structure and the algorithms used upon them
| v | visitor |
Implemented in OpenMD::Atom, OpenMD::DirectionalAtom, and OpenMD::RigidBody.
|
inline |
Adds density into the current charge force of this stuntDouble.
| dens | density to be added |
Definition at line 1443 of file StuntDouble.hpp.
|
inline |
Adds density into the density of this stuntDouble in specified snapshot.
| dens | density to be added |
| snapshotNo |
Definition at line 1454 of file StuntDouble.hpp.
|
inline |
Adds electric field into the current electric field of this stuntDouble.
| eField | new electric field |
Definition at line 1264 of file StuntDouble.hpp.
|
inline |
Adds electric field into the electric field of this stuntDouble in specified snapshot.
| eField | electric field to be added |
| snapshotNo |
Definition at line 1277 of file StuntDouble.hpp.
|
inline |
Adds charge force into the current charge force of this stuntDouble.
| cfrc | charge force to be added |
Definition at line 1173 of file StuntDouble.hpp.
|
inline |
Adds charge force into the charge force of this stuntDouble in specified snapshot.
| cfrc | charge force to be added |
| snapshotNo |
Definition at line 1185 of file StuntDouble.hpp.
|
inline |
Adds fluctuating charge into the current fluctuating charge of this stuntDouble.
| charge | new fluctuating charge |
Definition at line 994 of file StuntDouble.hpp.
|
inline |
Adds fluctuating charge into the fluctuating charge of this stuntDouble in specified snapshot.
| charge | fluctuating charge to be add |
| snapshotNo |
Definition at line 1006 of file StuntDouble.hpp.
|
inline |
Adds charge velocity into the current charge velocity of this stuntDouble.
| cvel | new charge velocity |
Definition at line 1084 of file StuntDouble.hpp.
|
inline |
Adds charge velocity into the charge velocity of this stuntDouble in specified snapshot.
| cvel | charge velocity to be add |
| snapshotNo |
Definition at line 1096 of file StuntDouble.hpp.
|
inline |
Adds force into the current force of this stuntDouble.
| frc | new force |
Definition at line 719 of file StuntDouble.hpp.
Referenced by OpenMD::GhostBend::calcForce(), OpenMD::RigidBody::calcForcesAndTorques(), and OpenMD::RigidBody::calcForcesAndTorquesAndVirial().
|
inline |
Adds force into the force of this stuntDouble in specified snapshot.
| frc | force to be set |
| snapshotNo |
Definition at line 731 of file StuntDouble.hpp.
|
inline |
Adds particlePot into the current particlePot of this stuntDouble.
| particlePot | new particlePot |
Definition at line 902 of file StuntDouble.hpp.
Referenced by OpenMD::GhostBend::calcForce().
|
inline |
Adds particlePot into the particlePot of this stuntDouble in specified snapshot.
| particlePot | particlePot to be add |
| snapshotNo |
Definition at line 915 of file StuntDouble.hpp.
|
inline |
Adds density into the previous charge force of this stuntDouble.
| dens | density to be added |
Definition at line 1434 of file StuntDouble.hpp.
|
inline |
Adds electric field into the previous electric field of this stuntDouble.
| eField | new electric field |
Definition at line 1255 of file StuntDouble.hpp.
|
inline |
Adds charge force into the previous charge force of this stuntDouble.
| cfrc | charge force to be added |
Definition at line 1164 of file StuntDouble.hpp.
|
inline |
Adds fluctuating charge into the previous fluctuating charge of this stuntDouble.
| charge | new fluctuating charge |
Definition at line 984 of file StuntDouble.hpp.
|
inline |
Adds charge velocity into the previous charge velocity of this stuntDouble.
| cvel | new charge velocity |
Definition at line 1075 of file StuntDouble.hpp.
|
inline |
Adds force into the previous force of this stuntDouble.
| frc | new force |
Definition at line 711 of file StuntDouble.hpp.
|
inline |
Adds particlePot into the previous particlePot of this stuntDouble.
| particlePot | new particlePot |
Definition at line 893 of file StuntDouble.hpp.
|
inline |
Adds site potential into the previous charge force of this stuntDouble.
| spot | site potential to be added |
Definition at line 1345 of file StuntDouble.hpp.
|
inline |
Adds torque into the previous torque of this stuntDouble.
| trq | new torque |
Definition at line 801 of file StuntDouble.hpp.
| void OpenMD::StuntDouble::addProperty | ( | std::shared_ptr< GenericData > | genData | ) |
Adds property into property map.
| genData | GenericData to be added into PropertyMap |
Definition at line 137 of file StuntDouble.cpp.
References addProperty().
Referenced by addProperty().
|
inline |
Adds site potential into the current charge force of this stuntDouble.
| spot | site potential to be added |
Definition at line 1354 of file StuntDouble.hpp.
|
inline |
Adds site potential into the site potential of this stuntDouble in specified snapshot.
| spot | site potential to be added |
| snapshotNo |
Definition at line 1366 of file StuntDouble.hpp.
|
inline |
Adds torque into the current torque of this stuntDouble.
| trq | new torque |
Definition at line 809 of file StuntDouble.hpp.
Referenced by OpenMD::GhostBend::calcForce(), OpenMD::RigidBody::calcForcesAndTorques(), and OpenMD::RigidBody::calcForcesAndTorquesAndVirial().
|
inline |
Adds torque into the torque of this stuntDouble in specified snapshot.
| trq | torque to be add |
| snapshotNo |
Definition at line 821 of file StuntDouble.hpp.
|
inline |
Converts a body fixed vector to a lab fixed vector.
| v | body fixed vector |
Definition at line 1537 of file StuntDouble.hpp.
References getA().
Referenced by OpenMD::RigidBody::getAtomPos(), OpenMD::RigidBody::getAtomPos(), and OpenMD::RigidBody::updateAtoms().
|
inline |
Definition at line 1539 of file StuntDouble.hpp.
| void OpenMD::StuntDouble::combineForcesAndTorques | ( | Snapshot * | snapA, |
| Snapshot * | snapB, | ||
| RealType | multA, | ||
| RealType | multB ) |
Linearly combines the properties from two different snapshots.
| snapA | The properties from this snapshot are multiplied by multA |
| snapB | The properties from this snapshot are multiplied by multB |
| multA | Multiplier for the properties in snapA |
| multB | Multiplier for the properties in snapB |
Definition at line 78 of file StuntDouble.cpp.
References combineForcesAndTorques().
Referenced by combineForcesAndTorques().
|
inline |
Freezes out all velocity, angular velocity, forces and torques on this StuntDouble.
Also computes the number of frozen degrees of freedom.
Definition at line 170 of file StuntDouble.hpp.
References isDirectional(), isLinear(), setFrc(), setJ(), setTrq(), and setVel().
|
inline |
Returns the current rotation matrix of this stuntDouble.
Definition at line 320 of file StuntDouble.hpp.
Referenced by body2Lab(), OpenMD::GhostBend::calcForce(), OpenMD::RigidBody::getAtomVel(), OpenMD::DirectionalAtom::getGrad(), OpenMD::RigidBody::getGrad(), OpenMD::Thermo::getInertiaTensor(), lab2Body(), OpenMD::DirectionalAtom::rotateBy(), and OpenMD::RigidBody::updateAtoms().
|
inline |
Returns the rotation matrix of this stuntDouble in specified snapshot.
| snapshotNo |
Definition at line 331 of file StuntDouble.hpp.
|
inline |
Returns system Center of Mass for stuntDouble frame from snapshot.
Definition at line 428 of file StuntDouble.hpp.
|
inline |
Returns system Center of Mass for stuntDouble frame from snapshot.
Definition at line 449 of file StuntDouble.hpp.
|
inline |
Returns system Center of Mass velocity for stuntDouble frame from snapshot.
Definition at line 434 of file StuntDouble.hpp.
|
inline |
Returns system Center of Mass velocity for stuntDouble frame from snapshot.
Definition at line 457 of file StuntDouble.hpp.
|
inline |
Returns system Center of Mass angular momentum for stuntDouble frame from snapshot.
Definition at line 442 of file StuntDouble.hpp.
|
inline |
Returns system Center of Mass angular momentum for stuntDouble frame from snapshot.
Definition at line 465 of file StuntDouble.hpp.
|
inline |
Returns the current density of this stuntDouble.
Definition at line 1384 of file StuntDouble.hpp.
|
inline |
Returns the density of this stuntDouble in specified snapshot.
| snapshotNo |
Definition at line 1394 of file StuntDouble.hpp.
|
inline |
Returns the current dipole vector of this stuntDouble.
Definition at line 601 of file StuntDouble.hpp.
Referenced by OpenMD::Thermo::getSystemDipole(), and OpenMD::Thermo::getSystemQuadrupole().
|
inline |
Returns the dipole vector of this stuntDouble in specified snapshot.
| snapshotNo |
Definition at line 612 of file StuntDouble.hpp.
|
inline |
Returns the current electric field of this stuntDouble.
Definition at line 1203 of file StuntDouble.hpp.
|
inline |
Returns the electric field of this stuntDouble in specified snapshot.
| snapshotNo |
Definition at line 1213 of file StuntDouble.hpp.
|
inline |
Returns the current euler angles of this stuntDouble.
Definition at line 537 of file StuntDouble.hpp.
|
inline |
Returns the euler angles of this stuntDouble in specified snapshot.
| snapshotNo |
Definition at line 548 of file StuntDouble.hpp.
|
inline |
Returns the current charge force of this stuntDouble.
Definition at line 1114 of file StuntDouble.hpp.
|
inline |
Returns the charge force of this stuntDouble in specified snapshot.
| snapshotNo |
Definition at line 1124 of file StuntDouble.hpp.
|
inline |
Returns the current fluctuating charge of this stuntDouble.
Definition at line 933 of file StuntDouble.hpp.
Referenced by OpenMD::Thermo::getSystemDipole(), OpenMD::Thermo::getSystemQuadrupole(), and OpenMD::PotDiff::process().
|
inline |
Returns the fluctuating charge of this stuntDouble in specified snapshot.
| snapshotNo |
Definition at line 943 of file StuntDouble.hpp.
|
inline |
Returns the current charge velocity of this stuntDouble.
Definition at line 1024 of file StuntDouble.hpp.
|
inline |
Returns the charge velocity of this stuntDouble in specified snapshot.
| snapshotNo |
Definition at line 1034 of file StuntDouble.hpp.
|
inline |
Returns the current force of this stuntDouble.
Definition at line 658 of file StuntDouble.hpp.
Referenced by OpenMD::Atom::getGrad(), OpenMD::DirectionalAtom::getGrad(), and OpenMD::RigidBody::getGrad().
|
inline |
Returns the force of this stuntDouble in specified snapshot.
| snapshotNo |
Definition at line 669 of file StuntDouble.hpp.
|
inline |
Returns the global index of this stuntDouble.
Definition at line 104 of file StuntDouble.hpp.
Referenced by OpenMD::SimInfo::addInteractionPairs(), OpenMD::RigidBody::getAtomPos(), OpenMD::RigidBody::getAtomRefCoor(), OpenMD::RigidBody::getAtomVel(), OpenMD::SimInfo::getGlobalAtomIndices(), and OpenMD::SimInfo::removeInteractionPairs().
|
inline |
Definition at line 124 of file StuntDouble.hpp.
|
pure virtual |
Returns the gradient of this stuntDouble.
Implemented in OpenMD::Atom, OpenMD::DirectionalAtom, and OpenMD::RigidBody.
|
pure virtual |
Returns the inertia tensor of this stuntDouble.
Implemented in OpenMD::Atom, OpenMD::DirectionalAtom, and OpenMD::RigidBody.
Referenced by OpenMD::Thermo::getInertiaTensor(), and OpenMD::Velocitizer::randomize().
|
inline |
Returns the current angular momentum of this stuntDouble (body -fixed).
Definition at line 377 of file StuntDouble.hpp.
Referenced by OpenMD::RigidBody::getAtomVel(), OpenMD::Thermo::getInertiaTensor(), and OpenMD::Velocitizer::scale().
|
inline |
Returns the angular momentum of this stuntDouble in specified snapshot (body-fixed).
| snapshotNo |
Definition at line 388 of file StuntDouble.hpp.
|
inline |
Returns the local index of this stuntDouble.
Definition at line 116 of file StuntDouble.hpp.
Referenced by OpenMD::SimInfo::getGlobalAtomIndices(), and OpenMD::SimInfo::prepareTopology().
|
inline |
Returns the mass of this stuntDouble.
Definition at line 1509 of file StuntDouble.hpp.
Referenced by OpenMD::Molecule::getCom(), OpenMD::Molecule::getCom(), OpenMD::Molecule::getComVel(), OpenMD::Thermo::getInertiaTensor(), OpenMD::Molecule::getMass(), OpenMD::Thermo::getPressureTensor(), OpenMD::Thermo::getPressureTensor(), OpenMD::Molecule::getPrevCom(), OpenMD::SimInfo::prepareTopology(), and OpenMD::Velocitizer::randomize().
|
inline |
Returns the current particlePot of this stuntDouble.
Definition at line 839 of file StuntDouble.hpp.
|
inline |
Returns the particlePot of this stuntDouble in specified snapshot.
| snapshotNo |
Definition at line 850 of file StuntDouble.hpp.
|
inline |
Returns the current position of this stuntDouble.
Definition at line 199 of file StuntDouble.hpp.
Referenced by OpenMD::GhostBend::calcForce(), OpenMD::RigidBody::calcForcesAndTorques(), OpenMD::RigidBody::calcForcesAndTorquesAndVirial(), OpenMD::RigidBody::getAtomPos(), OpenMD::RigidBody::getAtomPos(), OpenMD::Thermo::getBoundingBox(), OpenMD::Molecule::getCom(), OpenMD::Molecule::getCom(), OpenMD::Thermo::getInertiaTensor(), OpenMD::Thermo::getPressureTensor(), OpenMD::Thermo::getPressureTensor(), OpenMD::Thermo::getSystemDipole(), OpenMD::Thermo::getSystemQuadrupole(), OpenMD::Molecule::moveCom(), OpenMD::Velocitizer::removeAngularDrift(), and OpenMD::RigidBody::updateAtoms().
|
inline |
Returns the position of this stuntDouble in specified snapshot.
| snapshotNo |
Definition at line 209 of file StuntDouble.hpp.
|
inline |
Returns the previous rotation matrix of this stuntDouble.
Definition at line 312 of file StuntDouble.hpp.
|
inline |
Returns the previous density of this stuntDouble.
Definition at line 1375 of file StuntDouble.hpp.
|
inline |
Returns the previous dipole vector of this stuntDouble.
Definition at line 593 of file StuntDouble.hpp.
|
inline |
Returns the previous electric field of this stuntDouble.
Definition at line 1194 of file StuntDouble.hpp.
|
inline |
Returns the previous euler angles of this stuntDouble.
Definition at line 527 of file StuntDouble.hpp.
|
inline |
Returns the previous charge force of this stuntDouble.
Definition at line 1105 of file StuntDouble.hpp.
|
inline |
Returns the previous fluctuating charge of this stuntDouble.
Definition at line 924 of file StuntDouble.hpp.
|
inline |
Returns the previous charge velocity of this stuntDouble.
Definition at line 1015 of file StuntDouble.hpp.
|
inline |
Returns the previous force of this stuntDouble.
Definition at line 650 of file StuntDouble.hpp.
|
inline |
Returns the previous angular momentum of this stuntDouble (body-fixed).
Definition at line 368 of file StuntDouble.hpp.
|
inline |
Returns the previous particlePot of this stuntDouble.
Definition at line 830 of file StuntDouble.hpp.
|
inline |
Returns the previous position of this stuntDouble.
Definition at line 190 of file StuntDouble.hpp.
Referenced by OpenMD::Molecule::getPrevCom().
|
inline |
Returns the previous quaternion of this stuntDouble.
Definition at line 473 of file StuntDouble.hpp.
|
inline |
Returns the previous quadrupole tensor of this stuntDouble.
Definition at line 621 of file StuntDouble.hpp.
|
inline |
Returns the previous site potential of this stuntDouble.
Definition at line 1286 of file StuntDouble.hpp.
|
inline |
Returns the previous torque of this stuntDouble.
Definition at line 740 of file StuntDouble.hpp.
|
inline |
Returns the previous velocity of this stuntDouble.
Definition at line 250 of file StuntDouble.hpp.
| std::vector< std::shared_ptr< GenericData > > OpenMD::StuntDouble::getProperties | ( | ) |
Returns all of the properties in PropertyMap.
Definition at line 149 of file StuntDouble.cpp.
References getProperties().
Referenced by getProperties().
| std::shared_ptr< GenericData > OpenMD::StuntDouble::getPropertyByName | ( | const std::string & | propName | ) |
Returns property.
| propName | name of property |
Definition at line 153 of file StuntDouble.cpp.
References getPropertyByName().
Referenced by getPropertyByName().
| std::vector< std::string > OpenMD::StuntDouble::getPropertyNames | ( | ) |
Returns all names of properties.
Definition at line 145 of file StuntDouble.cpp.
References getPropertyNames().
Referenced by getPropertyNames().
|
inline |
Returns the current quaternion of this stuntDouble.
Definition at line 483 of file StuntDouble.hpp.
|
inline |
Returns the quaternion of this stuntDouble in specified snapshot.
| snapshotNo |
Definition at line 494 of file StuntDouble.hpp.
|
inline |
Returns the current quadrupole tensor of this stuntDouble.
Definition at line 630 of file StuntDouble.hpp.
Referenced by OpenMD::Thermo::getSystemQuadrupole().
|
inline |
Returns the quadrupole tensor of this stuntDouble in specified snapshot.
| snapshotNo |
Definition at line 641 of file StuntDouble.hpp.
|
inline |
Returns the current site potential of this stuntDouble.
Definition at line 1295 of file StuntDouble.hpp.
|
inline |
Returns the site potential of this stuntDouble in specified snapshot.
| snapshotNo |
Definition at line 1305 of file StuntDouble.hpp.
|
inline |
Returns the current torque of this stuntDouble.
Definition at line 748 of file StuntDouble.hpp.
Referenced by OpenMD::DirectionalAtom::getGrad(), and OpenMD::RigidBody::getGrad().
|
inline |
Returns the torque of this stuntDouble in specified snapshot.
| snapshotNo |
Definition at line 759 of file StuntDouble.hpp.
|
pure virtual |
Returns the name of this stuntDouble.
Implemented in OpenMD::Atom, and OpenMD::RigidBody.
|
inline |
Returns the current velocity of this stuntDouble.
Definition at line 259 of file StuntDouble.hpp.
Referenced by OpenMD::RigidBody::getAtomVel(), OpenMD::Molecule::getComVel(), OpenMD::Thermo::getInertiaTensor(), OpenMD::Thermo::getPressureTensor(), OpenMD::Thermo::getPressureTensor(), OpenMD::Velocitizer::removeAngularDrift(), OpenMD::Velocitizer::removeComDrift(), and OpenMD::Velocitizer::scale().
|
inline |
Returns the velocity of this stuntDouble in specified snapshot.
| snapshotNo |
Definition at line 269 of file StuntDouble.hpp.
|
inline |
Definition at line 274 of file StuntDouble.hpp.
|
inline |
Tests if this stuntDouble is an atom.
Definition at line 142 of file StuntDouble.hpp.
Referenced by OpenMD::DumpReader::parseSiteLine(), and OpenMD::Velocitizer::randomizeChargeVelocity().
|
inline |
Tests if this stuntDouble is a directional one.
Definition at line 162 of file StuntDouble.hpp.
References isDirectionalAtom(), and isRigidBody().
Referenced by OpenMD::RigidBody::calcForcesAndTorques(), OpenMD::RigidBody::calcForcesAndTorquesAndVirial(), OpenMD::RigidBody::calcRefCoords(), freeze(), OpenMD::Thermo::getInertiaTensor(), OpenMD::Velocitizer::randomize(), OpenMD::Velocitizer::scale(), OpenMD::RigidBody::setA(), OpenMD::RigidBody::setA(), OpenMD::RigidBody::setPrevA(), and OpenMD::RigidBody::updateAtoms().
|
inline |
Tests if this stuntDouble is an directional atom.
Definition at line 149 of file StuntDouble.hpp.
Referenced by isDirectional().
|
inline |
Tests the if this stuntDouble is a linear rigidbody.
Definition at line 1496 of file StuntDouble.hpp.
Referenced by freeze(), and OpenMD::Velocitizer::randomize().
|
inline |
Tests if this stuntDouble is a rigid body.
Definition at line 155 of file StuntDouble.hpp.
Referenced by OpenMD::SimInfo::addInteractionPairs(), isDirectional(), OpenMD::DumpReader::parseSiteLine(), OpenMD::Velocitizer::randomizeChargeVelocity(), and OpenMD::SimInfo::removeInteractionPairs().
|
inline |
Converts a lab fixed vector to a body fixed vector.
| v | lab fixed vector |
Definition at line 1528 of file StuntDouble.hpp.
References getA().
|
inline |
Definition at line 1530 of file StuntDouble.hpp.
|
inline |
Returns the linear axis of the rigidbody, atom and directional atom will always return -1.
Definition at line 1506 of file StuntDouble.hpp.
Referenced by OpenMD::Velocitizer::randomize().
| void OpenMD::StuntDouble::removeProperty | ( | const std::string & | propName | ) |
Removes property from PropertyMap by name.
| propName | the name of property to be removed |
Definition at line 141 of file StuntDouble.cpp.
References removeProperty().
Referenced by removeProperty().
|
inlinevirtual |
Sets the current rotation matrix of this stuntDouble.
| a | new rotation matrix |
Reimplemented in OpenMD::DirectionalAtom, and OpenMD::RigidBody.
Definition at line 349 of file StuntDouble.hpp.
|
inlinevirtual |
Sets the rotation matrix of this stuntDouble in specified snapshot.
| a | rotation matrix to be set |
| snapshotNo |
Reimplemented in OpenMD::DirectionalAtom, and OpenMD::RigidBody.
Definition at line 359 of file StuntDouble.hpp.
|
inline |
Sets the current density of this stuntDouble.
| dens | new density |
Definition at line 1413 of file StuntDouble.hpp.
Referenced by OpenMD::DumpReader::parseSiteLine().
|
inline |
Sets the density of this stuntDouble in specified snapshot.
| dens | density to be set |
| snapshotNo |
Definition at line 1424 of file StuntDouble.hpp.
|
inline |
Sets the current electric field of this stuntDouble.
| eField | new electric field |
Definition at line 1232 of file StuntDouble.hpp.
Referenced by OpenMD::RigidBody::calcForcesAndTorques(), OpenMD::RigidBody::calcForcesAndTorquesAndVirial(), OpenMD::DumpReader::parseSiteLine(), and zeroForcesAndTorques().
|
inline |
Sets the electric field of this stuntDouble in specified snapshot.
| eField | electric field to be set |
| snapshotNo |
Definition at line 1243 of file StuntDouble.hpp.
|
inline |
Sets the current euler angles of this stuntDouble.
| euler | new euler angles |
Definition at line 570 of file StuntDouble.hpp.
|
inline |
Sets the euler angles of this stuntDouble in specified snapshot.
| euler | euler angles to be set |
| snapshotNo |
Definition at line 583 of file StuntDouble.hpp.
|
inline |
Sets the current charge force of this stuntDouble.
| cfrc | new charge force |
Definition at line 1143 of file StuntDouble.hpp.
Referenced by OpenMD::DumpReader::parseSiteLine(), and zeroForcesAndTorques().
|
inline |
Sets the charge force of this stuntDouble in specified snapshot.
| cfrc | charge force to be set |
| snapshotNo |
Definition at line 1154 of file StuntDouble.hpp.
|
inline |
Sets the current fluctuating charge of this stuntDouble.
| charge | new fluctuating charge |
Definition at line 962 of file StuntDouble.hpp.
Referenced by OpenMD::DumpReader::parseSiteLine(), OpenMD::PotDiff::PotDiff(), and OpenMD::PotDiff::process().
|
inline |
Sets the fluctuating charge of this stuntDouble in specified snapshot.
| charge | fluctuating charge to be set |
| snapshotNo |
Definition at line 973 of file StuntDouble.hpp.
|
inline |
Sets the current charge velocity of this stuntDouble.
| cvel | new charge velocity |
Definition at line 1053 of file StuntDouble.hpp.
Referenced by OpenMD::DumpReader::parseSiteLine(), and OpenMD::Velocitizer::randomizeChargeVelocity().
|
inline |
Sets the charge velocity of this stuntDouble in specified snapshot.
| cvel | charge velocity to be set |
| snapshotNo |
Definition at line 1064 of file StuntDouble.hpp.
|
inline |
Sets the current force of this stuntDouble.
| frc | new force |
Definition at line 688 of file StuntDouble.hpp.
Referenced by freeze(), and zeroForcesAndTorques().
|
inline |
Sets the force of this stuntDouble in specified snapshot.
| frc | force to be set |
| snapshotNo |
Definition at line 700 of file StuntDouble.hpp.
|
inline |
Sets the global index of this stuntDouble.
| index | new global index to be set |
Definition at line 110 of file StuntDouble.hpp.
|
inline |
Definition at line 128 of file StuntDouble.hpp.
|
inline |
Sets the current angular momentum of this stuntDouble (body-fixed).
| angMom | new angular momentum |
Definition at line 407 of file StuntDouble.hpp.
Referenced by freeze(), OpenMD::Velocitizer::randomize(), and OpenMD::Velocitizer::scale().
|
inline |
Sets the angular momentum of this stuntDouble in specified snapshot(body-fixed).
| angMom | angular momentum to be set |
| snapshotNo |
Definition at line 419 of file StuntDouble.hpp.
|
inline |
Sets the local index of this stuntDouble.
| index | new index to be set |
Definition at line 122 of file StuntDouble.hpp.
Referenced by OpenMD::MoleculeCreator::createAtom().
|
inline |
Sets the mass of this stuntdoulbe.
| mass | the mass to be set |
Definition at line 1515 of file StuntDouble.hpp.
|
inline |
Sets the current particlePot of this stuntDouble.
| particlePot | new particlePot |
Definition at line 870 of file StuntDouble.hpp.
Referenced by OpenMD::DumpReader::parseSiteLine(), and zeroForcesAndTorques().
|
inline |
Sets the particlePot of this stuntDouble in specified snapshot.
| particlePot | particlePot to be set |
| snapshotNo |
Definition at line 882 of file StuntDouble.hpp.
|
inline |
Sets the current position of this stuntDouble.
| pos | new position |
Definition at line 228 of file StuntDouble.hpp.
Referenced by OpenMD::Molecule::moveCom().
|
inline |
Sets the position of this stuntDouble in specified snapshot.
| pos | position to be set |
| snapshotNo |
Definition at line 241 of file StuntDouble.hpp.
|
inlinevirtual |
Sets the previous rotation matrix of this stuntDouble.
| a | new rotation matrix |
Reimplemented in OpenMD::DirectionalAtom, and OpenMD::RigidBody.
Definition at line 341 of file StuntDouble.hpp.
Referenced by setPrevQ().
|
inline |
Sets the previous density of this stuntDouble.
| dens | new density |
Definition at line 1404 of file StuntDouble.hpp.
|
inline |
Sets the previous electric field of this stuntDouble.
| eField | new electric field |
Definition at line 1223 of file StuntDouble.hpp.
|
inline |
Sets the previous euler angles of this stuntDouble.
| euler | new euler angles |
Definition at line 560 of file StuntDouble.hpp.
|
inline |
Sets the previous charge force of this stuntDouble.
| cfrc | new charge force |
Definition at line 1134 of file StuntDouble.hpp.
|
inline |
Sets the previous fluctuating charge of this stuntDouble.
| charge | new fluctuating charge |
Definition at line 953 of file StuntDouble.hpp.
|
inline |
Sets the previous charge velocity of this stuntDouble.
| cvel | new charge velocity |
Definition at line 1044 of file StuntDouble.hpp.
|
inline |
Sets the previous force of this stuntDouble.
| frc | new force |
Definition at line 680 of file StuntDouble.hpp.
|
inline |
Sets the previous angular momentum of this stuntDouble (body-fixed).
| angMom | new angular momentum |
Definition at line 398 of file StuntDouble.hpp.
|
inline |
Sets the previous particlePot of this stuntDouble.
| particlePot | new particlePot |
Definition at line 861 of file StuntDouble.hpp.
|
inline |
Sets the previous position of this stuntDouble.
| pos | new position |
Definition at line 219 of file StuntDouble.hpp.
|
inline |
Sets the previous quaternion of this stuntDouble.
| q | new quaternion |
Definition at line 505 of file StuntDouble.hpp.
References setPrevA().
|
inline |
Sets the previous site potential of this stuntDouble.
| spot | new site potential |
Definition at line 1315 of file StuntDouble.hpp.
|
inline |
Sets the previous torque of this stuntDouble.
| trq | new torque |
Definition at line 770 of file StuntDouble.hpp.
|
inline |
Sets the previous velocity of this stuntDouble.
| vel | new velocity |
Definition at line 283 of file StuntDouble.hpp.
|
inline |
Sets the current quaternion of this stuntDouble.
| q | new quaternion |
Definition at line 512 of file StuntDouble.hpp.
References setA().
|
inline |
Sets the quaternion of this stuntDouble in specified snapshot.
| q | quaternion to be set |
| snapshotNo |
Definition at line 521 of file StuntDouble.hpp.
References setA().
|
inline |
Sets the current site potential of this stuntDouble.
| spot | new site potential |
Definition at line 1324 of file StuntDouble.hpp.
Referenced by OpenMD::DumpReader::parseSiteLine(), and zeroForcesAndTorques().
|
inline |
Sets the site potential of this stuntDouble in specified snapshot.
| spot | site potential to be set |
| snapshotNo |
Definition at line 1335 of file StuntDouble.hpp.
|
inline |
Sets the Snapshot Manager of this stuntDouble.
Definition at line 135 of file StuntDouble.hpp.
Referenced by OpenMD::SimInfo::setSnapshotManager().
|
inline |
Sets the current torque of this stuntDouble.
| trq | new torque |
Definition at line 778 of file StuntDouble.hpp.
Referenced by freeze(), and zeroForcesAndTorques().
|
inline |
Sets the torque of this stuntDouble in specified snapshot.
| trq | torque to be set |
| snapshotNo |
Definition at line 790 of file StuntDouble.hpp.
|
inlinevirtual |
Sets the name of this stuntDouble.
Reimplemented in OpenMD::RigidBody.
Definition at line 1521 of file StuntDouble.hpp.
|
inline |
Sets the current velocity of this stuntDouble.
| vel | new velocity |
Definition at line 292 of file StuntDouble.hpp.
Referenced by freeze(), OpenMD::Velocitizer::randomize(), OpenMD::Velocitizer::removeAngularDrift(), OpenMD::Velocitizer::removeComDrift(), and OpenMD::Velocitizer::scale().
|
inline |
Sets the velocity of this stuntDouble in specified snapshot.
| vel | velocity to be set |
| snapshotNo |
Definition at line 303 of file StuntDouble.hpp.
| void OpenMD::StuntDouble::zeroForcesAndTorques | ( | ) |
Set the properties of this stuntDouble to zero.
Definition at line 67 of file StuntDouble.cpp.
References setElectricField(), setFlucQFrc(), setFrc(), setParticlePot(), setSitePotential(), setTrq(), and zeroForcesAndTorques().
Referenced by zeroForcesAndTorques().
|
protected |
Definition at line 1603 of file StuntDouble.hpp.
|
protected |
Definition at line 1604 of file StuntDouble.hpp.
|
protected |
Definition at line 1600 of file StuntDouble.hpp.
|
protected |
Definition at line 1601 of file StuntDouble.hpp.
|
protected |
Definition at line 1605 of file StuntDouble.hpp.
|
protected |
Definition at line 1607 of file StuntDouble.hpp.
|
protected |
Definition at line 1596 of file StuntDouble.hpp.
|
protected |
Definition at line 1598 of file StuntDouble.hpp.
|
protected |
Definition at line 1597 of file StuntDouble.hpp.