The electric field from an oscillating dipole is given by:, where is the position vector, is the frequency of dipole oscillation, is the dipole moment. The two terms in the electric field consists of 1) near field (area near to the dipole) and 2) far field (area far from the dipole) contributions. Far field falls of as and the near field falls of by .

A beautiful simulation showing the electric field radiation from a dipole is shown below. This simulation is part of Sophocles J. Orfanidis book on electromagnetic waves and antennas. For more details on 1) how the above equation is simplified by transforming into polar coordinates and 2) the matlab code to plot the field, see Example 14.5.1. in Chapter 14 of his book. Many thanks to Prof. Orfanidis for sharing these matlab codes.

Could you add a comment saying what the contour lines are for? Electric field is vector, and hence one would like to see the direction at each point.

Will you please post the Matlab code? It’s actually very interesting to observe the time-varying E-field from an oscillating dipole. There are some examples on the website, but many are static…

This was posted long time back, I dont seem to find my matlab code. I can easily do it in python and I will post it once I am done.