diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2025-08-14 15:57:12 +0200 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2025-08-14 15:57:12 +0200 |
commit | 0e0da21fdadb2b924d42bf21ac6c881cf1abcf63 (patch) | |
tree | 253982d7be214993f1a61a564271018d64b15265 /examples/poiseulle_particles_channel_2d.cpp | |
parent | a1afab28506cbb52da8229b84a146fbf30c4a4ce (diff) |
End of day, attempts at utilization
Diffstat (limited to 'examples/poiseulle_particles_channel_2d.cpp')
-rw-r--r-- | examples/poiseulle_particles_channel_2d.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/poiseulle_particles_channel_2d.cpp b/examples/poiseulle_particles_channel_2d.cpp index 9498ba7..902a19e 100644 --- a/examples/poiseulle_particles_channel_2d.cpp +++ b/examples/poiseulle_particles_channel_2d.cpp @@ -451,9 +451,8 @@ void couple_particles_to_lattice( // If neighbour is wall, then add force pushing the particle away if(n_info.get() <= 1u){ // add to p_acc - p_acc.at({{0u}}) = p_acc.at({{0u}}) + saw::data<sch::Int32>{10 * dfi::directions[dfi::opposite_index[k.get()]][0u]}.template cast_to<sch::T>(); - p_acc.at({{1u}}) = p_acc.at({{1u}}) + saw::data<sch::Int32>{10 * dfi::directions[dfi::opposite_index[k.get()]][1u]}.template cast_to<sch::T>(); - ; + p_acc.at({{0u}}) = p_acc.at({{0u}}) - saw::data<sch::Int32>{10 * dfi::directions[dfi::opposite_index[k.get()]][0u]}.template cast_to<sch::T>(); + p_acc.at({{1u}}) = p_acc.at({{1u}}) - saw::data<sch::Int32>{10 * dfi::directions[dfi::opposite_index[k.get()]][1u]}.template cast_to<sch::T>(); } } /// 2. Add force pushing away from wall |