summaryrefslogtreecommitdiff
path: root/src/lbm_unit.h
diff options
context:
space:
mode:
authorClaudius Holeksa <mail@keldu.de>2023-05-23 23:09:06 +0200
committerClaudius Holeksa <mail@keldu.de>2023-05-23 23:09:06 +0200
commit1cb8a4c73ce7e326ad015b57595bb24afbb153d6 (patch)
treea5fe67d1a911501968a905c8aff43556a01e5865 /src/lbm_unit.h
parentc49d97a9c13fc9e3d012acb16e5ca511e4b04ca7 (diff)
General setup of files
Diffstat (limited to 'src/lbm_unit.h')
-rw-r--r--src/lbm_unit.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/lbm_unit.h b/src/lbm_unit.h
new file mode 100644
index 0000000..20c6e70
--- /dev/null
+++ b/src/lbm_unit.h
@@ -0,0 +1,31 @@
+#pragma once
+
+#include <kel/unit/unit.h>
+
+#include <string_view>
+
+namespace kel {
+namespace lbm_type {
+struct meter {
+ static constexpr std::string_view name = "meter_l";
+ static constexpr std::string_view short_name = "m_l";
+};
+
+struct second {
+ static constexpr std::string_view name = "second_l";
+ static constexpr std::string_view short_name = "s_l";
+};
+}
+
+template<typename S>
+using lbm_meter = unit<S, unit_component<lbm_type::meter, 1>>;
+
+template<typename S>
+using lbm_second = unit<S, unit_component<lbm_type::second, 1>>;
+
+template<typename S>
+using lbm_velocity = unit<S, unit_component<lbm_type::meter, 1>, unit_component<lbm_type::second, -1>>;
+
+template<typename S>
+using lbm_acceleration = unit<S, unit_component<lbm_type::meter, 1>, unit_component<lbm_type::second, -2>>;
+}