Variable grid mesh in Numerov's method (Fortran)

Click For Summary
The discussion focuses on implementing a variable grid mesh in Numerov's method using Fortran, highlighting challenges encountered when transitioning from standard discretization. The user notes that the variable grid seems to affect the algorithm's metric, suggesting that the standard Numerov method does not account for these changes. They seek guidance on developing an iterative algorithm that accommodates non-uniform step sizes in solving differential equations. The user proposes modifying the existing algorithm by applying the chain rule to better handle varying point distances. Additionally, they inquire about the appropriateness of posting in a different subforum related to programming and computer science.
Telemachus
Messages
820
Reaction score
30
I was trying to implement a variable grid mesh in Numerov's method, while playing with fortran. Numerov method was working well with a standard discretization, but when I tried to implement this variable grid, things came to look as if the 'metric' of the function were depending on the functionality I was using in the grid mesh. I thought that as Numerov's uses two points in the algorithm, that this variable mesh was introducing new things that the standard Numerov algorithm doesn't have in account.

So, basically, I want to know how should I develop an iterative algorithm to work on a variable grid mesh (specifically to solve differential equations), how to tell the algorithm that the previous or forward steps are not at the same distance. Perhaps someone here can help me, or give me some reference. Any textbook that covers this kind of topics?

Thanks in advance.
 
Physics news on Phys.org
After thinking of this, I've realized that I should modify the algorithm I'm using. I think that I should use the chain rule in the derivatives, so in that way I would have the information of how the points in the domain are varying. So, I should take a deeper look at Numerov's method and modify it to adapt to the gridmesh I'm using. Is that correct?

BTW, would this subforum be more appropriate for this topic: https://www.physicsforums.com/forums/programming-and-computer-science.165/ ?
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
3K
Replies
5
Views
2K
  • · Replies 9 ·
Replies
9
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 36 ·
2
Replies
36
Views
7K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 16 ·
Replies
16
Views
4K
  • · Replies 10 ·
Replies
10
Views
751