Boost logo

Boost Users :

Subject: [Boost-users] [units] Calculating air density
From: Michael Powell (mwpowellhtx_at_[hidden])
Date: 2015-08-09 11:16:41


I'd like to calculate air density at altitude. Studying some notes on wikipedia:

Symbol is typically Greek Rho, whose dimensions are generally M/L^3;
units will probably be kg/m^3, although I am also reading about

Which incorporates a gas constant value:

Whose units appear to be Joules/(Volume*Temp).

I'm not seeing anything too terribly exotic there; all these units /
dimensions are present in Boost.Units?

As is usually the case, it is interesting to see how the units library
"reduces" the units during code writing, compilation. Very impressive

Thank you...

Best regards,

Michael Powell

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at