Fourier transform radial component of magnetic field

In summary: Fourier transform to change it to a frequency.In summary, the person is asking for help with a Fourier transformation. They have measured the magnetic field of a quadrupole and were told to calculate the radial component in polar coordinates. They have found a tutorial that explains how to do this but are not sure if that is what they need. They are stuck on the problem of how to get the frequency as the x-axis of the graph.
  • #1
Swordwhale
4
3
Homework Statement
Use the fourier transformation to determine the radial component of the magnetic field of a quadrupole.
Relevant Equations
Br(x) = By cos (x) – Bx sin (x)
Hello everybody!

I have a question concerning the Fourier transformation: So far I have experimentially measured the magnetic field of a quadrupole but as the hall effect sensor had a fixed orientation I did two series, one for the x, one for y component of the magnetic field, I have 50 values each.

Now I was told I had to Fourier transform these components using for Br(x) = By cos (x) – Bx sin (x). But I am not sure how to do that. I have never worked with Fourier transformations before and did some research but while I get the idea about FTs I do not know how to apply it to this very case.

I'd really appreciate any kind of help - thank you all in advance!
 
Physics news on Phys.org
  • #2
Swordwhale said:
Homework Statement:: Use the Fourier transformation to determine the radial component of the magnetic field of a quadrupole.
Relevant Equations:: Br(x) = By cos (x) – Bx sin (x)

Hello everybody!

I have a question concerning the Fourier transformation: So far I have experimentially measured the magnetic field of a quadrupole but as the hall effect sensor had a fixed orientation I did two series, one for the x, one for y component of the magnetic field, I have 50 values each.

Now I was told I had to Fourier transform these components using for Br(x) = By cos (x) – Bx sin (x).

But I am not sure how to do that. I have never worked with Fourier transformations before and did some research but while I get the idea about FTs I do not know how to apply it to this very case.

I'd really appreciate any kind of help - thank you all in advance!

I take it that [itex]B_x[/itex] and [itex]B_y[/itex] are cartesian components, and you want the radial component in pane polar coordinates. So in less confusing notation what you are calculating is [tex]
B_r(\theta) = B_y(\theta) \cos(\theta) - B_x(\theta)\sin(\theta).[/tex] Now you have values of [itex]B_x[/itex] and [itex]B_y[/itex] at what I assume are 50 distinct points equally spaced around a circle at fixed distance from the source. This gives you [itex]B_x(\theta_k)[/itex] and [itex]B_y(\theta_k)[/itex] for [itex]\theta_k = 2\pi k/51[/itex], [itex]0 \leq k \leq 50[/itex]. It is then straightforward to calculate [itex]B_r(\theta_k)[/itex] and obtain the (discrete) Fourier transform of these using the software of your choice.
 
Last edited by a moderator:
  • #3
Thank you very much for your reply - the only issue I have is that it still is not that straighforward to me: I just found a tutorial that explains how I could Fourier transform in Excle but I'm not really sure if that is exactly what I need. What would that software be you recommand?
 
  • #4
Okay, I found a FFT-tool for Excel and tried to make it work. The columns Bx and By are my measured values, the column Br is calculated from the equation above (see the command line in the upper left corner). I then proceeded to make the FFT but the values generated do not seem like the result I expect from a FFT. Probably that's because I don't have the frequency as my x-axis. But that's where I'm stuck now - what is the frequency here? What do I do to get a frequency as my x-axis? Do I just plot it to 1/T?

Again - thanks a lot in advance!

https://i.ibb.co/qpYmf7v/image.png
 
  • #5
My earlier post contained an error: [itex]\theta_k = 2\pi k/50[/itex] not [itex]2\pi k/51[/itex] as stated.

What you are trying to find are the coefficients [itex]b_n[/itex] in [tex]
B_r(\theta) = \sum_{n=-24}^{25} b_ne^{in\theta}.[/tex] These are determined by requiring that [tex]
B_r\left(\frac{2\pi k}{50}\right) = \sum_{n=-24}^{25} b_n\exp\left(\frac{2\pi i nk}{50}\right)
= \sum_{m=0}^{49} b_m\exp\left(\frac{2\pi i mk}{50}\right)[/tex] for [itex]0 \leq k \leq 49[/itex] and the second equality follows by setting [itex]m = n[/itex] if [itex]n \geq 0[/itex] and [itex]m = 50+n[/itex] otherwise, as [itex]\exp(2\pi i (50 + n)k/50) = \exp(2\pi i + 2\pi i nk/50) = \exp(2\pi i nk/50)[/itex]. This is the definition of a discrete Fourier transform.

You should not window the data, as you appear to have done: You expect [itex]B_r[/itex] to be periodic with period [itex]2\pi[/itex]. From inspection, it looks like you will get the coefficients in the order [tex]
n = 0, 1, \dots, 24, 25, -24, -23, \dots, -1.[/tex]
 
Last edited:
  • #6
Hey pasmith!

Thank you for your answer, I really appreciate you give your best to help me - I'm just afraid this post confused me even more. I have this equation given as the one I need to Fourier tranform:
[tex]
B_r(x) = B_y \cos(x) - B_x\sin(x) \hspace{4 em} (i)[/tex]

Now what I did is make one row [itex] B_y[/itex] and one row [itex]B_x[/itex] which I can put in [itex] (i)[/itex] to get a column [itex] B_r[/itex]. For [itex] x[/itex] I entered [itex] 2 \pi \cdot (\frac{1}{50}+a_{n-1})[/itex] with [itex] a[/itex] being the distance covered with each measurement.

When I Fourier transformed these values it gave me this function:
FTT1.04.png


I know that the 50 I entered above is arbitrarily, I just didnt know what to put as sample rate. I guess its far from what it should be as I expect the resulting graph to just have one peak and I also do not know how to use all the data I have as for what I did I can only use powers of two as amount of transformed values - so this graph just uses the 32 ones in the center (when I used 64 I added 14 zero values as I don't have enough data which seemed to mess up the transformation).
Now this is where I'm at. I don't feel like this is how to approach my problem but that's just what I got so far.

Now your advice is to use a different function for [itex] B_r[/itex]. But I do not understand how your equation will get me to the data. I know that at least the first part should be okay if written as sine/cosine so I will end up having another column for [itex] B_r[/itex] with 50 discrete values - is that right? Now those values are the ones I will have to Fourier transform. The excel add-in I use can only transform sets of 32 or 64 (and other powers of two respectivly) - is this some restriction that can be avoided? As far as I understood its not if I want to do a FFT? After I got those 50 values I just got their modulus (\IMBSA-function in Excel) and plotted the results (which you can see above). I feel like I am doing something conceptually wrong here but don't really understand what it is. You said I "windowed" my data - can you maybe tell me what that means (I'm no native speaker in english and have some problems when it comes to technical expressions)? I also feel like I should not get discrete values of [itex] B_r[/itex] but instead a periodic function as you mentioned in the last paragraph. But what are the values to Fourier transform than?

I'm really sorry - I appear to be lacking some important prerequisite when it comes to this topic. Please excuse if I'm totally off in some of my assumptions I just really try to understand what I need to do but the major point appears to be missing.

Thank you in advance for your answers so far and - hopefully - for those yet to come!

swordwhale
 
  • Informative
Likes Delta2

FAQ: Fourier transform radial component of magnetic field

What is the Fourier transform radial component of magnetic field?

The Fourier transform radial component of magnetic field is a mathematical tool used to analyze the spatial distribution of the magnetic field in a specific region. It decomposes the magnetic field into its individual frequency components, allowing for a more detailed understanding of its behavior.

How is the Fourier transform radial component of magnetic field calculated?

The Fourier transform radial component of magnetic field is calculated by taking the Fourier transform of the radial component of the magnetic field vector. This involves integrating the radial component over all frequencies and angles to obtain a representation of the field in the frequency domain.

What is the significance of the Fourier transform radial component of magnetic field in scientific research?

The Fourier transform radial component of magnetic field is a valuable tool in many areas of scientific research, including physics, engineering, and geophysics. It allows researchers to analyze and understand the behavior of magnetic fields in various systems, such as the Earth's magnetic field or magnetic fields in electronic devices.

Can the Fourier transform radial component of magnetic field be used to predict future behavior of magnetic fields?

Yes, the Fourier transform radial component of magnetic field can be used to predict future behavior of magnetic fields. By analyzing the frequency components of the magnetic field, researchers can make predictions about how it will evolve over time and in different conditions.

Are there any limitations to using the Fourier transform radial component of magnetic field?

While the Fourier transform radial component of magnetic field is a powerful tool, it does have some limitations. It assumes a stationary magnetic field, meaning that the field does not change over time. It also requires a large amount of data to accurately analyze the field, which can be challenging to obtain in some cases.

Back
Top