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

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

8-Gravel

## units are not compatible

I am getting error units are not compatible for the said equations and not unable to figure out the way to solve it. Any help is appreciated

1 ACCEPTED SOLUTION

Accepted Solutions
24-Ruby V
(To:TR_9781963)

On contrary to Prime, MC15 uses static unit checking (SUC) and thats the reason it works OK in MC15.

But in Prime you have to assign a correct unit even if the value is zero:

6 REPLIES 6
16-Pearl
(To:TR_9781963)

Look at each of the two expressions you're trying to add, they are different units - energy and length don't mix. The simple fix is to look at the break-down of what you're adding and adjust one of your inputs (or maybe more?) so you end-up with the same types.

Cheers

8-Gravel
(To:ChrisKaswer)

The same equations work in Mathcad 15

16-Pearl
(To:TR_9781963)

Hmmm - could please you share the v15 file? That would be interesting to see & compare if it works.

14-Alexandrite
(To:TR_9781963)

Hello.

The error message you get is the right one. It is because you have the terms with the different units. You can't add up meters with Jouls.

See the attached, modified mathcad file.

Probably, mathcad 15 sees away from the units and adds up the numerical values only.

Anyway, you need to look up at your equation and figure out the missing/or excessing units. I do not know what you are calculating in this file, but assume that the constant "Cs" must have the same units as "Cc"

24-Ruby V
(To:TR_9781963)

On contrary to Prime, MC15 uses static unit checking (SUC) and thats the reason it works OK in MC15.

But in Prime you have to assign a correct unit even if the value is zero:

14-Alexandrite
(To:TR_9781963)

Hello.

The error message you get is the right one. It is because you have the terms with the different units. You can't add up meters with Jouls.

See the attached, modified mathcad file.

Probably, mathcad 15 sees away from the units and adds up the numerical values only.

Anyway, you need to look up at your equation and figure out the missing/or excessing units. I do not know what you are calculating in this file, but assume that the constant "Cs" must have the same units as "Cc"

Announcements
Top Tags