Specific Units in the equations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
- Labels:
-
Physics
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Show please your empirical correlations!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
To me it looks like the equation is empirical, so I would tend to work through it unit less.
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Each empirical and physical formula must have units:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
You can either work with units and understand them, or you can trick them.
![](/skins/images/695EE5AD3E567050FEDD72575855ED93/ptc_skin/images/icon_anonymous_message.png)