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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
#pragma once
/**
* Get the conversion parameter with the conversion type
*/
#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_lbm";
static constexpr std::string_view short_name = "m_lbm";
};
struct second {
static constexpr std::string_view name = "second_lbm";
static constexpr std::string_view short_name = "s_lbm";
};
}
namespace si_type {
struct meter {
static constexpr std::string_view name = "meter_si";
static constexpr std::string_view short_name = "m_si";
};
struct second {
static constexpr std::string_view name = "second_si";
static constexpr std::string_view short_name = "s_si";
};
}
namespace sch {
using namespace saw::schema;
template<typename S>
using SiMeter = Unit<S, UnitElement<si_type::meter, 1>>;
template<typename S>
using LbmMeter = Unit<S, UnitElement<lbm_type::meter, 1>>;
template<typename S>
using SiSecond = Unit<S, UnitElement<si_type::second, 1>>;
template<typename S>
using LbmSecond = Unit<S, UnitElement<lbm_type::second, 1>>;
template<typename S>
using SiVelocity = Unit<S, UnitElement<si_type::meter, 1>, UnitElement<si_type::second, -1>>;
template<typename S>
using LbmVelocity = Unit<S, UnitElement<lbm_type::meter, 1>, UnitElement<lbm_type::second, -1>>;
template<typename S>
using SiAcceleration = Unit<S, UnitElement<si_type::meter, 1>, UnitElement<si_type::second, -2>>;
template<typename S>
using LbmAcceleration = Unit<S, UnitElement<lbm_type::meter, 1>, UnitElement<lbm_type::second, -2>>;
template<typename S>
using SiKinematicViscosity = Unit<S, UnitElement<si_type::meter, 2>, UnitElement<si_type::second, -1>>;
template<typename S>
using LbmKinematicViscosity = Unit<S, UnitElement<lbm_type::meter, 2>, UnitElement<lbm_type::second, -1>>;
}
}
}
|