#include <colvaratoms.h>
Public Methods | |||||||
atom () | |||||||
\brief Default constructor (sets index and id both to -1). More... | |||||||
atom (int atom_number) | |||||||
\brief Initialize an atom for collective variable calculation and get its internal identifier
| |||||||
atom (cvm::residue_id const &residue, std::string const &atom_name, std::string const &segment_id) | |||||||
\brief Initialize an atom for collective variable calculation and get its internal identifier
| |||||||
atom (atom const &a) | |||||||
Copy constructor. More... | |||||||
~atom () | |||||||
Destructor. More... | |||||||
atom & | operator= (atom const &a) | ||||||
Assignment operator (added to appease LGTM). More... | |||||||
void | reset_data () | ||||||
Set mutable data (everything except id and mass) to zero. More... | |||||||
void | update_mass () | ||||||
Get the latest value of the mass. More... | |||||||
void | update_charge () | ||||||
Get the latest value of the charge. More... | |||||||
void | read_position () | ||||||
Get the current position. More... | |||||||
void | read_velocity () | ||||||
Get the current velocity. More... | |||||||
void | read_total_force () | ||||||
Get the total force. More... | |||||||
void | apply_force (cvm::rvector const &new_force) const | ||||||
\brief Apply a force to the atom Note: the force is not applied instantly, but will be used later by the MD integrator (the colvars module does not integrate equations of motion. Multiple calls to this function by either the same atom object or different objects with identical id will all be added together. More... | |||||||
Public Attributes | |||||||
int | id | ||||||
Identifier for the MD program (0-based). More... | |||||||
cvm::real | mass | ||||||
Mass. More... | |||||||
cvm::real | charge | ||||||
Charge. More... | |||||||
cvm::atom_pos | pos | ||||||
\brief Current position (copied from the program, can be modified if necessary). More... | |||||||
cvm::rvector | vel | ||||||
\brief Current velocity (copied from the program, can be modified if necessary). More... | |||||||
cvm::rvector | total_force | ||||||
\brief System force at the previous step (copied from the program, can be modified if necessary). More... | |||||||
cvm::rvector | grad | ||||||
\brief Gradient of a scalar collective variable with respect to this atom This can only handle a scalar collective variable (i.e. when the colvarvalue::real_value member is used from the colvarvalue class), which is also the most frequent case. For more complex types of colvarvalue objects, atomic gradients should be defined within the specific colvar::cvc implementation. More... | |||||||
Protected Attributes | |||||||
int | index | ||||||
Index in the colvarproxy arrays (NOT in the global topology!). More... |
Definition at line 28 of file colvaratoms.h.
|
\brief Default constructor (sets index and id both to -1).
|
|
\brief Initialize an atom for collective variable calculation and get its internal identifier
|
|
\brief Initialize an atom for collective variable calculation and get its internal identifier
|
|
Copy constructor.
|
|
Destructor.
|
|
\brief Apply a force to the atom Note: the force is not applied instantly, but will be used later by the MD integrator (the colvars module does not integrate equations of motion. Multiple calls to this function by either the same atom object or different objects with identical id will all be added together.
Definition at line 144 of file colvaratoms.h. |
|
Assignment operator (added to appease LGTM).
|
|
Get the current position.
Definition at line 118 of file colvaratoms.h. |
|
Get the total force.
Definition at line 130 of file colvaratoms.h. |
|
Get the current velocity.
Definition at line 124 of file colvaratoms.h. |
|
Set mutable data (everything except id and mass) to zero.
Definition at line 97 of file colvaratoms.h. References colvarmodule::atom_pos. |
|
Get the latest value of the charge.
Definition at line 111 of file colvaratoms.h. References colvarproxy_atoms::get_atom_charge. |
|
Get the latest value of the mass.
Definition at line 104 of file colvaratoms.h. References colvarproxy_atoms::get_atom_mass. |
|
Charge.
Definition at line 44 of file colvaratoms.h. |
|
\brief Gradient of a scalar collective variable with respect to this atom This can only handle a scalar collective variable (i.e. when the colvarvalue::real_value member is used from the colvarvalue class), which is also the most frequent case. For more complex types of colvarvalue objects, atomic gradients should be defined within the specific colvar::cvc implementation.
Definition at line 68 of file colvaratoms.h. |
|
Identifier for the MD program (0-based).
Definition at line 38 of file colvaratoms.h. |
|
Index in the colvarproxy arrays (NOT in the global topology!).
Definition at line 33 of file colvaratoms.h. |
|
Mass.
Definition at line 41 of file colvaratoms.h. |
|
\brief Current position (copied from the program, can be modified if necessary).
Definition at line 48 of file colvaratoms.h. |
|
\brief System force at the previous step (copied from the program, can be modified if necessary).
Definition at line 56 of file colvaratoms.h. |
|
\brief Current velocity (copied from the program, can be modified if necessary).
Definition at line 52 of file colvaratoms.h. |