35#ifndef unitConversion_H
36#define unitConversion_H
48inline constexpr scalar
degToRad(
const scalar deg)
noexcept
50 return (deg*M_PI/180.0);
56 return (
rad*180.0/M_PI);
73inline constexpr scalar
rpmToRads(
const scalar rpm)
noexcept
75 return (rpm*M_PI/30.0);
79inline constexpr scalar
radsToRpm(
const scalar rads)
noexcept
81 return (rads*30.0/M_PI);
98inline constexpr scalar
atmToPa(
const scalar atm)
noexcept
100 return (atm*101325.0);
104inline constexpr scalar
barToPa(
const scalar bar)
noexcept
106 return (bar*100000.0);
111inline constexpr scalar
paToAtm(
const scalar pa)
noexcept
113 return (pa/101325.0);
117inline constexpr scalar
paToBar(
const scalar pa)
noexcept
119 return (pa/100000.0);
124inline constexpr scalar
operator "" _deg(
unsigned long long int deg)
noexcept
126 return (deg*M_PI/180.0);
130inline constexpr scalar
operator "" _deg(
long double deg)
noexcept
132 return (deg*M_PI/180.0);
radiation::radiationModel & rad
constexpr scalar radsToRpm() noexcept
Multiplication factor for radians/sec to revolutions/minute.
constexpr scalar barToPa(const scalar bar) noexcept
Conversion from bar to Pa.
constexpr scalar rpmToRads() noexcept
Multiplication factor for revolutions/minute to radians/sec.
constexpr scalar degToRad() noexcept
Multiplication factor for degrees to radians conversion.
constexpr scalar radToDeg() noexcept
Multiplication factor for radians to degrees conversion.
constexpr scalar paToBar(const scalar pa) noexcept
Conversion from Pa to bar.
constexpr scalar paToAtm(const scalar pa) noexcept
Conversion from Pa to atm.
constexpr scalar atmToPa(const scalar atm) noexcept
Conversion from atm to Pa.