Nonstandard finite difference scheme: Difference between revisions
James B Cole (talk | contribs) No edit summary |
James B Cole (talk | contribs) No edit summary Tag: references removed |
||
Line 15: | Line 15: | ||
'''Basic Idea:'''<br /> |
'''Basic Idea:'''<br /> |
||
A finite difference (FD) model of a differential equation (DE) can be formed by simply replacing the derivatives with FD approximations. But this is a naive "translation." If |
A finite difference (FD) model of a differential equation (DE) can be formed by simply replacing the derivatives with FD approximations. But this is a naive "translation." If |
||
we literally translate from English to Japanese by making a one-to-one correspondence between words, the original meaning is often lost. Similarly the naive FD model of a DE can be very different from the original DE, because the FD model is a difference equation with solutions that may be quite different from solutions of the DE. For a more technical definition see |
we literally translate from English to Japanese by making a one-to-one correspondence between words, the original meaning is often lost. Similarly the naive FD model of a DE can be very different from the original DE, because the FD model is a difference equation with solutions that may be quite different from solutions of the DE. For a more technical definition see reference 1. |
||
A nonstandard (NS) finite difference model, is a free and more accurate "translation" of a differential equation. For example in a parameter (call it ''v'') in the DE may take take another value, ''u'', in the NS-FD model.<br /> |
A nonstandard (NS) finite difference model, is a free and more accurate "translation" of a differential equation. For example in a parameter (call it ''v'') in the DE may take take another value, ''u'', in the NS-FD model.<br /> |
||
Line 63: | Line 63: | ||
Further details of this, and extensions of to two and three dimensions as well as to Maxwell's equations can be found in |
Further details of this, and extensions of to two and three dimensions as well as to Maxwell's equations can be found in |
||
<ref>JB Cole, High Accuracy Yee Algorithm Based on Nonstandard Finite Differences: New Developments and Verifications, IEEE Trans. on Antennas and Propagation, vol. 50, no. 9, pp. 1185-1191 (2002)</ref> |
<ref> JB Cole, High Accuracy Yee Algorithm Based on Nonstandard Finite Differences: New Developments and Verifications, IEEE Trans. on Antennas and Propagation, vol. 50, no. 9, pp. 1185-1191 (2002)</ref> |
Revision as of 08:29, 31 July 2010
Nonstandard finite difference schemes is a general set of methods in numerical analysis that gives numerical solutions to differential equations by constructing a discrete model. The general rules for such schemes are not precisely known.[1]
References
Basic Idea:
A finite difference (FD) model of a differential equation (DE) can be formed by simply replacing the derivatives with FD approximations. But this is a naive "translation." If
we literally translate from English to Japanese by making a one-to-one correspondence between words, the original meaning is often lost. Similarly the naive FD model of a DE can be very different from the original DE, because the FD model is a difference equation with solutions that may be quite different from solutions of the DE. For a more technical definition see reference 1.
A nonstandard (NS) finite difference model, is a free and more accurate "translation" of a differential equation. For example in a parameter (call it v) in the DE may take take another value, u, in the NS-FD model.
Example of a Nonstandard Finite Difference Model:
As an example let us model the wave equation,
[ ∂t2 - v2 ∂x2 ] ψ(x,t)= 0
The naive finite difference model, which we now call the standard (S) FD model is found by approximating the derivatives with FD approximations. The central second order FD approximation of the first derivative is
Approximating both derivatives of the wave equation in this way leads to the S-FD model,
ƒ'(x) ≅ [ƒ(x+∆x/2)-ƒ(x-∆x/2)]⁄∆x.
For simplicity let us write dxƒ(x) = ƒ(x+∆x/2)-ƒ(x-∆x/2)
Applying the above FD approximation to ƒ'(x) we can derive the FD approximation for ƒ(x).
ƒ"(x) ≅ dx2(x)⁄∆x2 ,
where dx2 ƒ(x) = ƒ(x+∆x) + ƒ(x-∆x) - 2ƒ(x). This is easy
to show by repeating the action of dx on ƒ twice.
Approximating both derivatives of the wave equation leads to the S-FD model,
[ dt2 - (v∆t/∆x)2 dx2 ]ψ(x,t)= 0
If you insert a solution to the wave equation φ(x,t) = ei(kx-ωt) ( by definition ω / k = v )into the S-FD model you find that
[ dt2 - (v∆t/∆x)2 dx2 ]φ(x,t)= ε.
In general ε ≠ 0 because the solution of the FD approximation to the wave equation is not the same as the wave equation itself.
To construct a NS-FD model which has the same solution as the wave equation, put a free parameter, call it u, in place of v∆t/∆x and try to find a value of u which makes ε = 0.
It turns out that this value of u is
u = sin(ω∆t/2) / sin(k∆x/2) .
Thus an exact nonstandard finite difference model of the wave equation is
[ dt2 - (v∆t/∆x)2 dx2 ]ψ(x,t)= 0 .
Further details of this, and extensions of to two and three dimensions as well as to Maxwell's equations can be found in [1]
- ^ JB Cole, High Accuracy Yee Algorithm Based on Nonstandard Finite Differences: New Developments and Verifications, IEEE Trans. on Antennas and Propagation, vol. 50, no. 9, pp. 1185-1191 (2002)