Method, device and processor for determining current amplitude of cable
By correcting the current frequency and optimizing the sampling point selection in the cable current calculation, the problem of low calculation accuracy of cable current amplitude is solved, and higher calculation accuracy and cable performance are achieved.
Patent Information
- Application Number
- CN202311589362.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-24
- Publication Date
- 2025-04-25
- Estimated Expiration
- 2043-11-24
AI Technical Summary
When calculating the cable current amplitude, the prior art fails to effectively consider the impact of complex harmonic components in the cable current on the current frequency, resulting in low calculation accuracy of the cable current amplitude, affecting the safe operation and performance of the cable.
By obtaining the target current waveform of the cable within the target duration, the initial current frequency is corrected by using the phase difference between the current waveforms of the cable within two adjacent periods to obtain the target current frequency. Then, based on the target current frequency and sampling frequency, the number of sampling points corresponding to the length of a single period is determined, and the corresponding number of sampling points is selected from the target current waveform, and its current value is calculated to determine the current amplitude of the cable.
By correcting the cable current frequency and optimizing the selection of sampling points, the calculation accuracy of the cable current amplitude is improved, and the problem of low calculation accuracy of the cable current amplitude is solved, thereby improving the safe operation and performance of the cable.
Smart Images

Figure CN117686764B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electric power engineering, and in particular to a method, device and processor for determining the current amplitude of a cable. Background Art
[0002] At present, when calculating the current amplitude of the cable, the influence of the complex harmonic components contained in the cable current on the current frequency of the cable is usually not considered, which is suitable for scenarios where the accuracy of the cable current amplitude is not required. However, for some special scenarios, such as the calculation of the parameters of the main insulation of the cable, the accuracy of the current amplitude of the cable will directly affect the accuracy of the main insulation parameters of the cable, thereby affecting the safe operation and performance of the cable. Therefore, there is a technical problem of low calculation accuracy of the current amplitude of the cable.
[0003] Currently, no effective solution has been proposed for the above technical problems. Summary of the invention
[0004] The embodiments of the present invention provide a method, device and processor for determining the current amplitude of a cable, so as to at least solve the technical problem of low calculation accuracy of the current amplitude of the cable.
[0005] According to one aspect of an embodiment of the present invention, a method for determining the current amplitude of a cable is provided. The method may include: obtaining a target current waveform of the cable within a target duration; based on the phase difference between the current waveforms of the cable in two adjacent cycles in the target current waveform, correcting the initial current frequency of the cable to obtain the target current frequency of the cable, wherein the phase difference is used to indicate the difference between the phases of the current waveforms in two adjacent cycles; based on the target current frequency and the sampling frequency, determining the first number of sampling points corresponding to a single cycle duration, wherein the sampling frequency is used to indicate the time interval for collecting current values on the target current waveform; based on the first number and the sampling frequency, selecting a second number of sampling points in the target current waveform, wherein there is a multiple relationship between the first number and the second number, and the second number is greater than the first number; based on the current values corresponding to the second number of sampling points, determining the current amplitude of the cable.
[0006] Optionally, based on the phase difference between the current waveforms of the cable in two adjacent cycles in the target current waveform, the initial current frequency of the cable is corrected to obtain the target current frequency of the cable, including: determining a first phase angle of the current waveform in a first cycle, and determining a second phase angle of the current waveform in a second cycle, wherein the first cycle and the second cycle are two adjacent cycles; determining the difference between the first phase angle and the second phase angle as the phase difference; determining a correction coefficient of the initial current frequency based on the product of the phase difference and the initial current frequency; and correcting the initial current frequency based on the correction coefficient to obtain the target current frequency.
[0007] Optionally, the initial current frequency is corrected based on the correction coefficient to obtain the target current frequency, including: determining the sum of the correction coefficient and the initial current frequency as the target current frequency.
[0008] Optionally, based on the target current frequency and the sampling frequency, determining the first number of sampling points corresponding to a single cycle duration includes: determining a quotient between the sampling frequency and the target current frequency; rounding the quotient and the sum of a predetermined value to obtain the first number of sampling points corresponding to a single cycle duration.
[0009] Optionally, based on the first number and the sampling frequency, selecting a second number of sampling points in the target current waveform includes: selecting the second number of sampling points at intervals of the sampling frequency in the target current waveform, wherein the second number of sampling points are arranged in sampling time order.
[0010] Optionally, based on the current values corresponding to the second number of sampling points, the current amplitude of the cable is determined, including: based on the second number of sampling points, determining the current values corresponding to the second number of sampling points on the target current waveform; based on the current values corresponding to the second number of sampling points, generating a first number of current sets, wherein the current sets include a first number of current values; respectively calculating the current amplitudes corresponding to the first number of current sets; based on the current amplitudes and the first number, determining the average current amplitude corresponding to the first number of current sets; and determining the average current amplitude as the current amplitude of the cable.
[0011] Optionally, generating a first number of current sets based on current values corresponding to the second number of sampling points respectively includes: selecting a first number of current values from the current values corresponding to the second number of sampling points in the order of the second number of sampling points; using the first number of current values as initial points of the first number of current sets respectively; using the positions of the initial points of the first number of current sets in the current values corresponding to the second number of sampling points as starting positions, and selecting the first number of current values from the current values corresponding to the second number of sampling points in order to obtain the first number of current sets.
[0012] According to another aspect of an embodiment of the present invention, a device for determining the current amplitude of a cable is also provided. The device may include: an acquisition unit for acquiring a target current waveform of the cable within a target duration; a correction unit for correcting the initial current frequency of the cable based on the phase difference between the current waveforms of the cable in two adjacent cycles in the target current waveform to obtain the target current frequency of the cable, wherein the phase difference is used to indicate the difference between the phases of the current waveforms in two adjacent cycles; a first determination unit for determining a first number of sampling points corresponding to a single cycle duration based on the target current frequency and the sampling frequency, wherein the sampling frequency is used to indicate the time interval for collecting current values on the target current waveform; a selection unit for selecting a second number of sampling points in the target current waveform based on the first number and the sampling frequency, wherein there is a multiple relationship between the first number and the second number, and the second number is greater than the first number; a second determination unit for determining the current amplitude of the cable based on the current values corresponding to the second number of sampling points.
[0013] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium including a stored program, wherein when the program is executed by a processor, the device where the storage medium is located is controlled to execute any one of the methods in the embodiments of the present invention.
[0014] According to another aspect of an embodiment of the present invention, a processor is further provided, wherein the processor is used to run a program, wherein when the program is run, any method in the embodiment of the present invention is executed.
[0015] In an embodiment of the present invention, the initial current frequency of the cable is corrected by utilizing the phase difference between the current waveforms of the cable in two adjacent cycles, so that the disturbance of the current frequency of the cable caused by the complex harmonic components contained in the cable current can be corrected. The number of sampling points corresponding to a single cycle duration is determined based on the corrected current frequency and the sampling frequency, so that the determined number of sampling points can be closer to the number of samples in the entire cycle, and then according to the number of sampling points corresponding to a single cycle duration and the sampling frequency, a second number of sampling points are selected from the target current waveform, and according to the current values of the selected sampling points, the current amplitude of the cable is determined, so that the accuracy of the current amplitude of the cable can be improved, and the technical effect of improving the calculation accuracy of the current amplitude of the cable can be achieved, thereby solving the technical problem of low calculation accuracy of the current amplitude of the cable. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0017] Figure 1is a flow chart of a method for determining a current amplitude of a cable according to an embodiment of the present invention;
[0018] Figure 2 is a flow chart of another method for determining the current amplitude of a cable according to an embodiment of the present application;
[0019] Figure 3 is a schematic diagram of a device for determining a current amplitude of a cable according to an embodiment of the present invention. DETAILED DESCRIPTION
[0020] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0021] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0022] Example 1
[0023] According to an embodiment of the present invention, an embodiment of a method for determining the current amplitude of a cable is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0024] Figure 1 is a flow chart of a method for determining a current amplitude of a cable according to an embodiment of the present invention. Figure 1 As shown, the method may include the following steps:
[0025] Step S101, obtaining a target current waveform of the cable within a target time period.
[0026] In the technical solution provided in step S101 of the present invention, the target current waveform of the cable within the target duration can be obtained by a waveform acquisition device, wherein the waveform acquisition device can be an analog-to-digital converter or an oscilloscope, which is not specifically limited here. The target duration can be preset, for example, the target duration can be 45ms, which is only an exemplary example.
[0027] In this embodiment, the target current waveform of the cable within the target time period includes at least waveforms corresponding to two adjacent periods.
[0028] Optionally, an analog-to-digital converter may be used to determine current data corresponding to each point on the target current waveform, wherein the current data of the cable may be circulating current data of the cable. For example, the cable circulating current data may be collected by a 16-bit analog-to-digital converter, which is only an illustrative example and does not limit the method for collecting the current data of the cable.
[0029] Step S102, based on the phase difference between the current waveforms of the cable in two adjacent cycles in the target current waveform, the initial current frequency of the cable is corrected to obtain the target current frequency of the cable.
[0030] In the technical solution provided in the above-mentioned step S102 of the present invention, after the target current waveform of the cable is obtained according to step S101, the current waveforms corresponding to two adjacent cycles can be obtained on the target current waveform, and the initial current frequency of the cable can be corrected according to the phase difference between the current waveforms corresponding to the two adjacent cycles, so as to obtain the target current frequency.
[0031] In this embodiment, for the sake of convenience of explanation, the current waveforms corresponding to two adjacent cycles may be referred to as the first current waveform and the second current waveform, respectively, wherein the phase angle of the first current waveform and the phase angle of the second current waveform may be determined, and then based on the difference between the phase angle of the first current waveform and the phase angle of the second current waveform, the phase difference of the current waveforms corresponding to the two adjacent cycles may be determined, and the phase difference is used to indicate the time offset between the first current waveform and the second current waveform.
[0032] Optionally, after determining the phase difference between the current waveforms of the cable in two adjacent cycles, the test current frequency of the cable may be corrected according to the phase difference, thereby obtaining the target current frequency of the cable.
[0033] For example, the correction factor for correcting the initial current frequency of the cable may be determined by the following formula.
[0034]
[0035] Among them, df can be used to represent the correction coefficient for correcting the initial current frequency. It can be used to indicate the phase difference between the current waveforms of the cable in two adjacent cycles, and f0 can be used to indicate the initial current frequency of the cable.
[0036] Optionally, after the correction coefficient is determined, the initial current frequency of the cable may be corrected by the correction coefficient to obtain a corrected target current frequency.
[0037] For example, the initial current frequency of the cable can be corrected by the following formula.
[0038] f=f0+df
[0039] Among them, f can be used to represent the target current frequency of the cable, f0 can be used to represent the initial current frequency of the cable, and df can be used to represent the correction coefficient for correcting the initial current frequency.
[0040] In this embodiment, the phase difference between the current waveforms of the cable in two adjacent cycles and the initial current frequency of the cable can be used to determine a correction coefficient for correcting the initial current frequency of the cable, and then the correction coefficient is used to correct the initial current frequency of the initial cable to obtain the target current frequency of the cable, so as to improve the stability of the current frequency of the cable and avoid the influence of frequency disturbance on the subsequent calculation of the current amplitude of the cable.
[0041] Step S103: determining a first number of sampling points corresponding to a single cycle duration based on the target current frequency and the sampling frequency.
[0042] In the technical solution provided in the above step S103 of the present invention, after the target current frequency of the cable is determined according to step S102, the first number of sampling points corresponding to the duration of a single cycle, that is, the number of sampling points for the entire cycle, can be determined based on the target current frequency and the sampling frequency. The sampling frequency is used to indicate the time interval for collecting current values on the target current waveform, and the value of the sampling frequency can be preset. For example, the sampling frequency can be 10 Hz. This is only an illustrative example, and the specific value of the sampling frequency is not limited.
[0043] In this embodiment, after determining the target current frequency, the quotient of the target current frequency and the sampling frequency can be processed using a rounding function to determine the number of sampling points corresponding to a complete cycle, that is, the first number of sampling points corresponding to a single cycle duration, and then sampling points are selected on the target current waveform based on the number of sampling points.
[0044] For example, the first number of sampling points may be determined by the following formula.
[0045]
[0046] Where N can be used to represent the first number of sampling points, int is the rounding function, and F s It can be used to indicate the sampling frequency, f can be used to indicate the target current frequency of the cable, and 0.5 is a predetermined value.
[0047] In this embodiment, the first number of sampling points corresponding to a single cycle duration may be determined according to the target current frequency and the sampling frequency, so as to provide a data reference for subsequently selecting sampling points from the target current waveform.
[0048] Step S104: selecting a second number of sampling points in the target current waveform based on the first number and the sampling frequency.
[0049] In the technical solution provided in the above step S104 of the present invention, after the first number of sampling points is calculated according to step S103, the second number of sampling points to be selected from the target current waveform can be further determined according to the first number and the sampling frequency, that is, the second number is used to indicate the number of sampling points to be selected from the target current waveform. There is a multiple relationship between the first number and the second number, and the second number is greater than the first number, that is, the first number can be used to calculate the second number.
[0050] In this embodiment, after determining the first number, twice the first number can be determined as the second number of sampling points selected from the target current waveform. For example, assuming the first number is N, the second number of sampling points selected from the target current waveform can be 2N.
[0051] Step S105 : determining the current amplitude of the cable based on the current values corresponding to the second number of sampling points.
[0052] In the technical solution provided in the above step S105 of the present invention, after determining the second number of sampling points selected from the target current waveform according to the above step S104, the second number of sampling points can be selected from the target current waveform in sequence according to the sampling frequency, and the current amplitude of the cable can be determined according to the current values corresponding to the second number of sampling points.
[0053] In this embodiment, after determining the second number of sampling points selected from the target current waveform, the second number of sampling points can be selected from the target current waveform in sequence based on the sampling frequency. For example, assuming that the second number is 2N and the sampling frequency is 10 Hz, a sampling point can be selected from the target current waveform at intervals of 0.1 s according to the sampling frequency until 2N sampling points are selected.
[0054] Optionally, as described in the above step S101, the current data of each sampling point on the target current waveform can be obtained by using an analog-to-digital converter. Based on this, after determining 2N sampling points on the target current waveform, the current data corresponding to the 2N sampling points can also be determined to form a current data set. For example, the current data set can be {i0, i1, i2, ..., i 2N-1}, this is just an illustrative example.
[0055] Optionally, after the current data sets corresponding to the current values corresponding to the second number of sampling points are determined, the first number of current sets may be determined based on the current data sets.
[0056] For example, a first number of current values may be selected from the current data set in sequence as the starting points of the first number of current sets. 2N-1}Select i0, i1, i2, ... i N-1 As the starting point for the first number of period sets.
[0057] Optionally, after determining the starting points of the first number of cycle sets, the position corresponding to each starting point in the current data set can be used as the starting position, and a first number of current values can be selected from the current data set in sequence as the current values of the corresponding current cycle.
[0058] For example, the first number of current sets obtained can be represented as {i0, i1, i2, ..., i N-1}, {i1, i2, i3, ... i N}、……{i N-1 、i N+1 、i N+2 ,……i 2N-1}.
[0059] Optionally, after determining the first number of current sets, the current fundamental frequency effective value corresponding to each cycle may be calculated, wherein the calculated current fundamental frequency effective values corresponding to the first number of current sets may be A0, A1, A2, ... A N-1 After that, the average value of the current fundamental frequency effective values corresponding to the first number of current sets can be determined as the current amplitude of the cable, so that a relatively accurate cable current amplitude can be obtained.
[0060] In the above steps S101 to S105 of the present application, the initial current frequency of the cable is corrected by utilizing the phase difference between the current waveforms of the cable in two adjacent cycles, so that the disturbance of the current frequency of the cable caused by the complex harmonic components contained in the cable current can be corrected. The number of sampling points corresponding to a single cycle duration is determined based on the corrected current frequency and the sampling frequency, so that the determined number of sampling points can be closer to the number of samples in the entire cycle, and then according to the number of sampling points corresponding to a single cycle duration and the sampling frequency, a second number of sampling points are selected from the target current waveform, and according to the current values of the selected sampling points, the current amplitude of the cable is determined, which can improve the accuracy of the current amplitude of the cable, achieve the technical effect of improving the calculation accuracy of the current amplitude of the cable, and thus solve the technical problem of low calculation accuracy of the current amplitude of the cable.
[0061] The above method of this embodiment is further introduced below.
[0062] As an optional implementation method, step S102, based on the phase difference between the current waveforms of the cable in two adjacent cycles in the target current waveform, corrects the initial current frequency of the cable to obtain the target current frequency of the cable, including: determining a first phase angle of the current waveform in a first cycle, and determining a second phase angle of the current waveform in a second cycle, wherein the first cycle and the second cycle are two adjacent cycles; determining the difference between the first phase angle and the second phase angle as the phase difference; determining a correction coefficient of the initial current frequency based on the product of the phase difference and the initial current frequency; and correcting the initial current frequency based on the correction coefficient to obtain the target current frequency.
[0063] In this embodiment, the target current waveform includes current waveforms corresponding to at least two adjacent periods. Based on this, the current waveforms corresponding to two adjacent periods in the target current waveform can be obtained. For the sake of convenience, the current waveforms corresponding to the two adjacent periods can be respectively referred to as the current waveform in the first period and the current waveform in the second period. The first phase angle of the current waveform in the first period and the second phase angle of the current waveform in the second period can be respectively determined.
[0064] Optionally, after determining the first phase angle of the current waveform in the first cycle and the second phase angle of the current waveform in the second cycle, the difference between the first phase angle and the second phase angle may be determined as the phase difference between the current waveforms in two adjacent cycles.
[0065] For example, the phase difference between the current waveforms in two consecutive cycles can be determined by the following formula.
[0066]
[0067] in, It can be used to represent the phase difference between the current waveforms in two consecutive cycles. It can be used to represent the first phase angle of the current waveform in the first cycle. It can be used to represent a second phase angle of the current waveform in the second period.
[0068] Optionally, after determining the phase difference between the current waveforms in two adjacent cycles, the product of the phase difference and the initial current frequency of the cable may be determined by the following formula to determine the correction coefficient of the initial current frequency of the cable.
[0069]
[0070] Among them, df can be used to represent the correction coefficient for correcting the initial current frequency. It can be used to indicate the phase difference between the current waveforms of the cable in two adjacent cycles, and f0 can be used to indicate the initial current frequency of the cable.
[0071] Optionally, after the correction coefficient is determined, the initial current frequency may be corrected based on the correction coefficient to obtain a target current frequency.
[0072] As an optional implementation manner, the initial current frequency is corrected based on the correction coefficient to obtain the target current frequency, including: determining the sum of the correction coefficient and the initial current frequency as the target current frequency.
[0073] In this embodiment, after the correction coefficient for correcting the initial current frequency of the cable is determined, the sum of the correction coefficient and the initial current frequency may be determined as the target current frequency.
[0074] For example, the target current frequency of the cable can be determined by the following formula.
[0075] f=f0+df
[0076] Among them, f can be used to represent the target current frequency of the cable, f0 can be used to represent the initial current frequency of the cable, and df can be used to represent the correction coefficient for correcting the initial current frequency.
[0077] As an optional implementation method, step S103, based on the target current frequency and the sampling frequency, determines the first number of sampling points corresponding to a single cycle duration, including: determining the quotient between the sampling frequency and the target current frequency; rounding the sum of the quotient and a predetermined value to obtain the first number of sampling points corresponding to a single cycle duration.
[0078] In this embodiment, the sampling frequency is used to indicate the time interval for collecting current values on the target current waveform. The target current frequency is the current frequency of the cable obtained by correcting the initial current frequency of the cable. Based on this, after determining the target current frequency and the sampling frequency, the quotient between the sampling frequency and the target current frequency can be determined, and then the sum of the quotient and the predetermined value is rounded using a rounding function to obtain the first number of sampling points corresponding to a single cycle duration.
[0079] For example, the first number of sampling points corresponding to a single cycle duration may be determined by the following formula.
[0080]
[0081] Where N can be used to represent the first number of sampling points corresponding to a single cycle duration, int is a rounding function, and F s can be used to indicate the sampling frequency, and f can be used to indicate the target current frequency of the cable. Used to represent the quotient between the sampling frequency and the target current frequency, with 0.5 being a predetermined value.
[0082] As an optional implementation method, step S104, based on the first number and the sampling frequency, selects a second number of sampling points in the target current waveform, including: selecting a second number of sampling points at intervals of the sampling frequency in the target current waveform, wherein the second number of sampling points are arranged in sampling time order.
[0083] In this embodiment, after the first number is determined, a second number of sampling points selected from the target current waveform may be determined according to the first number, wherein the second number of sampling points selected from the target current waveform may be determined according to a multiple of the first number.
[0084] For example, assuming that the first number is N, 2N can be used as the second number of sampling points selected from the target current waveform, and then the second number of sampling points can be selected from the target current waveform at intervals of the sampling frequency, wherein the second number of sampling points are arranged in the order of sampling time. The sampling frequency can be 10 Hz, that is, a sampling point can be selected from the target current waveform every 0.1 s.
[0085] As an optional implementation method, step S105, based on the current values corresponding to the second number of sampling points, determines the current amplitude of the cable, including: based on the second number of sampling points, determining the current values corresponding to the second number of sampling points on the target current waveform; based on the current values corresponding to the second number of sampling points, generating a first number of current sets, wherein the current sets include a first number of current values; respectively calculating the current amplitudes corresponding to the first number of current sets; based on the current amplitudes and the first number, determining the average current amplitude corresponding to the first number of current sets; and determining the average current amplitude as the current amplitude of the cable.
[0086] In this embodiment, after determining the second number of sampling points, since each sampling point corresponds to a current value, based on this, the current value corresponding to each sampling point in the second number of sampling points can be determined. Then, according to the current values corresponding to the second number of sampling points, a first number of current sets are generated, wherein each current set includes the first number of current values, that is, each current cycle includes the current values corresponding to the first number of sampling points.
[0087] For example, it can be known from the above introduction that the second number can be twice the first number. Based on this, assuming that the first number is 10, the second number can be 20. After determining the current values corresponding to the 20 sampling points, 10 current sets can be generated according to the current values corresponding to the 20 sampling points, wherein each current set can contain 10 current values. For example, among the current values corresponding to the 20 sampling points, the first current value to the 10th current value can be taken as a current set, the second current value to the 11th current value can be taken as a current set, the third current value to the 12th current value can be taken as a current set, and ..., the 10th current value to the 20th current value can be taken as a current set to obtain 10 current sets.
[0088] Optionally, after obtaining the first number of current sets, the current amplitude corresponding to each current set may be determined, and then the average value of the current amplitudes corresponding to the first number of current sets may be determined as the current amplitude of the cable.
[0089] For example, the current amplitude corresponding to each current set may be determined by the following formula.
[0090]
[0091] Among them, A j can be used to represent the current amplitude corresponding to the jth current set, N can be used to represent the first quantity, that is, the quantity corresponding to the current set, r j Can be used to represent real parameters, v j Can be used to represent imaginary parameters. Among them, j can range from 0 to N-1.
[0092] Optionally, after the current amplitude corresponding to each current set in the first number of current sets is determined, the average current amplitude of the current amplitudes corresponding to the first number of current sets may be determined by the following formula.
[0093]
[0094] Wherein, I can be used to represent the average current amplitude of the current amplitudes corresponding to the first number of current sets, N can be used to represent the first number, and A j It can be used to represent the current amplitude corresponding to the j-th current set.
[0095] As an optional implementation manner, based on the current values corresponding to the second number of sampling points, respectively, a first number of current sets are generated, including: selecting a first number of current values from the current values corresponding to the second number of sampling points in the order of the second number of sampling points; using the first number of current values as initial points of the first number of current sets; using the positions of the initial points of the first number of current sets in the current values corresponding to the second number of sampling points as starting positions, and selecting the first number of current values from the current values corresponding to the second number of sampling points in order to obtain the first number of current sets.
[0096] In this embodiment, the order of the second number of sampling points can be used to represent the order of selecting the sampling points from the target current waveform, and the first number of current values can be selected from the current values corresponding to the second number of sampling points according to the order of the second number of sampling points, wherein the order of the second number of sampling points is consistent with the order of the current values corresponding to the second number of sampling points.
[0097] For example, assuming that the second number is 20, the first 10 current values among the current values corresponding to the 20 sampling points may be determined as the first number of current values selected from the current values corresponding to the second number of sampling points.
[0098] Optionally, after selecting a first number of current values from the current values corresponding to a second number of sampling points, the first number of current values can be selected in sequence with the positions of the selected first number of current values in the current values corresponding to the second number of sampling points as the starting positions to form a first number of current sets.
[0099] For example, the 10 current values selected above can be used as the starting points of 10 current sets, and then, the positions of the 10 current values in the 20 current values are used as the starting positions, and 10 current values are selected in sequence to form 10 current sets. The obtained 10 current sets can be expressed as {i1, i2, i2, ..., i 10}, {i2, i3, i4, ... i 11}、……{i 10 、i 11 、i 12 ,……i 20}.
[0100] In the above steps, the initial current frequency of the cable is corrected by utilizing the phase difference between the current waveforms of the cable in two adjacent cycles, so that the disturbance of the current frequency of the cable caused by the complex harmonic components contained in the cable current can be corrected. Based on the corrected current frequency and sampling frequency, the number of sampling points corresponding to a single cycle duration is determined, which can make the determined number of sampling points closer to the number of samples in the entire cycle. Then, according to the number of sampling points corresponding to a single cycle duration and the sampling frequency, a second number of sampling points are selected from the target current waveform, and according to the current values of the selected sampling points, the current amplitude of the cable is determined, which can improve the accuracy of the current amplitude of the cable, achieve the technical effect of improving the calculation accuracy of the current amplitude of the cable, and thus solve the technical problem of low calculation accuracy of the current amplitude of the cable.
[0101] Example 2
[0102] The technical solution of the embodiment of the present invention is illustrated below in conjunction with preferred implementation modes.
[0103] At present, when calculating the current amplitude of the cable, the influence of the complex harmonic components contained in the cable current on the current frequency of the cable is usually not considered, which is suitable for scenarios where the accuracy of the cable current amplitude is not required. However, for some special scenarios, such as the calculation of the parameters of the main insulation of the cable, the accuracy of the current amplitude of the cable will directly affect the accuracy of the main insulation parameters of the cable, thereby affecting the safe operation and performance of the cable. Therefore, there is a technical problem of low calculation accuracy of the current amplitude of the cable.
[0104] However, an embodiment of the present application provides a method for determining the current amplitude of a cable, obtaining a target current waveform of the cable within a target time length; based on the phase difference between the current waveforms of the cable in two adjacent cycles in the target current waveform, correcting the initial current frequency of the cable to obtain the target current frequency of the cable, wherein the phase difference is used to indicate the difference between the phases of the current waveforms in two adjacent cycles; based on the target current frequency and the sampling frequency, determining a first number of sampling points corresponding to a single cycle duration, wherein the sampling frequency is used to indicate the time interval for collecting current values on the target current waveform; based on the first number and the sampling frequency, selecting a second number of sampling points in the target current waveform, wherein there is a multiple relationship between the first number and the second number, and the second number is greater than the first number; based on the current values corresponding to the second number of sampling points, determining the current amplitude of the cable. Since the phase difference between the current waveforms of the cable in two adjacent cycles is utilized to correct the initial current frequency of the cable, the disturbance of the current frequency of the cable caused by the complex harmonic components contained in the cable current can be corrected. The number of sampling points corresponding to a single cycle duration is determined based on the corrected current frequency and the sampling frequency, which can make the determined number of sampling points closer to the number of samples in the entire cycle. Then, according to the number of sampling points corresponding to a single cycle duration and the sampling frequency, a second number of sampling points are selected from the target current waveform, and the current amplitude of the cable is determined according to the current values of the selected sampling points. This can improve the accuracy of the current amplitude of the cable, achieve the technical effect of improving the calculation accuracy of the current amplitude of the cable, and solve the technical problem of low calculation accuracy of the current amplitude of the cable.
[0105] Next, the calculation process of the current amplitude of the cable is further introduced.
[0106] Figure 2 1 is a flow chart of another method for determining the current amplitude of a cable according to an embodiment of the present application. The method may include the following steps:
[0107] Step S201, obtaining a phase difference between two adjacent cycles of a current waveform of a cable.
[0108] In this embodiment, the phase difference between the current waveforms corresponding to two adjacent periods in the current waveform of the cable may be determined by using the angle difference method.
[0109] For example, the phase angle of the first periodic waveform and the phase angle of the second periodic waveform can be calculated respectively, wherein the first periodic waveform and the second periodic waveform are two adjacent periodic waveforms. After determining the phase angle corresponding to the first periodic waveform and the phase angle corresponding to the second period, the phase difference corresponding to the two adjacent periods can be determined by the following formula.
[0110]
[0111] in, It can be used to represent the phase difference between the current waveforms in two adjacent cycles. Can be used to represent the phase angle of the first cycle waveform, Can be used to represent the phase angle of the second cycle waveform.
[0112] Step S202: determining a correction coefficient for correcting the initial current frequency of the cable based on the phase difference.
[0113] In this embodiment, after the phase difference between two adjacent periodic waveforms is determined, the correction coefficient for correcting the initial current frequency of the cable can be determined by the following formula.
[0114]
[0115] Among them, df can be used to represent the correction coefficient for correcting the initial current frequency. It can be used to indicate the phase difference between the current waveforms of the cable in two adjacent cycles, and f0 can be used to indicate the initial current frequency of the cable.
[0116] Step S203, correcting the initial current frequency of the cable based on the correction coefficient to obtain the target current frequency of the cable.
[0117] In this embodiment, after the correction coefficient for correcting the initial current frequency of the cable is determined, the initial current frequency of the cable can be corrected by the following formula.
[0118] f=f0+df
[0119] Among them, f can be used to represent the target current frequency of the cable, f0 can be used to represent the initial current frequency of the cable, and df can be used to represent the correction coefficient for correcting the initial current frequency.
[0120] Step S204, determining the number of sampling points in a whole cycle based on the target current frequency of the cable.
[0121] In this embodiment, after the target current frequency of the cable is determined, the number of full-cycle sampling points in the current waveform of the cable can be determined by the following formula.
[0122]
[0123] Among them, N can be used to represent the number of positive cycle sampling points, int is the rounding function, and F s can be used to indicate the sampling frequency, and f can be used to indicate the target current frequency of the cable. Used to represent the quotient between the sampling frequency and the target current frequency, with 0.5 being a predetermined value.
[0124] Step S205 , selecting a plurality of current values from the discrete current sequence based on the number of sampling points in the entire cycle.
[0125] In this embodiment, after the number of sampling points in a whole cycle is determined, multiple current values may be selected from the discrete current sequence, and the number of the selected current values may be twice the number of sampling points in a whole cycle.
[0126] For example, we can use the discrete current sequence i={i0,i1,i2.....i k ......i M-1} select 2N-1 current values {i0,i1,i2.....i 2N-1}, which is used to calculate the current amplitude of the cable.
[0127] Step S206, calculating the current amplitude of the cable based on the multiple current values.
[0128] In this embodiment, current sequences having the same number as the number of sampling points in a whole cycle can be generated according to multiple current values, and then the current amplitude of the cable can be determined according to the average value of the current amplitudes corresponding to the multiple current sequences.
[0129] For example, the first current sequence can be i={i0,i1,i2.....i N-1}, take the i-th current sequence as i={i k ,i k+1 ,i k+2 .....i N+k-1}, where (k=1, 2, ...N-1), based on this, N current sequences can be obtained.
[0130] Optionally, after N current sequences are calculated, the current amplitude corresponding to each current sequence may be calculated using the following formula.
[0131]
[0132]
[0133]
[0134] Wherein, A(1) may be the current amplitude corresponding to the first current sequence, N is the number of current sequences, and K=0, 1, 2, 3, ... N-1.
[0135] Optionally, the current amplitudes corresponding to N current sequences may be calculated according to the above formula, and then the current amplitudes corresponding to the N current sequences may be averaged using the following formula to obtain the current amplitude of the cable.
[0136]
[0137] In an embodiment of the present invention, the initial current frequency of the cable is corrected by utilizing the phase difference between the current waveforms of the cable in two adjacent cycles, so that the disturbance of the current frequency of the cable caused by the complex harmonic components contained in the cable current can be corrected. Based on the corrected current frequency and the sampling frequency, the number of sampling points corresponding to a single cycle duration is determined, so that the determined number of sampling points can be closer to the number of samples in the entire cycle, and then according to the number of sampling points corresponding to a single cycle duration and the sampling frequency, a second number of sampling points are selected from the target current waveform, and according to the current values of the selected sampling points, the current amplitude of the cable is determined, which can improve the accuracy of the current amplitude of the cable, achieve the technical effect of improving the calculation accuracy of the current amplitude of the cable, and thus solve the technical problem of low calculation accuracy of the current amplitude of the cable.
[0138] Example 3
[0139] According to an embodiment of the present invention, a device for determining the current amplitude of a cable is also provided. It should be noted that the device for determining the current amplitude of a cable can be used to execute the method for determining the current amplitude of a cable in embodiment 1.
[0140] Figure 3 Schematic diagram of a device for determining the current amplitude of a cable according to an embodiment of the present invention. Figure 3 As shown, the device 300 for determining the current amplitude of the cable may include: an acquisition unit 301 , a correction unit 302 , a first determination unit 303 , a selection unit 304 and a second determination unit 305 .
[0141] The acquisition unit 301 is used to acquire a target current waveform of the cable within a target time period.
[0142] The correction unit 302 is used to correct the initial current frequency of the cable based on the phase difference between the current waveforms of the cable in two adjacent cycles in the target current waveform to obtain the target current frequency of the cable, wherein the phase difference is used to indicate the difference between the phases of the current waveforms in two adjacent cycles.
[0143] The first determining unit 303 is used to determine a first number of sampling points corresponding to a single cycle duration based on a target current frequency and a sampling frequency, wherein the sampling frequency is used to indicate a time interval for collecting current values on a target current waveform.
[0144] The selection unit 304 is used to select a second number of sampling points in the target current waveform based on the first number and the sampling frequency, wherein there is a multiple relationship between the first number and the second number, and the second number is greater than the first number.
[0145] The second determining unit 305 is configured to determine the current amplitude of the cable based on the current values respectively corresponding to the second number of sampling points.
[0146] Optionally, the correction unit 302 includes: a first determination module, used to determine a first phase angle of the current waveform in a first cycle, and to determine a second phase angle of the current waveform in a second cycle, wherein the first cycle and the second cycle are two adjacent cycles; a second determination module, used to determine the difference between the first phase angle and the second phase angle as a phase difference; a third determination module, used to determine a correction coefficient of the initial current frequency based on the product of the phase difference and the initial current frequency; and a correction module, used to correct the initial current frequency based on the correction coefficient to obtain a target current frequency.
[0147] Optionally, the correction module includes: a determination submodule, used to determine the sum of the correction coefficient and the initial current frequency as the target current frequency.
[0148] Optionally, the first unit 303 includes: a determination module, used to determine the quotient between the sampling frequency and the target current frequency; and an operation module, used to perform a rounding operation on the sum of the quotient and a predetermined value to obtain a first number of sampling points corresponding to a single cycle duration.
[0149] Optionally, the selection unit 304 includes: a selection module, configured to select a second number of sampling points at intervals of sampling frequency in the target current waveform, wherein the second number of sampling points are arranged in order of sampling time.
[0150] Optionally, the second determination unit 305 also includes: a fourth determination module, used to determine the current values corresponding to the second number of sampling points on the target current waveform based on the second number of sampling points; a generation module, used to generate a first number of current sets based on the current values corresponding to the second number of sampling points, wherein the current sets include the first number of current values; a calculation module, used to respectively calculate the current amplitudes corresponding to the first number of current sets; and a fifth determination module, used to determine the average current amplitude as the current amplitude of the cable.
[0151] Optionally, the generation module includes: a first selection submodule, used to select a first number of current values from the current values corresponding to the second number of sampling points in the order of the second number of sampling points; a determination submodule, used to use the first number of current values as initial points of a first number of current sets; and a second selection submodule, which uses the positions of the initial points of the first number of current sets in the current values corresponding to the second number of sampling points as starting positions, and selects the first number of current values from the current values corresponding to the second number of sampling points in order to obtain the first number of current sets.
[0152] In this embodiment, the initial current frequency of the cable is corrected by utilizing the phase difference between the current waveforms of the cable in two adjacent cycles, so that the disturbance of the current frequency of the cable caused by the complex harmonic components contained in the cable current can be corrected. The number of sampling points corresponding to a single cycle duration is determined based on the corrected current frequency and the sampling frequency, so that the determined number of sampling points can be closer to the number of samples in the entire cycle, and then according to the number of sampling points corresponding to a single cycle duration and the sampling frequency, a second number of sampling points are selected from the target current waveform, and according to the current values of the selected sampling points, the current amplitude of the cable is determined, which can improve the accuracy of the current amplitude of the cable, achieve the technical effect of improving the calculation accuracy of the current amplitude of the cable, and thus solve the technical problem of low calculation accuracy of the current amplitude of the cable.
[0153] Example 4
[0154] According to an embodiment of the present invention, a computer-readable storage medium is further provided. The storage medium includes a stored program, wherein the program executes the method for determining the current amplitude of the cable in Embodiment 1.
[0155] Example 5
[0156] According to an embodiment of the present invention, a processor is further provided, and the processor is used to run a program, wherein the method for determining the current amplitude of the cable in embodiment 1 is executed when the program is run.
[0157] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0158] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0159] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0160] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed over multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0161] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0162] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0163] The above are only preferred embodiments of the present invention. It should be pointed out that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for determining the current amplitude of a cable, characterized in that: include: Obtaining a target current waveform of the cable within a target time period; Based on the phase difference between the current waveforms of the cable in two adjacent cycles in the target current waveform, the initial current frequency of the cable is corrected to obtain the target current frequency of the cable, wherein the phase difference is used to indicate the difference between the phases of the current waveforms in the two adjacent cycles; Determine a first number of sampling points corresponding to a single cycle duration based on the target current frequency and a sampling frequency, wherein the sampling frequency is used to indicate a time interval for collecting current values on the target current waveform; Based on the first number and the sampling frequency, selecting a second number of sampling points in the target current waveform, wherein there is a multiple relationship between the first number and the second number, and the second number is greater than the first number; The current amplitude of the cable is determined based on the current values respectively corresponding to the second number of sampling points.
2. The method according to claim 1, characterized in that Based on the phase difference between the current waveforms of the cable in two adjacent cycles in the target current waveform, the initial current frequency of the cable is corrected to obtain the target current frequency of the cable, including: Determine a first phase angle of the current waveform in a first cycle, and determine a second phase angle of the current waveform in a second cycle, wherein the first cycle and the second cycle are the two adjacent cycles; determining a difference between the first phase angle and the second phase angle as the phase difference; determining a correction coefficient of the initial current frequency based on the product of the phase difference and the initial current frequency; The initial current frequency is corrected based on the correction coefficient to obtain the target current frequency.
3. The method according to claim 2, characterized in that Correcting the initial current frequency based on the correction coefficient to obtain the target current frequency includes: The sum of the correction coefficient and the initial current frequency is determined as the target current frequency.
4. The method according to claim 1, characterized in that: Determining a first number of sampling points corresponding to a single cycle duration based on the target current frequency and the sampling frequency includes: determining a quotient between the sampling frequency and the target current frequency; A rounding operation is performed on the sum of the quotient and a predetermined value to obtain the first number of sampling points corresponding to the single cycle duration.
5. The method according to claim 1, characterized in that Based on the first number and the sampling frequency, selecting a second number of sampling points in the target current waveform includes: The second number of sampling points are selected in the target current waveform at intervals of the sampling frequency, wherein the second number of sampling points are arranged in sampling time sequence.
6. The method according to claim 1, characterized in that Determining the current amplitude of the cable based on the current values respectively corresponding to the second number of sampling points includes: Based on the second number of sampling points, determining current values respectively corresponding to the second number of sampling points on the target current waveform; Based on the current values respectively corresponding to the second number of sampling points, generating a first number of current sets, wherein the current sets include the first number of current values; respectively calculating the current amplitudes corresponding to the first number of the current sets; Determine, based on the current amplitude and the first number, an average current amplitude corresponding to the first number of the current sets; The average current amplitude is determined as the current amplitude of the cable.
7. The method according to claim 6, characterized in that Generating a first number of current sets based on the current values respectively corresponding to the second number of sampling points includes: selecting the first number of current values from the current values corresponding to the second number of sampling points in an order of the second number of sampling points; Using the first number of the current values as initial points of the first number of the current sets respectively; The positions of the initial points of the first number of the current sets in the current values corresponding to the second number of the sampling points are respectively taken as starting positions, and the first number of the current values are selected in sequence from the current values corresponding to the second number of the sampling points to obtain the first number of the current sets.
8. A device for determining the current amplitude of a cable, characterized in that: include: An acquisition unit, used for acquiring a target current waveform of the cable within a target time period; a correction unit, configured to correct the initial current frequency of the cable based on a phase difference between the current waveforms of the cable in two adjacent cycles in the target current waveform, so as to obtain a target current frequency of the cable, wherein the phase difference is used to indicate a difference between the phases of the current waveforms in the two adjacent cycles; A first determining unit, configured to determine a first number of sampling points corresponding to a single cycle duration based on the target current frequency and a sampling frequency, wherein the sampling frequency is used to indicate a time interval for collecting current values on the target current waveform; a selecting unit, configured to select a second number of sampling points in the target current waveform based on the first number and the sampling frequency, wherein there is a multiple relationship between the first number and the second number, and the second number is greater than the first number; The second determining unit is used to determine the current amplitude of the cable based on the current values respectively corresponding to the second number of sampling points.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method according to any one of claims 1 to 7.
10. A processor, characterized in that: The processor is used to run a program, wherein the program executes the method according to any one of claims 1 to 7 when run by the processor.
Citation Information
Patent Citations
Four-channel grounding circulation waveform acquisition method
CN112526288A
Frequency Multiplier for a Phase-Locked Loop
US20160380752A1