cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

Is there a way to improve the calculation efficiency in this case?

sfan
1-Visitor

Is there a way to improve the calculation efficiency in this case?

Hi, everyone,

I am trying to use Duhamel Integral to calculate a continuous bar axial vibration response,

Below is my process:

I only used the eta1(t) part and the first phi*eta1(t) (add from i=0 to 0)

But it takes 5mins for Mathcad to finish the calculation of this simple case. 

1.JPG

2.JPG

Is there a way to improve the calculation efficiency?

Before this, I also tried to create a matrix with 100 points for u1, and plot the matrix,

but the time for the final calculation is also very long.

Given this is only a simple case, adding from 0 to 0, I am afraid that it takes forever to finish the accumulation of more phi*eta.

I propose that the problem of this low efficiency is with the Duhamel integral,

Is there a way to improve it?

Thank you very much!

Best Regard

Shawn

2 REPLIES 2
sfan
1-Visitor
(To:sfan)

I also tried this way, but it is also very slow.

3.JPG

sfan
1-Visitor
(To:sfan)

Hi, guys,

I tried this way, similar to Matlab, and it improved the efficiency a lot.

1.JPG

2.JPG

I just save the expression of Duhamel integral as a function, and substitute n, omega, t as variables to find eta.

With the expression saved beforehand, the later calculation is much more faster.

Hope this could help if anyone needs.

And if you have better ways, please leave a comment.

Thank you

Success!

Shawn

Announcements

Top Tags