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

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Specific Units in the equations

OscarJ.
1-Newbie

Specific Units in the equations

Good morning,

Does anyone know if I can specify the units on equations?

For example, when I want use some empirical correlations; the expression uses a formula that only works with the correct set of units. In MathCad, when I use the formula, the program uses the units of the Base System, but if only for that expression I want to use, for example, °F instead of K, it is possible?

Regards,

Oscar J.

15 REPLIES 15

Show please your empirical correlations!

Oscar Delgado wrote:

Good morning,

Does anyone know if I can specify the units on equations?

For example, when I want use some empirical correlations; the expression uses a formula that only works with the correct set of units. In MathCad, when I use the formula, the program uses the units of the Base System, but if only for that expression I want to use, for example, °F instead of K, it is possible?

Regards,

Oscar J.

Check out the example attached, just a starting point.

emfor.png

Good morning,

I'm working in this formula:

Flash=0.69*Temp-181

Flash,Temp: °F

When I use the formula in MathCad I have first to add D°F to seconf term to balance the units but the answer its not the same when you use SI (actual base system in my model) :

Temp=547°F

Flash=259°F (if the Temp in the equation is in °F)

Flash=116°F (MathCad result)

Usually when I have this kind of problems I multiply the constant by some factor in order to adjust the expression to the base system or I use adimensional values and then I multyply, but I can't do this when I'm dealing with temperatures (not tempratures changes).

Regards,

Oscar J.

Oscar Delgado wrote:

Good morning,

I'm working in this formula:

Flash=0.69*Temp-181

Flash,Temp: °F

When I use the formula in MathCad I have first to add D°F to seconf term to balance the units but the answer its not the same when you use SI (actual base system in my model) :

Temp=547°F

Flash=259°F (if the Temp in the equation is in °F)

Flash=116°F (MathCad result)

Usually when I have this kind of problems I multiply the constant by some factor in order to adjust the expression to the base system or I use adimensional values and then I multyply, but I can't do this when I'm dealing with temperatures (not tempratures changes).

Regards,

Oscar J.

Please post a worksheet. I can't replicate your results.

Hello,

Excuse me,a typo:

Flash=0.69*Temp-118.

But in the file attached you can see the problem. When I use the units, the result is different. So I can't use it to make other calculations (or I should use no units in the other expressions)

Regards,

Oscar J.

MikeArmstrong
5-Regular Member
(To:OscarJ.)

Have a look at the attached.

Mike

Hello,

The file that you hve attached didn't work with temperature (°F) but Farad (F). The problem in the expression is with the temperature because you can't make the conversion only multiplying by some factor.

Regards,

Oscar J.

MikeArmstrong
5-Regular Member
(To:OscarJ.)

To me it looks like the equation is empirical, so I would tend to work through it unit less.

Mike

Each empirical and physical formula must have units:

mm.PNG

MikeArmstrong
5-Regular Member
(To:ValeryOchkov)

I have found that many empirical equations are unit dependant and the best way to input them in Mathcad is unitless, well most of the time.

I have worked around the issue, but more often than not, I just input them unitless.

Mike

The Fahrenheit scale gets converted by Mathcad into an absolute temperature, or converts an absolute temperature back to Fahrenheit. With care it works.

See attached.

MikeArmstrong
5-Regular Member
(To:OscarJ.)

As Valery indicates you can divide the variable by the correct unit. I have many issues when dealing with the American standards when doing Above Ground Storage tank design.

Mike

Thank you all for the answers.

I get an expression that gives the right result. But it could be interesting to have the posibility to choose the units for the evaluation of one specific equation.

What do you think?

Regards,

Oscar J.

You can either work with units and understand them, or you can trick them.

Top Tags