Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X
I am trying to set up the equations for the solution of a matrix displacement problem in structural analysis, i.e., F=KU, where F = force matrix {4X1}, K=stiffness matrix {4X4}, and U=displacement matrix {4X1}. However, Mathcad will not accept the definition of these matrices with mixed units. Do I have to define these matrices as unitless and track the results by hand?
Thank you for your assistance.
Mathcad 15 does not permit mixed units in matrices. Mathcad Prime does (it's one of the few things where Prime is better).
Richard Jackson wrote:
Mathcad Prime does (it's one of the few things where Prime is better).
Thats a drawback in older Mathcad versions and one of the very few benefits of Prime.
in Prime you can have different dimensions in a matrix, but in MC15 and below you unfortunately can't.
WE
Am I right in thinking that an older version of Mathcad accepted mixed unit arrays?
Mike
No, it's not been possible in any version prior to Prime.
Maybe the constant feature requests over the years clouded my thoughts.
Maybe 15-20 years from now we will be having the same discussion about multi-dimension arrays (with or without mixed units)
I agree with Richard & Werner. However, it might still be possible to achieve your overall goal without switching to Prime or omitting units. Would you be able to achieve what you want by simply splitting your calculations into two portions: one for load/displacement, and the other for moment/rotation?
Finally, I would encourage you to include your units in the definition of the variables rather than in the equations. For example:
Use:
Y1 := 1*kip
F12 := Y1...
Instead of:
Y1 := 1
F12 := Y1*kip...
But only in Mathcad PM (Prime Minister)
we can do so - change units of separate elements in outputted array: