Change of system of units Metric System, International System and Imperial System

Change of system of units Metric System, International System and Imperial System - Change of system of units Metric System, International System and Imperial System - Сообщения

#1 Опубликовано: 22.10.2023 22:37:01
daniel

daniel

0 сообщений из 6 понравились пользователям.

Группа: User

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
#2 Опубликовано: 23.10.2023 00:35:37
Valery Ochkov

Valery Ochkov

55 сообщений из 633 понравились пользователям.

Группа: User

mft.png

#3 Опубликовано: 23.10.2023 00:36:13
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

If you want to preserve MPa ... in the A result,
in the for loop multiply i*silent MPa
Silent is 'MPa
#4 Опубликовано: 23.10.2023 07:09:50
overlord

overlord

548 сообщений из 1332 понравились пользователям.

Группа: Moderator

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
#5 Опубликовано: 23.10.2023 20:58:22
Valery Ochkov

Valery Ochkov

55 сообщений из 633 понравились пользователям.

Группа: User

We need someone as in Mathcad
UnitsSystems.png

1 пользователям понравился этот пост
Oscar Campo 24.10.2023 07:31:00
#6 Опубликовано: 01.11.2023 02:55:07
⚜ Kenny Lemens, P.E. ᵂᴵ

⚜ Kenny Lemens, P.E. ᵂᴵ

74 сообщений из 164 понравились пользователям.

Группа: User

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 BanzaiHotkeys: https://en.smath.com/forum/resource.ashx?a=45771&b=2
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений