JesseBonanno / IndeterminateBeam

A solver for 1D indeterminate beams
MIT License
69 stars 20 forks source link

Analysis Speed #12

Closed JesseBonanno closed 3 years ago

JesseBonanno commented 3 years ago

Analyse intially created for clarity with no consideration for speed. It turns out that the integrate component of the analysis function is causing significant speed issues.

On a arbritrary beam with many supports the following times were observed: M_i -> ~20 seconds dvEI > ~10 seconds equations_xx ~30 seconds

everything else took a fraction of a second (collectively close to 1 second for all else in analyse)

image

It is possible that the integration takes so long due to the use of piecewise functions. It might be beneficial to 'manually' integrate -> will be easy since already know the power of x in each function by definition (ie point loads in shear force arent a function of x) only unknown is arbritrary functions, will need to think about how to attack these types of loads.

JesseBonanno commented 3 years ago

Speed results are actually fairly large even with no loads added to the beam. On a arbritrary beam (same as before) with many supports the following times were observed: M_i -> ~10 seconds dvEI > ~10 seconds equations_xx ~30 seconds

(Previously a trapezoidal load was used)

JesseBonanno commented 3 years ago

speed improvements by explicitly stating equations in commit b81d9cc

JesseBonanno commented 3 years ago

Will need to implement FEA to get significantly better speed improvements.