ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
Galilei Class Reference

#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.
 

Detailed Description

Definition at line 28 of file core/galilei/Galilei.hpp.

Member Function Documentation

◆ calc_system_cms_position()

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.

◆ calc_system_cms_velocity()

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().

◆ 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().

◆ kill_particle_forces()

void Galilei::kill_particle_forces ( System::System system,
bool  torque 
) const

Set all the forces acting on the particles to zero.

Parameters
systemthe system to modify
torqueif true, also set particle torques to zero

Definition at line 53 of file Galilei.cpp.

References System::System::cell_structure, System::System::on_particle_change(), and torque.

◆ kill_particle_motion()

void Galilei::kill_particle_motion ( System::System system,
bool  omega 
) const

Stop particle motion by setting the velocity of each particle to zero.

Parameters
systemthe system to modify
omegaif 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().


The documentation for this class was generated from the following files: