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 Fabbro  
#1 Posted : 25 August 2023 17:49:43(UTC)
Fabbro


Rank: Member

Groups: Registered
Joined: 02/08/2023(UTC)
Posts: 16
France

Good morning to all

This post is a continuation of my previous post:
Plot of functions having big range on Y axis - No plot when trying to plot functions having big range
(you can consult for more infos).

I'm testing the combination of more transfer matrix (representing a stepped beam: I can give more technical details
if someone is interested....).

When I tried a three-pieces stepped beam the calculations still runs after hours....for comparison, I tested
a 32-pieces configuration in MathCAD, ending calculation in 1h and half...I used the same sequence of calculation
I adopted in MathCAD but I suspect that I have to change "strategy" in SMath: has any one a suggestion?

More in general: it's possible to freeze results of a SMath sheet, and start from the last completed calculation
for the new calculations?

I attach the files

Many thanks in advance for whatever the suggestion. Do not hesitate to ask for me if you need further detail (or you are simply curious...).

Best Regards

Fabio TMMT.sm (100kb) downloaded 18 time(s). ThreeHollowBeams_SteppedBeam.sm (134kb) downloaded 12 time(s).

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

Offline CBG  
#2 Posted : 25 August 2023 23:12:30(UTC)
CBG


Rank: Advanced Member

Groups: Registered
Joined: 14/10/2015(UTC)
Posts: 308

Was thanked: 77 time(s) in 58 post(s)
Hello

My PC calculated the TMMT.sm file in 21 seconds, and the ThreeHollowBeams_SteppedBeam,sm file in 32 minutes.

The last 2 lines of the last calculation are the ones that take the longest to execute.

The graphs of the functions do not appear.

Operating System: Windows 11 Pro

Processor: 12th Gen Intel(R) Core(TM) i7-12650H 2.30 GHz
Installed RAM: 32.0 GB (31.8 GB usable)

Best Regards

Carlos
Offline Fabbro  
#3 Posted : 26 August 2023 15:38:56(UTC)
Fabbro


Rank: Member

Groups: Registered
Joined: 02/08/2023(UTC)
Posts: 16
France

ConfigPCFabbro.docx (29kb) downloaded 5 time(s).Thanks CBG, thanks Jean

For CBG: about visualizing the plot, I had some suggestions following my previous post.
In fact you gave me matter to think it over. The configuration of my PC is attached ConfigPCFabbro.docx (29kb) downloaded 5 time(s)..

At a first sight I'd say that the weak point is in RAM, not in the SO (Windows10 Pro), nor in processor (8 cores!)
What do you think about?

More, do you think that SMath is "running better" with a lot of RAM or with a fast processor?

I'm not an expert but I remember well that NASTRAN (until 2005 version at least) was more performant with fast processors than with a lot of RAM....

More it's not possible to make "parallel" calculations (maybe my PC is not at the edge but still it has 8 processors......)?


For Jean: thanks for your feedback (in line with my doubts). To progress in my calculations it should be useful to understand what is "dominating":
RAM (or processor) capabilities OR solvers capabilities? Unfortunately I cannot, for now, make a sure statement as the MathCAD reference times (I quoted
in my post) are also linked to a different PC (than the one where SMath is presently running)....and I do not remember nor the model nor the configuration....

On the other side, I think there has been a misunderstanding about SMath "freezing": I think you mean that calculation does not end after long time...it's the case. BUT it's also true that every time SMath recalculates the sheet since the very beginning. My question was: it's not possible to complete calculations in two steps; i.e. until a certain point (line), save, and, then, restart calculation from that point (line)? For example I could calculate the sheet until the first of the last 2 lines. Then, restart the sheet ONLY to calculate last line and plot.

By the way, I could completely change of strategy. Until now my strategy was: plot the function, see where roots are approximatively, find the the roots more "precisely". BUT I could do other way: sweep with big steps the range of Omega I'm interested; see btw which steps, the function change of sign; iteratively search the root...

Best Regards

Fabio
Offline Jean Giraud  
#4 Posted : 27 August 2023 14:52:48(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)
... here is the transit Solver 30405.
Please confirm it works ... Jean.

TMMT plot_roots.sm (114kb) downloaded 7 time(s).
Offline Fabbro  
#5 Posted : 28 August 2023 11:17:36(UTC)
Fabbro


Rank: Member

Groups: Registered
Joined: 02/08/2023(UTC)
Posts: 16
France

Hi JEAN,

I tried to run your last sheet (TMMT plot roots.sm) BUT a new bug (unknown until now) jumps out
for ALL my sheets involving TMMT algorithm (so, your sheet included....) : could you give me a hint
to solve it?

I'm very surprised and a bit upset: it's not matter of scientific calculation but debugging....

To be noticed that the bug involves SMath sheets previously working correctly (even if something was
signaled, randomly, in the past, for the same function BUT without any effect on calculations)

Many Thanks

FabioBugTMMT.jpg
Offline Fabbro  
#6 Posted : 28 August 2023 13:15:43(UTC)
Fabbro


Rank: Member

Groups: Registered
Joined: 02/08/2023(UTC)
Posts: 16
France

.....sorry JEAN to bother you...but I've solved the issue I hinted before...apparently I have ticked (and forgot) the option "Pause" in "Calculation/On Error"...
sorry..I'll check TMMT plot roots.sm asap and let you know

Offline Jean Giraud  
#7 Posted : 28 August 2023 14:30:53(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)
Originally Posted by: Jean Giraud Go to Quoted Post
All accurate roots, min/max Golden ratio.

Doctored version ... NO red region.
Does it work ? Jean

TMMT plot_roots.sm (135kb) downloaded 5 time(s).
Offline Fabbro  
#8 Posted : 28 August 2023 15:28:11(UTC)
Fabbro


Rank: Member

Groups: Registered
Joined: 02/08/2023(UTC)
Posts: 16
France

It works indeed!! Do you think that it could work as well and sufficiently fast for multiple transfer matrix? I'll try and let you know..THANKS again!
Offline Fabbro  
#9 Posted : 28 August 2023 16:00:02(UTC)
Fabbro


Rank: Member

Groups: Registered
Joined: 02/08/2023(UTC)
Posts: 16
France

Hi JEAN, could you check (in the meanwhile I'll do also) that the attached version of your SM file,
is running correctly and sufficiently fast TMMT plot_roots V1.sm (151kb) downloaded 4 time(s).?

Modification are highlighted in pink.

THANKS!!!
Offline Jean Giraud  
#10 Posted : 28 August 2023 17:16:03(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)
Originally Posted by: Fabbro Go to Quoted Post
It works indeed!!
Do you think that it could work as well and sufficiently fast for multiple transfer matrix ? I'll try and let you know..THANKS again!

I don't quite understand multiple transfer matrix ?
Do you mean a matrix system that would plot more waves ?
Or plot more wrt to different initial parameters ?
Plot/Solve all the maths in < 40 s !!!
Offline Jean Giraud  
#11 Posted : 28 August 2023 17:47:19(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)
Originally Posted by: Fabbro Go to Quoted Post
Modification are highlighted in pink.

It complains from the very beginning D,d not defined
Offline Fabbro  
#12 Posted : 29 August 2023 11:18:34(UTC)
Fabbro


Rank: Member

Groups: Registered
Joined: 02/08/2023(UTC)
Posts: 16
France

Sorry JEAN,

I discovered in the meanwhile some flaws that I corrected: I can confirm no "complains" now.

BUT after more than 3h, SMath is stuck on detZ function....

What I ask you is to try to run the "modified version" here attached...Please stop
calculation after 1h running, particularly if, in this timeframe, the roots have not been calculated
: no need to make you also waste energy!

TMMT plot_roots V2.sm (148kb) downloaded 11 time(s).

Let me know : I think that I'm at the last tests before switching to MathCAD (for this problem at least - bending frequencies
of inhomogeneous stepwise beams) and, possibly, adding RAM to my PC (16 Gb is not sufficient in my opinion).

Thanks you very much for your support

Fabio
Offline Kenny Lemens  
#13 Posted : 30 August 2023 17:53:49(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,

To accelerate your function call, insert the definition of detZ() into a line call (shown below; note the black vertical bar = 'line(▮)' )


Take your current definition:
detZ(ω):= Φ(ω)₃₃ * Φ(ω)₄₄ - Φ(ω)₃₄ * Φ(ω)₄₃
Code:
detZ(ω):el(Φ(ω),3,3)*el(Φ(ω),4,4)-el(Φ(ω),3,4)*el(Φ(ω),4,3)


Replace it with this definition:
detZ(ω):=|Φ(ω)₃₃ * Φ(ω)₄₄ - Φ(ω)₃₄ * Φ(ω)₄₃
Code:
detZ(ω):line(el(Φ(ω),3,3)*el(Φ(ω),4,4)-el(Φ(ω),3,4)*el(Φ(ω),4,3),1,1)



You will notice drastic acceleration in detZ() definition; I would repeat this technique for any function that references another function within its own definition (ie., Z(x) and f(x)).


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
thanks 2 users thanked Kenny Lemens for this useful post.
on 30/08/2023(UTC),  on 31/08/2023(UTC)
Offline Fabbro  
#14 Posted : 30 August 2023 22:08:28(UTC)
Fabbro


Rank: Member

Groups: Registered
Joined: 02/08/2023(UTC)
Posts: 16
France

Thanks JEAN, thanks KENNY,

For KENNY: I'm trying just now your suggestion: a first result is that, in fact, DetZ() is passed away in 50' ...could you be so kind to give me a short hint on how the modification act ? Please,
keep in mind I'm nor a informatic expert nor a mathematicians but only an aeronautical/mechanical engineer with some basis of numerical calculation...

For JEAN, thanks again for all your efforts...about what you call "Clean roots", please take into consideration that complex results (with small
imaginary part, let's say < 5% of real part) are acceptable: it probably means that the vibration has components on both normal axis...
More, these methods are used mainly in preliminary dynamic&vibration verification (hence 5% error is more than good). By the way in one of the
original version of the my SMath file (ThreeHollowBeams_SteppedBeam) the calculation ended after 1h & 50' on solve (......) with the error message:
"No real roots"...I do not think it's matter of units (it worked in previous SMath files...). But on the other side, I do not know how could I ask to have even
complex roots...
Plus, do not consider negative axis and max the first 5 roots (lowest frequencies are always the most 'tedious' and a modal basis made by first 5 modes/frequencies
is more than adequate if we should want to consider an "answer" of the structure): this should limit the values (even if, to be honest with you, when I studied the same
cases in MathCAD, values of 10e18 were not uncommon).

Keep in touch
Offline Jean Giraud  
#15 Posted : 31 August 2023 13:24:55(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)
All done correct in few minutes vs hours.
Quick plot 10 min ... X_Y less greedy.
No imaginary roots encountered.
For 12 Decimals roots ... Dichotomy.
Explore from command line, or meshed data XY.
Jean.

TMMT plot_roots V2 part doctored.sm (127kb) downloaded 6 time(s).
Offline Kenny Lemens  
#16 Posted : 31 August 2023 16:01:21(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,

Fabbro, to the best of my knowledge, the line() function bypasses some of the Symbolic calculations, so it has the effect of just creating a definition, whereas before SMath was attempting to define and symbolically process (and simplify/combine) ALL of the preceding equations into the current equation.

May this be of Good Help;
⚜ Kenny Lemens, P.E. ᵂᴵ

Edited by user 31 August 2023 16:08:37(UTC)  | Reason: rewrote reply

"No matter where you go, there you are." -Buckaroo Banzai

Hotkeys: https://en.smath.com/for...rce.ashx?a=45771&b=2
thanks 1 user thanked Kenny Lemens for this useful post.
on 01/09/2023(UTC)
Offline Jean Giraud  
#17 Posted : 02 September 2023 13:46:01(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)
I deleted most of non associated to document.
Every demand is greedy ... plots, solve, export.
At the point of Export, copy/paste in new sheet
for total independence, inspection.
Cheers ... Jean.

TMMT plot_roots V2 part doctored.sm (146kb) downloaded 3 time(s).
Offline Fabbro  
#18 Posted : 02 September 2023 17:17:15(UTC)
Fabbro


Rank: Member

Groups: Registered
Joined: 02/08/2023(UTC)
Posts: 16
France

Hi JEAN,

thank you very much!! Really kind of you!! Me also I'm doing some test by myself with cross check
with respect to the expected results....yes, I'm doing a benchmark with respect to the following article
Response Analysis of Ladder Beams Under Inertial mOVING lOAD.pdf (789kb) downloaded 6 time(s). - See fig.2 and Table 1 (first example).

And it seems to me that not considering the units of measure has an impact on the expected results

In Mathcad and in the first, very manual, examples, the first frequency was got (around 5Hz); for the other frequencies
the method - that I baptized TMMT - revealed "stiffer" and stiffer (higher frequencies)...if you want to know something
more on this method please ask, it's nothing secret or new...simply forgotten...but I think TMMT has a distinct advantage
and it's "sold" elsewhere as particularly accurate for high frequencies...so, maybe, there is something wrong in the reference
article (that uses a much more complicated method in my opinion).

BUT all your work is really useful for me as I'm trying to "implant" many of your line in my original file (preserving units)
and results are promising. I'll keep you informed and exchange files.

Best Regards

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