Compensating for the skin effect in a shunt

Information

  • Patent Application
  • 20180316335
  • Publication Number
    20180316335
  • Date Filed
    December 14, 2017
    6 years ago
  • Date Published
    November 01, 2018
    5 years ago
Abstract
A method and apparatus to compensate for distortion of a waveform due to the skin effect in a current shunt. The method includes modeling the complex impedance of the shunt as component complex impedances. By designing a filter corresponding to the component complex impedances, the distortion of a waveform across the shunt may be reversed to provide an accurate replica of the undistorted waveform.
Description
TECHNICAL FIELD

The present invention relates to filters in electrical systems. More specifically, the invention relates to a compensating filter for correction of a distorted waveform of a voltage signal.


BACKGROUND

In systems which utilize a flow of electrical charge for operation, it is often preferable to know or approximate the amount of electrical charge traveling through a particular element within a circuit contained in the system.


A commonly used method of current measurement involves measuring the total voltage drop across a circuit element. Division of this voltage value by a known value of the circuit element's resistance yields a value for the amount of current passing through the circuit element, by application of Ohm's Law.


The method just described would be suitable for measuring a current across a pure resistor, for example, as the voltage across the resistor would be proportional to the current. However, the method can become less precise when applied across other circuit elements, an example of which would be a current shunt. As commonly used, a current shunt is a piece of material having a known resistance which allows current to flow around a point within a circuit. Shunts may vary in the degree of their complexity, as well as the purpose for which the measurement of current through the shunt is performed.


When a time-varying electric current passes through a conductor, the current passing through a cross-section of the conductor tends to distribute unevenly between the core of the conductor and its surface. This well-known tendency is due to the changing magnetic fields created within the conductor and is referred to as the “skin effect.” In a case where accurate measurements of current and voltage are sought after the current has passed through a shunt, the skin effect becomes problematic. This is particularly true when the information sought to be analyzed is not only a simple measurement of voltage across the shunt, but rather measurement of a varying waveform of voltage across the shunt.


In operation, the skin effect may be influenced by a number of factors which may include: the size and shape of the conductor, the material of the conductor and the frequency of the current passing through the conductor. In a current shunt, the presence of the skin effect will result in the impedance of the shunt becoming a complex impedance, determined by these and other factors. Importantly, the complex impedance of a shunt will distort a waveform of a voltage across the shunt relative to the original waveform, resulting in a diminished value of the measured information represented by the waveform. An example of waveform distortion would be the introduction of frequency-dependent effects upon the waveform. Similarly, an accurate representation of a current waveform will also be lost due to the complex impedance caused by the skin effect.


If the original waveform, or even a closer approximation, of the voltage across the shunt were to be recoverable, the current waveform, proportional to the voltage waveform, could then be sampled, measured and analyzed in other ways. Increased accuracy provided by the availability of the original waveform would be highly beneficial, and a method to recover an original waveform from one distorted by the skin effect is sought.


SUMMARY OF THE INVENTION

A method and filter apparatus to compensate for waveform distortion in a shunt due to the skin effect are described. In one of its implementations, the method includes first modeling the shunt as parallel-connected branches of series-connected resistors and inductors to represent complex impedance values of paths through the shunt. It will be understood that the model described below is only an approximate model, used as an example, and other models may be used for the same or similar purpose. Describing the elements of the model begins with formulating an equation setting the inverse of the combined impedance, or admittance, of the filter equal to the summation of the inverses of individual complex impedances, or admittances, of the parallel branches, as follows.







1

Z
filter


=




n
=
1

N



1


R
n

+

j





ω






L
n









With the definitions below,







k
n

=

1

L
n









ω
cn

=


R
n


L
n






the following is true.







1


R
n

+

sL
n



=



1
/

L
n



s
+


R
n

/

L
n




=


k
n


s
+

ω
cn








Substitution yields the following expression:







1

Z
filter


=




n
=
1

N




k
n


s
+

ω
cn








and the shunt may be modeled accordingly.


As previously described, these complex impedances are the result of the skin effect and cause distortion of a waveform measured across the shunt. The disclosed method and apparatus seeks to effectively reverse the distortion caused by the skin effect upon the voltage waveform. To achieve this, a compensating filter is first designed and then applied to the shunt voltage. The disclosed invention provides both an analog compensating filter and a digital compensating filter, about which more will later be said.


By applying the principles of electrical duality, a designer may construct a filter according to the following statement: if the admittance (denoted as Y) of the shunt is the sum of the admittances of a parallel combination of series-connected resistance and inductance combinations, then the impedance (denoted as Z) of the filter can be the sum of the impedances of a series combination of parallel-connected conductance and capacitance combinations, provided that the two are linked so that the shunt admittance and the filter impedance are connected in such a way that the product of the two appears in the resulting transfer function. With the filter constructed, the designer may then make an electrical connection between the shunt and the filter. Allowing the distorted signal from the shunt to pass through the filter results in a corrected form of the voltage signal, which may then provide an accurate replica of the current waveform before it passed through the shunt.


Applications may exist which require a digital filter to correct distortion of a waveform due to the skin effect. Design of such a filter begins by defining a transfer function of the digital filter in the analog domain as follows.







H

filter
,
a


=




n
=
1

N




k
n


s
+

ω
cn








It is important to note that this equation is expressed in the analog domain, with s being the Laplace transform variable. In order to express this relationship for use in the digital domain, the bilinear transform is applied to convert from s to z, the z-transform variable, where









s
=


2
T




z
-
1


z
+
1









and







H

filter
,
d


=

H

filter
,
a







s
=


2
T




z
-
1


z
+
1











to





yield












H

filter
,
d


=




n
=
1

N




k
n



(


2
T




z
-
1


z
+
1



)

+

ω
cn









and






H

filter
,
d


=




n
=
1

N




a
n




1
+

z

-
1




1
+


b
n



z

-
1














a
n

=



k
n


T




ω
cn


T

+
2









b
n

=




ω
cn


T

-
2




ω
cn


T

+
2






through rearranging and defining variables.


Similar to the analog filter described previously, if


then the transfer function of the digital filter may also be modeled as a sum of component transfer functions of parallel paths through the shunt,







H

filter
,
d


=




n
=
1

N



H
n









H
n

=


a
n




1
+

z

-
1




1
+


b
n



z

-
1










and modeled as follows.


To demonstrate distortion of a waveform by the skin effect and correction of the distorted waveform by the method and apparatus according to the invention, a pulse-width modulation (PWM) driven application will be used as an example throughout. The alert reader will recognize that this method of PWM generation is one of a multitude of possibilities, used for example only, and any other technique of signal generation may be used instead. Numbers are chosen arbitrarily to reveal interesting features and, unless otherwise noted, units are not included in the interest of simplicity.





BRIEF DESCRIPTION OF THE DRAWINGS

The present invention will now be described with reference to several drawings, of which:



FIG. 1 is an example of a model of complex impedances through a shunt.



FIG. 2A shows an example of a PWM generator.



FIG. 2B shows graphs of input signals and an output PWM signal.



FIG. 3A shows an example of a PWM generator connected to a motor.



FIG. 3B shows graphs of a motor output voltage and associated motor current driven by a PWM signal.



FIG. 4A is an example of a PWM generator driving a motor which delivers a current to a shunt as modeled by a method according to the invention.



FIG. 4B shows a graph of a motor current delivered to a shunt and a graph of a distored voltage waveform across the shunt due to the skin effect.



FIG. 5A is an example of a shunt model and associated complex impedances for designing a compensating filter.



FIG. 5B is an example of a compensating filter according to an aspect of the invention.



FIG. 6 is an example of a PWM generator driving a motor which delivers a current to a shunt model and correction of the distorted waveform by a method according to the invention.



FIG. 7A is a diagram of a system in which a motor current passes through a shunt and the resulting distorted voltage waveform is corrected by application of a filter according to the invention.



FIG. 7B shows graphs of a waveform of a motor current, a waveform of a voltage measurement across a shunt, and a waveform of the voltage across the shunt, corrected by a method according to the invention.



FIG. 8 is an example of a digital filter according to an aspect of the invention applied to correct distortion of a sampled signal of a voltage waveform across a shunt.



FIG. 9 shows a process to model a component transfer function representing one parallel path through a shunt which distorts a sampled signal of a voltage waveform.



FIG. 10 is a graph comparing the magnitude of the frequency response of a digital filter according to the invention with the magnitude of the frequency response of an analog filter according to the invention.



FIG. 11 is a graph comparing the phase of the frequency response of a digital filter according to the invention with the phase of the frequency response of an analog filter according to the invention.



FIG. 12 shows an example of a digital filter system including an antialiasing filter according to an aspect of the invention.





DETAILED DESCRIPTION OF THE DRAWINGS

A model of complex impedances through a shunt is illustrated in FIG. 1. The model is composed of parallel-connected branches of series-connected resistors and inductors to represent complex impedances of paths through the shunt. The model of FIG. 1 does not include values for the resistors and inductors, but instead demonstrates a framework for modeling the shunt using as many resistor and inductor pairings as required to model a subject shunt, from R1 and L1 through RN and LN. A current enters the shunt at connection point 100 and exits the shunt at connection point 110. A distorted waveform of a voltage across the shunt results.



FIG. 2A shows a schematic diagram of an example PWM generator 200 used to provide a signal to a motor. An input signal 211 and a sawtooth signal 212 are provided to a comparator 213 and PWM output 216 is generated, with like numerals used throughout the drawings. Graphs of these signals are illustrated in FIG. 2B, with input signal 211 denoted V11, sawtooth signal 212 denoted V12 and PWM output 216 denoted V16. Connection of the PWM generator 200 with a motor 310 is shown in FIG. 3A. Graphs of resulting motor voltage 370 and the motor current 380 delivered to a shunt are shown in FIG. 3B. The complex impedance of the shunt due to the presence of the skin effect is modeled according to an aspect of the invention and shown connected to the motor in FIG. 4A. PWM generator 200 is connected to an input of motor 410 and the current of the motor is connected to a shunt model 415. As noted earlier, the shunt model 415 is composed of parallel-connected branches of series-connected resistors and inductors to represent the complex impedance of the shunt. Once the motor current 480 passes through the shunt model 415, the voltage waveform 490 becomes highly distorted, as shown in the graphs of FIG. 4B.


As an example, the modeled resistors and inductors of the parallel paths through the shunt model 515 are assigned values, as shown in FIG. 5A. Each parallel path through the shunt is modeled as a series connection of a resistor, R3-R7, with an inductor L2-L6. As mentioned above, design of a compensating filter begins with following the principles of electrical duality, that is, if the admittance (denoted as Y) of the shunt is the sum of the admittances of a parallel combination of series-connected resistance and inductance combinations, then the impedance (denoted as Z) of the filter can be the sum of the impedances of a series combination of parallel-connected conductance and capacitance combinations, provided that the two are linked so that the shunt admittance and the filter impedance are connected in such a way that the product of the two appears in the resulting transfer function. Resistor values for use in the compensating filter are thus calculated and chosen to provide conductance equal to the value of the resistance in the shunt model, and capacitances have values equal to the corresponding inductances in the shunt model.


A compensating filter according to an aspect of the invention may be constructed for the modeled shunt 515 of FIG. 5A. Such a compensating filter 525 is shown in FIG. 5B, with values of resistors R9-R13 and capacitors C1-C5 chosen to compensate for the values of complex impedance in the model of FIG. 5A as explained above. Once constructed, as shown in FIG. 6, the compensating filter 625 may be applied to the voltage from the motor 610. A high-input-impedance voltage-to-current converter may be used to drive the filter. A diagram of this application of the compensating filter to the shunt voltage is shown in FIG. 7A. PWM 700 provides a signal to motor 710 and a motor current 711 enters shunt 715. Compensating filter 725 is applied to a distorted waveform of voltage across the shunt 715. FIG. 7B shows graphs of the motor current waveform 730, the distorted shunt voltage waveform 740 and the corrected shunt voltage waveform 750. As seen in these graphs, the distortion of the shunt voltage waveform 740 due to the skin effect in the shunt is completely compensated by application of a filter according to the invention.



FIG. 8 shows a system 800 containing a digital compensating filter 825 according to an aspect of the invention. Such a digital filter may be executed in software and implemented in an embedded controller. The digital compensating filter 825 receives as input a sampled voltage signal from sampler 840 at a sampling rate of T. As discussed above, the transfer function of the digital filter may also be modeled as a sum of component transfer functions of parallel paths through the shunt 815. An example of such a model is shown in FIG. 9. Compensating digital filter 900 is represented by a parallel connection of component transfer functions H1-HN, as described above. Each path in the sum corresponds to one of the impedances of the resistor-capacitor parallel combinations in compensating filter 625, for example. As shown above, each component transfer function may be defined as follows:







H
n

=


a
n




1
+

z

-
1




1
+


b
n



z

-
1














Y
n

X

=


a
n




1
+

z

-
1




1
+


b
n



z

-
1














with




(

1
+


b
n



z

-
1




)



Y
n


=



a
n



(

1
+

z

-
1



)



X






and






Y
n

=



a
n



(

X
+


z

-
1



X


)


-


b
n



z

-
1




Y
n







by rearranging of terms.


Applying these definitions to each component transfer function of the model in design detail 950 shows that








y
n



(
k
)


=



a
n



[


x


(
k
)


+

x


(

k
-
1

)



]


-


b
n




y
n



(

k
-
1

)









and






y


(
k
)


=




n
=
1

N




y
n



(
k
)







similar to the analog compensating filter described above.


Using the inductor and resistor values of the 5th-order shunt model of FIG. 5A and a sampling period of T=2 μs, values for an and bn were obtained for the shunt model and digital compensating filter. FIG. 10 shows results for the magnitude of the frequency response 1020 of the digital compensating filter compared with results for the magnitude of the frequency response 1010 of the analog compensating filter. FIG. 11 similarly shows results for the phase of the frequency response 1120 of the digital compensating filter compared with results for the phase of the frequency response 1110 of the analog compensating filter.


The alert reader will recognize that the digital compensating filter begins to deviate from the analog compensating filter at higher frequencies. To address potential problems such as aliasing at higher frequencies, an analog antialiasing filter may also be included in the design of the digital compensating filter. FIG. 12 shows a system 1200 containing a digital compensating filter 1225 according to an aspect of the invention. The digital compensating filter 1225 receives as input a sampled voltage signal from a sampler 1240 at a sampling rate of T. Sampler 1240 receives a voltage signal from shunt 1215 through antialiasing filter 1255.


It will be appreciated that one skilled in the art of electrical filter design, electrical hardware and software could devise additional obvious improvements and variations upon the invention described and claimed herein. All such obvious improvements and variants are intended to be encompassed by the claims which follow.


What has been described is a method for use with a current shunt, the shunt having a complex impedance, wherein the complex impedance produces frequency-dependent effects upon a voltage waveform across the shunt when passing an electric current through the shunt, the method comprising: modeling the complex impedance of the shunt as a summation of at least two component complex impedances associated with parallel paths through the shunt, thereby creating a shunt model; designing a physical electronic filter corresponding to the shunt model to reverse the frequency-dependent effects of the complex impedance of the shunt on the voltage waveform; physically connecting the filter to the shunt by an electrical connection, thereby applying the filter to the frequency-dependent voltage waveform, wherein the frequency-dependent voltage waveform is transformed into a linear function of the passing current; and reading the transformed value of the passing current.


Also described is an electrical filter apparatus, comprising: a plurality of parallel-connected pairs of components in series, each parallel-connected pair of components comprising: a compensating capacitor having a value of compensating capacitance and a compensating resistor having a value of compensating resistance, wherein the values of compensating resistance are calculated to provide a specific value of conductance and the values of compensating capacitance are calculated to provide a specific value of capacitance; wherein an input of the electrical filter apparatus is connected to an output of a first electrical circuit element.

Claims
  • 1. A method for use with a current shunt, the shunt having a complex impedance, wherein the complex impedance produces frequency-dependent effects upon a voltage waveform across the shunt when passing an electric current through the shunt, the method comprising: modeling the complex impedance of the shunt as a summation of at least two componentcomplex impedances associated with parallel paths through the shunt, thereby creating a shunt model;designing a physical electronic filter corresponding to the shunt model to reverse the frequency-dependent effects of the complex impedance of the shunt on the voltage waveform;physically connecting the filter to the shunt by an electrical connection, thereby applying the filter to the frequency-dependent voltage waveform, wherein the frequency-dependent voltage waveform is transformed into a linear function of the passing current; andreading the transformed value of the passing current.
  • 2. The method of claim 1, wherein the step of modeling the complex impedance of the shunt further comprises: modeling the parallel paths through the shunt as a parallel connection of at least two branches, each branch comprising a series connection of an inductor having a value of inductance and a resistor having a value of resistance; andassigning a numerical value to the value of inductance and a numerical value to the value of resistance for each branch of the shunt model.
  • 3. The method of claim 2, wherein the physical electronic filter corresponding to the shunt model is an analog filter, and the step of designing a physical electronic filter further comprises connecting a plurality of parallel-connected pairs of components in series, each parallel-connected pair of components comprising a compensating capacitor having a value of compensating capacitance and a compensating resistor having a value of compensating resistance.
  • 4. The method of claim 3, wherein the step of designing a physical electronic filter further comprises calculating a value of compensating resistance in order to provide a specific value of conductance and a value of a compensating capacitance.
  • 5. The method of claim 1, wherein the physical electronic filter corresponding to the shunt model further comprises a voltage-to-current converter.
  • 6. The method of claim 1, wherein the physical electronic filter corresponding to the shunt model is a digital filter, and the step of designing a physical electronic filter further comprises: defining a system transfer function of the digital filter as a summation of at least two component transfer functions, each associated with a component value of complex impedance;defining the at least two component transfer functions as functions of a complex variable in the analog domain; andconverting the at least two transfer functions defined as functions of a complex variable in the analog domain into functions of a complex variable in the digital domain.
  • 7. The method of claim 6, further comprising sampling the voltage waveform across the shunt over at least two sampling periods at a defined sampling rate, thereby producing sampled signal data.
  • 8. The method of claim 7, wherein the step of applying the filter to the frequency-dependent voltage waveform further comprises: providing the sampled signal data as values for use with the functions of a complex variable in the digital domain; andsolving the functions of a complex variable in the digital domain for the at least two component transfer functions for the defined sampling rate.
  • 9. The method of claim 8, further comprising an antialiasing filter connected between the shunt and the filter, wherein the antialiasing filter rejects frequency components at very high frequencies.
  • 10. The method of claim 6, wherein the digital filter is executed in a software program, and the step of designing a physical electronic filter further comprises implementing the software program in an embedded controller.
  • 11. (canceled)
CROSS REFERENCE APPLICATIONS

This application claims the benefit of provisional application No. 62/434,352 filed Dec. 14, 2016 and incorporated herein by reference for all purposes.

PCT Information
Filing Document Filing Date Country Kind
PCT/IB2017/057969 12/14/2017 WO 00
Provisional Applications (1)
Number Date Country
62434352 Dec 2016 US