Skip to main content
1-Visitor
January 21, 2015
Question

problem wth units

  • January 21, 2015
  • 2 replies
  • 2026 views

Can someone explain me why i can't get the value in right unit? The final unit should be obtained in kPa, instead i get sth far differentBez%C2%A0tytu%C5%82u11.png

2 replies

1-Visitor
January 21, 2015

Which result are looking for as your sheet is hard to follow.

Also why are you redefining the following units?

Clipboard01.jpg

25-Diamond I
January 21, 2015

a.f and b.f should be of dimension "length" but they are unitless because you have defined m:=6 somewhere above and so you have overwritten the unit meter. Defining a.f:=3*m make a.f=18 and not 3 meter. Use a different name or at least a different style for your variable m.

1.png

1-Visitor
January 21, 2015

<confusing discovery>

Please note that what follows is not an answer to this problem (although somehow related).

I checked what would happen if this happened in MP3, and I found out something a little bit disturbing.

First, the good news is that it doesn't seem possible to redefine a unit accidentally. Defining a variable with the same name as a unit changes the default label that is associated to this label, but it is still possible to force it as a unit. It is bad practice, and confusing, but you can get away with it if you pay attention to the colors associated to the labels.

It becomes a bit strange (would I dare to say "creepy" ?) when you try to redefine the unit by forcing the unit label (which is very very bad practice !).

I have attached a sheet, it is hard to explain what I saw, but unless I missed something essential, it seems that the unit is both redefined, and not redefined, at the same time. PTC invented quantum calculus !

</confusing discovery>

25-Diamond I
January 21, 2015

Spooky, indeed!

I like this one most:

1.png

especially when you delete the m on the RHS and replace it by a manually typed m (which this time is your redefined unit). You get this:

2.png

So never say again that PTC would have no sense of humor!