Skip to main content
14-Alexandrite
October 7, 2021
Solved

Finite Difference

  • October 7, 2021
  • 1 reply
  • 1847 views

Hello,

I am trying to do a finite difference to solve the differential equation and compare it with the analytical solution. I am not sure why I am not getting the plots to work out. I attached both Mathcad-15 and Prime 7 files. I converted 15 to Prime7.

 

Thank you,

Sam

Best answer by LucMeekes

Problem:

LucMeekes_6-1633639593672.png

Using Odesolve:

LucMeekes_4-1633639461666.png

The finite difference:

LucMeekes_1-1633639013499.png

And the analytical solution is:

LucMeekes_2-1633639381707.png

Plot:

LucMeekes_7-1633639692541.png

 

Success!
Luc

1 reply

LucMeekes23-Emerald IVAnswer
23-Emerald IV
October 7, 2021

Problem:

LucMeekes_6-1633639593672.png

Using Odesolve:

LucMeekes_4-1633639461666.png

The finite difference:

LucMeekes_1-1633639013499.png

And the analytical solution is:

LucMeekes_2-1633639381707.png

Plot:

LucMeekes_7-1633639692541.png

 

Success!
Luc

SFares14-AlexandriteAuthor
14-Alexandrite
October 7, 2021

Thank you so much Luc!

 

Sam