Disclosure of Invention
In order to solve the problem that a filter is needed to filter harmonic components in the power grid voltage before a PI control method is used for tracking the frequency of the power grid voltage, so that an error occurs in a finally obtained load impedance angle, the application discloses a method and a device for obtaining the load impedance angle through the following embodiments.
The first aspect of the present application discloses a method for obtaining a load impedance angle, the method comprising:
acquiring load voltage and load current;
filtering the load voltage and the load current simultaneously to obtain filtering signals, wherein the filtering signals comprise load voltage filtering signals and load current filtering signals;
acquiring an initial pulse signal according to the filtering signal, wherein the initial pulse signal comprises a voltage initial pulse signal and a current initial pulse signal;
acquiring a pulse peak value of the initial pulse signal according to the initial pulse signal;
acquiring a first integral value according to the pulse peak value, wherein the first integral value is a result of integrating the voltage initial pulse signal;
acquiring a second integral value according to the pulse peak value, wherein the second integral value is a result of integrating a combined pulse signal, the combined pulse signal is a pulse signal formed by combining the voltage initial pulse signal and a current initial pulse opposite signal, and the current initial pulse opposite signal is a pulse signal obtained by inverting the current initial pulse signal;
acquiring an absolute value of a phase difference between the load voltage and the load current according to the first integrated value and the second integrated value;
acquiring load impedance properties, and acquiring load impedance angle coefficients according to the load impedance properties;
and acquiring the magnitude of the load impedance angle according to the absolute value of the phase difference and the load impedance angle coefficient.
Optionally, the obtaining a first integrated value according to the pulse peak value includes:
the first integrated value is obtained by the following formula:
wherein S represents the first integrated value, uLCRepresenting the voltage initial pulse signal and M representing the pulse peak.
Optionally, the obtaining a second integrated value according to the pulse peak value includes:
acquiring the second integrated value by the following formula:
wherein Δ S represents the second integrated value,
representing the current initial pulse opposite signal, α representing a reference variable whose magnitude coincides with the magnitude of the absolute value of the phase difference.
Optionally, the obtaining an absolute value of a phase difference between the load voltage and the load current according to the first integrated value and the second integrated value includes:
obtaining the absolute value of the phase difference according to the following formula:
where | θ | represents the absolute value of the phase difference.
Optionally, the load impedance angle coefficient is 1, -1 or 0.
Optionally, the obtaining of the load impedance property and obtaining the load impedance angle coefficient according to the load impedance property includes:
when the load voltage passes through zero, acquiring the magnitude of an instantaneous value of the load current;
acquiring the load impedance property according to the instantaneous value of the load current, wherein the load impedance property is an inductive load, a capacitive load or a pure resistance load;
if the load impedance property is an inductive load, acquiring that the load impedance angular coefficient is 1; or if the load impedance property is a capacitive load, obtaining that the load impedance angle coefficient is-1; or, if the load impedance property is a pure resistive load, obtaining that the load impedance angular coefficient is 0.
Optionally, the obtaining the load impedance property according to the magnitude of the instantaneous value of the load current includes:
if the instantaneous value of the load current is less than 0, acquiring the load impedance property as an inductive load;
or, if the instantaneous value of the load current is greater than 0, acquiring the load impedance property as a capacitive load;
or, if the instantaneous value of the load current is equal to 0, the load impedance property is acquired as a pure resistive load.
A second aspect of the present application discloses a load impedance angle acquisition apparatus, which is applied to a load impedance angle acquisition method disclosed in the first aspect of the present application, and the apparatus includes:
the voltage and current acquisition module is used for acquiring load voltage and load current;
the filtering module is used for simultaneously filtering the load voltage and the load current to obtain filtering signals, and the filtering signals comprise load voltage filtering signals and load current filtering signals;
the initial pulse signal acquisition module is used for acquiring an initial pulse signal according to the filtering signal, wherein the initial pulse signal comprises a voltage initial pulse signal and a current initial pulse signal;
the pulse peak value acquisition module is used for acquiring a pulse peak value of the initial pulse signal according to the initial pulse signal;
the first integration module is used for acquiring a first integration value according to the pulse peak value, wherein the first integration value is a result of integrating the voltage initial pulse signal;
the second integration module is used for acquiring a second integration value according to the pulse peak value, wherein the second integration value is a result of integrating a combined pulse signal, the combined pulse signal is a pulse signal formed by combining the voltage initial pulse signal and a current initial pulse opposite signal, and the current initial pulse opposite signal is a pulse signal obtained by inverting the current initial pulse signal;
a phase difference absolute value acquisition module, configured to acquire a phase difference absolute value between the load voltage and the load current according to the first integrated value and the second integrated value;
the load impedance angle coefficient acquisition module is used for acquiring load impedance properties and acquiring load impedance angle coefficients according to the load impedance properties;
and the load impedance angle acquisition module is used for acquiring the magnitude of the load impedance angle according to the absolute value of the phase difference and the load impedance angle coefficient.
Optionally, the first integration module includes:
a first integration unit configured to acquire the first integrated value according to the following formula:
wherein S represents the first integrated value, uLCRepresenting the voltage initial pulse signal and M representing the pulse peak.
Optionally, the second integration module includes:
a second integration unit configured to acquire the second integrated value by the following equation:
wherein Δ S represents the second integrated value,
representing the current initial pulse opposite signal, α representing a reference variable whose magnitude coincides with the magnitude of the absolute value of the phase difference.
Optionally, the phase difference absolute value obtaining module includes:
a phase difference absolute value calculating unit, configured to obtain the phase difference absolute value according to the following formula:
where | θ | represents the absolute value of the phase difference.
Optionally, the load impedance angle coefficient obtaining module includes:
the current instantaneous value acquisition unit is used for acquiring the magnitude of the instantaneous value of the load current when the load voltage passes through zero;
the impedance property acquisition unit is used for acquiring the load impedance property according to the instantaneous value of the load current, wherein the load impedance property is an inductive load, a capacitive load or a pure resistance load;
a coefficient obtaining unit, configured to obtain that the load impedance angular coefficient is 1 when the load impedance property is an inductive load; or, when the load impedance property is a capacitive load, obtaining that the load impedance angle coefficient is-1; or, when the load impedance property is a pure resistive load, obtaining that the load impedance angular coefficient is 0.
Optionally, the impedance property obtaining unit includes:
the inductive judging subunit is used for acquiring the load impedance property as an inductive load when the instantaneous value of the load current is less than 0;
the capacitive judging subunit is used for acquiring the load impedance property as a capacitive load when the instantaneous value of the load current is greater than 0;
and the pure resistance judging subunit is used for acquiring that the load impedance property is a pure resistance load when the instantaneous value of the load current is equal to 0.
The embodiment of the application discloses a method and a device for acquiring a load impedance angle. And then obtaining a load impedance angle coefficient by obtaining the load impedance property, and obtaining the magnitude of a load impedance angle according to the phase difference absolute value and the load impedance angle coefficient. According to the method, the load voltage and the load current are filtered simultaneously, errors caused by delay are eliminated, the load impedance angle is obtained through calculation by combining the load impedance property, and the accuracy of the result is guaranteed.
Detailed Description
In order to solve the problem that a filter is needed to filter harmonic components in the power grid voltage before a PI control method is used for tracking the frequency of the power grid voltage, so that an error occurs in a finally obtained load impedance angle, the application discloses a method and a device for obtaining the load impedance angle through the following embodiments.
The first embodiment of the present application discloses a method for obtaining a load impedance angle, which includes:
in step S11, a load voltage and a load current are obtained.
Step S12, filtering the load voltage and the load current simultaneously to obtain filtered signals, where the filtered signals include a load voltage filtered signal and a load current filtered signal.
In practical application, two identical low-pass filters are used for filtering the load voltage and the load current at the same time respectively, and harmonic components in the load voltage and the load current are filtered out. The delays generated by the same filter can be mutually offset in the calculation process, so that the accuracy of the calculated load impedance angle is ensured.
Step S13, obtaining an initial pulse signal according to the filtered signal, where the initial pulse signal includes a voltage initial pulse signal and a current initial pulse signal.
The voltage phase discriminator is used for processing the load voltage filtering signal to obtain a voltage initial pulse signal, and the current phase discriminator is used for processing the load current filtering signal to obtain a current initial pulse signal.
Fig. 2 is a schematic circuit diagram illustrating a load impedance angle obtaining method according to an embodiment of the present application, in which a load voltage u is shownLAfter passing through a Low Pass Filter (LPF), a voltage initial pulse signal u is obtained by processing of a voltage phase discriminatorLCLoad current iLAfter passing through a Low Pass Filter (LPF), a current initial pulse signal i is obtained by processing of a current phase discriminatorLC。
And step S14, acquiring a pulse peak value of the initial pulse signal according to the initial pulse signal. The pulse peak value of the voltage initial pulse signal is consistent with the pulse peak value of the current initial pulse signal in size.
In step S15, a first integrated value is obtained according to the pulse peak value, and the first integrated value is the result of integrating the voltage initial pulse signal.
In one implementation, the first integrated value is obtained by the following equation:
wherein S represents the first integrated value, uLCRepresenting the voltage initial pulse signal and M representing the pulse peak.
Step S16, obtaining a second integral value according to the pulse peak value, where the second integral value is a result of integrating a merged pulse signal, the merged pulse signal is a pulse signal obtained by merging the voltage initial pulse signal and a current initial pulse opposite signal, and the current initial pulse opposite signal is a pulse signal obtained by inverting the current initial pulse signal.
In one implementation, the second integrated value is obtained by the following equation:
wherein Δ S represents the second integrated value,
representing the current initial pulse reversal signal, α representing the reference variable, α corresponding to an intermediate transformed variable, the magnitude of which corresponds to the magnitude of the absolute value of the phase difference.
Step S17 is to obtain an absolute value of a phase difference between the load voltage and the load current based on the first integrated value and the second integrated value.
In one implementation, dividing the first integrated value by the second integrated value can result in:
obtaining the absolute value of the phase difference by conversion according to the following formula:
where | θ | represents the absolute value of the phase difference.
Step S18, obtaining a load impedance property, and obtaining a load impedance angle coefficient according to the load impedance property.
And step S19, obtaining the magnitude of the load impedance angle according to the absolute value of the phase difference and the load impedance angle coefficient.
In the embodiment of the present application, the absolute value of the phase difference is multiplied by the load impedance angle coefficient to obtain a load impedance angle, and a calculation formula is as follows: and theta is k-pi-delta S/S, wherein theta is the load impedance angle, and k is the load impedance angle coefficient.
The embodiment of the application discloses a method and a device for acquiring a load impedance angle. And then obtaining a load impedance angle coefficient by obtaining the load impedance property, and obtaining the magnitude of a load impedance angle according to the phase difference absolute value and the load impedance angle coefficient. According to the method, the load voltage and the load current are filtered simultaneously, errors caused by delay are eliminated, the load impedance angle is obtained through calculation by combining the load impedance property, and the accuracy of the result is guaranteed.
Further, the load impedance angle coefficient is 1, -1 or 0.
Further, the obtaining of the load impedance property and obtaining the load impedance angle coefficient according to the load impedance property includes:
and when the load voltage passes through zero, acquiring the instantaneous value of the load current.
And acquiring the load impedance property according to the instantaneous value of the load current, wherein the load impedance property is an inductive load, a capacitive load or a pure resistance load.
And if the load impedance property is an inductive load, acquiring that the load impedance angular coefficient is 1. Or, if the load impedance property is a capacitive load, obtaining that the load impedance angular coefficient is-1. Or, if the load impedance property is a pure resistive load, obtaining that the load impedance angular coefficient is 0.
Further, the obtaining the load impedance property according to the magnitude of the instantaneous value of the load current includes:
and if the instantaneous value of the load current is less than 0, acquiring the load impedance property as an inductive load.
Or, if the instantaneous value of the load current is greater than 0, acquiring the load impedance property as a capacitive load.
Or, if the instantaneous value of the load current is equal to 0, the load impedance property is acquired as a pure resistive load.
In fig. 2, the filtered load voltage signal and the filtered load current signal are compared by a comparator, and then the positive and negative signals output by the comparator are obtained through a sign function sgn, and the sampling holder SH collects the positive and negative signals and outputs a load impedance angle coefficient.
The second embodiment of the present application discloses a load impedance angle obtaining apparatus, which is applied to a load impedance angle obtaining method disclosed in the first embodiment of the present application, and the apparatus includes:
the voltage and current obtaining module 10 is configured to obtain a load voltage and a load current.
The filtering module 20 is configured to filter the load voltage and the load current simultaneously to obtain a filtering signal, where the filtering signal includes a load voltage filtering signal and a load current filtering signal.
An initial pulse signal obtaining module 30, configured to obtain an initial pulse signal according to the filtered signal, where the initial pulse signal includes a voltage initial pulse signal and a current initial pulse signal.
And a pulse peak value obtaining module 40, configured to obtain a pulse peak value of the initial pulse signal according to the initial pulse signal.
And a first integration module 50, configured to obtain a first integrated value according to the pulse peak value, where the first integrated value is a result of integrating the voltage initial pulse signal.
A second integration module 60, configured to obtain a second integrated value according to the pulse peak value, where the second integrated value is a result of integrating a merged pulse signal, the merged pulse signal is a pulse signal obtained by merging the voltage initial pulse signal and a current initial pulse opposite signal, and the current initial pulse opposite signal is a pulse signal obtained by inverting the current initial pulse signal.
A phase difference absolute value obtaining module 70, configured to obtain an absolute value of a phase difference between the load voltage and the load current according to the first integrated value and the second integrated value.
A load impedance angle coefficient obtaining module 80, configured to obtain load impedance properties, and obtain a load impedance angle coefficient according to the load impedance properties.
And a load impedance angle obtaining module 90, configured to obtain a magnitude of the load impedance angle according to the absolute value of the phase difference and the load impedance angle coefficient.
Further, the first integration module 50 includes:
a first integration unit configured to acquire the first integrated value according to the following formula:
wherein S represents the first integrated value, uLCRepresenting the voltage initial pulse signal and M representing the pulse peak.
Further, the second integration module 60 includes:
a second integration unit configured to acquire the second integrated value by the following equation:
wherein Δ S represents the second integrated value,
representing the current initial pulse opposite signal, α representing a reference variable whose magnitude coincides with the magnitude of the absolute value of the phase difference.
Further, the phase difference absolute value obtaining module 70 includes:
a phase difference absolute value calculating unit, configured to obtain the phase difference absolute value according to the following formula:
where | θ | represents the absolute value of the phase difference.
Further, the load impedance angle coefficient obtaining module 80 includes:
and the current instantaneous value acquisition unit is used for acquiring the magnitude of the instantaneous value of the load current when the load voltage passes through zero.
And the impedance property acquisition unit is used for acquiring the load impedance property according to the instantaneous value of the load current, wherein the load impedance property is an inductive load, a capacitive load or a pure resistance load.
And the coefficient acquisition unit is used for acquiring that the load impedance angular coefficient is 1 when the load impedance property is an inductive load. Or, when the load impedance property is a capacitive load, obtaining that the load impedance angle coefficient is-1. Or, when the load impedance property is a pure resistive load, obtaining that the load impedance angular coefficient is 0.
Further, the impedance property acquisition unit includes:
and the inductive judging subunit is used for acquiring the load impedance property as an inductive load when the instantaneous value of the load current is less than 0.
And the capacitive judging subunit is used for acquiring the load impedance property as a capacitive load when the instantaneous value of the load current is greater than 0.
And the pure resistance judging subunit is used for acquiring that the load impedance property is a pure resistance load when the instantaneous value of the load current is equal to 0.
The present application has been described in detail with reference to specific embodiments and illustrative examples, but the description is not intended to limit the application. Those skilled in the art will appreciate that various equivalent substitutions, modifications or improvements may be made to the presently disclosed embodiments and implementations thereof without departing from the spirit and scope of the present disclosure, and these fall within the scope of the present disclosure. The protection scope of this application is subject to the appended claims.