summaryrefslogtreecommitdiff
path: root/examples/poiseulle_particles_channel_2d.cpp
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2025-07-31 17:59:54 +0200
committerClaudius "keldu" Holeksa <mail@keldu.de>2025-07-31 17:59:54 +0200
commit2e7350d8249621543e68497b9b295e5cbf1b862a (patch)
tree28e744a43dc04cada6d87f0993af10402c8d53c4 /examples/poiseulle_particles_channel_2d.cpp
parent01dd680f6a735c5b28f02d4382f3b5121f59cadd (diff)
Moving files to proper rename
Diffstat (limited to 'examples/poiseulle_particles_channel_2d.cpp')
-rw-r--r--examples/poiseulle_particles_channel_2d.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/examples/poiseulle_particles_channel_2d.cpp b/examples/poiseulle_particles_channel_2d.cpp
index edead49..5052074 100644
--- a/examples/poiseulle_particles_channel_2d.cpp
+++ b/examples/poiseulle_particles_channel_2d.cpp
@@ -280,10 +280,10 @@ void set_initial_conditions(saw::data<kel::lbm::sch::CavityFieldD2Q9>& latt){
}, {{0u,0u}}, meta);
}
-void add_particles(kel::lbm::particle_system<sch::T,2u>& part_sys){
+void add_particles(kel::lbm::particle_system<kel::lbm::sch::T,2u>& part_sys){
+ using namespace kel::lbm;
saw::data<sch::Particle<sch::T,2u>> part;
-
auto& p_mask = part.template get<"mask">();
{
particle_circle_geometry<sch::T> geo;
@@ -312,9 +312,10 @@ void add_particles(kel::lbm::particle_system<sch::T,2u>& part_sys){
void couple_particles_to_lattice(
kel::lbm::particle_system<sch::T,2u>& part_sys,
saw::data<kel::lbm::sch::CavityFieldD2Q9>& latt,
- saw::data<sch::Array<sch::MacroStruct<sch::T,sch::D2Q9::D>,sch::D2Q9::D>>& macros,
- saw::data<sch::T> time_step
+ saw::data<kel::lbm::sch::Array<sch::MacroStruct<kel::lbm::sch::T,kel::lbm::sch::D2Q9::D>,kel::lbm::sch::D2Q9::D>>& macros,
+ saw::data<kel::lbm::sch::T> time_step
){
+ using namespace kel::lbm;
iterate_over([&](const saw::data<sch::FixedArray<sch::UInt64,2u>>& index){
auto& cell = latt(index);
auto& info = cell.template get<"info">();
@@ -464,7 +465,7 @@ int main(int argc, char** argv){
return -1;
}
auto& lbm_dir = eo_lbm_dir.get_value();
- auto out_dir = lbm_dir / "poiseulle_channel_2d";
+ auto out_dir = lbm_dir / "poiseulle_particles_channel_2d";
std::string_view cfg_file_name = "config.json";
if(argc > 1){