Simulation method and device for circuit breaker of aircraft power simulation system
By directly obtaining the circuit breaker status through the vector container vector and the mapping container map, combined with the XML configuration file, efficient simulation of the circuit breaker of the aircraft power simulation system is achieved, solving the problems of heavy workload and long time in the existing technology and saving resources.
Patent Information
- Application Number
- CN202311665984.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-06
- Publication Date
- 2025-09-16
- Estimated Expiration
- 2043-12-06
AI Technical Summary
The existing simulation method for aircraft power system circuit breakers requires calling and calculating each one in the header file and source file, which is labor-intensive and time-consuming.
By using vector containers vector and map containers map, the position status of the circuit breaker and the power supply status of the busbar are directly obtained from the memory, logical operations are performed, the XML configuration file is generated and updated, and the vector container iterator is used to store and send data.
It reduces workload, shortens simulation time, saves resources, and simplifies the circuit breaker simulation process.
Smart Images

Figure CN117930670B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of simulation system simulation, and in particular to a simulation method and device for a circuit breaker of an aircraft power simulation system. Background Art
[0002] Currently, when simulating an aircraft's power system circuit breaker, the general simulation method is to define all the variables that the circuit breaker needs to receive and send in the simulation unit header file, first subscribe to the circuit breaker position variable in the simulation unit source file, then perform logical operations with the bus bar where the circuit breaker is located to obtain the circuit breaker power supply status, and finally send the circuit breaker power supply variable to other aircraft systems for use.
[0003] This method requires calling and calculating the circuit breakers one by one in the header file and source file, which is labor-intensive and time-consuming. Summary of the Invention
[0004] The present invention provides a simulation method and device for a circuit breaker of an aircraft power simulation system, which is used to solve the defects of the prior art in that calling and calculating the circuit breaker is labor-intensive and time-consuming, thereby reducing the workload, consuming less time, and saving resources.
[0005] The present invention provides a simulation method for a circuit breaker of an aircraft power simulation system, comprising:
[0006] Obtaining the position status of a circuit breaker in the aircraft power simulation system from a vector container vector, and obtaining the power supply status of a bus bar corresponding to the circuit breaker from a mapping container map;
[0007] A logical operation is performed based on the power supply state of the busbar corresponding to the circuit breaker and the position state corresponding to the circuit breaker to determine the power supply state of the circuit breaker.
[0008] According to a simulation method for a circuit breaker of an aircraft power simulation system provided by the present invention, the method further includes:
[0009] Generate an XML configuration file of the circuit breaker and a data structure corresponding to the XML configuration file;
[0010] Based on the XML configuration file and the data structure corresponding to the XML configuration file, the data of the circuit breaker is obtained through a vector container vector iterator, and the data of the circuit breaker is stored in the vector container vector.
[0011] According to a simulation method for a circuit breaker of an aircraft power simulation system provided by the present invention, the method further includes:
[0012] When the XML configuration file is updated, based on the updated XML configuration file and the data structure corresponding to the updated XML configuration file, the position variable of the circuit breaker is obtained through the vector container vector iterator, and based on the position variable of the circuit breaker, the position status of the circuit breaker in the vector container vector is updated.
[0013] According to a simulation method for a circuit breaker of an aircraft power simulation system provided by the present invention, the method further includes:
[0014] The power supply state of the circuit breaker is used as a sending variable of the circuit breaker, and the sending variable of the circuit breaker is sent through a vector container vector iterator.
[0015] According to a simulation method for a circuit breaker in an aircraft power simulation system provided by the present invention, the XML configuration file of the circuit breaker includes a parameter identification name of the circuit breaker, the subject of a sent circuit breaker variable, the subject of a received circuit breaker variable, the location of the circuit breaker, the name of the circuit breaker, the label of the circuit breaker, the bus bar corresponding to the circuit breaker, the position status of the circuit breaker, and the power supply status of the circuit breaker.
[0016] The present invention also provides a simulation device for a circuit breaker of an aircraft power simulation system, comprising:
[0017] an acquisition module, configured to acquire a position status of a circuit breaker in an aircraft power simulation system from a vector container vector, and to acquire a power supply status of a bus bar corresponding to the circuit breaker from a mapping container map;
[0018] The determination module is configured to perform a logic operation based on the power supply state of the busbar corresponding to the circuit breaker and the position state corresponding to the circuit breaker to determine the power supply state of the circuit breaker.
[0019] According to the present invention, a simulation device for a circuit breaker of an aircraft power simulation system is provided, wherein the device further comprises a generation and storage module for:
[0020] Generate an XML configuration file of the circuit breaker and a data structure corresponding to the XML configuration file;
[0021] Based on the XML configuration file and the data structure corresponding to the XML configuration file, the data of the circuit breaker is obtained through a vector container vector iterator, and the data of the circuit breaker is stored in the vector container vector.
[0022] According to the present invention, a simulation device for a circuit breaker of an aircraft power simulation system is provided, wherein the device further includes a receiving and updating module for:
[0023] When the XML configuration file is updated, based on the updated XML configuration file and the data structure corresponding to the updated XML configuration file, the position variable of the circuit breaker is obtained through the vector container vector iterator, and based on the position variable of the circuit breaker, the position status of the circuit breaker in the vector container vector is updated.
[0024] According to the present invention, a simulation device for a circuit breaker of an aircraft power simulation system is provided, wherein the device further includes a sending module for:
[0025] The power supply state of the circuit breaker is used as a sending variable of the circuit breaker, and the sending variable of the circuit breaker is sent through a vector container vector iterator.
[0026] According to the present invention, a simulation device for a circuit breaker in an aircraft power simulation system is provided. The XML configuration file of the circuit breaker includes a parameter identification name of the circuit breaker, the subject of a sent circuit breaker variable, the subject of a received circuit breaker variable, the location of the circuit breaker, the name of the circuit breaker, the label of the circuit breaker, the bus bar corresponding to the circuit breaker, the position status of the circuit breaker, and the power supply status of the circuit breaker.
[0027] The present invention also provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the simulation method for the circuit breaker of the aircraft power simulation system as described above is implemented.
[0028] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method for simulating a circuit breaker of an aircraft power simulation system as described above is implemented.
[0029] The present invention provides a method and device for simulating circuit breakers in an aircraft power simulation system. By obtaining the position status of circuit breakers in the aircraft power simulation system from a vector container (vector), and obtaining the power supply status of the busbar corresponding to the circuit breaker from a mapping container (map), logical operations are performed to determine the power supply status of the circuit breaker. Compared to the prior art, which requires calling and calculating circuit breakers one by one in header and source files, this method eliminates the need to perform logical operations on circuit breaker variables one by one, thereby reducing workload, saving time, and conserving resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the technical solutions in the present invention or the prior art, a brief introduction is given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0031] Figure 1 A schematic diagram of a simulation method for a circuit breaker of an aircraft power simulation system provided by the present invention;
[0032] Figure 2 A schematic structural diagram of a simulation device for a circuit breaker of an aircraft power simulation system provided by the present invention;
[0033] Figure 3 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0034] To make the objectives, technical solutions, and advantages of the present invention more clear, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the embodiments described are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the present invention.
[0035] When simulating an aircraft's power system circuit breakers, the typical approach is to define all the variables the circuit breaker needs to send and receive in the simulation unit's header file. In the simulation unit's source file, the circuit breaker position variable is subscribed to. This variable is then logically combined with the bus bar where the circuit breaker resides to determine the circuit breaker's power supply status. Finally, the circuit breaker power supply variable is sent to other aircraft systems for use. This method requires calling and calculating each circuit breaker individually in the header and source files, which is labor-intensive and time-consuming.
[0036] Therefore, the present invention provides a simulation method and device for a circuit breaker of an aircraft power simulation system, which can simulate the circuit breaker in a simpler way, thereby reducing workload, consuming less time, and saving resources.
[0037] Figure 1 A schematic diagram of a simulation method for a circuit breaker of an aircraft power simulation system provided by the present invention is shown as follows: Figure 1 As shown, the method includes the following steps:
[0038] Step 100: Obtain the position status of a circuit breaker in the aircraft power simulation system from the vector container vector, and obtain the power supply status of the bus bar corresponding to the circuit breaker from the mapping container map.
[0039] Step 101: Perform a logical operation based on the power supply state of the busbar corresponding to the circuit breaker and the position state corresponding to the circuit breaker to determine the power supply state of the circuit breaker.
[0040] Specifically, both vector containers and map containers are provided by the C++ Standard Library for storing and organizing data. A vector container is equivalent to a dynamic array, storing a series of elements of the same data type. A map container is an associative container that can store a series of key-value pairs.
[0041] Therefore, the position status of the circuit breaker in the aircraft power simulation system can be stored in the vector container vector, and the power supply status of all bus bars corresponding to the circuit breaker and its keyword can be stored in the mapping container map in the form of "key-value" pairs.
[0042] In the prior art, during the simulation of a circuit breaker, the circuit breakers need to be called one by one from header files and source files, requiring disk access and file parsing, involving more complex algorithms, heavy workload, and a long time consumption.
[0043] By storing the position status of circuit breakers in a vector container (vector), and the power supply status of the corresponding busbars in a map container (map), the position status of the circuit breaker can be retrieved from the vector container (vector), and the power supply status of the corresponding busbars can be retrieved from the map container (map). The solution provided by the present invention allows data to be directly retrieved from memory without requiring complex algorithms, reducing workload and improving access speed.
[0044] After obtaining the position state of the circuit breaker and the power supply state of the bus bar corresponding to the circuit breaker, a logical operation can be performed based on the power supply state of the bus bar corresponding to the circuit breaker and the position state corresponding to the circuit breaker to determine the power supply state of the circuit breaker.
[0045] In this process, compared with the existing technology in which the circuit breakers need to be calculated one by one from the header file and the source file during the circuit breaker simulation process, there is no need to perform logical operations on the circuit breaker variables one by one, thus saving a lot of work.
[0046] In some implementations, the above method can be implemented using a specific vector container iterator. Specifically, the specific vector container iterator is used to obtain the position status of a circuit breaker in the aircraft power simulation system from a vector container (vector), and to obtain the power supply status of a bus bar corresponding to the circuit breaker from a mapping container (map). A logical operation is then performed based on the power supply status of the bus bar corresponding to the circuit breaker and the position status of the circuit breaker to determine the power supply status of the circuit breaker.
[0047] The present invention provides a method for simulating circuit breakers in an aircraft power simulation system. This method obtains the position status of circuit breakers in the aircraft power simulation system from a vector container (vector), and obtains the power supply status of the busbars corresponding to the circuit breakers from a mapping container (map), and then performs logical operations to determine the power supply status of the circuit breakers. Compared to the prior art method, which requires calling and calculating circuit breakers one by one in header and source files, this method eliminates the need to perform logical operations on circuit breaker variables one by one, thereby reducing workload, saving time, and conserving resources.
[0048] According to the present invention, a simulation method for a circuit breaker of an aircraft power simulation system is provided, the method further comprising:
[0049] Generate the circuit breaker's XML configuration file and the data structure corresponding to the XML configuration file;
[0050] Based on the XML configuration file and the data structure corresponding to the XML configuration file, the circuit breaker data is obtained through the vector container vector iterator, and the circuit breaker data is stored in the vector container vector.
[0051] Specifically, Extensible Markup Language (XML) is a markup language used to describe and transmit data, using tags to identify the structure and content of data. Before obtaining the position status of a circuit breaker in an aircraft power simulation system from a vector container, an XML configuration file for the circuit breaker and a data structure corresponding to the XML configuration file can be generated.
[0052] The purpose of an XML data structure is to map XML data to a data structure within a program, making it easier to process, access, validate, and convert it. Data structures provide a convenient and efficient way to represent and manipulate XML data, making the processing and application of XML data more flexible and reliable.
[0053] According to a simulation method for a circuit breaker in an aircraft power simulation system provided by the present invention, the circuit breaker's XML configuration file includes the circuit breaker's parameter identification name, the subject of a sent circuit breaker variable, the subject of a received circuit breaker variable, the location of the circuit breaker, the circuit breaker's name, the circuit breaker's label, the bus bar corresponding to the circuit breaker, the circuit breaker's position status, and the circuit breaker's power supply status.
[0054] For example, the parameters that need to be configured for the circuit breaker in the circuit breaker's XML configuration file include: the circuit breaker's parameter identification name (name), which is used to identify the circuit breaker; the topic (pubTopic) of the sent circuit breaker variable, which is used to uniquely identify the variable and is one of the variable's identifiers; the topic (subTopic) of the received circuit breaker variable, which is used to uniquely identify the variable and is one of the variable's identifiers; the circuit breaker's location (panel), the circuit breaker's name (cbName), and the circuit breaker's number (cbNumber), these three parameters are used together to uniquely identify the variable and are one of the variable's identifiers; the bus bar (upBus) corresponding to the circuit breaker and the circuit breaker's position status (cbStatus), these two parameters are used together to calculate the circuit breaker's power supply status; the circuit breaker's power supply status (cbPower), as the circuit breaker's sent variable.
[0055] In the embodiment of the present invention, all circuit breakers are configured through XML files. When adding or deleting circuit breakers, the XML configuration files can be directly modified without compiling the code, thereby simplifying the circuit breaker simulation process and saving a lot of time.
[0056] In the C++ standard library, vector containers provide iterators for traversing and accessing elements in the container. Vector container iterators can be viewed as pointers to elements in the vector container, allowing traversal and manipulation of the elements in the vector container. Therefore, after generating the circuit breaker's XML configuration file and the corresponding data structure, the vector container iterator can be used to retrieve the circuit breaker data based on the XML configuration file and the corresponding data structure, and then store the circuit breaker data in the vector container.
[0057] According to the present invention, a simulation method for a circuit breaker of an aircraft power simulation system is provided, the method further comprising:
[0058] When the XML configuration file is updated, based on the updated XML configuration file and the data structure corresponding to the updated XML configuration file, the position variable of the circuit breaker is obtained through the vector container vector iterator, and based on the position variable of the circuit breaker, the position status of the circuit breaker in the vector container vector is updated.
[0059] Specifically, because the XML configuration file can be modified directly, when the XML configuration file is updated, the updated XML configuration file and the data structure corresponding to the updated XML configuration file can be obtained.
[0060] Then, the position variable of the circuit breaker can be obtained through the vector container vector iterator according to the updated XML configuration file and the data structure corresponding to the updated XML configuration file, that is, the variable value related to the position state in the vector container vector iterator is updated to the value corresponding to the position state in the updated XML configuration file, and the position state of the circuit breaker in the vector container vector is updated according to the position variable in the vector container vector iterator.
[0061] According to the present invention, a simulation method for a circuit breaker of an aircraft power simulation system is provided, the method further comprising:
[0062] The power supply state of the circuit breaker is used as the sending variable of the circuit breaker, and the sending variable of the circuit breaker is sent through the vector container vector iterator.
[0063] Specifically, after determining the power supply status of the circuit breaker based on the position status of the circuit breaker and the power supply status of the bus bar corresponding to the circuit breaker, the power supply status of the circuit breaker can be used as the sending variable of the circuit breaker, and the sending variable of the circuit breaker can be sent to other aircraft systems in need through the vector container vector iterator, thereby completing the simulation of the aircraft power simulation system.
[0064] The simulation device of the electromechanical power supply simulation system circuit breaker provided by the present invention is described below. The simulation device of the electromechanical power supply simulation system circuit breaker described below and the simulation method of the electromechanical power supply simulation system circuit breaker described above can be referred to each other.
[0065] Figure 2 The schematic diagram of the structure of the simulation device of the aircraft power supply simulation system circuit breaker provided by the present invention is as follows: Figure 2 As shown, the device includes:
[0066] An acquisition module 200 is configured to acquire the position status of a circuit breaker in the aircraft power simulation system from a vector container vector, and to acquire the power supply status of a bus bar corresponding to the circuit breaker from a mapping container map;
[0067] The determination module 210 is configured to perform a logic operation based on the power supply status of the busbar corresponding to the circuit breaker and the position status corresponding to the circuit breaker to determine the power supply status of the circuit breaker.
[0068] According to the present invention, a simulation device for a circuit breaker of an aircraft power simulation system is provided, the device further comprising a generation and storage module for:
[0069] Generate the circuit breaker's XML configuration file and the data structure corresponding to the XML configuration file;
[0070] Based on the XML configuration file and the data structure corresponding to the XML configuration file, the circuit breaker data is obtained through the vector container vector iterator, and the circuit breaker data is stored in the vector container vector.
[0071] According to the present invention, a simulation device for a circuit breaker of an aircraft power simulation system is provided, the device further comprising a receiving and updating module for:
[0072] When the XML configuration file is updated, based on the updated XML configuration file and the data structure corresponding to the updated XML configuration file, the position variable of the circuit breaker is obtained through the vector container vector iterator, and based on the position variable of the circuit breaker, the position status of the circuit breaker in the vector container vector is updated.
[0073] According to the present invention, a simulation device for a circuit breaker of an aircraft power simulation system is provided, the device further comprising a sending module for:
[0074] The power supply state of the circuit breaker is used as the sending variable of the circuit breaker, and the sending variable of the circuit breaker is sent through the vector container vector iterator.
[0075] According to the present invention, a simulation device for a circuit breaker in an aircraft power simulation system includes an XML configuration file for the circuit breaker, including a parameter identification name of the circuit breaker, a subject of a sent circuit breaker variable, a subject of a received circuit breaker variable, a location of the circuit breaker, a name of the circuit breaker, a number of the circuit breaker, a bus bar corresponding to the circuit breaker, a position status of the circuit breaker, and a power supply status of the circuit breaker.
[0076] Figure 3 A schematic diagram of the structure of the electronic device provided by the present invention, such as Figure 3As shown, the electronic device may include: a processor 310, a communications interface 320, a memory 330, and a communications bus 340, wherein the processor 310, the communications interface 320, and the memory 330 communicate with each other via the communications bus 340. The processor 310 may call the logic instructions in the memory 330 to execute the simulation method of the aircraft power supply simulation system circuit breaker provided by the above methods, which includes:
[0077] Obtain the position status of the circuit breaker in the aircraft power simulation system from the vector container vector, and obtain the power supply status of the bus bar corresponding to the circuit breaker from the mapping container map;
[0078] Based on the power supply state of the busbar corresponding to the circuit breaker and the position state corresponding to the circuit breaker, a logical operation is performed to determine the power supply state of the circuit breaker.
[0079] According to the present invention, a simulation method for a circuit breaker of an aircraft power simulation system is provided, the method further comprising:
[0080] Generate the circuit breaker's XML configuration file and the data structure corresponding to the XML configuration file;
[0081] Based on the XML configuration file and the data structure corresponding to the XML configuration file, the circuit breaker data is obtained through the vector container vector iterator, and the circuit breaker data is stored in the vector container vector.
[0082] According to the present invention, a simulation method for a circuit breaker of an aircraft power simulation system is provided, the method further comprising:
[0083] When the XML configuration file is updated, based on the updated XML configuration file and the data structure corresponding to the updated XML configuration file, the position variable of the circuit breaker is obtained through the vector container vector iterator, and based on the position variable of the circuit breaker, the position status of the circuit breaker in the vector container vector is updated.
[0084] According to the present invention, a simulation method for a circuit breaker of an aircraft power simulation system is provided, the method further comprising:
[0085] The power supply state of the circuit breaker is used as the sending variable of the circuit breaker, and the sending variable of the circuit breaker is sent through the vector container vector iterator.
[0086] According to a simulation method for a circuit breaker in an aircraft power simulation system provided by the present invention, the circuit breaker's XML configuration file includes the circuit breaker's parameter identification name, the subject of a sent circuit breaker variable, the subject of a received circuit breaker variable, the location of the circuit breaker, the circuit breaker's name, the circuit breaker's label, the bus bar corresponding to the circuit breaker, the circuit breaker's position status, and the circuit breaker's power supply status.
[0087] In addition, the logic instructions in the above-mentioned memory 330 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling 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 method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0088] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method for simulating a circuit breaker of an aircraft power simulation system provided by the above methods is implemented. The method includes:
[0089] Obtain the position status of the circuit breaker in the aircraft power simulation system from the vector container vector, and obtain the power supply status of the bus bar corresponding to the circuit breaker from the mapping container map;
[0090] Based on the power supply state of the busbar corresponding to the circuit breaker and the position state corresponding to the circuit breaker, a logical operation is performed to determine the power supply state of the circuit breaker.
[0091] According to the present invention, a simulation method for a circuit breaker of an aircraft power simulation system is provided, the method further comprising:
[0092] Generate the circuit breaker's XML configuration file and the data structure corresponding to the XML configuration file;
[0093] Based on the XML configuration file and the data structure corresponding to the XML configuration file, the circuit breaker data is obtained through the vector container vector iterator, and the circuit breaker data is stored in the vector container vector.
[0094] According to the present invention, a simulation method for a circuit breaker of an aircraft power simulation system is provided, the method further comprising:
[0095] When the XML configuration file is updated, based on the updated XML configuration file and the data structure corresponding to the updated XML configuration file, the position variable of the circuit breaker is obtained through the vector container vector iterator, and based on the position variable of the circuit breaker, the position status of the circuit breaker in the vector container vector is updated.
[0096] According to the present invention, a simulation method for a circuit breaker of an aircraft power simulation system is provided, the method further comprising:
[0097] The power supply state of the circuit breaker is used as the sending variable of the circuit breaker, and the sending variable of the circuit breaker is sent through the vector container vector iterator.
[0098] According to a simulation method for a circuit breaker in an aircraft power simulation system provided by the present invention, the circuit breaker's XML configuration file includes the circuit breaker's parameter identification name, the subject of a sent circuit breaker variable, the subject of a received circuit breaker variable, the location of the circuit breaker, the circuit breaker's name, the circuit breaker's label, the bus bar corresponding to the circuit breaker, the circuit breaker's position status, and the circuit breaker's power supply status.
[0099] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., they may be located in one location or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of the present embodiment. Persons of ordinary skill in the art will be able to understand and implement the present invention without inventive effort.
[0100] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, or of course, by hardware. Based on this understanding, the essence of the above technical solution or the part that contributes to the existing technology can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or certain parts of the embodiments.
[0101] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims
1. A simulation method for a circuit breaker of an aircraft power simulation system, characterized in that: include: Obtaining the position status of a circuit breaker in the aircraft power simulation system from a vector container vector, and obtaining the power supply status of a bus bar corresponding to the circuit breaker from a mapping container map; performing a logic operation based on the power supply state of the busbar corresponding to the circuit breaker and the position state corresponding to the circuit breaker to determine the power supply state of the circuit breaker; Generate an XML configuration file of the circuit breaker and a data structure corresponding to the XML configuration file; based on the XML configuration file and the data structure corresponding to the XML configuration file, obtain data of the circuit breaker through a vector container vector iterator, and store the data of the circuit breaker in the vector container vector; the XML configuration file includes the name of the circuit breaker, the label of the circuit breaker, the bus bar corresponding to the circuit breaker, and the position status of the circuit breaker.
2. The simulation method for a circuit breaker of an aircraft power simulation system according to claim 1, characterized in that: The method further comprises: When the XML configuration file is updated, based on the updated XML configuration file and the data structure corresponding to the updated XML configuration file, the position variable of the circuit breaker is obtained through the vector container vector iterator, and based on the position variable of the circuit breaker, the position status of the circuit breaker in the vector container vector is updated.
3. The simulation method for a circuit breaker of an aircraft power simulation system according to claim 1, characterized in that: The method further comprises: The power supply state of the circuit breaker is used as a sending variable of the circuit breaker, and the sending variable of the circuit breaker is sent through a vector container vector iterator.
4. The method for simulating a circuit breaker of an aircraft power simulation system according to claim 1, wherein: The XML configuration file of the circuit breaker includes the parameter identification name of the circuit breaker, the subject of the sent circuit breaker variable, the subject of the received circuit breaker variable, the location of the circuit breaker, the name of the circuit breaker, the label of the circuit breaker, the bus bar corresponding to the circuit breaker, the position status of the circuit breaker and the power supply status of the circuit breaker.
5. A simulation device for a circuit breaker of an aircraft power simulation system, characterized in that: include: an acquisition module, configured to acquire a position status of a circuit breaker in an aircraft power simulation system from a vector container vector, and to acquire a power supply status of a bus bar corresponding to the circuit breaker from a mapping container map; a determination module, configured to perform a logical operation based on the power supply state of the busbar corresponding to the circuit breaker and the position state corresponding to the circuit breaker to determine the power supply state of the circuit breaker; Generate an XML configuration file of the circuit breaker and a data structure corresponding to the XML configuration file; based on the XML configuration file and the data structure corresponding to the XML configuration file, obtain data of the circuit breaker through a vector container vector iterator, and store the data of the circuit breaker in the vector container vector; the XML configuration file includes the name of the circuit breaker, the label of the circuit breaker, the bus bar corresponding to the circuit breaker, and the position status of the circuit breaker.
6. The simulation device for a circuit breaker of an aircraft power simulation system according to claim 5, characterized in that: The device further includes a receiving and updating module, configured to: When the XML configuration file is updated, based on the updated XML configuration file and the data structure corresponding to the updated XML configuration file, the position variable of the circuit breaker is obtained through the vector container vector iterator, and based on the position variable of the circuit breaker, the position status of the circuit breaker in the vector container vector is updated.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the program, the simulation method for the aircraft power supply simulation system circuit breaker according to any one of claims 1 to 4 is implemented.
8. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the simulation method of the aircraft power supply simulation system circuit breaker according to any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Network Fault Reconfiguration Method for Aircraft Distributed Power Distribution Systems
CN102270837A
On-line monitoring and diagnosing system and method for mechanical state of high-voltage circuit breaker
CN103487749A