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