|
OpenMD 3.2
Molecular Dynamics in the Open
|
An adapter class of StuntDouble which is used at constraint algorithm. More...
#include "constraints/ConstraintElem.hpp"
Public Member Functions | |
| ConstraintElem (StuntDouble *sd) | |
| bool | getMoved () |
| void | setMoved (bool moved) |
| bool | getMoving () |
| void | setMoving (bool moving) |
| StuntDouble * | getStuntDouble () |
| int | getGlobalIndex () |
| Returns the global index of this stuntRealType. | |
| void | setGlobalIndex (int index) |
| Sets the global index of this stuntRealType. | |
| int | getLocalIndex () |
| Returns the local index of this stuntdouble. | |
| void | setLocalIndex (int index) |
| Sets the local index of this stuntdouble. | |
| 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. | |
| 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. | |
| 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. | |
| void | setPrevA (const RotMat3x3d &a) |
| Sets the previous rotation matrix of this stuntdouble. | |
| void | setA (const RotMat3x3d &a) |
| Sets the current rotation matrix of this stuntdouble. | |
| 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). | |
| 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 stuntRealType. | |
| 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. | |
| void | zeroForcesAndTorques () |
| Set the force of this stuntdouble to zero. | |
| Mat3x3d | getI () |
| Returns the inertia tensor of this stuntdouble. | |
| std::vector< RealType > | getGrad () |
| 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. | |
| std::string | getType () |
| Returns the name of this stuntdouble. | |
| void | setType (const std::string &name) |
| Sets the name of this stuntRealType. | |
| Vector3d | lab2Body (const Vector3d &v) |
| Converts a lab fixed vector to a body fixed vector. | |
| Vector3d | body2Lab (const Vector3d &v) |
| Converts a body fixed vector to a lab fixed vector. | |
| void | accept (BaseVisitor *v) |
| 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. | |
An adapter class of StuntDouble which is used at constraint algorithm.
Definition at line 64 of file ConstraintElem.hpp.
|
inline |
Definition at line 66 of file ConstraintElem.hpp.
|
inline |
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 |
Definition at line 682 of file ConstraintElem.hpp.
|
inline |
Adds force into the current force of this stuntdouble.
| frc | new force |
Definition at line 525 of file ConstraintElem.hpp.
|
inline |
Adds force into the force of this stuntdouble in specified snapshot.
| frc | force to be set |
| snapshotNo |
Definition at line 534 of file ConstraintElem.hpp.
|
inline |
Adds force into the previous force of this stuntdouble.
| frc | new force |
Definition at line 519 of file ConstraintElem.hpp.
|
inline |
Adds torque into the previous torque of this stuntdouble.
| trq | new torque |
Definition at line 589 of file ConstraintElem.hpp.
|
inline |
Adds property into property map.
| genData | GenericData to be added into PropertyMap |
Definition at line 689 of file ConstraintElem.hpp.
|
inline |
Adds torque into the current torque of this stuntdouble.
| trq | new torque |
Definition at line 595 of file ConstraintElem.hpp.
|
inline |
Adds torque into the torque of this stuntdouble in specified snapshot.
| trq | torque to be add |
| snapshotNo |
Definition at line 604 of file ConstraintElem.hpp.
|
inline |
Converts a body fixed vector to a lab fixed vector.
| v | body fixed vector |
Definition at line 670 of file ConstraintElem.hpp.
|
inline |
Returns the current rotation matrix of this stuntdouble.
Definition at line 265 of file ConstraintElem.hpp.
|
inline |
Returns the rotation matrix of this stuntdouble in specified snapshot.
| snapshotNo |
Definition at line 273 of file ConstraintElem.hpp.
|
inline |
Returns the current dipole vector of this stuntDouble.
Definition at line 436 of file ConstraintElem.hpp.
|
inline |
Returns the dipole vector of this stuntDouble in specified snapshot.
| snapshotNo |
Definition at line 444 of file ConstraintElem.hpp.
|
inline |
Returns the current euler angles of this stuntdouble.
Definition at line 392 of file ConstraintElem.hpp.
|
inline |
Returns the euler angles of this stuntdouble in specified snapshot.
| snapshotNo |
Definition at line 399 of file ConstraintElem.hpp.
|
inline |
Returns the current force of this stuntdouble.
Definition at line 478 of file ConstraintElem.hpp.
|
inline |
Returns the force of this stuntdouble in specified snapshot.
| snapshotNo |
Definition at line 486 of file ConstraintElem.hpp.
|
inline |
Returns the global index of this stuntRealType.
Definition at line 116 of file ConstraintElem.hpp.
|
inline |
Returns the gradient of this stuntdouble.
Definition at line 620 of file ConstraintElem.hpp.
|
inline |
Returns the inertia tensor of this stuntdouble.
Definition at line 614 of file ConstraintElem.hpp.
|
inline |
Returns the current angular momentum of this stuntdouble (body -fixed).
Definition at line 306 of file ConstraintElem.hpp.
|
inline |
Returns the angular momentum of this stuntdouble in specified snapshot (body-fixed).
| snapshotNo |
Definition at line 314 of file ConstraintElem.hpp.
|
inline |
Returns the local index of this stuntdouble.
Definition at line 128 of file ConstraintElem.hpp.
|
inline |
Returns the mass of this stuntdouble.
Definition at line 644 of file ConstraintElem.hpp.
|
inline |
Definition at line 104 of file ConstraintElem.hpp.
|
inline |
Definition at line 107 of file ConstraintElem.hpp.
|
inline |
Returns the current position of this stuntdouble.
Definition at line 180 of file ConstraintElem.hpp.
|
inline |
Returns the position of this stuntdouble in specified snapshot.
| snapshotNo |
Definition at line 187 of file ConstraintElem.hpp.
|
inline |
Returns the previous rotation matrix of this stuntdouble.
Definition at line 259 of file ConstraintElem.hpp.
|
inline |
Returns the previous dipole vector of this stuntDouble.
Definition at line 430 of file ConstraintElem.hpp.
|
inline |
Returns the previous euler angles of this stuntdouble.
Definition at line 386 of file ConstraintElem.hpp.
|
inline |
Returns the previous force of this stuntdouble.
Definition at line 472 of file ConstraintElem.hpp.
|
inline |
Returns the previous angular momentum of this stuntdouble (body-fixed).
Definition at line 300 of file ConstraintElem.hpp.
|
inline |
Returns the previous position of this stuntdouble.
Definition at line 174 of file ConstraintElem.hpp.
|
inline |
Returns the previous quaternion of this stuntdouble.
Definition at line 344 of file ConstraintElem.hpp.
|
inline |
Returns the previous quadrupole tensor of this stuntDouble.
Definition at line 450 of file ConstraintElem.hpp.
|
inline |
Returns the previous torque of this stuntdouble.
Definition at line 542 of file ConstraintElem.hpp.
|
inline |
Returns the previous velocity of this stuntdouble.
Definition at line 216 of file ConstraintElem.hpp.
|
inline |
Returns all of the properties in PropertyMap.
Definition at line 713 of file ConstraintElem.hpp.
|
inline |
Returns property.
| propName | name of property |
Definition at line 723 of file ConstraintElem.hpp.
|
inline |
Returns all names of properties.
Definition at line 705 of file ConstraintElem.hpp.
|
inline |
Returns the current quaternion of this stuntdouble.
Definition at line 350 of file ConstraintElem.hpp.
|
inline |
Returns the quaternion of this stuntdouble in specified snapshot.
| snapshotNo |
Definition at line 357 of file ConstraintElem.hpp.
|
inline |
Returns the current quadrupole tensor of this stuntDouble.
Definition at line 456 of file ConstraintElem.hpp.
|
inline |
Returns the quadrupole tensor of this stuntDouble in specified snapshot.
| snapshotNo |
Definition at line 464 of file ConstraintElem.hpp.
|
inline |
Definition at line 110 of file ConstraintElem.hpp.
|
inline |
Returns the current torque of this stuntdouble.
Definition at line 548 of file ConstraintElem.hpp.
|
inline |
Returns the torque of this stuntdouble in specified snapshot.
| snapshotNo |
Definition at line 556 of file ConstraintElem.hpp.
|
inline |
Returns the name of this stuntdouble.
Definition at line 653 of file ConstraintElem.hpp.
|
inline |
Returns the current velocity of this stuntdouble.
Definition at line 222 of file ConstraintElem.hpp.
|
inline |
Returns the velocity of this stuntdouble in specified snapshot.
| snapshotNo |
Definition at line 230 of file ConstraintElem.hpp.
|
inline |
Tests if this stuntdouble is an atom.
Definition at line 148 of file ConstraintElem.hpp.
|
inline |
Tests if this stuntdouble is a directional one.
Definition at line 168 of file ConstraintElem.hpp.
|
inline |
Tests if this stuntdouble is an directional atom.
Definition at line 155 of file ConstraintElem.hpp.
|
inline |
Tests the if this stuntdouble is a linear rigidbody.
Definition at line 631 of file ConstraintElem.hpp.
|
inline |
Tests if this stuntdouble is a rigid body.
Definition at line 161 of file ConstraintElem.hpp.
|
inline |
Converts a lab fixed vector to a body fixed vector.
| v | lab fixed vector |
Definition at line 663 of file ConstraintElem.hpp.
|
inline |
Returns the linear axis of the rigidbody, atom and directional atom will always return -1.
Definition at line 641 of file ConstraintElem.hpp.
|
inline |
Removes property from PropertyMap by name.
| propName | the name of property to be removed |
Definition at line 697 of file ConstraintElem.hpp.
|
inline |
Sets the current rotation matrix of this stuntdouble.
| a | new rotation matrix |
Definition at line 286 of file ConstraintElem.hpp.
|
inline |
Sets the rotation matrix of this stuntdouble in specified snapshot.
| a | rotation matrix to be set |
| snapshotNo |
Definition at line 294 of file ConstraintElem.hpp.
|
inline |
Sets the current euler angles of this stuntdouble.
| euler | new euler angles |
Definition at line 413 of file ConstraintElem.hpp.
|
inline |
Sets the euler angles of this stuntdouble in specified snapshot.
| euler | euler angles to be set |
| snapshotNo |
Definition at line 422 of file ConstraintElem.hpp.
|
inline |
Sets the current force of this stuntdouble.
| frc | new force |
Definition at line 500 of file ConstraintElem.hpp.
|
inline |
Sets the force of this stuntdouble in specified snapshot.
| frc | force to be set |
| snapshotNo |
Definition at line 509 of file ConstraintElem.hpp.
|
inline |
Sets the global index of this stuntRealType.
| index | new global index to be set |
Definition at line 122 of file ConstraintElem.hpp.
|
inline |
Sets the current angular momentum of this stuntdouble (body-fixed).
| angMom | new angular momentum |
Definition at line 327 of file ConstraintElem.hpp.
|
inline |
Sets the angular momentum of this stuntdouble in specified snapshot(body-fixed).
| angMom | angular momentum to be set |
| snapshotNo |
Definition at line 336 of file ConstraintElem.hpp.
|
inline |
Sets the local index of this stuntdouble.
| index | new index to be set |
Definition at line 134 of file ConstraintElem.hpp.
|
inline |
Sets the mass of this stuntdoulbe.
| mass | the mass to be set |
Definition at line 650 of file ConstraintElem.hpp.
|
inline |
Definition at line 105 of file ConstraintElem.hpp.
|
inline |
Definition at line 108 of file ConstraintElem.hpp.
|
inline |
Sets the current position of this stuntdouble.
| pos | new position |
Definition at line 200 of file ConstraintElem.hpp.
|
inline |
Sets the position of this stuntdouble in specified snapshot.
| pos | position to be set |
| snapshotNo |
Definition at line 208 of file ConstraintElem.hpp.
|
inline |
Sets the previous rotation matrix of this stuntdouble.
| a | new rotation matrix |
Definition at line 280 of file ConstraintElem.hpp.
|
inline |
Sets the previous euler angles of this stuntRealType.
| euler | new euler angles |
Definition at line 407 of file ConstraintElem.hpp.
|
inline |
Sets the previous force of this stuntdouble.
| frc | new force |
Definition at line 494 of file ConstraintElem.hpp.
|
inline |
Sets the previous angular momentum of this stuntdouble (body-fixed).
| angMom | new angular momentum |
Definition at line 321 of file ConstraintElem.hpp.
|
inline |
Sets the previous position of this stuntdouble.
| pos | new position |
Definition at line 194 of file ConstraintElem.hpp.
|
inline |
Sets the previous quaternion of this stuntdouble.
| q | new quaternion |
Definition at line 364 of file ConstraintElem.hpp.
|
inline |
Sets the previous torque of this stuntdouble.
| trq | new torque |
Definition at line 564 of file ConstraintElem.hpp.
|
inline |
Sets the previous velocity of this stuntdouble.
| vel | new velocity |
Definition at line 237 of file ConstraintElem.hpp.
|
inline |
Sets the current quaternion of this stuntdouble.
| q | new quaternion |
Definition at line 371 of file ConstraintElem.hpp.
|
inline |
Sets the quaternion of this stuntdouble in specified snapshot.
| q | quaternion to be set |
| snapshotNo |
Definition at line 380 of file ConstraintElem.hpp.
|
inline |
Sets the Snapshot Manager of this stuntdouble.
Definition at line 139 of file ConstraintElem.hpp.
|
inline |
Sets the current torque of this stuntdouble.
| trq | new torque |
Definition at line 570 of file ConstraintElem.hpp.
|
inline |
Sets the torque of this stuntdouble in specified snapshot.
| trq | torque to be set |
| snapshotNo |
Definition at line 579 of file ConstraintElem.hpp.
|
inline |
Sets the name of this stuntRealType.
Definition at line 656 of file ConstraintElem.hpp.
|
inline |
Sets the current velocity of this stuntdouble.
| vel | new velocity |
Definition at line 243 of file ConstraintElem.hpp.
|
inline |
Sets the velocity of this stuntdouble in specified snapshot.
| vel | velocity to be set |
| snapshotNo |
Definition at line 251 of file ConstraintElem.hpp.
|
inline |
Set the force of this stuntdouble to zero.
Definition at line 609 of file ConstraintElem.hpp.