summaryrefslogtreecommitdiff
path: root/examples/stokes_drag_particle_2d_hlbm_gpu
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2026-07-07 20:41:45 +0200
committerClaudius "keldu" Holeksa <mail@keldu.de>2026-07-07 20:41:45 +0200
commit544c842c63cd048160f4277a6d0ca3a1f89bd9d1 (patch)
tree01b33ea777f234d1c1f8ba6a4b7282d4cf3f706b /examples/stokes_drag_particle_2d_hlbm_gpu
parent43d795c0afa3c613fb3aee10de7ddf579cf78645 (diff)
downloadlibs-lbm-544c842c63cd048160f4277a6d0ca3a1f89bd9d1.tar.gz
Changing the initial velocity
Diffstat (limited to 'examples/stokes_drag_particle_2d_hlbm_gpu')
-rw-r--r--examples/stokes_drag_particle_2d_hlbm_gpu/sim.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/stokes_drag_particle_2d_hlbm_gpu/sim.cpp b/examples/stokes_drag_particle_2d_hlbm_gpu/sim.cpp
index 68c0b35..e0cbda2 100644
--- a/examples/stokes_drag_particle_2d_hlbm_gpu/sim.cpp
+++ b/examples/stokes_drag_particle_2d_hlbm_gpu/sim.cpp
@@ -132,6 +132,7 @@ saw::error_or<void> setup_initial_conditions(
por_f.at(index).at({}) = {1};
rho.at({}) = {1};
auto& vel = vel_f.at(index);
+ vel.at({{0u}}) = 0.0002f;
auto eq = equilibrium<T,Desc>(rho,vel);
df = eq;
@@ -146,9 +147,6 @@ saw::error_or<void> setup_initial_conditions(
auto& rho = rho_f.at(index);
rho.at({}) = {1};
auto& vel = vel_f.at(index);
- if(info_f.at(index).get() == 2u){
- vel.at({{0u}}) = 0.0002f;
- }
auto eq = equilibrium<T,Desc>(rho,vel);
df = eq;