- #36
- 8,032
- 869
Good question. I intend to run a short example for which I know the answers already (N=4 only) to see what excel really does. It's too bad they don't reveal their algorithm, since there are innumerable versions of DFT's floating around.Electest said:I'm wondering if the coefficients calculated by excel (Nzn) should be divided by N to give us zn, before entering into column C. What you think?
Hang on, I think I finally have the goods, will send an updated worksheet today and also will try to go thru the theory. I've had to do a bit of re-education here myself!Electest said:How did you get on RM? I've looked at various websites to establish how things work with excel, but they all have different answers, so am curious how your assessment went.
rude man said:But your n=2 peak is at 8.77 A2 and the n=3 is at 6.25 A2 so why are you again taking rms of those two numbers? You didn't take the rms of 16, and rightly so!
Please see post #44. I again strongly advise scrutiny of the attached pdf file for the DFT theory.earthloop said:Going back to the calculation of the THD -
View attachment 84470
Why wouldn't you take the RMS of 16? The question states that [itex]I_1[/itex] is the RMS value of the fundamental current. Is the [itex]16^2[/itex] a peak value or is it already an RMS value? I would have assumed it was peak. The same with [itex]I_2[/itex] and [itex]I_3[/itex].
I am getting :
[itex]\displaystyle\frac{1}{\sqrt{16}*\sqrt{2}} * \sqrt{\sqrt{2}*8.77+\sqrt{2}*6.25} * 100 = 81.43\%[/itex]
What have I missed here? Can anyone explain?
Thanks
Good. I would like to see the thread continue until everyone's happy!earthloop said:Ok thanks RM, I'll give the pdf a thorough read and try again.
his_tonyness said:Homework Statement
Identify the principal frequencies in the current waveform
Homework Equations
The Attempt at a Solution
From the excel file, I have identified 3 principle frequencies at 52Hz, 246Hz and 351Hz. Is this correct? What does the term principle frequency actually mean?
his_tonyness said:Thats the darndest thing, the sample interval does not state the time units. "The supply current was sampled 1024 times over a very short time interval" that's all it gives me with regards to time, I assume we can use any sensible small time period. If you hover the mouse cursor over cell I3, it does state that the sampling frequency is 360/20ms=18000. I re-ran the simulation at 20ms:
View attachment 83707
View attachment 83708
Gremlin said:Or is it inferred that you've done it from subsequent answers?
I'm so confused with this question different answers and calcs everywhere!rude man said:Please see post #44. I again strongly advise scrutiny of the attached pdf file for the DFT theory.
Also, the attached excel file in that post gives the correct rms values (column G).
Keep in mind that the frequencies are the bin frequencies and the rms values the corresponding bin current values. If the data sampled three discrete frequencies the dft frequencies will be approximate of course.
To answer your question, you do take the rms of I1, I2 and I3 in the THD formula. (Actually, you could use the amplitudes too. Works either way).
I don't understand why you multiplied your I2 terms by √2 but the I2 values are incorrect anyway. I get THD = (1/22.46)*√(12.402 + 8.842) = 67.8%.
HDG said:Grappled with this for a few days and I'm happy I've got the answer. It's done using 15.878.
For part iv) I changed the 3 magnitudes to rms values ((square root of magnitude)x0.707). I then used the formula:
Amplitude(rms)*sin(2pi x f x t)
in 3 separate columns in excel (for each frequency and it's associated rms magnitude) and just dragged the formulas down to complete the 1024 entries. I then summed all of the 3 entries, created another column for time(s) and then inserted a scatter graph to synthesis the original waveform. Only did it over a short time period though as the graph wouldn't accept all 1024 entries.
(To get the formula to drag down I had to lock some of the fields when writing the formula with the $ sign) e.g. $b$2*sin(2pi*$a$3*a8)).