Help about the numerical computation on the following equations

  • Context: Graduate 
  • Thread starter Thread starter PRB147
  • Start date Start date
  • Tags Tags
    Computation Numerical
Click For Summary

Discussion Overview

The discussion revolves around the numerical computation of differential equations using the four-step Runge-Kutta method. Participants explore issues related to convergence, the role of the imaginary unit in the equations, and the challenges of oscillatory behavior in numerical results.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant reports difficulties with convergence when using the four-step Runge-Kutta method on differential equations involving the imaginary unit.
  • Another participant questions the meaning of "converge" in the context of numerical integration, suggesting a distinction between convergence to a direct integration result and the specific output of the Runge-Kutta method.
  • There is a clarification regarding the use of "i" as the imaginary unit in the equations.
  • A participant shares their experience with existing numerical libraries and references, noting that they did not yield correct results for the original set of equations.
  • One participant suggests rewriting the equations to eliminate the imaginary unit to potentially improve the numerical results.
  • A later reply indicates that the problem is high oscillatory behavior, with numerical results diverging when certain parameters exceed specific values.
  • The correct formulation of the equations is provided by a participant, emphasizing the oscillatory nature of the problem.
  • One participant claims to have solved the issue, but details of the solution are not provided.

Areas of Agreement / Disagreement

Participants express differing views on the concept of convergence in numerical methods and the challenges posed by the oscillatory nature of the equations. The discussion does not reach a consensus on the best approach to resolve the numerical issues.

Contextual Notes

Participants note that the original equations consist of a larger system of 2500 differential equations, which adds complexity to the numerical computation. There are unresolved aspects regarding the dependence on the imaginary unit and the specific conditions under which numerical divergence occurs.

PRB147
Messages
122
Reaction score
0
Dear every memeber, I encountered the numerical computation on the following
differential equations. I use four-step Runge-Kutta methods to integrate, but
the result is not converge, even if I take the time step (t=0.0001).
please help me why so? Could you please tellme which Fortran subroutine can do the tasks? (I know the following equations has exact solutions.)

[tex]i\frac{dy_1}{dt}=20.0y_2; \\ i\frac{dy_2}{dt}=20.0y_1[/tex]
 
Physics news on Phys.org
What do you mean by "converge"? Runge-Kutta gives a specific result, there is no "convegence" involved. Or do you mean "converge, as the time step gets smaller, to the answer I get by integrating directly"?
 
Why the "i"?
 
"i" is the imaginary unit.
I tried Runge-Kutta in IMSL, and code in the well-known book 'numerical recipe'.
They can not give the correct result. The original equations are 2500 differential equations looking like this
[tex]i\frac{dp_{ij}}{dt}=-50*(p_{i+1,j}+P_{i-1,j})+50*(p_{i,j-1}+P_{i,j+1})))-ip_{ij}/5[/tex]
i,j=1,2,..50.

Please help me, Dudes.

I can not obtained the correct numerical result.
 
Does not look very bad. I think you should first write the equations in the form that does not involve i-s.
 
Thank you, timur, J77 , Hallsofivy

+50 should be -50.
The problem is that it is high oscillatory, I can obtained the numerical result when
i=1,2,3, and j=1,2,3. when i is larger than 3, the numerical result start to diverge.
That is very tricky

the correct equations should be

[tex]i\frac{dp_{m,n}}{dt}=-50\times[(p_{m-1,n}+p_{m+1,n})+(p_{m,n-1}+p_{m,n+1})]-ip_{mn}/5[/tex]

i is the the imaginary unit
 
I solved it.
 
Last edited:

Similar threads

  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K