You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working with convection coefficients and they have some funky floating powers. Is there a way to specify precision of the units when reducing the units? For example I have the following equation
h_c.to_base_units()
<Quantity(15710.5834, 'kilogram / kelvin ** 0.6 / meter ** 5.55112e-17 / second ** 2.6')>
But notice the meter ** 5.55112e-17. So that if I try to reduce to the units I want ("W/(m ** 2 * K)") or just to_reduced_units() I get the following error.
Ultimately I think I just want to be able to truncate the powers of the units to 16 or so to be able to reduce. I tried a few different things and searched around, but could come up with anything clean.
Thanks so much! Love the library and I use it extensively.
The text was updated successfully, but these errors were encountered:
I'd advise you to use Fraction for unit ratio. Thus unit powers should be reduced accordingly.
Can you update your minimal example with definition for V rho cp D & nu.
I can guess rho & cp but not the other, just for the sake of reproductibility.
About Fraction, I think we need to push this to use Fraction everywhere for unit powers or at least for float ratio.
Last comment was about performance also, it would be good to have a benchmark on performance when using Fraction, seems weird it affects performance no ?
Hello,
I am working with convection coefficients and they have some funky floating powers. Is there a way to specify precision of the units when reducing the units? For example I have the following equation
That I can properly reduced to base units
But notice the
meter ** 5.55112e-17
. So that if I try to reduce to the units I want ("W/(m ** 2 * K)") or justto_reduced_units()
I get the following error.Ultimately I think I just want to be able to truncate the powers of the units to 16 or so to be able to reduce. I tried a few different things and searched around, but could come up with anything clean.
Thanks so much! Love the library and I use it extensively.
The text was updated successfully, but these errors were encountered: