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 ioncube  
#1 Posted : 05 September 2018 04:28:17(UTC)
ioncube


Rank: Advanced Member

Groups: Registered
Joined: 04/12/2017(UTC)
Posts: 61
Man
Pakistan

Was thanked: 2 time(s) in 2 post(s)
I am having problem while evaluating specific heat capacity from given data while invoking unit calculation as well

TEMPERATURE.png

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

Offline omorr  
#2 Posted : 05 September 2018 10:33:35(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
tempc.GIF
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline PompelmoTell  
#3 Posted : 05 September 2018 11:28:33(UTC)
PompelmoTell


Rank: Advanced Member

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

Was thanked: 109 time(s) in 93 post(s)
Radovan, I do not think is correct your indication (Wrong/Right) as it is a temperature range you must use ' Δ °C.
Using the Kelvin grades instead this differentiation is not necessary (in fact in the Smath standard there is no ' Δ K).

sergio
thanks 1 user thanked PompelmoTell for this useful post.
on 05/09/2018(UTC)
Offline Jean Giraud  
#4 Posted : 05 September 2018 14:05:36(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 981 time(s) in 809 post(s)
t.PNG
Offline omorr  
#5 Posted : 05 September 2018 14:24:07(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Originally Posted by: PompelmoTell Go to Quoted Post
Radovan, I do not think is correct your indication (Wrong/Right) as it is a temperature range you must use ' Δ °C.
Using the Kelvin grades instead this differentiation is not necessary (in fact in the Smath standard there is no ' Δ K).


Hello Sergio,

This was mentioned many times and I just wanted to point out that if you have something in ' °C you have to add or subtract in ' Δ °C (and not in ' °C) to get the result in ' °C.
I agree with you. The simplest thing is just to use ' Δ °C only when the temperature difference is the case.

tempc1.GIF

I should have mentioned this as well.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline mkraska  
#6 Posted : 05 September 2018 15:29:50(UTC)
mkraska


Rank: Advanced Member

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

Was thanked: 1124 time(s) in 721 post(s)
Originally Posted by: omorr Go to Quoted Post
tempc.GIF


I agree that the first line is wrong regardless what you actually want to express.

  • If the two operands are really meant to be temperature points then the result is a change or difference of temperatures and it's unit must be left to K or set to Delta°C. Setting it to °C is wrong.
  • If the second operand actually is meant to be a temperature difference or change, then it must have the unit K or Delta°C.


The second line can be right or wrong, depending on your actual intent.

  • If the first operand is a meant to be a temperature point and second operand is meant to be a temperature difference or change, then the result is a temperature point and the unit can be K or °C. Nothing wrong then.
  • Surely, if the equation is meant to represent something different, then it would be wrong. But that can be said of any equation in any document.

If everything is meant to be temperature differences, then this one is correct:

tempc1.GIF

Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 1 user thanked mkraska for this useful post.
on 05/09/2018(UTC)
Offline PompelmoTell  
#7 Posted : 05 September 2018 16:11:47(UTC)
PompelmoTell


Rank: Advanced Member

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

Was thanked: 109 time(s) in 93 post(s)
In my opinion, the correct writing is as follows:



Smath does not do it independently (because it returns the result in ' K) and then if you want to act manually on the unit of measure ' Δ ° C

I would add that, indeed, for those who have not followed the numerous interventions on the forum, it is difficult to operate correctly.

sergio

Edited by user 05 September 2018 16:16:18(UTC)  | Reason: Added comment

thanks 1 user thanked PompelmoTell for this useful post.
on 30/10/2018(UTC)
Offline Jean Giraud  
#8 Posted : 05 September 2018 17:19:55(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 981 time(s) in 809 post(s)
The right way is @ post 4,
i.e: put unit on the maths, not on individuals
Offline omorr  
#9 Posted : 05 September 2018 17:25:23(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Originally Posted by: PompelmoTell Go to Quoted Post
In my opinion, the correct writing is as follows:



Smath does not do it independently (because it returns the result in ' K) and then if you want to act manually on the unit of measure ' Δ ° C

I would add that, indeed, for those who have not followed the numerous interventions on the forum, it is difficult to operate correctly.

sergio


Correct as well ...which brings us to the first post. If the question missed the point, the answer will be as well. Actually, it seems there was all right with the picture. We had many correct answers ... but, what was the question actually ??? Umnik

tempcorr.GIF
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline Jean Giraud  
#10 Posted : 06 September 2018 02:08:45(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: omorr Go to Quoted Post
If the question missed the point, the answer will be as well. Actually, it seems there was all right with the picture. We had many correct answers ... but, what was the question actually ???


Quite right: wrong question may be implicit of wrong answer !
Assume you have a differential meter, it performs [a-b]and you put
the unit you wish ... per say => answer= $
SI temperature unit is K ... thus post 4 is correct two ways.
Offline Razonar  
#11 Posted : 06 September 2018 08:43:23(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

Was thanked: 815 time(s) in 516 post(s)
Hi. It's an old resolution, but figures in the last version: https://www.bipm.org/utils/common/pdf/si_brochure_8.pdf

Clipboard03.jpg

The last proposed revisions warm about the temperature differences, but claim for the use of ºC (https://www.bipm.org/utils/en/pdf/si-revised-brochure/Draft-SI-Brochure-2018.pdf):

Clipboard04.jpg

So, I don't see the place of the Delta Celsius.

Best regards.
Alvaro.
Offline mkraska  
#12 Posted : 06 September 2018 09:58:04(UTC)
mkraska


Rank: Advanced Member

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

Was thanked: 1124 time(s) in 721 post(s)
Originally Posted by: Razonar Go to Quoted Post


So, I don't see the place of the Delta Celsius.

Best regards.
Alvaro.


In order to follow the rules in the document, you need to tell temperature differences from absolute (or thermodynamic) temperature for a given quantity. Thus, any object representing such quantities must have an attribute to indicate the type.

In non-automatic documents, the correct conversion between K and °C (with or without offset) is done based on context information, which is outside the actual maths.

The regulations ignore the needs of context-free self-contained physical equations handling. Just as Eurocode ignores FEA for local stresses.

Thus, whenever you want to use °C in automatic documents with unit handling, you have to indicate on a per-use base, which conversion to apply. In SMath, values of physical quantites are represented by unit and number. In some cases, the correct application of conversion rules or the correct choice of result units would require additional information (type of quantity) be taken into account.

The place of Delta°C or Delta°F is being a way to convey (and indicate) this information to the logic. I think it does the trick without blowing up the underlying infrastructure.

If you want to use °C in SMath, you most likely also have to be aware of Delta°C.

Unit tracking in SMath isn't really quantity tracking but it helps doing physical calculations correctly.







Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline Razonar  
#13 Posted : 06 September 2018 23:41:53(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

Was thanked: 815 time(s) in 516 post(s)
Hi

I don't know the internals but my guess is that the wrong answer is a bug. Wolfram alpha don't need a context for giving the correct results for temperature differences. And seems that smath don't store the value in K but in C. Storing internally all values in K could correct the temperature bug and make the delta C unit useless.

Best regards.
Alvaro
Offline mkraska  
#14 Posted : 07 September 2018 00:20:40(UTC)
mkraska


Rank: Advanced Member

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

Was thanked: 1124 time(s) in 721 post(s)
Originally Posted by: Razonar Go to Quoted Post
Hi

I don't know the internals but my guess is that the wrong answer is a bug. Wolfram alpha don't need a context for giving the correct results for temperature differences. And seems that smath don't store the value in K but in C. Storing internally all values in K could correct the temperature bug and make the delta C unit useless.

Best regards.
Alvaro


Storing all values in K actually is the source of the problem. When values given in °C are to be stored in K, then you need to know whether you have a difference or a thermodynamic temperature. Would you prefer a context menu entry to provide that information?

There is a way to consistently use °C: use this exclusively for the whole document and all occurances of temperature quantities. All gradients, conductivities, capacities etc must use °C in their definitions as well and do no conversion to K internally. You actually can do that in SMath by defining your own °C unit, here I defined one with an attached space character:

celsius.png
celsius.sm (3kb) downloaded 22 time(s).

The drawback of this is that you can't convert such °C based quantities to K without saying if the offset is to be applied.
Edit: Also, you are restricted to the setting °C or K globally for the document and can't make the decision on a per input/output base.

Edited by user 07 September 2018 00:26:23(UTC)  | Reason: Not specified

Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 2 users thanked mkraska for this useful post.
on 07/09/2018(UTC),  on 07/09/2018(UTC)
Offline Razonar  
#15 Posted : 07 September 2018 01:49:25(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

Was thanked: 815 time(s) in 516 post(s)
Originally Posted by: mkraska Go to Quoted Post
Storing all values in K actually is the source of the problem. When values given in °C are to be stored in K, then you need to know whether you have a difference or a thermodynamic temperature. Would you prefer a context menu entry to provide that information?


Oh, yes, you're wright, problem isn't not convert, is convert. But what I want to say, and can't do very well as you can see, is that ºC can't operate at the same way in the "lhs" and the "rhs" of evaluations. Maybe with this can solve the contextual problem.

This is: at left side, thus before evaluations, store as the unit for temperature differences without conversion, but for the right side, this is, only for show units, actuate as a post fix operator but not as an usual unit, even it could be with other units (and same thing for ºF). If I'm not wrong again, I guess that this gives the enough information about which context the temperature is: thermodynamics or difference temperature.

Originally Posted by: mkraska Go to Quoted Post
There is a way to consistently use °C: ...


It seems a very strong, consistent and quick workaround solution for use SI standards. Thanks for this.

Originally Posted by: mkraska Go to Quoted Post
...(the other stuff)


Quite right.

Originally Posted by: mkraska Go to Quoted Post
Unit tracking in SMath isn't really quantity tracking but it helps doing physical calculations correctly.


This is why I say that for practical engineering calculus SMath could be a best option than Maple or Mathematica. Maybe not yet, but for sure, soon.

Best regards.
Alvaro.
Users browsing this topic
Guest
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.