+ Post New Thread
Results 1 to 10 of 10

11th January 2018, 01:11 #1
 Join Date
 Apr 2007
 Location
 Norway
 Posts
 644
 Helped
 118 / 118
 Points
 5,775
 Level
 18
Calculate impedance manually  from data samples
Hi.
Basic calculating of load impedance is fairly easy when familiar to complex numbers as same formulas is used as for a resistive load with no inductive or capacitive elements. But I want help regarding how to calculate momentary value of load impedance when there is a set of meassured samples of voltage and current.
In power grid there is line protection devices. Some of those calculates the impedance in forward direction of the power line, and based on a set of rules, it disconnects if low impedance.
I have seen some demonstration (years ago at school) of the data the devices is collecting, and the device is capable to sample the voltage/current much faster than the main frequency.
So let say  just for the cause of having an example  there is 10ms between each sample. Also I assume there exist avaiable a reference voltage that stay equal to the original voltage phase and amplitude (near perfect sine curve)  but doesn't know if this is neccesary to calculate impedance for each sample. By one sample, I mean all parameters (momentarly voltage and current per phase) that is possible to measure directly is avaiable.
My question goes: What does it takes for me to manually calculate the line load impedance when having, let say 100 samples is stored?
If anybody know this, an example with single phase line/load would be apprechiated.
Thanks in advance

11th January 2018, 07:47 #2
Awards:
 Join Date
 Apr 2014
 Posts
 11,446
 Helped
 2660 / 2660
 Points
 56,316
 Level
 57
Re: Calculate impedance manually  from data samples
Hi,
You talk about "line protection devices".
They don't need to calculate impedance.
Calculating the current is enough.
Or  even better  the I x I x t integral.
If you really want to calculate impedance:
It is: I_RMS / I_RMS.
Often the mains voltage is very constant...then you don't have to measure/calculate it. Just replace V_RMS with a fixed value.
To measure the RMS value of a signal:
... either you use a dedicated RMS_to_DC IC
or you do it with software. Then you have to take care about nyquist.
Nyquist says your sampling frequency needs to be more than twice the highest input frequency of interest.
For a pure sine signal this means: sample frequency is more than twice of the sine signal frequency.
If your signal is distorted and you are interested in up to 31st overtone, then the sample frequency is more than 2 x 31 x fundamental frequency.
Additionally the samples (timing) need need to be equally distributed over a full wave (or multiple)
Example:
With a 50Hz mains frequency and pure sine wave...it is sufficient to take just three samples with a sample frequency of 150Hz.
Then you get three values: V1, V2, V3.
V_RMS = sqrt( (V1^2 + V2^2 + V3^2) /3)
RMS:
* Root = square root, (sqrt)
* Mean = average, (/3) = divide by sample count
* Square = each input value needs to be squared (^2)
KlausPlease don´t contact me via PM, because there is no time to respond to them. Thank you.

11th January 2018, 07:47

11th January 2018, 13:13 #3
 Join Date
 Dec 2015
 Location
 Madrid, Spain
 Posts
 1,047
 Helped
 253 / 253
 Points
 5,844
 Level
 18
Re: Calculate impedance manually  from data samples
Klauss told you how to compute the magnitude of the impedance. If you also need the phase, you need to get the power factor out of your samples.

11th January 2018, 13:13

11th January 2018, 20:28 #4
 Join Date
 Apr 2007
 Location
 Norway
 Posts
 644
 Helped
 118 / 118
 Points
 5,775
 Level
 18
Re: Calculate impedance manually  from data samples
Hi.
I know how to calculate impedance by RMS  but I need a method to calculate the phase angle. I assume it's not just by clocking between zeero crossing for voltage and current because under a fault scenario (short circuit), the curves may derivate quite a bit from a clean sin curve.
KlausST  I have to correct you for this statement: They don't need to calculate impedance. Calculating the current is enough.
Not true  the voltage in a power line may change depending of temperature and load, and therefore it's very important to ensure that the protection device is able to tell if the fault occurs on this line or the line that belongs to the neighbour company.
Therefore I tell the excact reason why I want to do this. It is because I do have access to samples from a less advanced protection device that does not operate with impedance.
The samples comes from this protection device logging function. It was recorded when a coincidence where another protection device in the grid failed.
Therefore this is a perfect workcase to study  and to the end I intend to get the impedance for a failing device so that the other protection unit (the one that fails) can be set up correctly according to expected impedance.
I'll probably import the data set into Excel and therefore I need to manually calculate the impedance.
When I think of this, I could set up Excel in a way that I count numbers of samples between zero cross for voltage and current and therefore being able to update phase angle ideally each 13.5ms pr phase.
But  the weakness is that during a period of failure  I assume that the complex number of impedance will fly all over the scale, snd there will be several false zeero crossing readings that will screw up the calculations.
Therefore I ask if there is a way to calculate impedance without concerning for false zero cross readings.
So having the samples data set  it is fairly easy to calculate the absolute value for impedance for each sample. The challenge is to calculate phase angle too.

11th January 2018, 20:28

11th January 2018, 21:49 #5
Awards:
 Join Date
 Apr 2014
 Posts
 11,446
 Helped
 2660 / 2660
 Points
 56,316
 Level
 57
Re: Calculate impedance manually  from data samples
Hi,
Honestly...I can't think of what protection device you are talking about.
In our house there are only protection devices that don't measure the voltage.
Can you give a name or a link to a (similar) protection device.
It seems you don't want the impedance like Z = 50 Ohms...you want the complex representation of the impedance.
> the real part and the imaginary part.
I want to recommend a DFT....but this can only be made with pure sinusoidal voltage waveform....but when I read your posts, then I assume your voltage isn't a pure sinewave.
KlausPlease don´t contact me via PM, because there is no time to respond to them. Thank you.

12th January 2018, 00:25 #6
 Join Date
 Dec 2015
 Location
 Madrid, Spain
 Posts
 1,047
 Helped
 253 / 253
 Points
 5,844
 Level
 18
Re: Calculate impedance manually  from data samples
Therefore I ask if there is a way to calculate impedance without concerning for false zero cross readings.
Besides, I believe this is the most robust way to do it, if there is a fault, you will notice it into the active power and in the aparent power.

12th January 2018, 01:48 #7
 Join Date
 Apr 2007
 Location
 Norway
 Posts
 644
 Helped
 118 / 118
 Points
 5,775
 Level
 18
Re: Calculate impedance manually  from data samples
Yes  well I can see what I got, once I got to download the data recording from the protection unit.
I may find a way to trick excel  like a bandpass filter for 50HZ to double check for zero crossing. I see I need to read up on digital filters now, that's not my strong side.

12th January 2018, 08:53 #8
 Join Date
 Jan 2008
 Location
 Bochum, Germany
 Posts
 41,715
 Helped
 12710 / 12710
 Points
 240,513
 Level
 100
Re: Calculate impedance manually  from data samples
I feel that the intended characteristic of the impedance measurement and respective protective action should be specified before designing the device. We have heard nothing substantial yet. O.K., it's not our job to design it, but I suppose it would be helpful for you to know what you are actually doing.
Are we talking about 50 Hz impedance? Real component, complex or magnitude only? Response time of the impedance based overload decision? Immunity against rapid variation of reactive and harmonic currents, e.g. switching a compensator unit?

12th January 2018, 08:53

12th January 2018, 13:24 #9
 Join Date
 Oct 2015
 Location
 Helsinki, Finland
 Posts
 39
 Helped
 11 / 11
 Points
 659
 Level
 5
Re: Calculate impedance manually  from data samples
Impedance calculation is used on the distribution network protection and it is often called a distance protection. The relay itself is typically called a distance relay. First links I found on google:
http://electricalengineeringportal...nceprotection
This tells the principle of distance protection. Examples of the protection relays,
http://w3.siemens.com/smartgrid/glob.../overview.aspx
1 members found this post helpful.

12th January 2018, 17:44 #10
 Join Date
 Jan 2008
 Location
 Bochum, Germany
 Posts
 41,715
 Helped
 12710 / 12710
 Points
 240,513
 Level
 100
Re: Calculate impedance manually  from data samples
Impedance calculation is used on the distribution network protection and it is often called a distance protection.
+ Post New Thread
Please login