Loading [MathJax]/extensions/TeX/AMSmath.js
ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages Concepts
forces.hpp File Reference

Force calculation. More...

#include "ParticleRange.hpp"
#include <utils/Vector.hpp>
+ Include dependency graph for forces.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void init_forces (const CellStructure &cell_structure)
 Assign external forces/torques to real particles and zero to ghosts.
 
void init_forces_ghosts (const CellStructure &cell_structure)
 Set forces of all ghosts to zero.
 
void calc_long_range_forces (ParticleRange const &particles)
 Calculate long range forces (P3M, ...).
 
void npt_add_virial_force_contribution (Utils::Vector3d const &force, Utils::Vector3d const &d)
 Update the NpT virial.
 

Detailed Description

Force calculation.

Implementation in forces.cpp.

Definition in file forces.hpp.

Function Documentation

◆ calc_long_range_forces()

void calc_long_range_forces ( ParticleRange const &  particles)

◆ init_forces()

void init_forces ( const CellStructure cell_structure)

Assign external forces/torques to real particles and zero to ghosts.

Definition at line 90 of file forces.cpp.

References external_force(), CellStructure::for_each_local_particle(), Particle::force_and_torque(), and init_forces_ghosts().

Referenced by System::System::calculate_forces().

◆ init_forces_ghosts()

void init_forces_ghosts ( const CellStructure cell_structure)

◆ npt_add_virial_force_contribution()

void npt_add_virial_force_contribution ( Utils::Vector3d const &  force,
Utils::Vector3d const &  d 
)

Update the NpT virial.

Definition at line 269 of file forces.cpp.

References System::get_system(), and System::System::npt_add_virial_contribution().

Referenced by add_bonded_two_body_force(), and add_non_bonded_pair_force().