Finite Differences-Semi discretization method on Heat Equation

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 3K views
Juan Carlos
Messages
21
Reaction score
0
Hi!, I'm working on a personal project: Solve the heat equation with the semi discretization method, using my own Mathematica's code, (W. Mathematica 9). The code:
View attachment PDE heat.nb

I'm having problems with the variable M (the number of steps). It works with M=1-5, but no further, I do not know what's going on. Help!
Also, I'm looking for a better animation more intuitive.
Thanks a lot
 
Physics news on Phys.org
Since I do not have mathematica( using MATLAB for simulation purposes) I am just going to ask silly questions :|. As far as a quick google search is concerned Semi discretization means you only discretize space, right? And then you figure out some time evolution method. What are you using for the time evolution?
 
Strum said:
Since I do not have mathematica( using MATLAB for simulation purposes) I am just going to ask silly questions :|. As far as a quick google search is concerned Semi discretization means you only discretize space, right? And then you figure out some time evolution method. What are you using for the time evolution?

Yes, that's the idea of semi discretization(also you can discretize the time or space)- But in this treatment I am working with the spatial variable (discrete), and solving the differential equations of time without any numerical method (certain boundary conditions and initial condition allow me to do it), since mathematica does it exactly.

Did I get you?
Thanks