summaryrefslogtreecommitdiff
path: root/c++/lbm_unit.hpp
blob: dc1f8e9dc9b0d1acf3c9c6776d3b3f92fd5bf114 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#pragma once

#include <forstio/codec/unit/unit.hpp>

#include <string_view>

namespace kel {
namespace lbm {
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>>;
}
}