summaryrefslogtreecommitdiff
path: root/examples/feature_development
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2026-11-11 01:16:44 +0100
committerClaudius "keldu" Holeksa <mail@keldu.de>2026-11-11 01:16:44 +0100
commit0c0087ef9482634273ec1a23d3a915754f94926d (patch)
tree972a8e48c1fae67af23b982d7a9e1a506fc8705f /examples/feature_development
parent2e63c4a31f946a8bafa92c49c1a0a116c0eb6dae (diff)
downloadlibs-lbm-0c0087ef9482634273ec1a23d3a915754f94926d.tar.gz
Snapshot. Migration to Lbm Unit
Diffstat (limited to 'examples/feature_development')
-rw-r--r--examples/feature_development/common.hpp2
-rw-r--r--examples/feature_development/init.hpp4
-rw-r--r--examples/feature_development/sim.cpp4
3 files changed, 5 insertions, 5 deletions
diff --git a/examples/feature_development/common.hpp b/examples/feature_development/common.hpp
index 6806b2c..e5274c2 100644
--- a/examples/feature_development/common.hpp
+++ b/examples/feature_development/common.hpp
@@ -48,7 +48,7 @@ using RhoChunk = Chunk<Scalar<T>, 0u, dim_x, dim_y>;
template<typename T, typename Desc>
using MacroStruct = Struct<
- Member<VelChunk<T,Desc>, "momentum">,
+ Member<VelChunk<T,Desc>, "velocity">,
Member<RhoChunk<T>, "density">,
Member<ScalarChunk<T,Desc>, "porosity">
>;
diff --git a/examples/feature_development/init.hpp b/examples/feature_development/init.hpp
index a61ef37..333e9a3 100644
--- a/examples/feature_development/init.hpp
+++ b/examples/feature_development/init.hpp
@@ -57,7 +57,7 @@ kel::lbm::error_or<void> init(
//
auto& df_f = fields.template get<"dfs_old">();
auto& rho_f = macros.template get<"density">();
- auto& vel_f = macros.template get<"momentum">();
+ auto& vel_f = macros.template get<"velocity">();
auto& por_f = macros.template get<"porosity">();
iterator<Desc::D>::apply(
@@ -113,7 +113,7 @@ kel::lbm::error_or<void> init(
);
{
- kel::lbm::data<sch::Scalar<T>> radius_p;
+ kel::lbm::data<sch::LbmMeter<sch::Scalar<T>>> radius_p;
radius_p.at({}).set(2);
kel::lbm::data<sch::Scalar<T>> dense_p;
dense_p.at({}).set(1);
diff --git a/examples/feature_development/sim.cpp b/examples/feature_development/sim.cpp
index e852313..34ad5e3 100644
--- a/examples/feature_development/sim.cpp
+++ b/examples/feature_development/sim.cpp
@@ -46,9 +46,9 @@ kel::lbm::error_or<void> lbm_main(const kel::lbm::data<args::LbmArgs>& args){
converter<T> conv {
// delta_x
- {{1.0}},
+ {1.0},
// delta_t
- {{1.0}}
+ {1.0}
};
print_lbm_meta<T,Desc>(conv,{0.1},{1e-4},{0.4 * dim_y});