Square Inches for Area instead of Square Meters

Square Inches for Area instead of Square Meters - When Assigning Units Output is Meters Squared - 消息

#1 已发布: 2020/7/15 13:28:30
tonlok

tonlok

0个赞,共3个帖子。

组: User

Question:

Calculating Area of a piston when I enter the diameter in inches the output is m2, how do I get the output units to in2?

Thanks and apologies if this is something easy to solve, I have searched all over and have not been able to figure it out.

#2 已发布: 2020/7/15 14:23:01
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Wrote

Calculating Area of a piston when I enter the diameter in inches the output is m2, how do I get the output units to in2?


Copy inch²/paste in the empty place holder of result.

Piston.PNG
#3 已发布: 2020/7/15 16:58:18
overlord

overlord

600个赞,共1,381个帖子。

组: Moderator

Wrote

Question:

Calculating Area of a piston when I enter the diameter in inches the output is m2, how do I get the output units to in2?

Thanks and apologies if this is something easy to solve, I have searched all over and have not been able to figure it out.


Click to result, you wil notice there will be a placeholder for unit change.
Change it to square inch. It will be calculated as you wanted.

units.png
1位用户喜欢此帖子
Davide Carpi 2020/7/15 18:21:00
#4 已发布: 2020/7/15 16:59:34
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Wrote

Calculating Area of a piston when I enter the diameter in inches the output is m2, how do I get the output units to in2?


... or like this in silent unit:
1. x*in ... in from unit panel
2. backspace twice to remove in
3. at this point you see a big round place holder,
4. in that special place holder ... in from unit panel
5. 'in in blue is now silent for result 'in²

Piston SilentUnit.PNG
#5 已发布: 2020/7/15 18:29:56
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

... make it hi-pro algo style.

Piston algo.PNG
#6 已发布: 2020/7/15 18:54:23
tonlok

tonlok

0个赞,共3个帖子。

组: User

I want to thank everyone for their responses.

Cannot figure out the syntax of how to changes the units, I select so the box has the dogleg right then I type in^2 and get the result in not defined like I am adding another step to the calculation? Just typing in also gives me the same error.

未找到文件。未找到文件。

#7 已发布: 2020/7/15 19:10:51
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Wrote

Cannot figure out the syntax of how to changes the units


... as explained above. Read again.

Piston algo Symbol.PNG
#8 已发布: 2020/7/15 19:30:48
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Wrote

Cannot figure out the syntax of how to changes the units


Make your project math style [no decoration, no gyzmas ...]
No syntax to freak, code accordingly.

Silent Unit.PNG

#9 已发布: 2020/7/15 19:37:25
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Unit Silent.sm (5.5 KiB)已下载 1248 次。
#10 已发布: 2020/7/15 20:14:52
overlord

overlord

600个赞,共1,381个帖子。

组: Moderator

Wrote

I want to thank everyone for their responses.

Cannot figure out the syntax of how to changes the units, I select so the box has the dogleg right then I type in^2 and get the result in not defined like I am adding another step to the calculation? Just typing in also gives me the same error.


After you typed "in", press Tab or double click on inch unit before you enter the square.
So that you will get the inch unit. It should be blue colored.
You can define variables in Smath even by unit names.
I can see your inch unit is not unit. It is a new variable named "in".
I am repeating again, units are blue colored.

Regards.

units2.png
#11 已发布: 2020/7/16 11:41:59
tonlok

tonlok

0个赞,共3个帖子。

组: User

Once again, I want to thank everyone for their help.

I am going down the path of using the units. Took me a couple of attempts to get the in2 but it is now working

One follow-up, if I set the equation to optimization none to show the numeric values they all default to meters, is there a way to have them shown as inches?


Formula 3.JPG
#12 已发布: 2020/7/16 13:33:43
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Wrote

One follow-up, if I set the equation to optimization none to show the numeric values they all default to meters, is there a way to have them shown as inches?


Construct as is, it may have to do with your SS version.
Otherwise, you are wrongdoing, not following guidance.

Piston Doctored.PNG
#13 已发布: 2020/7/17 04:29:22
Martin Kraska

Martin Kraska

1,362个赞,共2,276个帖子。

组: Moderator

Wrote

Once again, I want to thank everyone for their help.

I am going down the path of using the units. Took me a couple of attempts to get the in2 but it is now working

One follow-up, if I set the equation to optimization none to show the numeric values they all default to meters, is there a way to have them shown as inches?


Formula 3.JPG



Definitions are converted to SI upon storage (you see that when you hover with the mouse over a definition. Control of display units is just by the optional placeholder, where you can insert any factor (a unit or pi or any variable name which your result may contain)

Also note that the default display unit depends on optimization. Numeric and symbolic display different units, e.g. 1/s defaults to Hz in numeric optimization and to 1/s in symbolic.
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
  • 有新帖
  • 无新帖