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

Specific Units in the equations

OscarJ.
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

Re: Specific Units in the equations

Show please your empirical correlations!

Re: Specific Units in the equations

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.

Re: Specific Units in the equations

emfor.png

Re: Specific Units in the equations

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.

Re: Specific Units in the equations

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.

Re: Specific Units in the equations

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.

Re: Specific Units in the equations

Have a look at the attached.

Mike

Re: Specific Units in the equations

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.

Re: Specific Units in the equations

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

Mike

Re: Specific Units in the equations

Each empirical and physical formula must have units:

mm.PNG

Re: Specific Units in the equations

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

Re: Specific Units in the equations

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.

Re: Specific Units in the equations

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

Re: Specific Units in the equations

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.

Re: Specific Units in the equations

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

Announcements