I am beginner in MATLAB and similar. I sow and discussed with my professors doing simulations some times: they wrote down a lot of calculus, most of them using Crank-Nicolson Method and so implement them on MATLAB.
Until now, I could not imagine that MATLAB has pdepe. Today I've learned about pdepe and try to code a PDE that my professor coded with Crank-Nicolson. The result was absolutely the same and I had less calculus.
I am thinking about the difference between the two methods. In fact, I'd like to know when is not so good use pdepe (once I thought this is marvelous, very easy...!). What can be the benefits of other methods on simple researchs?
Many thanks in advance.
pdepe
class in MATLAB available right? There could be a lot of reasons for that. For example, maybepdepe
doesn't scale well when the size of the system goes up and people use to write their own code to make it more efficient/accurate. I mean as long as I don't see your professor's code based on Crank-Nicolson, it's a bit difficult to say why, but there must be reason that you could easily ask your professor. Regarding your question: How good ispdepe
? Good with what sense? Speed? Accuracy? Scaling? $\endgroup$