Skip to main content
1-Visitor
May 27, 2013
Question

Mathcad 14 get confused using units

  • May 27, 2013
  • 5 replies
  • 10368 views

Hi,

I have made some calculation in Mathcad 14, and it seems that there is a bug....

Udklip.JPG

On the right I got the result with units, and to the left without...?

Can some buddy explain this.

Best regards

Jesper

5 replies

24-Ruby IV
May 27, 2013

Attach please the Mathcad-sheet

1-Visitor
May 27, 2013

Hi,

I have now attaced the document.

Hope there is some help.

Best regards

Jesper

24-Ruby IV
May 27, 2013

Sorry but

bar.png

17-Peridot
May 27, 2013

Hello Jesper,

you have two issues here: one is that you obveride a MC built in unit; i.e. S which is defined as the inverse of electrical resistance. The second issue is that you're using MCs unit conversion on an empirical equation. I happen to know this equation because I need to use it quite often (shell thickness for a cylindrical pressure vessel - right?).

You can't use the unit conversion for such an equation because there are some fudge factors hidden within the "20". If you use dimensionless variables for this kind of calculation it will work just fine.

Raiko

1-Visitor
May 27, 2013

Hi Raiko,

Yes your are correct it is pressure vessel. Ok, I then just change the safety factor S to S1, and sadly,

get rid of the units , unless somebody else can't help.

and thanks for the quick response

Jesper

25-Diamond I
May 27, 2013

get rid of the units , unless somebody else can't help.

Look at the attched if it would help

12-Amethyst
May 28, 2013

Capture.PNG

It looks as if you have a conversion error. When asked, Mathcad reports K1f as 1720bar not 172bar.

Regards

Andy

25-Diamond I
May 28, 2013

It looks as if you have a conversion error. When asked, Mathcad reports K1f as 1720bar not 172bar.

Its an empirical formula which only works if K1f is given in N/mm^2.

K1f in the sheet is 172 N/mm^2 = 1,78*10^8 Pa = 1720 bar.

12-Amethyst
May 28, 2013

Hi Werner,

I'm only looking at the discrepancy between the two results.

As it is an empirical equation - I don't have any info either way to say which is correct.

All I can do is identify why there is a difference.

Since P is defined in bar , it makes sense (to me) that everything else should also use bar when appropriate.

However , if 10bar is equvalent to 1N/mm^2, then (in theory) it should be possible to make the equation more unit friendly.

Regards

Andy

21-Topaz II
July 22, 2013

Dear sir, you should indicate any each parameter with the corresponding unit of measurement as shown here:

risposta+a+get+confused+ect.png

25-Diamond I
July 22, 2013

FrankOberBier wrote:

Dear sir, you should indicate any each parameter with the corresponding unit of measurement as shown here:

Same problem! You probably missed the point that the "desired correct" result should be the 2.065 mm. As already stated its an empirical formula (or as Valery calls it: pseudoempirical) in as much as the result differs depending on the units used (which is not the case with a pure physical formula) and so specific units are mandatory.

In an empirical formula mostly only the absolute measure values w/o units are used and there most of the time are "hiddden" units in the constants used in that formula.

So either you find a way to make it a physical formula (look at Valerys example) or use the (pseudo)empirical one and get rid of the conflicting units in the evaluation of it as was already shown

unitless.png

21-Topaz II
July 23, 2013

Immagine.bmp

1-Visitor
July 23, 2013

Sorry FrankOberBier(??), but I really think you missed the point here.

21-Topaz II
July 23, 2013

If you use P=1720bar the result is 2.065mm. If you instead, use 172bar the result is 1.107mm. You must use unit correctly or not use them at all.