Unit aware inside matrix
Closed this issue · 5 comments
Hurmet fails to perform unit aware calcs inside a matrix
That's correct. A unit can be applied to an entire matrix. Units cannot be applied to individual elements inside a matrix. If you are doing calculations within an element, they will have to be non-unit-aware calculations.
I might be able to write a more informative error message for this. I'll give that a try. No promises.
You can write elements that call in variables. But that must be done without units. Then you can assign a unit to the resulting matrix, like this:
weight = [w_1stfloor, w_2ndfloor] = ? lbf
Thanks! That makes sense. Just a little bit caution needed inside matrices and vectors.
I'll close this once you, write proper information/warning message.
Thanks warnings start to appear