![]() |
ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
|
#include <config/config.hpp>#include "BoxGeometry.hpp"#include "LocalBox.hpp"#include "Particle.hpp"#include "cell_system/CellStructure.hpp"#include "communication.hpp"#include "errorhandling.hpp"#include "lb/particle_coupling.hpp"#include "random.hpp"#include "system/System.hpp"#include "thermostat.hpp"#include <utils/Counter.hpp>#include <utils/Vector.hpp>#include <boost/mpi.hpp>#include <caliper/cali.h>#include <cmath>#include <cstdint>#include <initializer_list>#include <limits>#include <ranges>#include <stdexcept>#include <vector>
Include dependency graph for particle_coupling.cpp:Go to the source code of this file.
Namespaces | |
| namespace | LB |
|
static |
Definition at line 104 of file particle_coupling.cpp.
References stream.
Referenced by LB::ParticleCoupling::kernel(), positions_in_halo(), and positions_in_halo_impl().
|
static |
Check if a position is within the local box + halo.
| local_box | Local geometry |
| pos | Position to check |
| halo | Halo |
Definition at line 95 of file particle_coupling.cpp.
References Utils::Vector< T, N >::broadcast(), and stream.
Referenced by in_local_halo().
Check if a position is within the local LB domain plus halo.
Definition at line 110 of file particle_coupling.cpp.
References in_local_domain(), and stream.
| Utils::Vector3d lb_drag_force | ( | LB::Solver const & | lb, |
| double | lb_gamma, | ||
| Particle const & | p, | ||
| Utils::Vector3d const & | shifted_pos | ||
| ) |
Calculate drag force on a single particle.
See section II.C. and eq. 9 in [2].
| [in] | lb | The coupled fluid |
| [in] | lb_gamma | The friction coefficient |
| [in] | p | The coupled particle |
| [in] | shifted_pos | The particle position in MD units with optional shift |
Definition at line 79 of file particle_coupling.cpp.
References LB::Solver::get_coupling_interpolated_velocity(), lb_drag_force(), and stream.
|
static |
Definition at line 66 of file particle_coupling.cpp.
References Utils::hadamard_product(), lb_handle_particle_anisotropy(), Particle::mu_E(), stream, and Particle::v().
Referenced by LB::ParticleCoupling::kernel(), and lb_drag_force().
|
static |
Definition at line 51 of file particle_coupling.cpp.
References Utils::Vector< T, N >::broadcast(), Particle::gamma(), Thermostat::handle_particle_gamma(), and stream.
Referenced by LB::ParticleCoupling::get_noise_term(), and lb_drag_force().
|
static |
Definition at line 179 of file particle_coupling.cpp.
References LEES_EDWARDS, BoxGeometry::lees_edwards_bc(), stream, and BoxGeometry::type().
Referenced by LB::ParticleCoupling::kernel().
| std::vector< Utils::Vector3d > positions_in_halo | ( | Utils::Vector3d const & | pos, |
| BoxGeometry const & | box_geo, | ||
| LocalBox const & | local_box, | ||
| double | agrid | ||
| ) |
Return a vector of positions shifted by +,- box length in each coordinate.
Definition at line 159 of file particle_coupling.cpp.
References Utils::Vector< T, N >::broadcast(), BoxGeometry::folded_position(), in_box(), positions_in_halo_impl(), and stream.
Referenced by lb_tracers_add_particle_force_to_fluid().
|
static |
Definition at line 116 of file particle_coupling.cpp.
References Utils::hadamard_product(), in_box(), LEES_EDWARDS, BoxGeometry::lees_edwards_bc(), BoxGeometry::length(), Algorithm::periodic_fold(), stream, and BoxGeometry::type().
Referenced by LB::ParticleCoupling::kernel(), and positions_in_halo().