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 Danuko  
#1 Posted : 23 October 2023 04:37:01(UTC)
Danuko

Rank: Newbie

Groups: Registered
Joined: 07/08/2023(UTC)
Posts: 6
Bolivia

Hello, my dears, can you help me with a problem I have with the units in Smath, how can I change units from one system to another? Apparently the Smath works by default with the International system, if you wanted to only work with the metric or imperial system where would you configure???????

imagen_2023-10-22_113547768.png

2: Another concern I have is how to change the units in an already defined matrix

imagen_2023-10-22_113652632.png

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

Offline OchkovVF  
#2 Posted : 23 October 2023 06:35:37(UTC)
OchkovVF


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 06/04/2023(UTC)
Posts: 348
Man
Russian Federation

Was thanked: 28 time(s) in 27 post(s)
mft.png

Offline Jean Giraud  
#3 Posted : 23 October 2023 06:36:13(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)
If you want to preserve MPa ... in the A result,
in the for loop multiply i*silent MPa
Silent is 'MPa
Offline overlord  
#4 Posted : 23 October 2023 13:09:50(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,129
Turkey

Was thanked: 510 time(s) in 340 post(s)
1 - There is no permanent SI/Imperial option.
You can easily input imperial units to variables.
Yet SMath works with SI Units under the hood.
Even if you input variables in imperial, results will be in SI.
However, results can be shown in imperial too.
Just click to result, a placeholder will appear.
Input your desired unit at there.
Unfortunately you have to manually alter every result.

2023-10-23_02-59.png

2 - You can't change individual units of result matrix as explained above.
Yet you can input a unit to placeholder of result matrix.
If every element have same units, it will be beautiful.
If not, it will be a mess. Try to learn table region plugin for that purpose.

Regards

2023-10-23_02-57.png
Offline OchkovVF  
#5 Posted : 24 October 2023 02:58:22(UTC)
OchkovVF


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 06/04/2023(UTC)
Posts: 348
Man
Russian Federation

Was thanked: 28 time(s) in 27 post(s)
We need someone as in Mathcad
UnitsSystems.png

thanks 1 user thanked OchkovVF for this useful post.
on 24/10/2023(UTC)
Offline Kenny Lemens  
#6 Posted : 01 November 2023 08:55:07(UTC)
Kenny Lemens


Rank: Advanced Member

Groups: Registered
Joined: 11/01/2018(UTC)
Posts: 134
Man
United States
Location: Wisconsin

Was thanked: 62 time(s) in 39 post(s)
Greetings,

1) You would have to rewrite (or modify) the 「Units.xml」 file in your program files: 「\SMath Studio\entries\」. In essence, SMath reports things in terms of base units, so you just need to hotwire your base units. Engr Posted a solution 5 years ago to have imperial be default.
- https://en.smath.com/forum/yaf_postsm48353_Simple-Beam-Analysis.aspx#post48353

2) There currently is no easy way to manage units within a matrix; they seem to always report in base terms. Here is a similar discussion to that effect:
- https://en.smath.com/forum/yaf_postsm79741_Usable-default-units-for-US.aspx#post79741


I have a similar solution to Engr's XML file and it is pretty stable; it just throws "Cannot divide by Zero" errors on some rare occasions (just need to manually specify the correct units the result should report in). The big take away was that the connections for all units needed to be updated to reference you new base unit. I also found the need to make lbf its own base unit (SMath currently defines force as the product of mass and acceleration, once acceleration due to gravity gets involved, symbolic evaluation just because overloaded with numbers/units.) There are issues if you try to make inches a base unit, but making feet a base unit seems to work 'okay'.

There is the option to switch the output system from Metric to Imperial; but that feature is half-baked: Don't use it; would be more productive for you to just manually override a given equation to the units you want to see.


May this be of Good Help;
⚜ Kenny Lemens, P.E. ᵂᴵ
"No matter where you go, there you are." -Buckaroo Banzai

Hotkeys: https://en.smath.com/for...rce.ashx?a=45771&b=2
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.