Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline Sheflja  
#1 Posted : 27 February 2018 11:25:20(UTC)
Sheflja

Rank: Newbie

Groups: Registered
Joined: 26/02/2018(UTC)
Posts: 2
Croatia
Location: Zagreb

Cheers

Is there a way to ignore units just for a specific equation?

situation

I have a polynomial approximation of water density table and temperature ϑz in °C. I can ignore units for ϑz variable but then it gets ignored for the rest of the sheet, and it is used very often.
I can create another variable but then I need to define the temperature twice... Is there a workaround?

Thx

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline mkraska  
#2 Posted : 27 February 2018 12:00:33(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,980
Germany

Was thanked: 1120 time(s) in 718 post(s)
It is essential to distinguish variables representing actual physical quantities (number times unit) and just numbers.

It is very common in engineering, that equations are given not as physical equations (which strictly use quantities) but as a package of numerical formula plus specification of what units are to be used in order to generate the input numbers (I refuse to say input quantities) and what unit has to be given to the output number in order to get the result quantity.

Usually, you can do that in a transparent way by just dividing the input quantities by the specified unit and multiplying the output by the desired unit. In the case of temperatures it is more involved, because of the gauge offset. Then you can use an explicit conversion or a conversion function.

If a symbol's value is only meaningful when interpreted using a particular unit, then the name should reflect this fact.

2018-02-27 09_58_44-SMath Studio - [tinc.sm].png

tinc.sm (6kb) downloaded 21 time(s).
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline PompelmoTell  
#3 Posted : 27 February 2018 12:38:58(UTC)
PompelmoTell


Rank: Advanced Member

Groups: Registered
Joined: 23/12/2011(UTC)
Posts: 318
Man
Italy
Location: italy

Was thanked: 109 time(s) in 93 post(s)
I would operate in the way illustrated. However, there are problems with the use of degrees Celsius
sergio

Offline Sheflja  
#4 Posted : 27 February 2018 13:05:23(UTC)
Sheflja

Rank: Newbie

Groups: Registered
Joined: 26/02/2018(UTC)
Posts: 2
Croatia
Location: Zagreb

@mkraska: Thx, that did the trick.

@PompelmoTell: I was trying to do something like that but also had problems with °C because K is default unit. Thx anyway.
Offline Jean Giraud  
#5 Posted : 27 February 2018 16:24:57(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: Sheflja Go to Quoted Post
Is there a way to ignore units just for a specific equation?

Engineering formulas are applied maths, i.e: Unitless as they are developped
in the appropriate system. This is particularly true in Process Control & Instrumentation.
Typical example is the massflow rate [T/hr ... naturally => metric 'Ton'],
as well kg/m³ ... in other word: not compatible SI.
In the empty place holder paste your Engineering Unit.
The attached Water weight density is remarkably accurate up to critical point,
Only in Smath and in my former Mathcad 11 web site [now dead for me from PTC vandalism].

kgm3.PNG

Inst_Water [kg_m3].sm (57kb) downloaded 44 time(s).


Users browsing this topic
Similar Topics
Ignore units or Error: Result is above max.allowed positive number (Bugs & Problems)
by radex 15/12/2015 22:19:07(UTC)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.