Rank: Member Groups: Registered
Joined: 09/03/2010(UTC) Posts: 29 Location: Poland
Was thanked: 4 time(s) in 2 post(s)
|
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.
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: m227 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.
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 05/03/2009(UTC) Posts: 433 Location: USA Was thanked: 17 time(s) in 15 post(s)
|
Originally Posted by: m227 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
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: m227 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.
|
|
|
|
Rank: Member Groups: Registered
Joined: 09/03/2010(UTC) Posts: 29 Location: Poland
Was thanked: 4 time(s) in 2 post(s)
|
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:
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 1,986 Was thanked: 1124 time(s) in 721 post(s)
|
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. |
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 28/08/2012(UTC) Posts: 2
|
I have to agree with m227. Can we request this as a feature as Gy is hardly applicable in most cases.
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 1,356 Was thanked: 815 time(s) in 516 post(s)
|
Originally Posted by: Ganzman 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: Then you can get, for example, the enthalpy from Coolprops plugin in J/kg by default: Best regards. Alvaro.
|
1 user thanked Razonar for this useful post.
|
|
|
Rank: Newbie
Groups: Registered
Joined: 28/08/2012(UTC) Posts: 2
|
|
|
|
|
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.