A method for calculating the average power of a DC circuit breaker over a specified time.

By calculating the instantaneous power of circuit breaker current and voltage, and utilizing time base partitioning and array operations, the problem of calculating the average power of DC circuit breakers is solved, enabling fast and accurate energy management and simplifying data requirements.

CN122309889APending Publication Date: 2026-06-30WUHAN INSTITUTE OF MARINE ELECTRIC PROPULSION (THE 712TH RESEARCH INSTITUTE OF CHINA STATE SHIPBUILDING CORP LTD)

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
WUHAN INSTITUTE OF MARINE ELECTRIC PROPULSION (THE 712TH RESEARCH INSTITUTE OF CHINA STATE SHIPBUILDING CORP LTD)
Filing Date
2026-04-03
Publication Date
2026-06-30

AI Technical Summary

Technical Problem

The lack of existing methods for calculating the average power of a DC circuit breaker over a specified time period makes it impossible to effectively manage the energy of a DC power system.

Method used

By calculating the instantaneous power of the circuit breaker current and voltage, and using time base partitioning and array operations, the average power of the circuit breaker over a specified time period is calculated, including setting the array length, writing and de-arraying operations, accumulating the average instantaneous power, and iteratively calculating the average power over a longer period.

Benefits of technology

It enables the rapid and accurate calculation of average power over a period of 1 day, 1 week, 1 month or even longer when the circuit breaker is closed, reducing computational complexity and data requirements, and simplifying energy management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122309889A_ABST
    Figure CN122309889A_ABST
Patent Text Reader

Abstract

This invention discloses a method for calculating the average power of a DC circuit breaker over a specified time period. First, the real-time power of the circuit breaker is calculated based on its current and voltage. Then, the minimum time base is calculated based on the instantaneous power to obtain the array length for storing the instantaneous power. The instantaneous power is divided equally according to the array length to obtain the average instantaneous power. The array is written in a first-in-first-out (FIFO) order to ensure the validity of the data within the array. Finally, the average power within each array is summed to obtain the average power of the circuit breaker over the specified time period. This method calculates the circuit breaker current and power only when the circuit breaker is closed, and can calculate the average power of the circuit breaker over a period of one day, one week, one month, or even longer.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of low-voltage DC electrical appliance control technology, and relates to a method for calculating the average power of a DC circuit breaker within a specified time. Background Technology

[0002] A DC circuit breaker is a power distribution component in a DC power system, used to provide electrical energy to the loads of the DC power system. The electrical energy provided by the DC circuit breaker is the electrical energy consumed by the load.

[0003] In a DC power system, DC circuit breakers are responsible for distributing power to the loads. Calculating the average power of the DC circuit breaker at the circuit breaker side allows for effective calculation of the energy consumption of each distribution branch, enabling rapid energy management of the DC power system. Currently, there is no similar calculation method to calculate the average power of the circuit breaker over a specified time period.

[0004] Therefore, it is necessary to design a method for calculating the average power of DC circuit breakers, to calculate the average power delivered by the circuit breaker within a cycle, and to use this as a data basis for energy management of DC power systems. Summary of the Invention

[0005] The purpose of this invention is to provide a method for calculating the average power of a DC circuit breaker over a specified time period, capable of calculating the average power provided by the circuit breaker over a day, a week, a month, or even longer. This calculation method saves processor computing resources and memory storage capacity requirements, simplifies data calculation, and can quickly and accurately calculate the average power of the circuit breaker over a specified time period.

[0006] The technical solution adopted by this invention to solve its technical problem is: a method for calculating the average power of a DC circuit breaker within a specified time, the steps of which are as follows:

[0007] (1) When the circuit breaker is in the closed state, according to the circuit breaker current I now Voltage U now Calculate the instantaneous power P of the circuit breaker now =I now ×U now ;

[0008] (2) Based on the instantaneous power P of the circuit breaker now Determine the minimum time base t for calculating the average power of the circuit breaker ref Based on the average time period T and the minimum time base t ref Calculate the array length L that needs to store the current power. stack =T / t ref ;

[0009] (3) Calculate the average instantaneous power based on the instantaneous power of the circuit breaker and the array length, and set the instantaneous power P now According to array length Lstack The average instantaneous power P is obtained by dividing the data into equal parts. ref =P now / L stack ;

[0010] (4) Set the length to L stack An array, with the initial values ​​of the data in the array set to 0, at each base time t ref Calculate the current average instantaneous power P once. ref And perform a write array operation on the current instantaneous power, setting P... ref Inserting data into the array uses the first address as the data; after writing to the array, the data is P. ref0 ;

[0011] (5) Perform the array decrement operation on the tail address of the array: according to the first-in-first-out rule, each time the current average instantaneous power P is decremented... ref While writing to the array, the last element of the array is popped out of the array to ensure the validity of the data in the array;

[0012] (6) Summing up all the data in the array, we get: the average instantaneous power P in the array. ref By summing the results, the average power P of the circuit breaker within the time period T can be obtained. avg =P ref0 +…+P refn (n=L) stack-1 ).

[0013] Furthermore, it also includes step (7): if the specified time is too long, T can be used as the time base to adjust the average power P of the circuit breaker. avg As the average instantaneous power, repeat steps (3) to (6) iteratively to calculate the circuit breaker T. new Average power P over time avg .

[0014] Furthermore, the average power P obtained within the current time range is... avg As the new average instantaneous power, the time range at that time is used as the new time base t. ref Iterative calculations can yield average power over a wider time range.

[0015] Furthermore, the minimum time base t mentioned above... ref The calculation steps are as follows: Assume a time base t1, and the time period T is divided into L equal parts by the time base t1. stack If the array length L is [number], then the array length L is [number]. stack =T / t1; if instantaneous power P now The power P obtained after accumulation sumIf the data length overflows, it indicates that the amount of data to be calculated within the time period T is large, and the selected time base t1 is too short, causing the data overflow. In this case, the time width of the time base t1 needs to be increased, and the calculation needs to be recalculated until P... sum No data overflow; if P is calculated using time base t1 sum If no data overflow occurs, then the time base t ref =t1.

[0016] Furthermore, in step (3), the period T is time-based t ref Divided into L stack After that, the time base t ref Power P within ref / P now = t ref / T, yielding the average instantaneous power P ref =P now / L stack .

[0017] Furthermore, step (4) is performed at each minimum time base t. ref Calculate the current average instantaneous power P once. ref And perform an array write operation on the current instantaneous power.

[0018] Compared with existing known technologies, the technical solution provided by this invention has the following significant advantages:

[0019] The calculation method of the present invention divides the power into time bases, calculates the average power within a specified unit time, and accumulates the average power within this unit time to calculate the average power within the period, which greatly reduces the data volume requirement for power calculation and reduces the complexity of program data structure and algorithm;

[0020] The calculation method of this invention can use the calculated period T1 as a new time base, and the average power P within the period T1. avg The average instantaneous power is calculated using an iterative method, where T2 = T1 × L. stack The average power over a time period or longer greatly simplifies the calculation method for average power over an extremely long time period.

[0021] This invention calculates the circuit breaker current and power only when the circuit breaker is closed, and can calculate the average power of the circuit breaker over a period of 1 day, 1 week, 1 month or even longer. Attached Figure Description

[0022] Figure 1 This is a flowchart of the average power calculation method of the present invention;

[0023] Figure 2 This is a schematic diagram of the time base partitioning for power calculation;

[0024] Figure 3 This is a schematic diagram for calculating average instantaneous power;

[0025] Figure 4 A schematic diagram of writing and outputting an array for the average instantaneous power;

[0026] Figure 5 This is a schematic diagram for calculating the average power accumulation. Detailed Implementation

[0027] To further illustrate the purpose and technical solution of this invention, the invention will be described in more detail below with reference to specific embodiments in the accompanying drawings.

[0028] Reference Figure 1 As shown, the present invention discloses a method for calculating the average power of a DC circuit breaker within a specified time, which includes the following steps.

[0029] (1) Based on the circuit breaker current I now Determine and then perform the current power P now calculate.

[0030] When the circuit breaker is in the closed state, according to the circuit breaker current I now Voltage U now Calculate the instantaneous power P of the circuit breaker now =I now ×U now .

[0031] (2) Determine the minimum time base t ref Calculate the average time period T and the array length L. stack .

[0032] Select the appropriate instantaneous power P of the circuit breaker based on the specified time requirements and the computing power of the microprocessor. now Based on the required time and time base, calculate the array length that needs to be stored for the average power data to be processed, and determine the minimum time base t for calculating the circuit breaker's average power. ref Select time base t ref Divide the period T into equal parts, and calculate the time span T and minimum time base t based on the specified average power. ref Determine the array length L for placing the instantaneous power of the circuit breaker. stack =T / t ref .

[0033] Determine the minimum time base t ref The steps are as follows Figure 2 As shown. Assume a time base t1. The time period T is divided into L equal parts by the time base t1. stack If the array length L is [number], then the array length L is [number]. stack=T / t1. The length of data bytes inside a microprocessor is finite; if the instantaneous power P now The power P obtained after accumulation sum If the data length overflows, it indicates that the amount of data to be calculated within the time period T is large, and the selected time base t1 is too short, leading to data overflow. Therefore, if this happens, the time width of the time base t1 needs to be increased, and the calculation needs to be recalculated until P... sum No data overflow. If P is calculated using time base t1... sum If no data overflow occurs, then the time base t ref =t1.

[0034] (3) Based on the instantaneous power P of the circuit breaker now and array length L stack Calculate the average instantaneous power P ref .

[0035] The current power P now According to array length L stack Dividing the array into equal parts, i.e., dividing the array length by the current power of the circuit breaker, yields the average instantaneous power P of the circuit breaker after division. ref =P now / L stack .

[0036] Average instantaneous power P ref The calculation steps are as follows Figure 3 As shown. During the period T, T is controlled by the time base t. ref Divided into L stack Part, average instantaneous power P ref Using time base t ref The power within, therefore P ref / P now = t ref / T, from which the average instantaneous power P can be obtained. ref =P now / L stack .

[0037] (4) Set the length to L stack An array, with the initial values ​​of the data in the array set to 0, is used to determine the minimum time base t. ref The average instantaneous power P at the start time of the current circuit breaker ref Perform a write array operation, and write P ref Inserting data into the array uses the first address as the data; writing data to the array results in data P. ref0 .

[0038] In each minimum time base t ref Calculate the current average instantaneous power P once. ref And perform an array insertion operation on the current instantaneous power.

[0039] (5) Each time the array operation of the current instantaneous power is performed, the array tail address data is popped simultaneously.

[0040] According to the first-in, first-out rule, each time the current average instantaneous power P is measured... ref While writing to the array, the last element of the array is popped out to ensure the validity of the data within the array.

[0041] L within T stack P ref Array write and write operations are performed in a first-in-first-out manner to ensure that each time base t ref The latest average instantaneous power is written to the array, and the average instantaneous power outside the time range T is output from the array, ensuring that the calculated average instantaneous power has a time range of T. Figure 4 The average instantaneous power within the medium period T is the data in the array.

[0042] The average instantaneous power write and output array operations are described in reference to... Figure 4 As shown. At time 0, all data in the array is 0. After one period T, the data P... reflstack This becomes the data at the end of the array; all data in the array that is 0 is removed from the array (indicating that one cycle T has elapsed). Then, new data P is written. ref0 When adding to the array, then P reflstack The array is popped. During period T, it is always guaranteed that the array contains L elements. stack There are 10 data points, and the data in the array is kept as the average instantaneous power data within 1 T periods. The P value is always the most recently calculated value. ref The data at the first address of the array is written, while the data at the last address of the array is output from the last address of the array.

[0043] (6) Accumulate all data in the array to obtain the average power within the current time range. The calculation of the average power accumulation is referred to... Figure 5 As shown.

[0044] The average power within period T is discretized into L stack The average instantaneous power P ref0 P ref1 P ref2 ...P reflstack-2 P Reflstack-1 Within this period, all discrete data are accumulated, that is, L within T is accumulated. stack P ref By accumulating the data, the average power data can be normalized, yielding the average power over time T, i.e., the average power P. avg =P ref0 +P ref1 +P ref2 +...+Preflstack-2 +P Reflstack-1 In the formula, n=L stack -1.

[0045] (7) If the specified time is too long, T can be used as the time base, and the average power P of the circuit breaker can be set. avg As the average instantaneous power, repeat steps (3) to (6) iteratively to calculate the circuit breaker T. new Average power P over time avg .

[0046] The average power P within the time range of time T is obtained. avg As the new average instantaneous power P ref Using time T as the new time base t ref By iterating, the average power P over a longer time range can be calculated. avg .

[0047] This average power is an important data element of the energy management system, and it is crucial for the energy calculation and distribution of the energy management system.

[0048] The specific embodiments described herein are merely illustrative of the principles and specific implementation methods of the present invention. Those skilled in the art to which this invention pertains may make various modifications or additions to the described specific embodiments or use similar methods to substitute them, without departing from the principles, topology, or exceeding the scope defined by the appended claims.

Claims

1. A method for calculating the average power of a DC circuit breaker over a specified time period, characterized in that: The steps are as follows: (1) When the circuit breaker is in the closed state, according to the circuit breaker current I now Voltage U now Calculate the instantaneous power P of the circuit breaker now =I now ×U now ; (2) Based on the instantaneous power P now Determine the minimum base t for calculating the average power of the circuit breaker ref Based on the time period T and the minimum time base t ref Calculate the array length L that needs to store instantaneous power. stack =T / t ref ; (3) The instantaneous power P now The average instantaneous power P is obtained by dividing the array into equal parts according to its length. ref =P now / L stack ; (4) Set the length to L stack The array is initially set to 0, and each time the minimum time t is reached... ref For the current average instantaneous power P ref Perform an array write operation; after writing, the starting data address is P. ref0 ; (5) According to the first-in-first-out rule, each time the first address of the array is written, the data at the last address of the array is popped out of the array. (6) For the average instantaneous power P in the array ref The average power P of the circuit breaker within the time period T is obtained by summing the results. avg =P ref0 +…+P refn , where n=L stack-1 .

2. The method for calculating the average power of a DC circuit breaker within a specified time according to claim 1, characterized in that, It also includes step (7): If the specified time is too long, use T as the time base and set the average power P of the circuit breaker. avg As the average instantaneous power, repeat steps (3) to (6) iteratively to calculate the circuit breaker T. new Average power P over time avg .

3. A method for calculating the average power of a DC circuit breaker within a specified time period according to claim 1 or 2, characterized in that, The average power P within the current time range is obtained. avg As the new average instantaneous power, the time range at that time is used as the new time base t. ref Iterative calculations are performed to obtain the average power over a wider time range.

4. The method for calculating the average power of a DC circuit breaker within a specified time according to claim 3, characterized in that, The minimum time base t ref The calculation steps are as follows: Assume a time base t1, and the time period T is divided into L equal parts by the time base t1. stack If the array length L is [number], then the array length L is [number]. stack =T / t1; if instantaneous power P now The power P obtained after accumulation sum If the data length overflows, it indicates that the amount of data to be calculated within the time period T is large, and the selected time base t1 is too short, causing the data overflow. In this case, the time width of the time base t1 needs to be increased, and the calculation needs to be recalculated until P... sum No data overflow; if P is calculated using time base t1 sum If no data overflow occurs, then the time base t ref =t1.

5. The method for calculating the average power of a DC circuit breaker within a specified time according to claim 4, characterized in that, In step (3) described above, the period T is time-based t ref Divided into L stack After that, the time base t ref Power P within ref / P now =t ref / T, yielding the average instantaneous power P ref =P now / L stack .

6. The method for calculating the average power of a DC circuit breaker within a specified time according to claim 5, characterized in that, The aforementioned step (4) is performed at each minimum time base t ref Calculate the current average instantaneous power P once. ref And perform an array start address write operation on the current instantaneous power.