#include <colvarproxy.h>
Inheritance diagram for colvarproxy_atoms:
List of all members.
Definition at line 41 of file colvarproxy.h.
Constructor.
Definition at line 22 of file colvarproxy.C.
References atoms_max_applied_force_, atoms_max_applied_force_id_, atoms_rms_applied_force_, updated_charges_, and updated_masses_.
[virtual]
[protected]
Used by all init_atom() functions: create a slot for an atom not requested yet; returns the index in the arrays.
Definition at line 49 of file colvarproxy.C.
References atoms_charges, atoms_ids, atoms_masses, atoms_new_colvar_forces, atoms_positions, atoms_refcount, and atoms_total_forces.
Referenced by colvarproxy_vmd::init_atom.
[inline]
Request that this force is applied to the given atom
Definition at line 148 of file colvarproxy.h.
References atoms_new_colvar_forces.
[virtual]
Check that this atom is valid, but do not initialize it yet.
Reimplemented in colvarproxy_vmd.
Definition at line 84 of file colvarproxy.C.
References COLVARS_NOT_IMPLEMENTED, and init_atom.
[virtual]
Check that this atom number is valid, but do not initialize the corresponding atom yet.
Reimplemented in colvarproxy_vmd.
Definition at line 68 of file colvarproxy.C.
References COLVARS_NOT_IMPLEMENTED.
[virtual]
\brief Used by the atom class destructor: rather than deleting the array slot (costly) set the corresponding atoms_refcount to zero.
Definition at line 93 of file colvarproxy.C.
References atoms_ids, atoms_refcount, COLVARS_INPUT_ERROR, and colvarmodule::error.
Compute the maximum norm among all applied forces.
Definition at line 145 of file colvarproxy.C.
References atoms_ids, atoms_max_applied_force_, atoms_max_applied_force_id_, and atoms_new_colvar_forces.
Referenced by colvarproxy::end_of_step.
Compute the root-mean-square of the applied forces.
Definition at line 138 of file colvarproxy.C.
References atoms_rms_applied_force_.
Referenced by colvarproxy::end_of_step.
[inline]
[inline]
Get the charge of the given atom
Definition at line 126 of file colvarproxy.h.
References atoms_charges.
Referenced by colvarmodule::atom::update_charge.
[inline]
[inline]
Get the numeric ID of the given atom
Definition at line 105 of file colvarproxy.h.
References atoms_ids.
[inline]
[inline]
Get the mass of the given atom
Definition at line 112 of file colvarproxy.h.
References atoms_masses.
Referenced by colvarmodule::atom::update_mass.
[inline]
[inline]
Read the current position of the given atom
Definition at line 133 of file colvarproxy.h.
References atoms_positions.
[inline]
[inline]
Read the current total force of the given atom
Definition at line 140 of file colvarproxy.h.
References atoms_total_forces.
[inline]
[inline]
Read the current velocity of the given atom.
Definition at line 154 of file colvarproxy.h.
References COLVARS_NOT_IMPLEMENTED, and colvarmodule::error.
Return number of atoms with positive reference count.
Definition at line 105 of file colvarproxy.C.
References atoms_refcount, and result.
[inline]
Increase the reference count of the given atom
Definition at line 119 of file colvarproxy.h.
References atoms_refcount.
[virtual]
Select this atom for collective variables calculation, using name and residue number. Not all programs support this: leave this function as is in those cases.
Reimplemented in colvarproxy_vmd.
Definition at line 74 of file colvarproxy.C.
References COLVARS_NOT_IMPLEMENTED, and colvarmodule::error.
[virtual]
Prepare this atom for collective variables calculation, selecting it by numeric index (1-based).
Reimplemented in colvarproxy_vmd.
Definition at line 62 of file colvarproxy.C.
References COLVARS_NOT_IMPLEMENTED.
Referenced by check_atom_id.
[virtual]
\brief Select atom IDs from a file (usually PDB)
Reimplemented in colvarproxy_vmd.
Definition at line 115 of file colvarproxy.C.
References COLVARS_NOT_IMPLEMENTED, and colvarmodule::error.
[virtual]
\brief Load a set of coordinates from a file (usually PDB); if "pos" is already allocated, the number of its elements must match the number of entries in "filename"
Definition at line 126 of file colvarproxy.C.
References COLVARS_NOT_IMPLEMENTED, and colvarmodule::error.
[inline]
Get the maximum norm among all applied forces.
Definition at line 237 of file colvarproxy.h.
References atoms_max_applied_force_.
[inline]
Get the atom ID with the largest applied force.
Definition at line 243 of file colvarproxy.h.
References atoms_max_applied_force_id_.
[inline]
[inline]
[inline]
[inline]
[inline]
Clear atomic data.
Reimplemented in colvarproxy.
Definition at line 36 of file colvarproxy.C.
References atoms_charges, atoms_ids, atoms_masses, atoms_new_colvar_forces, atoms_positions, atoms_refcount, and atoms_total_forces.
Referenced by colvarproxy::reset, and ~colvarproxy_atoms.
[inline]
Get the root-mean-square of the applied forces.
Definition at line 231 of file colvarproxy.h.
References atoms_rms_applied_force_.
[inline]
Record whether masses have been updated.
Definition at line 255 of file colvarproxy.h.
References updated_charges_.
[inline]
Record whether masses have been updated.
Definition at line 249 of file colvarproxy.h.
References updated_masses_.
[protected]
\brief Charges of the atoms (allow redefinition during a run, as done e.g. in LAMMPS).
Definition at line 270 of file colvarproxy.h.
Referenced by add_atom_slot, get_atom_charge, get_atom_charges, colvarproxy_vmd::init_atom, modify_atom_charges, colvarproxy::print_input_atomic_data, reset, and colvarproxy_vmd::update_atomic_properties.
[protected]
\brief Array of 0-based integers used to uniquely associate atoms within the host program.
Definition at line 264 of file colvarproxy.h.
Referenced by add_atom_slot, clear_atom, compute_max_atoms_applied_force, get_atom_id, get_atom_ids, colvarproxy_vmd::init_atom, colvarproxy::print_input_atomic_data, reset, colvarproxy_vmd::update_atomic_properties, and colvarproxy_vmd::update_input.
[protected]
\brief Masses of the atoms (allow redefinition during a run, as done e.g. in LAMMPS).
Definition at line 268 of file colvarproxy.h.
Referenced by add_atom_slot, get_atom_mass, get_atom_masses, colvarproxy_vmd::init_atom, modify_atom_masses, colvarproxy::print_input_atomic_data, reset, and colvarproxy_vmd::update_atomic_properties.
[protected]
Maximum norm among all applied forces.
Definition at line 282 of file colvarproxy.h.
Referenced by colvarproxy_atoms, compute_max_atoms_applied_force, and max_atoms_applied_force.
[protected]
ID of the atom with the maximum norm among all applied forces.
Definition at line 285 of file colvarproxy.h.
Referenced by colvarproxy_atoms, compute_max_atoms_applied_force, and max_atoms_applied_force_id.
[protected]
\brief Forces applied from colvars, to be communicated to the MD integrator.
Definition at line 276 of file colvarproxy.h.
Referenced by add_atom_slot, apply_atom_force, compute_max_atoms_applied_force, get_atom_applied_forces, modify_atom_applied_forces, colvarproxy::print_output_atomic_data, reset, and colvarproxy_vmd::update_input.
[protected]
\brief Current three-dimensional positions of the atoms.
Definition at line 272 of file colvarproxy.h.
Referenced by add_atom_slot, get_atom_position, get_atom_positions, modify_atom_positions, colvarproxy::print_input_atomic_data, reset, and colvarproxy_vmd::update_input.
[protected]
\brief Keep track of how many times each atom is used by a separate colvar object.
Definition at line 266 of file colvarproxy.h.
Referenced by add_atom_slot, clear_atom, get_num_active_atoms, increase_refcount, colvarproxy_vmd::init_atom, colvarproxy::print_input_atomic_data, and reset.
[protected]
Root-mean-square of the applied forces.
Definition at line 279 of file colvarproxy.h.
Referenced by colvarproxy_atoms, compute_rms_atoms_applied_force, and rms_atoms_applied_force.
[protected]
\brief Most recent total forces on each atom.
Definition at line 274 of file colvarproxy.h.
Referenced by add_atom_slot, get_atom_total_force, get_atom_total_forces, modify_atom_total_forces, colvarproxy::print_input_atomic_data, and reset.
[protected]
Whether the masses and charges have been updated from the host code.
Definition at line 288 of file colvarproxy.h.
Referenced by colvarproxy_atoms, colvarproxy_vmd::colvarproxy_vmd, colvarproxy::end_of_step, modify_atom_charges, and updated_charges.
[protected]
Whether the masses and charges have been updated from the host code.
Definition at line 288 of file colvarproxy.h.
Referenced by colvarproxy_atoms, colvarproxy_vmd::colvarproxy_vmd, colvarproxy::end_of_step, modify_atom_masses, and updated_masses.