simple structural stress equation - solver fails..(?)

simple structural stress equation - solver fails..(?) - unable to solve simple structural stress due to bending - Messages

#1 Posted: 8/3/2022 8:27:48 AM
Andro

Andro

0 likes in 3 posts.

Group: User

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)?
File not found.File not found.
Thanks!
#2 Posted: 8/3/2022 10:52:12 AM
Arie

Arie

93 likes in 285 posts.

Group: User

You can use units. Don't listen to Jean on this point.

One solution - use maxima.



Untitled.png
5-6-14.sm (95 KiB) downloaded 33 time(s).
5-6-14.pdf (563 KiB) downloaded 25 time(s).
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
#3 Posted: 8/3/2022 11:18:37 AM
sergio

sergio

115 likes in 329 posts.

Group: User

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 KiB) downloaded 36 time(s).
sergio
#4 Posted: 8/3/2022 12:11:21 PM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

Well, you have a solution with Maxima, another with FindRoot ... this is a solution with solve or roots.

5-6-14.sm (92 KiB) downloaded 45 time(s).

Best regards.
Alvaro.
#5 Posted: 8/3/2022 7:34:46 PM
⚜ Kenny Lemens, P.E. ᵂᴵ

⚜ Kenny Lemens, P.E. ᵂᴵ

74 likes in 164 posts.

Group: User

Greetings,

There are several forums that discuss similar issues; I would encourage you to look though these threads:

  1. https://en.smath.com/forum/yaf_postst23134_Solution-of-Equation--no-real-roots--result.aspx
  2. https://en.smath.com/forum/yaf_postst21770_solving-simultaneous-equations-with-Solve.aspx
  3. 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:
. . . SMATH_solveForB.jpg
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:
. . . SMATH_solveForB_UnitsOnInputs.jpg

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 Posted: 8/4/2022 4:45:46 AM
Andro

Andro

0 likes in 3 posts.

Group: User

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.
File not found.File not found.
#7 Posted: 8/4/2022 5:42:15 AM
Andro

Andro

0 likes in 3 posts.

Group: User

Wrote

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 KiB) downloaded 36 time(s).
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 Posted: 8/4/2022 8:31:42 AM
sergio

sergio

115 likes in 329 posts.

Group: User

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 KiB) downloaded 28 time(s).
sergio
#9 Posted: 8/4/2022 7:39:26 PM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User


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 Posted: 8/4/2022 7:41:22 PM
overlord

overlord

551 likes in 1332 posts.

Group: Moderator

Wrote

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)?


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 KiB) downloaded 35 time(s).

Click to enlarge


Wrote

You 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.

Click to enlarge

Regards
  • New Posts New Posts
  • No New Posts No New Posts