From 576b566d09194e923f73e0aa5a576bfdb5cfe945 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Thu, 3 Sep 2026 13:42:38 +0200 Subject: Dangling --- examples/one_particle_sedimentation_2d/sim.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples/one_particle_sedimentation_2d/sim.cpp') diff --git a/examples/one_particle_sedimentation_2d/sim.cpp b/examples/one_particle_sedimentation_2d/sim.cpp index a722fc3..8bf8205 100644 --- a/examples/one_particle_sedimentation_2d/sim.cpp +++ b/examples/one_particle_sedimentation_2d/sim.cpp @@ -51,7 +51,8 @@ saw::error_or lbm_main(const saw::data& args){ {{1.5e-6}} }; - print_lbm_meta(conv,{1e-3},{1e-4},{0.02}); + print_lbm_meta(conv,{1e-3},{1e-4},{2}); + std::cout<<"Position: "<> meta{{dim_x,dim_y}}; auto lbm_data_ptr = saw::heap>>(); -- cgit v1.3.1 From 54dfad7ac102fe40d71d8818d77801160a7073c1 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Mon, 7 Sep 2026 13:36:54 +0200 Subject: FpLbm two way couple doing weird things --- examples/one_particle_sedimentation_2d/sim.cpp | 2 +- examples/one_particle_sedimentation_2d/step.hpp | 2 +- examples/schaefer_turek_durst_krause_rannbacher/sim.cpp | 4 +--- modules/core/c++/fplbm.hpp | 2 +- 4 files changed, 4 insertions(+), 6 deletions(-) (limited to 'examples/one_particle_sedimentation_2d/sim.cpp') diff --git a/examples/one_particle_sedimentation_2d/sim.cpp b/examples/one_particle_sedimentation_2d/sim.cpp index 8bf8205..0cb3ce0 100644 --- a/examples/one_particle_sedimentation_2d/sim.cpp +++ b/examples/one_particle_sedimentation_2d/sim.cpp @@ -145,7 +145,7 @@ saw::error_or lbm_main(const saw::data& args){ } } { - auto eov = write_csv_file(out_dir,"ops_2d",i.get(), *lbm_macro_data_ptr); + auto eov = write_vtk_file(out_dir,"ops_2d",i.get(), *lbm_macro_data_ptr); if(eov.is_error()){ return eov; } diff --git a/examples/one_particle_sedimentation_2d/step.hpp b/examples/one_particle_sedimentation_2d/step.hpp index 86064ae..c3a3b8a 100644 --- a/examples/one_particle_sedimentation_2d/step.hpp +++ b/examples/one_particle_sedimentation_2d/step.hpp @@ -175,7 +175,7 @@ saw::error_or step( index.at({{i}}).set(idx[i]); } - fplbm_one_part.apply(fields,macros,particles,index,t_i,{16u}); + fplbm_one_part.apply(fields,macros,particles,index,t_i,{32u}); }); }).wait(); diff --git a/examples/schaefer_turek_durst_krause_rannbacher/sim.cpp b/examples/schaefer_turek_durst_krause_rannbacher/sim.cpp index eeb1c54..35c04a4 100644 --- a/examples/schaefer_turek_durst_krause_rannbacher/sim.cpp +++ b/examples/schaefer_turek_durst_krause_rannbacher/sim.cpp @@ -132,7 +132,6 @@ saw::error_or lbm_main(const saw::data& args){ } sycl_q.wait(); - /* if(i.get() % 64u == 0u){ { auto eov = dev.copy_to_host(lbm_sycl_macro_data,*lbm_macro_data_ptr); @@ -141,13 +140,12 @@ saw::error_or lbm_main(const saw::data& args){ } } { - auto eov = write_vtk_file(out_dir,std::string{"stdkr_2d_"}+an.template get<"coupling">().stl_string(),i.get(), *lbm_macro_data_ptr); + auto eov = write_vtk_file(out_dir,std::string{"ops_2d_"}+an.template get<"coupling">().stl_string(),i.get(), *lbm_macro_data_ptr); if(eov.is_error()){ return eov; } } } - */ // Stream sycl_q.submit([&](acpp::sycl::handler& h){ component> stream; diff --git a/modules/core/c++/fplbm.hpp b/modules/core/c++/fplbm.hpp index f50cb1b..0ab7903 100644 --- a/modules/core/c++/fplbm.hpp +++ b/modules/core/c++/fplbm.hpp @@ -352,7 +352,7 @@ public: // vel_s is technically time the density of the particle? - force = ( vel_s - mom) * two * flip_por; + force = global_force_ * por + ( vel_s - mom) * two * flip_por; // force = (vel_s - mom) * flip_por / (flip_por / two + one); force_p = force_p - force; -- cgit v1.3.1