Slow procedure

Slow procedure - The procedure works but is so slow to be unlikely - Messages

#1 Posted: 11/6/2021 8:45:04 AM
sergio

sergio

115 likes in 329 posts.

Group: User


I turned a script that I had made in Scilab to use it in Smath.
The sheet serves to evaluate the moment diagram - curvature of a rectangular armed concrete section (useful then for further evaluations of the ductility of section ...)
The reduced version, which I am attaching here seems to provide correct results (or at least congruent with those obtained with Scilab ); However the slowness discourages in continuing with the completion of the procedure. Does anyone have any improvement idea?
I tried with a sheet without a unit of measurement; I get a 50% time reductions but it is always very especially wanting to get more dense discretion.
DuttilitaPressoflessione_R(forum).pdf (133 KiB) downloaded 45 time(s).
DuttilitaPressoflessione_R(forum).sm (215 KiB) downloaded 40 time(s).
sergio
#2 Posted: 11/6/2021 2:46:32 PM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

Ciao Sergio. You can deal with this version of a numerical solver. Other improvements may be to avoid evaluating the integral for the cases x
DuttilitaPressoflessione_R(forum).sm (219 KiB) downloaded 31 time(s).

Best regards.
Alvaro.

#3 Posted: 11/6/2021 6:57:12 PM
sergio

sergio

115 likes in 329 posts.

Group: User

Alvaro,
I don't think it's correct; I say this because I see that some users have downloaded your file and I wouldn't want to induce anyone wrong. It takes time to understand, but I believe it is a problem linked to the management of the units of measure with the solver you proposed purely numerical.
sergio
#4 Posted: 11/6/2021 9:11:58 PM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

Hi Sergio. It could be because f is actually function of two variables, f(x,χ). This other setup ensure (I think) that at each loop the solver takes the new χ value.

DuttilitaPressoflessione_R(forum).sm (222 KiB) downloaded 45 time(s).

Best regards.
Alvaro.
2 users liked this post
sergio 11/7/2021 1:26:00 PM, Davide Carpi 11/8/2021 6:44:00 AM
#5 Posted: 11/7/2021 1:27:16 PM
sergio

sergio

115 likes in 329 posts.

Group: User

Alvaro,
great now works well and quickly
Thanks!
sergio
#6 Posted: 11/7/2021 9:34:12 PM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

Hi Sergio. You're a gentleman. You're right, I don't pay enough attention in my first post, and look only to the final result, but not it was stable or what.

Best regards.
Alvaro
1 users liked this post
Davide Carpi 11/8/2021 6:44:00 AM
  • New Posts New Posts
  • No New Posts No New Posts