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-22 16:49:30 +0200
committerClaudius "keldu" Holeksa <mail@keldu.de>2026-04-22 16:49:30 +0200
commit1aee54ea763a19590f4aa41f991cef8f91cf6a93 (patch)
tree7e45e43e9152520d97f991d62dd86362c27cd054 /examples/poiseulle_particles_channel_2d/poiseulle_particles_channel_2d.cpp
parent0f0af5c3e095637c7ede1c8dc20b248a3471dc3a (diff)
parent45ebf7411d687ab5530431ab1bcc74edb0499c69 (diff)
downloadlibs-lbm-1aee54ea763a19590f4aa41f991cef8f91cf6a93.tar.gz
Merge branch 'dev'
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) ) {