summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/throat_clog_2d/common.hpp8
-rw-r--r--examples/throat_clog_2d/init.hpp4
-rw-r--r--examples/throat_clog_2d/step.hpp14
3 files changed, 13 insertions, 13 deletions
diff --git a/examples/throat_clog_2d/common.hpp b/examples/throat_clog_2d/common.hpp
index fc4f8a9..4a1e211 100644
--- a/examples/throat_clog_2d/common.hpp
+++ b/examples/throat_clog_2d/common.hpp
@@ -14,15 +14,15 @@ namespace kel {
namespace lbm {
/**
- * length 2.2m
- * height 0.41m
+ * length 2.56m
+ * height 0.64m
* viscosity 10^-3
* particle diameter 0.1m
- * position at (0.16m,0.2m)
+ * position at (0.16m,0.32m)
*/
constexpr uint64_t dim_y = 64ul;
-constexpr uint64_t dim_x = static_cast<uint64_t>(dim_y * (220.0 / 64.0));
+constexpr uint64_t dim_x = static_cast<uint64_t>(dim_y * (256.0 / 64.0));
constexpr uint64_t particle_amount = 1ul;
diff --git a/examples/throat_clog_2d/init.hpp b/examples/throat_clog_2d/init.hpp
index 335fb36..1fb1e32 100644
--- a/examples/throat_clog_2d/init.hpp
+++ b/examples/throat_clog_2d/init.hpp
@@ -170,8 +170,8 @@ saw::error_or<void> init(
auto& prb = p.template get<"rigid_body">();
auto& p_pos = prb.template get<"position">();
auto& p_posold = prb.template get<"position_old">();
- p_pos.at({{0u}}) = conv.meter_si_to_lbm({{0.16}}).handle();
- p_pos.at({{1u}}) = conv.meter_si_to_lbm({{0.2}}).handle();
+ p_pos.at({{0u}}) = conv.meter_si_to_lbm({{0.18}}).handle();
+ p_pos.at({{1u}}) = conv.meter_si_to_lbm({{0.25}}).handle();
p_posold = p_pos;
}
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};