cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

Getting MathCAD to stop cancelling some units?

jhaché
1-Newbie

Getting MathCAD to stop cancelling some units?

MathCAD is too good. It's doing more than I really want it to do, particularly with some units.

Today's problem is the pound force. MathCAD knows the definition of the pound force, and the problem is that when I want to keep something as a pound force, it instead inserts the definition of the pound force and cancels out everything that can be cancelled out. When I try multiplying out by the unit I want, it still does the same thing.

I'm trying to use the spring constant k in my US standard formulae. Normally, k=force/distance, or lbf/ft. Since the definition of the pound-force includes feet (I think it's something like ft*lb/s^2), then MathCAD automatically cancels out the feet and leaves me with s^2/lb, which makes no sense in the context of what I'm trying to do.

How can I get MathCAD to just mind its own business and leave lbm as lbm? I can't seem to find a way to redefine the built-in lbm and I'm not certain I want to do that anyways.

(I understand that this sort of topic is well-discussed; I've tried hunting around on this forum and others and can't seem to find the answer. Maybe my Google-fu is weak)

1 ACCEPTED SOLUTION

Accepted Solutions
DJF
16-Pearl
16-Pearl
(To:jhaché)

Yes, Mathcad will often give you some undesirable units in the result.  in-lbf is a common one for me also; it is not the mathcad default unit.  However, all you have to do it type over the units it gives you with the units you desire.  (It will give you those typed units plus anything else it needs to make the units work, so if it's adding additional units you've formulated something wrong.)  If that doesn't work please post an example.  But I use lbf and lbm all the time with no issue (Prime anyway, I assume 15 is the same)

View solution in original post

5 REPLIES 5
DJF
16-Pearl
16-Pearl
(To:jhaché)

Yes, Mathcad will often give you some undesirable units in the result.  in-lbf is a common one for me also; it is not the mathcad default unit.  However, all you have to do it type over the units it gives you with the units you desire.  (It will give you those typed units plus anything else it needs to make the units work, so if it's adding additional units you've formulated something wrong.)  If that doesn't work please post an example.  But I use lbf and lbm all the time with no issue (Prime anyway, I assume 15 is the same)

jhaché
1-Newbie
(To:DJF)

As it turns out, I'd tried entering in the correct units and it didn't work (it added the additional undesirable bits) - until I went to do an example, just by having variables aForce and aDistance and divided them, then that worked perfectly. Changed from the s^2/lb to lbf/in

Bizarrely, MathCAD has formulated a value for force as Lb*ft/s^2 but hasn't automatically changed it to lbf. So it's possible that it's just gotten really confused with something I did earlier on, and didn't display that as a problem (I've had similar problems with torque).

I'll have to do some more testing, I think.

jhaché
1-Newbie
(To:DJF)

First time I had a variable, I didn't ask MathCAD to convert the units. That's where it got confused. Once I converted those units from ft*lb/s^2 to lbf, everything worked perfectly.

LucMeekes
23-Emerald III
(To:jhaché)

Mathcad internally works with SI units, no matter what unit system you choose to work with.

Ah, that's not true. Mathcad internally works with units of time (1T), length (1L), mass (1M), charge (1Q), temperature (1K), substance (1S), luminous intensity (1C) and money (1$).

They are by default defined as SI units (1T = 1 second, 1L = 1 metre, etc.), apart from 1$.

The only way you can control somewhat the behaviour of mathcad's working with units, is by telling it to not use any unit system. Then you can, no, have to, define your own unit system. The downside of this is that you have to tell mathcad with most every result what the unit is you want it to be displayed in. Basically that is the same as what you can do now: without defining your own unit system, but using a built-in one, just fill the units-placeholder of a result with the unit you want in there.

In short: you've searched and not found for good reasons: there is no way of forcing mathcad into using the units of your choice in its results other than to set those units (every time...).

Luc

I am a thermal engineer and use cloud

functions with properties of working fluids.

One example:

Top Tags