A Physics forum. Physics Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Physics Banter forum » Physics Newsgroups » Electromagnetic Theory and Applications
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Tags: , , , , ,

2D Finite difference equations for voltage from Poisson's Equation



 
 
Thread Tools Display Modes
  #1  
Old October 22nd 03 posted to sci.physics.electromag,sci.physics,sci.electronics.design
Dr. David Kirkby
external usenet poster
 
Posts: 2
Default 2D Finite difference equations for voltage from Poisson's Equation

Hi,
I'm using the finite difference technique in a program
of mine to
determine the impedance of arbitrary shaped transmission lines.
This
is based around the equation

div D = 0

It's fairly easy to show using a Taylor series expansion that
the
voltage at a node (i,j) should be the average or the 4 nodes
around it
i.e.

V(i,j)=(V(i+1,j)+V(i-1,j)+V(i,j+1)+V(i,j-1))/4

However, this proof assumes a homogeneous dielectric. I
think at the boundary between a metal and a dielectric perhaps
different equations should be used. Certainly when there is a
change
of dielectric that is so. Does anyone have any guidance on what
one
should do to determine the voltage in a dielectric which is just
one
node away from metal?

Some calcualtions of impedance of a transmission line show
erorrs of around a percent or two using just the above equation, but I
know others have got considerably better results than this, and so
have I if I hack the code in a way that is not very logical and
difficult to justify.

I have an electronic copy of what is the classic paper on this
topic:

H. E. Green, (1965), "The numercial Solution of Some Important
Transmission Line Problems", IEEE Transactions on Microwave
Theory and
Techniquest, vol MIT-3, #3, , pp 676.


in which he quotes the above simple expression, plus 28 other
special
cases, which include corners, dielectric interfaces, right hand
edges,
left hand edges ..... etc etc. The problem is I can't figure in
my own
mind how to apply the vast majority of them. Does he mean the
corners
of the whole finite difference matrix (of which there are of
course
4), or corners of metalic conductors ??

Anyone help appreciated.

Dr. David Kirkby,
My email address can be found at
http://homepage.ntlworld.com/drkirkby/home-email.jpg
Ads
  #2  
Old October 22nd 03 posted to sci.physics.electromag,sci.physics,sci.electronics.design
Joel Kolstad
external usenet poster
 
Posts: 22
Default 2D Finite difference equations for voltage from Poisson's Equation

Dr. David Kirkby m wrote:
I'm using the finite difference technique in a program
of mine to
determine the impedance of arbitrary shaped transmission lines.
This
is based around the equation

div D = 0


Gotcha.

It's fairly easy to show using a Taylor series expansion that
the
voltage at a node (i,j) should be the average or the 4 nodes
around it
i.e.

V(i,j)=(V(i+1,j)+V(i-1,j)+V(i,j+1)+V(i,j-1))/4


Yes.

However, this proof assumes a homogeneous dielectric. I
think at the boundary between a metal and a dielectric perhaps
different equations should be used. Certainly when there is a
change
of dielectric that is so. Does anyone have any guidance on what
one
should do to determine the voltage in a dielectric which is just
one
node away from metal?


All nodes 'within' (or on) the metal are (assuming a perfect conductor) at
the same potential -- you use the formula you already have, just don't
'update' the nodes of the metal itself!

But I bet you really want to know how to update the nodes that are next on
the boundary of a dielectric, right? This is the way we handled such
problems in my numerical electromagnetics class...

Let me attempt an ASCII drawing he

epsilon1 V1
|
...... -- path (see below)
. | .
---------V2-.-V0-.-V4---------- dielectric boundary
. | .
......
|
epsilon2 V3

Now, we're going to approximate Gauss's law, that being that the closed path
integral of D*ds=the charge enclosed=0. The path will be as shown by the
periods (.) above. You approximate D*dS along the top horizontal part of
the path as (V1-V0)*epsilon1/dS*dS (dS=step size) and therefore dS cancels.
Along the bottom horizontal part it's (V3-V0)*epsilon2. The left vertical
part you split into (V2-V0)/2*eps1+(V2-V0)/2*eps2 (i.e., you're saying it's
at an effective epsilon of (eps1+eps2)/2), and the right vertical part is
(V4-V0)/2*eps1+(V4-V0)/2*eps2.

Sum this all up, set it equal to zero, and you can solve for
V0=eps1/(eps1+eps2)*V1/2+V2/4+eps2/(eps1+eps2)*V3/2+V4/4. Note that this
reduces to the formula you already have when eps1=eps2.

I have an electronic copy of what is the classic paper on this
topic:


I'm afraid that I don't, so I can't comment further on that. Hope this
helps!

---Joel Kolstad


  #3  
Old October 22nd 03 posted to sci.physics.electromag,sci.physics,sci.electronics.design
Don Pearce
external usenet poster
 
Posts: 2
Default 2D Finite difference equations for voltage from Poisson's Equation

On 21 Oct 2003 20:20:46 -0700,
(Dr. David Kirkby)
wrote:

Hi,
I'm using the finite difference technique in a program
of mine to
determine the impedance of arbitrary shaped transmission lines.
This
is based around the equation

div D = 0

It's fairly easy to show using a Taylor series expansion that
the
voltage at a node (i,j) should be the average or the 4 nodes
around it
i.e.

V(i,j)=(V(i+1,j)+V(i-1,j)+V(i,j+1)+V(i,j-1))/4

However, this proof assumes a homogeneous dielectric. I
think at the boundary between a metal and a dielectric perhaps
different equations should be used. Certainly when there is a
change
of dielectric that is so. Does anyone have any guidance on what
one
should do to determine the voltage in a dielectric which is just
one
node away from metal?

Some calcualtions of impedance of a transmission line show
erorrs of around a percent or two using just the above equation, but I
know others have got considerably better results than this, and so
have I if I hack the code in a way that is not very logical and
difficult to justify.

I have an electronic copy of what is the classic paper on this
topic:

H. E. Green, (1965), "The numercial Solution of Some Important
Transmission Line Problems", IEEE Transactions on Microwave
Theory and
Techniquest, vol MIT-3, #3, , pp 676.


in which he quotes the above simple expression, plus 28 other
special
cases, which include corners, dielectric interfaces, right hand
edges,
left hand edges ..... etc etc. The problem is I can't figure in
my own
mind how to apply the vast majority of them. Does he mean the
corners
of the whole finite difference matrix (of which there are of
course
4), or corners of metalic conductors ??

Anyone help appreciated.

Dr. David Kirkby,
My email address can be found at
http://homepage.ntlworld.com/drkirkby/home-email.jpg

One of the big reasons for the inaccuracy of the result is that the
simple Laplace equation is incredibly slow in converging on a
solution. This means that the test for convergence must be very
approximate. Substitute instead the over-relaxed equation (which I
think pretty much everybody uses in practice).

V(i,j)=R((V(i+1,j)+V(i-1,j)+V(i,j+1)+V(i,j-1))/4)+(1-R)V(i,j)

Where R is about 1.5. You can vary this a bit to see if it works
faster for you - and the limit case where R = 1 brings you back to the
original Laplace equation.

With this done, you can tighten the test for convergence a long way
and still have this work acceptably quickly.

d

_____________________________

http://www.pearce.uk.com
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mathematical difference between operators and finite matrices? anzaurres1@hotmail.com Physics - General Discussion 18 June 1st 05 09:50 PM
Partial difference equation, primes James Harris Physics - General Discussion 30 August 24th 04 05:56 AM
Difference equations, primes, physics' dreams James Harris Physics - General Discussion 3 December 8th 03 12:24 AM
Difference equations, calculus, prime numbers James Harris Physics - General Discussion 17 December 4th 03 09:08 PM
2D Finite difference equations for voltage from Poisson's Equation Dr. David Kirkby Physics - General Discussion 2 October 22nd 03 08:58 AM


All times are GMT +1. The time now is 01:18 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2009 Physics Banter, part of the NewsgroupBanter project.
The comments are property of their posters.
Myspace Comments - Mobile Phones - Funny Video Travel - Credit Card Consolidation - Free Car Repair Manuals