ConvertUtils.hpp
23 template<typename Scalar> auto convertCelsiusToKelvin(Scalar T) -> decltype(T + 273.15) { return T + 273.15; }
26 template<typename Scalar> auto convertKelvinToCelsius(Scalar T) -> decltype(T - 273.15) { return T - 273.15; }
29 template<typename Scalar> auto convertPascalToKiloPascal(Scalar P) -> decltype(P * 1.0e-3) { return P * 1.0e-3; }
32 template<typename Scalar> auto convertPascalToMegaPascal(Scalar P) -> decltype(P * 1.0e-6) { return P * 1.0e-6; }
35 template<typename Scalar> auto convertPascalToBar(Scalar P) -> decltype(P * 1.0e-5) { return P * 1.0e-5; }
38 template<typename Scalar> auto convertKiloPascalToPascal(Scalar P) -> decltype(P * 1.0e+3) { return P * 1.0e+3; }
41 template<typename Scalar> auto convertKiloPascalToMegaPascal(Scalar P) -> decltype(P * 1.0e-3) { return P * 1.0e-3; }
44 template<typename Scalar> auto convertKiloPascalToBar(Scalar P) -> decltype(P * 1.0e-2) { return P * 1.0e-2; }
47 template<typename Scalar> auto convertMegaPascalToPascal(Scalar P) -> decltype(P * 1.0e+6) { return P * 1.0e+6; }
50 template<typename Scalar> auto convertMegaPascalToKiloPascal(Scalar P) -> decltype(P * 1.0e+3) { return P * 1.0e+3; }
53 template<typename Scalar> auto convertMegaPascalToBar(Scalar P) -> decltype(P * 1.0e+1) { return P * 1.0e+1; }
56 template<typename Scalar> auto convertBarToPascal(Scalar P) -> decltype(P * 1.0e+5) { return P * 1.0e+5; }
59 template<typename Scalar> auto convertBarToKiloPascal(Scalar P) -> decltype(P * 1.0e+2) { return P * 1.0e+2; }
62 template<typename Scalar> auto convertBarToMegaPascal(Scalar P) -> decltype(P * 1.0e-1) { return P * 1.0e-1; }
65 template<typename Scalar> auto convertBarToAtm(Scalar P) -> decltype(P * 0.986923267) { return P * 0.986923267; }
68 template<typename Scalar> auto convertCubicCentimeterToCubicMeter(Scalar V) -> decltype(V * 1.0e-6) { return V * 1.0e-6; }
71 template<typename Scalar> auto convertCubicMeterToCubicCentimeter(Scalar V) -> decltype(V * 1.0e+6) { return V * 1.0e+6; }
74 template<typename Scalar> auto convertCubicMeterToLiter(Scalar V) -> decltype(V * 1.0e+3) { return V * 1.0e+3; }
77 template<typename Scalar> auto convertLiterToCubicMeter(Scalar V) -> decltype(V * 1.0e-3) { return V * 1.0e-3; }
The namespace containing all components of the Reaktoro library.
Definition: Algorithms.hpp:29
auto convertKelvinToCelsius(Scalar T) -> decltype(T - 273.15)
Converts temperature from kelvin to celsius.
Definition: ConvertUtils.hpp:26
auto convertCubicCentimeterToCubicMeter(Scalar V) -> decltype(V *1.0e-6)
Converts volume from cm3 to m3.
Definition: ConvertUtils.hpp:68
auto convertCubicMeterToLiter(Scalar V) -> decltype(V *1.0e+3)
Converts volume from m3 to liter.
Definition: ConvertUtils.hpp:74
auto convertKiloPascalToBar(Scalar P) -> decltype(P *1.0e-2)
Converts pressure from kilo pascal to bar.
Definition: ConvertUtils.hpp:44
auto convertMegaPascalToPascal(Scalar P) -> decltype(P *1.0e+6)
Converts pressure from mega pascal to pascal.
Definition: ConvertUtils.hpp:47
auto convertPascalToKiloPascal(Scalar P) -> decltype(P *1.0e-3)
Converts pressure from pascal to kilo pascal.
Definition: ConvertUtils.hpp:29
auto convertPascalToBar(Scalar P) -> decltype(P *1.0e-5)
Converts pressure from pascal to bar.
Definition: ConvertUtils.hpp:35
auto convertBarToAtm(Scalar P) -> decltype(P *0.986923267)
Convert pressure from bar to atm.
Definition: ConvertUtils.hpp:65
auto convertBarToPascal(Scalar P) -> decltype(P *1.0e+5)
Converts pressure from bar to pascal.
Definition: ConvertUtils.hpp:56
auto convertPascalToMegaPascal(Scalar P) -> decltype(P *1.0e-6)
Converts pressure from pascal to mega pascal.
Definition: ConvertUtils.hpp:32
auto convertLiterToCubicMeter(Scalar V) -> decltype(V *1.0e-3)
Converts volume from liter to m3.
Definition: ConvertUtils.hpp:77
auto convertBarToKiloPascal(Scalar P) -> decltype(P *1.0e+2)
Converts pressure from bar to kilo pascal.
Definition: ConvertUtils.hpp:59
auto convertMegaPascalToKiloPascal(Scalar P) -> decltype(P *1.0e+3)
Converts pressure from mega pascal to kilo pascal.
Definition: ConvertUtils.hpp:50
auto convertKiloPascalToPascal(Scalar P) -> decltype(P *1.0e+3)
Converts pressure from kilo pascal to pascal.
Definition: ConvertUtils.hpp:38
auto convertBarToMegaPascal(Scalar P) -> decltype(P *1.0e-1)
Converts pressure from bar to mega pascal.
Definition: ConvertUtils.hpp:62
auto convertKiloPascalToMegaPascal(Scalar P) -> decltype(P *1.0e-3)
Converts pressure from kilo pascal to mega pascal.
Definition: ConvertUtils.hpp:41
auto convertCelsiusToKelvin(Scalar T) -> decltype(T+273.15)
Converts temperature from celsius to kelvin.
Definition: ConvertUtils.hpp:23
auto convertCubicMeterToCubicCentimeter(Scalar V) -> decltype(V *1.0e+6)
Converts volume from m3 to cm3.
Definition: ConvertUtils.hpp:71
auto convertMegaPascalToBar(Scalar P) -> decltype(P *1.0e+1)
Converts pressure from mega pascal to bar.
Definition: ConvertUtils.hpp:53