1 страниц (10 вхождений)
simple structural stress equation - solver fails..(?) - unable to solve simple structural stress due to bending - Сообщения
#1 Опубликовано: 03.08.2022 08:27:48
Dear all, 1st off - I am new to SM and experienced this problem with simple structural stress equation (stress due to bending) that I am unable to resolve - see attached. Solver returns error "No real roots".
I know there is as solution but I am unable to accomplish it.
Q1: Please advise - what am I doing wrong?
Q2: What is a best way to solve this as a system of equations (instead of substitution in order to arrive to a single eqn presented)?
Файл не найден.Файл не найден.
Thanks!
I know there is as solution but I am unable to accomplish it.
Q1: Please advise - what am I doing wrong?
Q2: What is a best way to solve this as a system of equations (instead of substitution in order to arrive to a single eqn presented)?
Файл не найден.Файл не найден.
Thanks!
#2 Опубликовано: 03.08.2022 10:52:12
You can use units. Don't listen to Jean on this point.
One solution - use maxima.

5-6-14.sm (95 КиБ) скачан 34 раз(а).
5-6-14.pdf (563 КиБ) скачан 26 раз(а).
One solution - use maxima.
5-6-14.sm (95 КиБ) скачан 34 раз(а).
5-6-14.pdf (563 КиБ) скачан 26 раз(а).
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
#3 Опубликовано: 03.08.2022 11:18:37
Considering the internal solutors of Smath, the only one who contains the units of measurement is "FindRoot". Otherwise there are all the solutors of the plugins (something has already been proposed to you for Maxima).
Also careful not to fix "b" with a value, otherwise it is no longer an unknown for the solutor (For this, Clear ( b ) was used in the example with Maxima).
5-6-14-ser.sm (88 КиБ) скачан 37 раз(а).
sergio
Also careful not to fix "b" with a value, otherwise it is no longer an unknown for the solutor (For this, Clear ( b ) was used in the example with Maxima).
5-6-14-ser.sm (88 КиБ) скачан 37 раз(а).
sergio
#4 Опубликовано: 03.08.2022 12:11:21
Well, you have a solution with Maxima, another with FindRoot ... this is a solution with solve or roots.
5-6-14.sm (92 КиБ) скачан 46 раз(а).
Best regards.
Alvaro.
5-6-14.sm (92 КиБ) скачан 46 раз(а).
Best regards.
Alvaro.
#5 Опубликовано: 03.08.2022 19:34:46
Greetings,
There are several forums that discuss similar issues; I would encourage you to look though these threads:
You will notice a lot of different approaches; I am personally bias to using maple to solve these problems (In order to run maple functions, you need to install the "Maple Tools Plugins" )
[Using Maple]: Since you already constructed f( b ), all you need to do is perform a symbolic evaluation (keypress [Ctrl] + [.] instead of [=]). This will produce the following:
. . .
NOTE: you cannot have any of the variables defined, else those values will be treated as constants and thus substituted into the equation.
You can copy the text below and paste it into your worksheet; this will generate the result based off of your variables (I work in imperial, thus 'ft' is referenced):
This brings us to units; by solving symbolically, you can identify those variables where the units "don't match". It looks like pressure is your culprit...
I haven't had much success using pressure with regards to force; there is something with regards to the gravitational constant that doesn't quite work right. Therefore, I consider pressure to be of units force/area instead of mass/area. This will cause the units of your inputs to change as such:
. . .
I hope this Helps!
-Kenny Lemens, P.E.
There are several forums that discuss similar issues; I would encourage you to look though these threads:
- https://en.smath.com/forum/yaf_postst23134_Solution-of-Equation--no-real-roots--result.aspx
- https://en.smath.com/forum/yaf_postst21770_solving-simultaneous-equations-with-Solve.aspx
- https://en.smath.com/forum/yaf_postst21791_Voltage-Divider--Solve-for-Missing-Variable.aspx
You will notice a lot of different approaches; I am personally bias to using maple to solve these problems (In order to run maple functions, you need to install the "Maple Tools Plugins" )
[Using Maple]: Since you already constructed f( b ), all you need to do is perform a symbolic evaluation (keypress [Ctrl] + [.] instead of [=]). This will produce the following:
. . .
NOTE: you cannot have any of the variables defined, else those values will be treated as constants and thus substituted into the equation.
You can copy the text below and paste it into your worksheet; this will generate the result based off of your variables (I work in imperial, thus 'ft' is referenced):
{1143*((nthroot(L.1*(2*σ.a*(Q.m*σ.a+sqrt(Q.m*(Q.m*σ.a^2+γ^3*L.1^5)))+γ^3*L.1^5),3))^2+γ^2*L.1^4+γ*L.1^2*nthroot(L.1*(2*σ.a*(Q.m*σ.a+sqrt(Q.m*(Q.m*σ.a^2+γ^3*L.1^5)))+γ^3*L.1^5),3))}/{5000*σ.a*nthroot(L.1*(2*σ.a*(Q.m*σ.a+sqrt(Q.m*(Q.m*σ.a^2+γ^3*L.1^5)))+γ^3*L.1^5),3)*'ft}
This brings us to units; by solving symbolically, you can identify those variables where the units "don't match". It looks like pressure is your culprit...
I haven't had much success using pressure with regards to force; there is something with regards to the gravitational constant that doesn't quite work right. Therefore, I consider pressure to be of units force/area instead of mass/area. This will cause the units of your inputs to change as such:
. . .
I hope this Helps!
-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
#6 Опубликовано: 04.08.2022 04:45:46
Dear experts,
Thank you for your solutions! I like the elegance presented which answers my question Q2 above on substitution.
Re units / unitless project:
I eventually managed to solve it with polyroots (before reading your posts) after rearranging the eqn in the form of polynomial order b^3 (disadvantage: I do the math instead of SM..).
What I noticed is that with units result is 0.152 m while unitless returns value 3.8664 ratio of these being 25.47 which is (close to) units ratio mm/inch.
Coincidence or Bug?
How can one be sure on the output in case of professional application ?
Real world example of not using units properly and catastrophic outcome here https://www.wired.com/2010/11/1110mars-climate-observer-report/ and the same topic on YouTube video "Advanced Problem Solving with PTC Mathcad" @ 4th min.
Nostalgic side note: my old handheld hp48 returns correct result (0.152 m) in no time.
Файл не найден.Файл не найден.
Thank you for your solutions! I like the elegance presented which answers my question Q2 above on substitution.
Re units / unitless project:
I eventually managed to solve it with polyroots (before reading your posts) after rearranging the eqn in the form of polynomial order b^3 (disadvantage: I do the math instead of SM..).
What I noticed is that with units result is 0.152 m while unitless returns value 3.8664 ratio of these being 25.47 which is (close to) units ratio mm/inch.
Coincidence or Bug?
How can one be sure on the output in case of professional application ?
Real world example of not using units properly and catastrophic outcome here https://www.wired.com/2010/11/1110mars-climate-observer-report/ and the same topic on YouTube video "Advanced Problem Solving with PTC Mathcad" @ 4th min.
Nostalgic side note: my old handheld hp48 returns correct result (0.152 m) in no time.
Файл не найден.Файл не найден.
#7 Опубликовано: 04.08.2022 05:42:15
WroteConsidering the internal solutors of Smath, the only one who contains the units of measurement is "FindRoot". Otherwise there are all the solutors of the plugins (something has already been proposed to you for Maxima).
Also careful not to fix "b" with a value, otherwise it is no longer an unknown for the solutor (For this, Clear ( b ) was used in the example with Maxima).
5-6-14-ser.sm (88 КиБ) скачан 37 раз(а).
sergio
Thank you Sergio! I like the elegance presented.
However, changing initial guess value (b0) returns different results...(?)
For [b0] between 1 mm to 300 mm result is 152 mm while for b0=500 mm returns 145 mm, for b0=600 mm result is -39 mm. (?)
What is going on here?
Why this sensitivity to initial values and different results ?
#8 Опубликовано: 04.08.2022 08:31:42
These are non -linear equation, the solutions also depend on the research interval (especially with numerical solution methods) it is appropriate to proceed with a sanity check and sometimes trace the graph of the function to identify the search interval.
5-6-14-ser2.sm (93 КиБ) скачан 29 раз(а).
sergio
5-6-14-ser2.sm (93 КиБ) скачан 29 раз(а).
sergio
#9 Опубликовано: 04.08.2022 19:39:26
Hi Ante. Another example about what important is work with units, as you well point too. And the Smath relevance just because is the only one unit friendly math program today. Notice that taking out the units requires the introduction of their multipliers like giga, kilo or mili in the unitless version. So there are not a bug there.
Best regards
Alvaro
#10 Опубликовано: 04.08.2022 19:41:22
WroteQ1: Please advise - what am I doing wrong?
Q2: What is a best way to solve this as a system of equations (instead of substitution in order to arrive to a single eqn presented)?
While solve() and roots() can't work with units, you can "trick" them by altering your equation.
And there are many possible ways to solve with units, please check the examples below.
5-6-14.sm (127 КиБ) скачан 36 раз(а).
WroteYou can use units. Don't listen to Jean on this point.
I agree with alyles about Jean, never ever listen to him about engineering calculations.
He may have some good examples about math calculations, but most of his samples are only for himself.
Worst of all he is notorious with his wrong formulas, faulty approach for basic engineering calculations, Don Quixote like crusade against units, etc.
And there are some aspects to use temperature units with SMath, read forums and help files carefully before using them.
Jean simply don't know how to work with units, because he never did use them.
And according to his own samples, he gets wrong results whenever units are involved and important.
Regards
1 страниц (10 вхождений)
-
Новые сообщения
-
Нет новых сообщений