Skip to content
Snippets Groups Projects
Commit 0b073450 authored by Henry's avatar Henry
Browse files

unitConversion: change the conversion of atm<->Pa to the more common form

parent f02d4630
Branches
Tags
No related merge requests found
......@@ -44,25 +44,25 @@ namespace Foam
//- Conversion from degrees to radians
inline scalar degToRad(const scalar deg)
{
return (deg * constant::mathematical::pi/180.0);
return (deg*constant::mathematical::pi/180.0);
}
//- Conversion from radians to degrees
inline scalar radToDeg(const scalar rad)
{
return (rad * 180.0/constant::mathematical::pi);
return (rad*180.0/constant::mathematical::pi);
}
//- Conversion from atm to Pa
inline scalar atmToPa(const scalar atm)
{
return (atm * 101035.0);
return (atm*101325.0);
}
//- Conversion from atm to Pa
inline scalar paToAtm(const scalar pa)
{
return (pa / 101035.0);
return (pa/101325.0);
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment