summaryrefslogtreecommitdiff
path: root/examples/poiseulle_particles_channel_2d/poiseulle_particles_channel_2d.cpp
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2026-04-15 19:11:21 +0200
committerClaudius "keldu" Holeksa <mail@keldu.de>2026-04-15 19:11:21 +0200
commit30ff1caf073b4341fd0614e0974c67a8588c8931 (patch)
tree642a85da357eeac7040aae483da23f0774e19a69 /examples/poiseulle_particles_channel_2d/poiseulle_particles_channel_2d.cpp
parentc61ba8f8eb86f66915a54551fcc39dfbeab1fad9 (diff)
downloadlibs-lbm-30ff1caf073b4341fd0614e0974c67a8588c8931.tar.gz
Feierabend
Diffstat (limited to 'examples/poiseulle_particles_channel_2d/poiseulle_particles_channel_2d.cpp')
-rw-r--r--examples/poiseulle_particles_channel_2d/poiseulle_particles_channel_2d.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/poiseulle_particles_channel_2d/poiseulle_particles_channel_2d.cpp b/examples/poiseulle_particles_channel_2d/poiseulle_particles_channel_2d.cpp
index 7ac663f..1e6e75f 100644
--- a/examples/poiseulle_particles_channel_2d/poiseulle_particles_channel_2d.cpp
+++ b/examples/poiseulle_particles_channel_2d/poiseulle_particles_channel_2d.cpp
@@ -461,6 +461,8 @@ void couple_particles_to_lattice(
p_acc = p_acc + p_pos_rel_vec;
}
+
+
/* So I want to include the relative velocity from both particles, but this is a bit hard considering I just assumed 0 velocity from the other party
else if(n_macro_cell_particle.get() != (i.get() + 1u) and n_macro_cell_particle.get() > 0u){
// Generally compare
@@ -478,6 +480,7 @@ void couple_particles_to_lattice(
auto& n_info = n_cell.template get<"info">()({0u});
auto& n_macro_cell = macros.at(n_p_cell_pos);
auto& n_macro_cell_particle = n_macro_cell.template get<"particle">();
+ l
// If neighbour is wall, then add force pushing the particle away
if(n_info.get() <= 1u or (n_macro_cell_particle.get() != (i.get()+1u) and n_macro_cell_particle.get() > 0u) ) {