Disable specific unit

Disable specific unit - How to disable not used unit - Messages

#1 Posted: 4/23/2018 10:18:16 AM
m227

m227

4 likes in 29 posts.

Group: User

Hi, in my calculations I often use kJ/kg (and derivative) units (enthalpy, specific heat).
SMath always presents result in Gy and I have always manually to redefine it.

Is there any possibility to disable Gy unit which is useless for my tasks?
I tried to assign 'Gy := 0 to disable this unit but it does not work.
#2 Posted: 4/23/2018 10:42:17 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

Is there any possibility to disable Gy unit which is useless for my tasks?



Work sheet would help.
Unitless solves all problems.
Knowing in advance the unit of result, define it user style
kJ/kg ... Smath style kJ_kg:=1
copy "kJ_kg", paste in the empty place holder of result.
#3 Posted: 4/23/2018 1:09:38 PM
Ruben Sidranski

Ruben Sidranski

17 likes in 463 posts.

Group: User

Wrote

Hi, in my calculations I often use kJ/kg (and derivative) units (enthalpy, specific heat).
SMath always presents result in Gy and I have always manually to redefine it.

Is there any possibility to disable Gy unit which is useless for my tasks?
I tried to assign 'Gy := 0 to disable this unit but it does not work.


When you re-defined Gy, did you use the ' infront of Gy (e.g. 'Gy? This makes it the same font/etc.
I work in IP units and need to re-define everything in the results. Part of the quirks of working in SMath
#4 Posted: 4/23/2018 2:40:46 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

Is there any possibility to disable Gy unit which is useless for my tasks?
I tried to assign 'Gy := 0 to disable this unit but it does not work.



Gy.PNG
#5 Posted: 4/27/2018 7:38:08 AM
m227

m227

4 likes in 29 posts.

Group: User

Hi, I would like to have something without need of definition new auxiliary variables. Just to disable a single unit...
Here is my sample which is automatically recalculated to unwanted Gy:
2018-04-27 12_35_35-SMath Studio - [steamprop.sm_].png
#6 Posted: 4/27/2018 8:45:21 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

btw, the default unit depends on optimization setting.

symbolic evaluation gives bare SI base units.
numeric evaluation gives some derived unit, which might or might not be appropriate for the given case.
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#7 Posted: 11/8/2018 3:44:26 AM
Ganzman

Ganzman

0 likes in 2 posts.

Group: User

I have to agree with m227. Can we request this as a feature as Gy is hardly applicable in most cases.
#8 Posted: 11/8/2018 8:02:36 PM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

Wrote

I have to agree with m227. Can we request this as a feature as Gy is hardly applicable in most cases.



Hi. This is a workaround. Edit the file Units.xml under the SMath/entries/ folder, disabling the entries for the unit Gy:

Clipboard04.gif
Clipboard03.gif

Then you can get, for example, the enthalpy from Coolprops plugin in J/kg by default:

Clipboard05.gif

Best regards.
Alvaro.
1 users liked this post
frapuano 11/9/2018 6:54:00 AM
#9 Posted: 11/8/2018 8:35:48 PM
Ganzman

Ganzman

0 likes in 2 posts.

Group: User

Much obliged!
  • New Posts New Posts
  • No New Posts No New Posts