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

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

unit problem

kenan2
12-Amethyst

unit problem

Hey I have problem whit mm^2,mm^3,mm^4 units it is not defined?

1 ACCEPTED SOLUTION

Accepted Solutions
Fred_Kohlhepp
23-Emerald I
(To:kenan2)

See if this helps:

Capture.PNG

View solution in original post

13 REPLIES 13
Werner_E
24-Ruby V
(To:kenan2)

Your screenshot does not show any problem, just the assignment V1:=0.2 m^3

Why do you think that mm is not defined in Mathcad? It IS defined.

B.png

Addendum:

The "Units" drop down on the Math ribbon will show you all units Prime is aware of.

E.g. for Length and Volume:

B.png

If you are missing a unit, lets say dm, you can easily define it yourself. Just type dm:=10^-1 m and label the dm to be a unit - done.

B2.png

If you display a variable, the default unit for that dimension will be shown. For volume this is L (liter). To display the result in another unit, you simply type that unit in place of the L. Don't forget to type mm^3, not just mm. Prime will correct your error but you probably won't like the result 😉

 

Fred_Kohlhepp
23-Emerald I
(To:kenan2)

You're not having problems--you're just looking at base units.  Mathcad will use any legal unit you want, you just have to ask for it.

Capture.PNG

I don't understand sorry.

But hers my problem i can not make mass to kg ?

Werner_E
24-Ruby V
(To:kenan2)

It looks like in your definition of V the "m" is not labeled as "unit"

Highlight the "m" and on the first ribbon in the "Labels" drop down chose "Unit".

This should solve the problem.

If not - attach your worksheet, not just a picture.

B3.png

 

BTW, as I see that you were using the symbolics (solve). You have to be aware, that the symbolics does not know anything about units and treat units like unknown variables.

Temperatures other than K always are a special problem. To make your first symbolic solve work you would have to give T1 in K rather than in °C. You can do so by simply following the assignment with an evaluation as shown in the next screenshot:

B4.png

EDIT: Ooops! I wondered why Freds result differed from mine and now I noticed that I had defined kJ as 100J instead of 1000 J 😞
MJG
18-Opal
18-Opal
(To:Werner_E)


@Werner_E wrote:

To make your first symbolic solve work you would have to give T1 in K rather than in °C. You can do so by simply following the assignment with an evaluation.


This is not true, is it?  By specifying T1 in C, Mathcad is automatically converting it and storing it as K even without the in-line evaluation.

Werner_E
24-Ruby V
(To:MJG)


@MJG wrote:

@Werner_E wrote:

To make your first symbolic solve work you would have to give T1 in K rather than in °C. You can do so by simply following the assignment with an evaluation.


This is not true, is it?  By specifying T1 in C, Mathcad is automatically converting it and storing it as K even without the in-line evaluation.


No, it IS true.

You may see it like Mathcad stores a variable twofold - one for numeric and one for symbolic calcs (actually, I think, the symbolics are tracing back until they arrive at the definition of a variable - not sure, though).

While  a temperature sure would automatically be stored in kelvin, the symbolics still see the °C and the symbolic solve in this case would fail. Symbolics don't know anything about units and °C is not a normal factor as in km or ft which the symbolics could treat as an unknown variable but °C is an internal function. This seems to make the symbolics fail. With the inline evaluation for the assignment of T Mathcads symbolics just see the last result and thats Kelvin. A normal unit which can be treated as unknown variable.

Just give it a try yourself - omit the inline eval and see the symbolics fail.

MJG
18-Opal
18-Opal
(To:Werner_E)

Thanks for the clarification.  I don't use symbolics very often, so I was unaware of the difference in this case.

 

Interesting case study:

Capture.PNG

 

I'm not sure where the non-unit "K" came from in the third set of calcs (w/ in-line evaluation).  I made sure that all units were correctly labeled.

 

I would have expected Mathcad symbolics to treat °C the same as any other function.  For example, Mathcad gets the correct result in my final set of calcs with my user-defined function.

Werner_E
24-Ruby V
(To:MJG)

You can avoid the K/K in your third example by activating "Units/Constants in Symbolics"

B.png

Werner_E
24-Ruby V
(To:MJG)

BTW, inline eval often is used to stop the symbolics from tracing back to the real root of values. Especially when values were derived by functions which cannot be evaluated symbolically.

Here is a simple example. The symbolics fails because it cannot deal with the upper limit (last(coeffs)) of the sum and because polyfitc cannot be evaluated symbolically.

Inline evaluation makes it look for the symbolics like coeffs was simply defined "manually".

We could add something like coeffs:=round(coeffs,10) to avoid the symbolics showing the roundoff error.

B1.pngB2.png

Fred_Kohlhepp
23-Emerald I
(To:kenan2)

See if this helps:

Capture.PNG

ppal
17-Peridot
(To:kenan2)

Hey! Hey! I don't care.

kenan2
12-Amethyst
(To:ppal)

thanks!

Top Tags