![]() |
ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
|
Force calculation. More...
#include <config/config.hpp>#include "BoxGeometry.hpp"#include "Particle.hpp"#include "ParticleRange.hpp"#include "PropagationMode.hpp"#include "bond_breakage/bond_breakage.hpp"#include "cell_system/CellStructure.hpp"#include "cells.hpp"#include "collision_detection/CollisionDetection.hpp"#include "communication.hpp"#include "constraints/Constraints.hpp"#include "electrostatics/icc.hpp"#include "forces_inline.hpp"#include "galilei/ComFixed.hpp"#include "immersed_boundary/ImmersedBoundaries.hpp"#include "integrators/Propagation.hpp"#include "lb/particle_coupling.hpp"#include "magnetostatics/dipoles.hpp"#include "nonbonded_interactions/VerletCriterion.hpp"#include "nonbonded_interactions/nonbonded_interaction_data.hpp"#include "npt.hpp"#include "rotation.hpp"#include "short_range_cabana.hpp"#include "short_range_loop.hpp"#include "system/System.hpp"#include "thermostat.hpp"#include "thermostats/langevin_inline.hpp"#include "virtual_sites/com.hpp"#include "virtual_sites/relative.hpp"#include <utils/Vector.hpp>#include <utils/math/sqr.hpp>#include <caliper/cali.h>#include <Cabana_Core.hpp>#include <cassert>#include <cmath>#include <memory>#include <span>#include <variant>
Include dependency graph for forces.cpp:Go to the source code of this file.
Functions | |
| static ParticleForce | external_force (Particle const &p) |
| External particle forces. | |
| void | init_forces_and_thermostat (System::System const &system) |
| Combined force initialization and Langevin noise application. | |
| void | init_forces_ghosts (const CellStructure &cell_structure) |
| Set forces of all ghosts to zero. | |
| static void | force_capping (CellStructure &cell_structure, double force_cap) |
| static void | reinit_dip_fld (CellStructure const &cell_structure) |
| void | calc_long_range_forces (const ParticleRange &particles) |
| Calculate long range forces (P3M, ...). | |
| void calc_long_range_forces | ( | const ParticleRange & | particles | ) |
Calculate long range forces (P3M, ...).
Definition at line 423 of file forces.cpp.
References Coulomb::Solver::calc_long_range_force(), Dipoles::Solver::calc_long_range_force(), Coulomb::get_coulomb(), and Dipoles::get_dipoles().
Referenced by System::System::calculate_forces().
|
static |
External particle forces.
Definition at line 76 of file forces.cpp.
References Particle::calc_director(), Particle::ext_force(), Particle::ext_torque(), ParticleForce::f, Particle::swimming(), and ParticleForce::torque.
Referenced by init_forces_and_thermostat().
|
static |
Definition at line 145 of file forces.cpp.
References CellStructure::for_each_local_particle(), Particle::force(), and Utils::sqr().
Referenced by System::System::calculate_forces().
| void init_forces_and_thermostat | ( | System::System const & | system | ) |
Combined force initialization and Langevin noise application.
Definition at line 98 of file forces.cpp.
References System::System::cell_structure, convert_vector_body_to_space(), external_force(), Particle::force(), Particle::force_and_torque(), friction_thermo_langevin(), friction_thermo_langevin_rotation(), System::System::get_time_step(), init_forces_ghosts(), System::System::propagation, PropagationMode::ROT_LANGEVIN, System::System::thermostat, Particle::torque(), and PropagationMode::TRANS_LANGEVIN.
Referenced by System::System::calculate_forces().
| void init_forces_ghosts | ( | const CellStructure & | cell_structure | ) |
Set forces of all ghosts to zero.
Definition at line 140 of file forces.cpp.
References CellStructure::for_each_ghost_particle(), and Particle::force_and_torque().
Referenced by init_forces_and_thermostat(), lb_tracers_add_particle_force_to_fluid(), vs_com_back_transfer_forces_and_torques(), and vs_relative_back_transfer_forces_and_torques().
|
static |
Definition at line 159 of file forces.cpp.
References Particle::dip_fld(), and CellStructure::for_each_local_particle().
Referenced by System::System::calculate_forces().