Message Boards Message Boards


Help with NDSolve`FiniteDifferenceDerivative function

Posted 20 days ago
0 Replies
0 Total Likes

Hello, please I need your help to understand two commands, I'm trying to understand the method of line to solve heat equation using line method, this is the beginning of the my code:

np = 5;
ugrid = 1/np Range[0, np]
fd1 = NDSolve`FiniteDifferenceDerivative[Derivative[1], ugrid];
m1 = fd1["DifferentiationMatrix"];

If I'm not wrong " fd1 " is the approximation of the first derivative in each point of the grid, my problem is in "m1" what is this command? What does "DifferentiationMatrix" present?

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
or Discard

Group Abstract Group Abstract