Message Boards Message Boards

0
|
2231 Views
|
0 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Help with NDSolve`FiniteDifferenceDerivative function

Posted 2 years ago

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?

POSTED BY: Lina Lili
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract