Plotting the Poynting vector of a radiating electric dipole [matlab]

In summary, the conversation discusses the attachment of a .txt file containing a script for a vector field at time t = 0. The individual is concerned about the Poynting vector pointing inwards instead of outwards, and suspects that this may be due to the limited range of the grid. They mention their choices for values of k and p, and mention that their problem may be a problem of scale. They then proceed to share their script and attempt to plot the vector field with different ranges and normalization, but are still not satisfied with the result. They question the accuracy of their formula and ask for suggestions to correct their work.
  • #36
@TSny If I transformed the field correctly. I'm traveling at 0.9c along the y - axis (with the dipole along the z-axis)

and I get the following

yGKoUZw.gif


I don't know what to make of it to be honest.

Is it correct/what you would expect?

Again, I'm traveling fast in a direction perpendicular to the dipole (the y-direction with the dipole along the z-direction) and I'm constraining the poynting vector intensity to the xz-plane.

I'm using the same color spectrum as my previous script.

It seems very strange that radiation would be perpendicular to the direction it was previously in.
 
Last edited:
Physics news on Phys.org
  • #37
The animation doesn't look correct to me.

Suppose the primed frame is the frame in which the dipole is at rest. In the unprimed frame, the dipole moves along the y-axis. At the instant the dipole crosses the xz plane in the unprimed system, you can consider the value of the Poynting vector at each point of the xz plane. If you ignore ##S_y## and plot the contour lines of ##\sqrt{S_x^2 + S_z^2}## in the xz plane, I think you will get the same pattern of contours as for a dipole at rest. I find that the only difference is that the value of a particular contour in the xz plane for the moving dipole is greater by the gamma factor ##\gamma## compared to the same contour when the dipole is at rest. In other words, ##\sqrt{S_x^2 + S_z^2} = \gamma \sqrt{S_x'^2 + S_z'^2}## if the left and right sides are evaluated at the same point in the xz plane.

Regarding the animation, I just want to be clear. For each instant of time, the dipole is at a different location along the y-axis. At each instant, are you plotting the contours as they would exist on a plane perpendicular to the y-axis and located at the instantaneous position of the dipole?
 
  • #38
TSny said:
The animation doesn't look correct to me.

Suppose the primed frame is the frame in which the dipole is at rest. In the unprimed frame, the dipole moves along the y-axis. At the instant the dipole crosses the xz plane in the unprimed system, you can consider the value of the Poynting vector at each point of the xz plane. If you ignore ##S_y## and plot the contour lines of ##\sqrt{S_x^2 + S_z^2}## in the xz plane, I think you will get the same pattern of contours as for a dipole at rest. I find that the only difference is that the value of a particular contour in the xz plane for the moving dipole is greater by the gamma factor ##\gamma## compared to the same contour when the dipole is at rest. In other words, ##\sqrt{S_x^2 + S_z^2} = \gamma \sqrt{S_x'^2 + S_z'^2}## if the left and right sides are evaluated at the same point in the xz plane.

Regarding the animation, I just want to be clear. For each instant of time, the dipole is at a different location along the y-axis. At each instant, are you plotting the contours as they would exist on a plane perpendicular to the y-axis and located at the instantaneous position of the dipole?

A dead give away that my code was wrong was when I set ##\beta = 0## and wasn't able to recover the familiar pattern. I'm an idiot for not considering this.

I am traveling really fast in the y-direction (0.9c) and looking back at the radiation pattern in the xz-plane (with the dipole in the z-direction). Which I'm guessing is equivalent to your description.

I did not ignore ##S_y##. Perhaps I should since the entire point of a Poynting vector is to indicate power flux.

edit: for my project I might consider doing a linear accelerated point charge and show how the power profile changes shape.

From pages 7-9 in the document below

http://physics.usask.ca/~hirose/p812/notes/Ch8.pdf

I feel like this can be tied to special relativity because I see betas and gammas everywhere lol.

Edit: It appears that a relativistic accelerating point charge can look like a dipole? I don’t understand that but maybe by the end of the day I will.
 
Last edited:
  • #39
I think one of the mistakes I made was assuming y is still equal to 0 when the frame is traveling.

edit: but maybe that information is already contained within ##\vec{\beta} = \beta \hat{y}## when using the transformation laws on page 558 of Jackson. I’ll keep working on it.
 
Last edited:
  • #40
PhDeezNutz said:
I think one of the mistakes I made was assuming y is still equal to 0 when the frame is traveling.
Doing an animation for the moving dipole seems to me to be tricky. But you can get some feeling for the radiation pattern by plotting at just one instant.

I tried plotting contours of S for the yz plane (side view) and the xy plane (overhead view), assuming the dipole moves along the y-axis while the dipole oscillates in the z-direction.

Here's the side view, looking at the yz plane. The dipole moves to the right. The first plot is for the dipole at rest, the middle is for the dipole moving to the right at v = c/3, and the plot on the right is for v = (3/4)c. You can see the Doppler effect where the wavelength is shortened in front of the dipole and stretched out on the backside. The strength of the radiation increases in the forward-moving direction as v increases.

1581796423072.png


Here's the top view, looking down on the xy plane, for the same selection of speeds. The dipole oscillates in-and-out of the page. The y-axis is still toward the right. Again, you can see the "beaming forward" of the radiation intensity at high speeds.

1581795910893.png
 
Last edited:
  • Like
Likes JD_PM and PhDeezNutz
  • #41
You are too helpful. I never even considered doing top and side views. Thank you very much for taking time out of your day (which is clearly not a trivial amount of time) to help me.

hopefully I can generate plots similar to yours.

I will continue to work on it.

Also in earlier post I said something to the effect of me not accounting for position change of the frame...then I realized that the position doesn’t matter but rather the velocity and this dependency is included in ##\vec{\beta}## in Jackson page 558.
 
  • #42
@TSny

cZVBmPl.gif


I think I got somewhere with it. It seems to look like yours but "flipped". I must have mixed up frame transformations. The picture above is at 0.5c.

To get mine to look more like yours I need to exclude a larger region about the origin to avoid really strong fields. As it is right now I have too many contours close to the origin and the far field just sort of "washes together".

Edit: I used these transformations, it could be that I did them in reverse.

https://wikimedia.org/api/rest_v1/media/math/render/svg/ed275f4351e9a07afd64e9450081851b158c91be

My picture also doesn't seem to be "beaming" so to speak.
 
Last edited:
  • #43
If you want the dipole to be moving in the +x direction in the primed frame, then the primed frame needs to be moving in the -x direction relative to the unprimed frame.
 
  • Like
Likes PhDeezNutz
  • #44
TSny said:
If you want the dipole to be moving in the +x direction in the primed frame, then the primed frame needs to be moving in the -x direction relative to the unprimed frame.

I just reversed the sign of v and was able to get something resembling your picture. Minus the "beaming".

I'm about to do something similar for a point charge.
 
  • #46
PhDeezNutz said:
http://physics.usask.ca/~hirose/p812/notes/Ch8.pdf

May I ask why ##\beta = 0## would result in radiation pattern for a point charge? Bottom of page 8.
I'm not sure I understand your question. A point charge that is instantaneously at rest, but has nonzero acceleration at that instant, will be radiating at that instant.
 
  • Like
Likes PhDeezNutz
  • #47
TSny said:
I'm not sure I understand your question. A point charge that is instantaneously at rest, but has nonzero acceleration at that instant, will be radiating at that instant.

I think I understand, I mistakingly thought that ##\vec{\beta} = 0 \Rightarrow \dot{\vec{\beta}} = 0## and that's obviously not true. I can't think of an example right now but my assumption is obviously wrong.
 
  • #48
@TSny

Do you know how the fields of a point charge transform under linear acceleration (say in the x-direction)?

I want to reconcile these results with the Lienard-Wiechert results. Do you think that is feasible?

My knowledge of acceleration in special relativity is pretty pathetic. If I recall correctly (I most likely do not) acceleration is directly proportional to velocity in some manner (i.e. damping?).

Also, my professor said that my moving dipole gif was very impressive so I can't thank you enough. He advised that I don't spend any longer time on this project and attend to my other responsibilities because what I've done is more than sufficient...but I'm an addict. I can't miss out on the opportunity to reconcile Lienard-Wiechart results with relativity.
 
  • #49
PhDeezNutz said:
@TSny

Do you know how the fields of a point charge transform under linear acceleration (say in the x-direction)?

I want to reconcile these results with the Lienard-Wiechert results. Do you think that is feasible?

I'm not sure I understand the first question above. The fields of an accelerating point charge are typically derived from the Lienard-Wiechert potentials, as in section 8.2 of the link you posted.

My knowledge of acceleration in special relativity is pretty pathetic. If I recall correctly (I most likely do not) acceleration is directly proportional to velocity in some manner (i.e. damping?).
I don't see why ##a## would be proportional to ##v##, at least not in general. ##a## can be nonzero at an instant when ##v## is zero.

It seems the discussion is drifting away from the initial topic of this thread. It would probably be best to start another thread if you have general questions regarding the fields of accelerated charges. If the questions are not specific homework questions, then it might be more appropriate to post in the "Classical Physics" forum here or the "Special and General Relativity" forum here
 
  • Like
Likes JD_PM and PhDeezNutz
  • #50
@TSny I realize that I don't have a very good idea of what I'm talking about and I'm just pontificating at this point.

In the interest of conforming to forum rules/etiquette I shall make a new thread about it when I do have a better idea of what I'm talking about. Don't have long to figure it out lol.

I will update this thread when I've made a 3d dimensional view of the dipole radiation.

Again, thank you for all your help.
 
  • Like
Likes TSny
  • #51
yoyo.jpg


Well I tried to create a 3d animation and I failed pretty bad.

1) The so called "yo-yo" is oriented wrong. I meant for the dipole to be oriented in the z-direction. The lobes should be on the sides instead of the top and bottom. This means I broke up Jackson's expressions wrong component wise.

2) It's not an animation but rather a still picture.

I will continue to work on it. I have to

1) Re-calculate Jackson's expression's component wise so I can re-orient it

2) Find out why my script is not animating. I'll have to look closely at my for loop.

3) Once I find out how to re-orient and animate, I need to learn how to make slices.

Edit: Fixed the orientation but still not animating. The problem was that I was computing the Poynting vector wrong. My image is not as "sharp" was I want it to be...I wonder if that is a limitation on matlab/my computer.

yoyo2.jpg


EDIT: nvm I jumped the gun it's not oriented right.
 
Last edited:
  • #54
TSny said:
What exactly are you plotting in these 3D figures? Are you trying to get the surface that is shown in the link
http://www.antenna-theory.com/antennas/norm3D1lam.jpg ?

Kind of but not exactly, I should have clarified.

I want to plot level surfaces of the magnitude of the Poynting vector. Basically a 3D version of the gif in post 33. Naturally the outermost level surface will block the view of the rest of the level surfaces.

To me the jpg in the link is a projection of level curves in the xz-plane projected onto a toroid (of sorts).

I believe toroids (of sorts) are the level surfaces of the Poynting vector magnitude but I believe each toroid should be the same color. (I could be wrong)
 
  • #55
PhDeezNutz said:
I want to plot level surfaces of the magnitude of the Poynting vector. Basically a 3D version of the gif in post 33. Naturally the outermost level surface will block the view of the rest of the level surfaces.

To me the jpg in the link is a projection of level curves in the xz-plane projected onto a toroid (of sorts).

Yes. The 3D version should just be the 2D version rotated about the z-axis. Below are the 2D and 3D contour graphs I got for one particular value of the magnitude of the Poynting vector. The 3D graph is tilted so that we are looking somewhat down from above.

1582160149406.png
 
  • Like
Likes PhDeezNutz
  • #56
TSny said:
Yes. The 3D version should just be the 2D version rotated about the z-axis. Below are the 2D and 3D contour graphs I got for one particular value of the magnitude of the Poynting vector. The 3D graph is tilted so that we are looking somewhat down from above.

View attachment 257366
You are simply amazing. It’s going to be awhile until I have the wherewithal to produce the same graphs as you but I will get there. I’ll work through the night.

Thank you again.
 
  • #57
PhDeezNutz said:
You are simply amazing.
No. Mathematica is amazing!
 
  • #58
@TSny I assure you that you are amazing.

Here's an update
better.jpg


My problematic surface arose from me computing Jackson's expressions wrong. Looking at Jackson 9.18.2 I computed ##(\vec{n} \times \vec{p}) \times \vec{p}## instead of the proper ##(\vec{n} \times \vec{p}) \times \vec{n}##. I computed the rest of the expression(s) correctly as far as I can tell.

Some comments about my program

1) Still not animating, when it does I need to make coordinate plane slices in a subplot

2) Color scheme washes together; in the far field the variances amongst field strength seem to be so minute that they all become one color. Maybe this is a good thing, maybe it's a bad thing but it is worth mentioning. I'd like to make each shell a different color and somewhat transparent.
 
  • #59
Can anyone think of a clever way to pass a vector of values to a function that only accepts scalars? Using some combination of for loops, while loops, if blocks etc. I want to do it without writing a separate statement for each of the 99 values.

X,Y,Z,

isosurface(X,Y,Z,V,isovalue)

isovalue must be a scalar but like I said I'd like to plot level surfaces for more than just one value without writing a separate statement for each value.
 
  • #60
notexactly.gif


Not Exactly what I was going for but it is progress.

I have no idea why the shells get intermittently taller (and shorter).

Edit: You would think the shells would change size within an envelope and the envelope itself would not change size.
 
Last edited:
  • #61
muchbetter.gif


Much better, the problem was that I wasn't fixing the axis limits and it was changing with each iteration in the for loop (despite the previous gif not showing it, it was apparent when I saw it rendering). I set the axis limits in stone and then proceeded to render.

As for "a way to pass a vector of values to a function that only accepts scalars (as the fourth argument)". I did the following. for i2 = 1:length(Srange)
isosurface(X,Y,Z,Smag2,Srange(i2))
hold on
xlim([-2400,2400])
ylim([-2400,2400])
zlim([-2400,2400])
xlabel('X-axis')
ylabel('Y-axis')
zlabel('Z-axis') title('Poynting Level Surfaces of Radiating Dipole') end

This was nested inside another for loop where Smag2 was defined.

Hopefully that took care of it.

The only thing left to do is take slices. Hopefully when I do this I will see more colors.

How does it look?
 
  • #62
Looks good. You're definitely making progress.
 
  • Like
Likes PhDeezNutz
  • #63
firstsliceattempt.gif


I took a slice of my animation so I'm happy with that.. I'm obviously getting a dipole radiation pattern and more colors as expected but it's not quite satisfactory. I need more colors and variation, the far field is washing together as one color and I need to fix this.

and my goodness does it take long to render a 5 second movie.

Edit: tried making the axis limits less in the view and it just became more pixelated. Not good.

Edit2: Hopefully we can solve all of this by post 70, this problem is getting tiresome. And I'm sure you're getting tired of this problem as well. But again, you've been of tremendous help and I can't thank you enough.
 
Last edited:
  • #64
@TSny

more progress!

We can do it, we're almost there!
YZslice.gif
 
  • Like
Likes vanhees71
  • #65
PhDeezNutz said:
@TSny
more progress!
We can do it, we're almost there!
Very nice!
 
  • Like
Likes PhDeezNutz
  • #66
@TSny

I think I've got it completely

ThreeDdipole.gif


YZplanedipole.gif


XZplanedipole.gif
XYplane.gif
 
  • Like
Likes vanhees71 and TSny
  • #67
Excellent!
 
  • Like
Likes PhDeezNutz
  • #68
TSny said:
Excellent!

Thank you again for all your help! Onto the quadrupole! I'll start a new thread when I'm in a position to do so. (Gotta catch up in my classes).
 
  • Like
Likes JD_PM and TSny
  • #69
Would it be alright If I continued the quest to create a quadrupole animation in this thread for the time being?

I don't think I have enough substance to start a new thread yet.

Here's my progress

wavefrontsquadrupole.jpg


There are some things wrong with this picture. (please zoom in if need be). I am happy that we appear to have a 4 lobe pattern though.

1) Wave fronts/level surfaces of the Poynting vector seem to be pointing inwards instead of outwards. I could try negating my fields (but that would be really contrived)

2) There's not enough contrast and there could be a million reasons for this.

3) For whatever reason an animation is not rendering in MATLAB and I'm getting an error about how all frames aren't the same size...which is ridiculous considering I more or less copy and pasted my format from the dipole script which did not have this problem.

As a note: I didn't use the fields that Jackson used but rather my own expressions, but they do corroborate Jackson to first order. Jackson uses the approximation that ##\nabla \times \approx \hat{n} \times## in the far field which I think is ridiculous.
 
  • #70
QuadrupoleTypes.jpg


I'm trying to do the oscillating electric quadrupole. I suspect that I forgot magnetic dipole terms. Does the oscillating electric quadrupole necessarily produce a magnetic dipole moment?
 

Similar threads

  • Advanced Physics Homework Help
Replies
1
Views
2K
Replies
1
Views
881
  • MATLAB, Maple, Mathematica, LaTeX
Replies
4
Views
901
Replies
4
Views
1K
Replies
16
Views
2K
  • Advanced Physics Homework Help
Replies
1
Views
1K
  • Introductory Physics Homework Help
Replies
4
Views
1K
  • Electromagnetism
Replies
1
Views
984
  • Introductory Physics Homework Help
Replies
2
Views
2K
Replies
1
Views
1K
Back
Top