diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2025-07-30 18:04:13 +0200 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2025-07-30 18:04:13 +0200 |
commit | 4968da9a05df5c10fb1f10655189ae251b38f92b (patch) | |
tree | 3f8fa3d1d4950e9969897138d904854189bdaab8 /examples/poiseulle_channel_2d.cpp | |
parent | d9fb04fe614c67f5a7850fc3f32338757b1b2987 (diff) |
Way too many changes
Diffstat (limited to 'examples/poiseulle_channel_2d.cpp')
-rw-r--r-- | examples/poiseulle_channel_2d.cpp | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/examples/poiseulle_channel_2d.cpp b/examples/poiseulle_channel_2d.cpp index 7506318..d34703a 100644 --- a/examples/poiseulle_channel_2d.cpp +++ b/examples/poiseulle_channel_2d.cpp @@ -343,6 +343,13 @@ int main(int argc, char** argv){ using namespace kel::lbm; using dfi = df_info<sch::T,sch::D2Q9>; + auto eo_lbm_dir = output_directory(); + if(eo_lbm_dir.is_error()){ + return -1; + } + auto& lbm_dir = eo_lbm_dir.get_value(); + auto out_dir = lbm_dir / "poiseulle_channel_2d"; + std::string_view cfg_file_name = "config.json"; if(argc > 1){ cfg_file_name = argv[1]; @@ -390,8 +397,7 @@ int main(int argc, char** argv){ geo(index).template get<"info">().set(info({0u}).get()); }, {{0u,0u}}, dim); - std::string vtk_f_name{"tmp/geometry.vtk"}; - write_vtk_file(vtk_f_name, geo); + write_vtk_file(out_dir / "geometry.vtk", geo); } /** @@ -416,9 +422,12 @@ int main(int argc, char** argv){ rho = rho * saw::data<sch::T>{dfi::cs2}; }, {{0u,0u}}, meta); - std::string vtk_f_name{"tmp/poiseulle_2d_"}; - vtk_f_name += std::to_string(i) + ".vtk"; - write_vtk_file(vtk_f_name, macros); + + { + std::string vtk_f_name{"macros_"}; + vtk_f_name += std::to_string(i) + ".vtk"; + write_vtk_file(out_dir / vtk_f_name, macros); + } } lbm_step(lattice, i); |