ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
|
#include <Galilei.hpp>
Public Member Functions | |
void | kill_particle_motion (System::System &system, bool omega) const |
Stop particle motion by setting the velocity of each particle to zero. | |
void | kill_particle_forces (System::System &system, bool torque) const |
Set all the forces acting on the particles to zero. | |
Utils::Vector3d | calc_system_cms_position (System::System const &system) const |
Calculate the CMS of the system. | |
Utils::Vector3d | calc_system_cms_velocity (System::System const &system) const |
Calculate the CMS velocity of the system. | |
void | galilei_transform (System::System &system) const |
Remove the CMS velocity. | |
Definition at line 28 of file core/galilei/Galilei.hpp.
Utils::Vector3d Galilei::calc_system_cms_position | ( | System::System const & | system | ) | const |
Calculate the CMS of the system.
Definition at line 69 of file Galilei.cpp.
References System::System::box_geo, System::System::cell_structure, and comm_cart.
Utils::Vector3d Galilei::calc_system_cms_velocity | ( | System::System const & | system | ) | const |
Calculate the CMS velocity of the system.
Definition at line 86 of file Galilei.cpp.
References System::System::cell_structure, and comm_cart.
Referenced by galilei_transform().
void Galilei::galilei_transform | ( | System::System & | system | ) | const |
Remove the CMS velocity.
Definition at line 101 of file Galilei.cpp.
References calc_system_cms_velocity(), System::System::cell_structure, and System::System::on_particle_change().
void Galilei::kill_particle_forces | ( | System::System & | system, |
bool | torque | ||
) | const |
Set all the forces acting on the particles to zero.
system | the system to modify |
torque | if true, also set particle torques to zero |
Definition at line 53 of file Galilei.cpp.
References System::System::cell_structure, and System::System::on_particle_change().
void Galilei::kill_particle_motion | ( | System::System & | system, |
bool | omega | ||
) | const |
Stop particle motion by setting the velocity of each particle to zero.
system | the system to modify |
omega | if true, also set particle angular velocities to zero |
Definition at line 38 of file Galilei.cpp.
References System::System::cell_structure, and System::System::on_particle_change().