natu icon indicating copy to clipboard operation
natu copied to clipboard

question: can you tell natu to convert to SI for printing?

Open zbeekman opened this issue 7 years ago • 2 comments

It's not clear to me how I can get more complicated physical quantities entered in non SI units to display/print in SI units. For example, I want to compute the dynamic viscosity of air using the 2-coefficient formulation of Sutherland's law given in equation A3 in https://ntrs.nasa.gov/archive/nasa/casi.ntrs.nasa.gov/19930091059.pdf. The temperatures are in Rankine, including the Sutherland constant, 198.6, and the units of the viscosity are given as (lb s)/(ft**2) where, presumably lb is lbf, since SI units of dynamic viscosity are usually given as Pa*seconds. This means that, presumably, the λ coefficient as the first term on the RHS is 2.270E-8 * lbf * s / (ft * ft * (degR**Fraction(1,2))) but I've been getting wacky results and was hoping to use natu to ensure that I'm converting it to SI units correctly, so that I can eyeball lambda and compare with other common values people use.

zbeekman avatar Apr 03 '17 01:04 zbeekman

https://en.wikipedia.org/wiki/Viscosity#Effect_of_temperature_on_the_viscosity_of_a_gas has some more info on notation etc. if you need it.

zbeekman avatar Apr 03 '17 02:04 zbeekman

OK, I've determined that you can divide by the desired units which will cause a conversion, and then multiply by the desired units which will attache them to the quantity... This seems like a hack, so I'm probably doing something wrong.

zbeekman avatar Apr 04 '17 17:04 zbeekman