diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2025-07-02 14:36:33 +0200 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2025-07-02 14:36:33 +0200 |
commit | a6d73e49cd17f1c55d4d4718c89df74ef0a03b41 (patch) | |
tree | 432f2bf1aca23dc69d971c77411084744ace8448 /examples/poiseulle_2d.cpp | |
parent | 5be771eb356263bf43c57056eba77df7235c78f4 (diff) |
Moving to global equilibrium with proper types and introducing poiseulle
Slowly though
Diffstat (limited to 'examples/poiseulle_2d.cpp')
-rw-r--r-- | examples/poiseulle_2d.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/poiseulle_2d.cpp b/examples/poiseulle_2d.cpp index 2f60ffd..a0f2603 100644 --- a/examples/poiseulle_2d.cpp +++ b/examples/poiseulle_2d.cpp @@ -126,5 +126,18 @@ int main(int argc, char** argv){ saw::data<sch::FixedArray<sch::UInt64,sch::D2Q9::D>> dim{{1024, 128}}; saw::data<sch::CavityFieldD2Q9, saw::encode::Native> lattice{dim}; + saw::data<sch::Array<sch::MacroStruct<sch::T,sch::D2Q9::D>,sch::D2Q9::D>> macros{dim}; + + for(uint64_t i = 0u; i < 256u; ++i){ + + { + std::string vtk_f_name{"tmp/poiseulle_2d_"}; + vtk_f_name += std::to_string(i) + ".vtk"; + write_vtk_file(vtk_f_name, macros); + } + + lbm_step(lattice, even_step, step); + } + return 0; } |