diff options
| author | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-10-09 12:40:34 +0200 |
|---|---|---|
| committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-10-09 12:40:34 +0200 |
| commit | 960c47db8004e12ac49d915116c86945f746a2a8 (patch) | |
| tree | d1f4b173d7c5e6237eb01062f4919dbeebe53916 /examples/throat_clog_2d/step.hpp | |
| parent | a7074a924f9e5f8d99ab9bd6cd1581a2da3f5443 (diff) | |
| download | libs-lbm-960c47db8004e12ac49d915116c86945f746a2a8.tar.gz | |
Sth broken, but what?
Diffstat (limited to 'examples/throat_clog_2d/step.hpp')
| -rw-r--r-- | examples/throat_clog_2d/step.hpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/throat_clog_2d/step.hpp b/examples/throat_clog_2d/step.hpp index dcee5fb..f41fca7 100644 --- a/examples/throat_clog_2d/step.hpp +++ b/examples/throat_clog_2d/step.hpp @@ -46,7 +46,7 @@ saw::error_or<void> step( }).wait(); q.submit([&](acpp::sycl::handler& h){ - component<T,Desc,cmpt::Hlbm,encode::Sycl<saw::encode::Native>> collision{0.75}; + component<T,Desc,cmpt::Hlbm,encode::Sycl<saw::encode::Native>> collision{0.8201}; component<T,Desc,cmpt::BounceBack,encode::Sycl<saw::encode::Native>> bb; component<T,Desc,cmpt::ZouHeHorizontal<false>,encode::Sycl<saw::encode::Native>> flow_out{1.0}; @@ -84,7 +84,7 @@ saw::error_or<void> step( } { auto y_si = conv.meter_lbm_to_si(index.at({{1u}}).template cast_to<T>()).handle(); - vel.at({{0u}}) = conv.velocity_si_to_lbm({{static_cast<typename saw::native_data_type<T>::type>((1.2 / 0.64) * y_si.get() - (1.2 / (0.64*0.64)) * y_si.get() * y_si.get())}}).handle() * scale; + vel.at({{0u}}) = conv.velocity_si_to_lbm({{static_cast<typename saw::native_data_type<T>::type>((0.1 / 0.64) * y_si.get() - (0.1 / (0.64*0.64)) * y_si.get() * y_si.get())}}).handle() * scale; vel.at({{1u}}) = 0.0f; } return vel; @@ -133,8 +133,8 @@ saw::error_or<void> step( // auto coll_ev = q.submit([&](acpp::sycl::handler& h){ - component<T,Desc,cmpt::BGK,encode::Sycl<saw::encode::Native>> bgk{0.75}; - component<T,Desc,cmpt::FpLbm,encode::Sycl<saw::encode::Native>> collision{0.75}; + component<T,Desc,cmpt::BGK,encode::Sycl<saw::encode::Native>> bgk{0.8201}; + component<T,Desc,cmpt::FpLbm,encode::Sycl<saw::encode::Native>> collision{0.8201}; component<T,Desc,cmpt::BounceBack,encode::Sycl<saw::encode::Native>> bb; component<T,Desc,cmpt::ZouHeHorizontal<false>,encode::Sycl<saw::encode::Native>> flow_out{1.0}; @@ -162,7 +162,7 @@ saw::error_or<void> step( saw::data<sch::Vector<T,Desc::D>> vel; { auto y_si = conv.meter_lbm_to_si(index.at({{1u}}).template cast_to<T>()).handle(); - vel.at({{0u}}) = conv.velocity_si_to_lbm({{static_cast<typename saw::native_data_type<T>::type>((1.2 / 0.64) * y_si.get() - (1.2 / (0.64*0.64)) * y_si.get() * y_si.get())}}).handle(); + vel.at({{0u}}) = conv.velocity_si_to_lbm({{static_cast<typename saw::native_data_type<T>::type>((0.01 / 0.64) * y_si.get() - (0.01 / (0.64*0.64)) * y_si.get() * y_si.get())}}).handle(); vel.at({{1u}}) = 0.0f; } return vel; @@ -209,8 +209,8 @@ saw::error_or<void> step( // auto coll_ev = q.submit([&](acpp::sycl::handler& h){ - component<T,Desc,cmpt::BGK,encode::Sycl<saw::encode::Native>> bgk{0.75}; - component<T,Desc,cmpt::Psm,encode::Sycl<saw::encode::Native>> collision{0.75}; + component<T,Desc,cmpt::BGK,encode::Sycl<saw::encode::Native>> bgk{0.8201}; + component<T,Desc,cmpt::Psm,encode::Sycl<saw::encode::Native>> collision{0.8201}; component<T,Desc,cmpt::BounceBack,encode::Sycl<saw::encode::Native>> bb; component<T,Desc,cmpt::ZouHeHorizontal<false>,encode::Sycl<saw::encode::Native>> flow_out{1.0}; |
