mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
unitConversion: change the conversion of atm<->Pa to the more common form
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
Reference in New Issue
Block a user