ronkok/Hurmet

Unit aware inside matrix

Closed this issue · 5 comments

Hurmet fails to perform unit aware calcs inside a matrix

image

image

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.

Doesn't work if you perform unit aware calcs outside and create a vector from it? Can it be made to work? This feature is handy at times.

image

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