Ship power system control simulation system

By designing a ship power system control simulation system that includes a main control terminal and a power device simulation terminal, the problem of difficulty in realizing the complex structure and failure of the ship power system in the prior art is solved, and a more efficient and realistic simulation effect is achieved.

CN120143643APending Publication Date: 2025-06-13NAVAL UNIV OF ENG PLA
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510192745.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-21
Publication Date
2025-06-13

AI Technical Summary

Technical Problem

The existing ship power system control simulation system has limitations in three-dimensional modeling and simulation reproduction, and it is difficult to truly simulate the complex internal structure and action mode of the ship power system.

Method used

A ship power system control simulation system is designed, using the main control terminal and the power device simulation terminal. Through components such as data acquisition, excitation signal output, PXI system controller, program development modules and communication modules are established to realize fault diagnosis and online simulation of the power device model.

Benefits of technology

It improves the authenticity and simulation efficiency of three-dimensional scene simulation, can more accurately simulate the complex structure and failure mode of the ship's power system, and enhances the effectiveness of teaching and training.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120143643A_ABST
    Figure CN120143643A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of ship power device control simulation, and particularly relates to a ship power system control simulation system. Comprising a master control terminal and a power device simulation terminal. The master control terminal is composed of a data acquisition board, an excitation signal board and a PXI system controller. The main control terminal comprises a program development module and a communication module; the program development module comprises an excitation output component, a data acquisition component, a data storage component, a feature extraction component, a fault input component and a fault diagnosis component; the communication module is used for establishing a data communication channel between the master control terminal and the power device simulation terminal; the power device simulation terminal is used for realizing establishment of a power device model in a ship power system and comprises a simulation model access component, a model interaction component, a model multi-thread synchronization component and a power device model construction component; the method can improve the authenticity of online simulation and enhance the feature expression ability of the model, and can be used for scenes such as ship power system control simulation teaching.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of ship power plant control simulation, and particularly relates to a ship power system control simulation system. Background Art

[0002] Ship power system control simulation is a training method that realizes the simulation operation and maintenance of a ship power plant system based on a three-dimensional model and 3D virtual reality technology. It establishes three-dimensional models of the structures of various devices in the ship power system through a three-dimensional modeling program and conducts three-dimensional reconstruction in a 3D virtual reality scene, facilitating trainees to complete various operation simulations of the power plant through various virtual operation devices, PCs, touch screens, etc. The current ship power system control simulation system is built based on a traditional VR simulation system. Relatively speaking, its three-dimensional modeling ability and simulation reproduction ability are limited by its modeling method and simulation method. Although it can create rich surface three-dimensional scenes, it is difficult to achieve a real simulation effect for the complex internal structure and action mode of the ship power and its control system. Summary of the Invention

[0003] The purpose of the present invention is to provide a ship power system control simulation system that is used to optimize the device simulation method and fault reproduction method in the current simulation system, improve the authenticity of three-dimensional scene simulation, and improve simulation efficiency.

[0004] To achieve the above purpose, the present invention adopts the following technical solutions.

[0005] A ship power system control simulation system includes a main control terminal and a power plant simulation terminal;

[0006] The main control terminal is composed of a data acquisition board, an excitation signal board, and a PXI system controller;

[0007] The main control terminal uses a data acquisition card to achieve multi-channel data acquisition, realizes data interaction with the labview program through a driver program; uses the excitation signal board to output a fault excitation signal in an offline state; uses the PXI system controller to adapt various terminals and peripherals, and establishes a program development module and a communication module;

[0008] The program development module includes the following functional components:

[0009] An excitation output component, which is used to connect to the excitation signal board, provides an excitation signal for fault diagnosis, and better stimulates the faults of the simulation circuit;

[0010] A data acquisition component, which links to the data acquisition board, establishes an input channel for fault diagnosis, completes the opening of the fault setting channel and the setting of the sampling frequency and sampling points, and samples each channel of the circuit;

[0011] A data storage component, which obtains the data acquired by the data acquisition component through a dedicated storage device via the LabVIEW program data interface for storage, and simultaneously creates a data access channel for subsequent use;

[0012] A feature extraction component, which is used to preprocess the circuit channel signals acquired by the data acquisition component, and extracts the extreme value data of the channel signals through the LabVIEW program plug-in as the channel signal feature data;

[0013] A fault entry component, which establishes a connection with the fault control signal access port of the power device simulation module, enters the fault diagnosis table and soft fault diagnosis model output by the power device simulation module into the system, and selects different fault modes and fault models for simulation;

[0014] The fault diagnosis component is used to simulate and judge the type of fault. The simulation and judgment of the type of fault specifically refers to the simulation and judgment of hard faults and the simulation and judgment of soft faults;

[0015] The communication module is used to establish a data communication channel between the main control terminal and the power device simulation terminal;

[0016] The power device simulation terminal is used to realize the establishment, input and output of the power device model in the ship power system, and is used to complete the online simulation of the power device. It mainly includes a simulation model access component, a model interaction component, a model multi-thread synchronization component, and a power device model construction component;

[0017] The simulation model access component is based on xml files and Dll dynamic link libraries to establish the model parameter exchange and joint standards and data interfaces for different types of power device simulation models, and establish the standard model expression form for different types of power device simulation models;

[0018] The model interaction component is based on the UDP / TCP protocol to establish a communication structure between the model and the external system, complete the encoding and parsing of the communication content, generate data packets that can be used for transfer and use between modules or components, and output the basic processes or algorithms for splitting the data packet content, extracting data, and processing information;

[0019] The model multi-thread synchronization component is used to establish a standard model state ID database when multiple models are concurrent, realize independent multi-threaded calls, realize multi-thread synchronization and provide a stable synchronization timer;

[0020] The power plant model building component is used to call the modeling program and 3D virtual reality tools. By combining hierarchical processing, modular processing, and nested model structures, it creates a power plant simulation model using standard models. It uses a parser to parse the input and output between standard models to complete the power plant simulation.

[0021] For a further improvement or preferred implementation of the aforementioned ship power system control simulation system, the excitation output component uses indicators and controls in the LabVIEW program to construct a fault excitation signal output, including parameters such as the amplitude, frequency, and duty cycle of the control output excitation.

[0022] For a further improvement or preferred implementation of the aforementioned ship power system control simulation system, the establishment of the standard model status ID database means defining the status IDs of different standard models respectively according to the status characteristics of the standard models of each module of the power system, and establishing a standard model status ID database.

[0023] Implementing multi-threaded independent calls means creating a call mechanism that can be used to independently run standard model simulations within multiple threads.

[0024] Implementing multi-threaded synchronization means establishing a standard model status control port within the multi-threaded running space to facilitate the synchronization and update of the statuses of all standard models within multiple threads according to the status IDs of the preset standard models.

[0025] Providing a stable synchronization timer means adjusting the timer interval based on the error between the actual elapsed time and the expected elapsed time. Specifically:

[0026] Measure the time elapsed since the last timing of the timer, and compare the elapsed time with the required timing time. If the elapsed time is less than the required timing time, increase the timer interval to compensate for the error. If the elapsed time is greater than the required timing time, decrease the timer interval.

[0027] For a further improvement or preferred implementation of the aforementioned ship power system control simulation system, the standard model corresponding model file consists of an xml file containing model basic information, a binary dynamic link library file, and auxiliary code. The auxiliary code is mainly used for encryption, marking, etc. of the model file.

[0028] For a further improvement or preferred implementation of the aforementioned ship power system control simulation system, the communication channel includes a UDP protocol data channel based on independent threads implemented between the power plant simulation terminal and each functional component within the program development module. The UDP protocol data channel is based on a blocking wait message mode, continuously monitors the data flow information within the data channel based on a preemption mechanism, and completes data transmission in real time. It also includes a PCI bus data transmission structure based on the Ethernet communication protocol between the power plant simulation terminal and the main control terminal.

[0029] For a further improvement or preferred implementation of the aforementioned ship power system control simulation system, the simulation and judgment of hard faults are specifically carried out as follows: the data acquisition component collects signals from the simulation board, extracts the original data from the corresponding stored data in the data storage component, extracts the maximum and minimum values of the collected signals by the feature extraction component, and verifies through the fault mode table in the fault entry component; by comparing and analyzing the signal feature values collected and extracted with the fault feature values in the fault mode table, it is confirmed whether the signal features match the fault feature range. If there are multiple matches, the fault type is output; if there is no match, the comparison and analysis of the next fault mode are carried out until all comparisons are completed, and the possible fault types are output. If there is no matching result, an unknown fault is output.

[0030] For the simulation and judgment of soft faults, specifically, the excitation output component is used to output a specified fault excitation signal to complete the excitation simulation of circuit soft faults, and the data acquisition component and data storage component are used to collect and store the output signals of the fault simulation board; the collected signal data is compared and analyzed with the fault data in the soft fault simulation diagnosis model input by the fault entry component to determine the soft fault type.

[0031] For a further improvement or preferred implementation of the aforementioned ship power system control simulation system, the data within the xml file includes the interface attribute parameters of the standard model. The parameters contain the input and output attributes of the interface variables, the data types of the variables, the storage types, and other standard model interface combination parameters. The parameters also contain the interface combination methods and types of the standard model; the Dll dynamic link library establishes the basic parameters for model invocation, which are used to set functions such as model initialization, model variable settings, and model operation modes. Based on the xml file and the Dll dynamic link library, the standard model data interface is defined to configure the input and output of variables, the trigger timing of operations, the event loop framework, the timing logic, etc. of the model.

[0032] For a further improvement or preferred embodiment of the foregoing ship power system control simulation system, the fault excitation signals constructed by the excitation output component mainly include DC excitation signals and pulse excitation signals; a multi-channel high-speed analog output chip is provided in the excitation signal board for multi-channel output of high-speed analog digital signals, and it also includes a multi-channel bidirectional data port for data interaction with the data acquisition component.

[0033] For a further improvement or preferred embodiment of the foregoing ship power system control simulation system, the PCI bus data transmission structure establishes a mapping table between the interface control file and the data file through a general database file. The PCI bus data transmission structure determines the correspondence between the data in the system and different interfaces by reading the mapping table, so as to facilitate the rapid loading of data. Brief Description of the Drawings

[0034] Figure 1 is a schematic diagram of the functional composition of the ship power system control simulation system;

[0035] Figure 2 is a schematic diagram of the analog structure for outputting fault excitation signals based on labview. Detailed Embodiments

[0036] The present invention will be described in detail below with reference to specific embodiments.

[0037] The present invention relates to a ship power system control simulation system, which is mainly used to provide an online simulation applicable to the complex structure of the power plant and various power plant fault modes in combination with the current simulation system, can improve the authenticity of the online simulation, enhance the model feature expression ability, and can be used in scenarios such as ship power system control simulation teaching.

[0038] As Figure 1 shown, the ship power system control simulation system of the present application mainly includes a main control terminal and a power plant simulation terminal.

[0039] Among them, the main control terminal is composed of a data acquisition board, an excitation signal board, and a PXI system controller

[0040] The main control terminal uses a data acquisition card to achieve multi-channel data acquisition, realizes data interaction with the labview program through a driver program; uses the excitation signal board to output fault excitation signals in an offline state; uses the PXI system controller to adapt various terminals and peripherals, and based on the above structure, the following function modules are established, including a program development module and a communication module;

[0041] The program development module includes:

[0042] Incentive output component, where the incentive output component is used to connect to the incentive signal board to provide an incentive signal for fault diagnosis, better stimulate analog circuit faults, and the incentive output component uses indicators and controls in the LabVIEW program to construct the output of the fault incentive signal, including parameters such as the amplitude, frequency, and duty cycle of the control output incentive;

[0043] The incentive signal board is equipped with an FPGA central controller, which is connected to the signal output card through the FPGA central controller. In this embodiment, the signal output card includes a passive switch output card, an active switch output card, a slow-changing analog signal source output card, and a fast-changing analog signal source output card;

[0044] Among them, the passive switch output card is used to output non-powered command signals, the active switch output card is used to output powered command signals and select different output voltages; the slow-changing analog signal output card is used to output DC signals, and the fast-changing analog signal output card is used to output AC signals such as sine waves and pulse waves. For each switch or signal output card, a self-check circuit is configured according to the characteristics of the signal and the monitoring requirements respectively;

[0045] In particular, as Figure 2 shown, the fault incentive signals constructed by the incentive output component mainly include DC incentive signals and pulse incentive signals; among them, the incentive signal board is equipped with a multi-channel high-speed analog output chip for multi-channel output of high-speed analog-to-digital signals, and also includes a multi-channel bidirectional data port for data interaction with the data acquisition component.

[0046] Data acquisition component, where the data acquisition component is connected to the data acquisition board to establish an input channel for fault diagnosis, complete the opening of the fault setting channel and the setting of the sampling frequency and sampling points, and sample each channel of the circuit;

[0047] Data storage component, where the data storage component stores the data obtained by the data acquisition component through a dedicated storage device via the LabVIEW program data interface, and at the same time creates a data access channel for subsequent use;

[0048] Feature extraction component, where the feature extraction component is used to preprocess the circuit channel signals obtained by the data acquisition component, and extract the extreme value data of the channel signals as the channel signal feature data through the LabVIEW program plug-in;

[0049] Fault entry component, where the fault entry component establishes a connection with the fault control signal access port of the power device simulation module, enters the fault diagnosis table and soft fault diagnosis model output by the power device simulation module into the system, and selects different fault modes and fault models for simulation;

[0050] The fault diagnosis component is used to simulate and judge the type of fault. Specifically, simulating and judging the type of fault means:

[0051] For the simulation and judgment of hard faults, specifically, the data acquisition component is used to collect signals from the simulation board, extract the original data from the corresponding stored data in the data storage component, extract the maximum and minimum values of the collected signals by the feature extraction component, and verify through the fault mode table in the fault entry component; by comparing and analyzing the signal feature values collected and extracted with the fault feature values in the fault mode table, confirm whether the signal features match the fault feature range. If there are multiple matches, output the fault type; if not, conduct a comparative analysis of the next fault mode until all comparisons are completed and output the possible fault type. If there is no matching result, output an unknown fault.

[0052] For the simulation and judgment of soft faults, specifically, it means using the excitation output component to output a specified fault excitation signal to complete the excitation simulation of circuit soft faults, and using the data acquisition component and data storage component to collect and store the output signals of the fault simulation board; through the fault data in the soft fault simulation diagnosis model input by the fault entry component, conduct a comparative analysis of the collected signal data to determine the soft fault type.

[0053] The communication module is used to establish a data communication channel between the main control terminal and the power device simulation terminal. The communication channel includes a UDP protocol data channel based on independent threads between the power device simulation terminal and each functional component in the program development module. The UDP protocol data channel is based on the blocking wait message mode, continuously monitors the data flow information in the data channel based on the preemptive mechanism, and completes data transmission in real time. It also includes a PCI bus data transmission structure based on the Ethernet communication protocol between the power device simulation terminal and the main control terminal.

[0054] Among them, the PCI bus data transmission structure is used to establish a general data transmission channel within each component and module to facilitate connection with common equipment and instruments.

[0055] To ensure the timing stability of PCI bus data transmission and at the same time ensure the sequential validity of each process under multi-model synchronous simulation, a CLK system clock is provided in the PCI bus data transmission structure, and each component and module connected to the PCI bus data transmission structure obtains timing information through the CLK system clock.

[0056] Among them, the main components of the PCI bus data transmission structure include the interface logic control part between the interface chip and the bus, the interface logic control part between the chip and the local bus, and the interface logic control part between the chip and the PCI external configuration register.

[0057] The bus interface logic control part is used to implement the processing of PCI bus signals; the bus interface logic control part is hardware-connected to each functional module or component of the system through the PXI interface, and establishes protocol control signals for addresses and data through the PXI protocol rules; its hardware circuit part includes: a reset signal RST circuit, a bus command and byte enable signal circuit, an address / data multiplexing signal circuit, a parity check signal and a stop signal circuit, a device initialization signal circuit, etc.;

[0058] The local bus interface logic control part is used to implement the processing of control signals and provide an address and data multiplexing function; the hardware part of the local bus interface logic control part includes: a mode selection signal circuit for determining the working mode of the local bus, a register selection signal, a local bus request and control signal circuit, etc.;

[0059] The external configuration register interface logic control part is used to provide an external interface and control circuit and PCI bus configuration requirements; the external configuration register interface logic control part includes a programmable memory, and uses the programmable memory to create a serial configuration interface to implement the configuration management of I / O ports, chip registers, and control signals;

[0060] Specifically, since different types of data have their obvious typical characteristics during the simulation process and are applied to relatively fixed data ports, to improve the data transmission efficiency, a mapping table between the interface control file and the data file is established through a general database file. The PCI bus data transmission structure determines the correspondence between the data in the system and different interfaces by reading the mapping table, so as to quickly load the data.

[0061] The power plant simulation terminal is used to implement the establishment, input and output of the power plant model in the ship power system, and is used to complete the online simulation of the power plant. It mainly includes a simulation model access component, a model interaction component, a model multi-thread synchronization component, and a power plant model construction component;

[0062] Among them, the simulation model access component is based on xml files and Dll dynamic link libraries to establish model parameter exchange and joint standards and data interfaces for different types of power plant simulation models, and establish a standard model expression form for different types of power plant simulation models; the standard model corresponding model file consists of an xml file containing the basic information of the model, a binary dynamic link library file, and auxiliary code; the auxiliary code is mainly used for encryption, marking, etc. of the model file;

[0063] Specifically, the simulation model access component analyzes whether the model parameters meet the requirements of the standard model through a custom instantiation tool after the model is created, and extracts the necessary model parameters to create a necessary parameter chain for the standard model; extracts the model variable parameters in the xml file through the initialization tool to initialize each variable, and at the same time reads the simulation timing information to prepare for the sequential execution of the model simulation; determines the final state of all model variables through the termination tool to locate the characteristics of the model simulation end node; resets the corresponding parameters in the instantiation tool through the reset tool at the start stage, end stage or specific stage of the model simulation, and resets the model simulation time.

[0064] The data in the xml file includes the interface attribute parameters of the standard model. The parameters contain the input and output attributes of the interface variables, the data types of the variables, the storage types and other standard model interface combination parameters. The parameters contain the interface combination methods and types of the standard model. The following code segment shows a partial configuration content of the xml file to meet the above requirements: ......

[0066] <complexity="real" dataType="double" dimensions="1"

[0067] dimensionsMode="Fixed" name="Stall" / >

[0068] <complexity="real" dataType="double" description="dimensions="1" dimensionsMode="Fixed" name="LowEnergy" / >

[0069] <complexity="real" dataType="double"

[0070] dimensions="1" dimensionsMode="Fixed" name="FCAF break" / >

[0071] <complexity="real" dataType="double" dimensions="1"

[0072] dimensionsMode="Fixed" name="AttackAngleExceedLimit'Kcomplexity="real" dataType="double" dimensions="1">

[0073] <complexity="real" dataType="double" dimensions="1"

[0074] dimensionsMode="Fixed" name="FailureiceAdvanceMode">

[0075] <complexity="real" dataType="double" dimensions="1"

[0076] dimensionsMode="Fixed" name="AileronLFailure" complexity="real" dataType="double" dimensions="1" dimensionsMode="Fixed"

[0077] name="AileronRFailure">

[0078] <complexity="real" dataType="double" dimensions="1"

[0079] dimensionsMode="Fixed" name="SpoilerFailure">

[0080] <complexity="real" dataType="double" dimensions="1"

[0081] dimensionsMode="Fixed" name="RudderFailure">

[0082] <complexity="real" dataType="double" dimensions="1"

[0083] dimensionsMode="Fixed" name="ElevatorLFailure">

[0084] <complexity="real" dataType="double" dimensions="1"

[0085] dimensionsMode="Fixed" name="ElevatorRFailure">

[0086] <complexity="real" dataType="double" dimensions="1"

[0087] dimensionsMode="Fixed" name="OverSpeedProtect">

[0088] <complexity="real" dataType="double" description="dimensions="1" dimensionsMode="Fixed" name="OverAlphaProtect"> .....

[0090] Among them, the Dll dynamic link library establishes the basic parameters for model invocation, which are used to set functions such as model initialization, model variable setting, and model operation mode. Based on the xml file and the standard model data interface of the Dll dynamic link library, the input and output of variables, the triggering timing of operations, the event loop framework, the timing logic, etc. of the model are configured;

[0091] Among them, the model interaction component establishes the communication structure between the model and the external system based on the UDP / TCP protocol, completes the encoding and parsing of communication content, generates data packets that can be used for transfer and use between modules or components, and outputs the basic processes or algorithms for splitting data packet content, data extraction, and information processing;

[0092] Specifically, the model interaction component realizes the analysis and processing of the simulation state between the standard model and the standard model through the model interaction tool built by itself or the model interaction tool of the movie modeling program. The model interaction tool includes a model state acquisition tool, a model Boolean operation tool, a simulation state control tool, a model parameter setting tool, etc.;

[0093] Among them, the model multi-thread synchronization component is used to establish a standard model state ID database when multiple models run concurrently, realize independent multi-threaded invocation, realize multi-thread synchronization, and provide a stable synchronization timer;

[0094] Establishing a standard model state ID database means defining the state IDs of different standard models respectively according to the state characteristics of each module's standard model in the power system, and establishing a standard model state ID database;

[0095] Realizing independent multi-threaded invocation means creating a call mechanism that can be used to independently run the standard model simulation within multiple threads;

[0096] Implementing multi-thread synchronization means establishing a standard model state control port within the multi-thread running space to facilitate the synchronization and update of all standard model states within the multi-thread according to the state ID of the preset standard model;

[0097] Providing a stable synchronization timer means adjusting the timer interval based on the error between the actual elapsed time and the desired elapsed time. Specifically: measure the time elapsed since the timer last timed, and compare the elapsed time with the required timing time. If the elapsed time is less than the required timing time, increase the timer interval to compensate for the error. If the elapsed time is greater than the required timing time, decrease the timer interval.

[0098] The power plant model construction component is used to call the modeling program and 3D virtual reality tools, combine hierarchical processing, modular processing, and nested model structures, and use the standard model to create a power plant simulation model; use the parser to parse the input and output between the standard models to complete the power plant simulation.

[0099] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than limiting the protection scope of the present invention. Although the present invention has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the present invention can be modified or equivalently replaced without departing from the essence and scope of the technical solutions of the present invention.

Claims

1. A ship power system control simulation system, characterized in that: Including main control terminal and power unit simulation terminal; The main control terminal is composed of a data acquisition board, an excitation signal board, and a PXI system controller; The main control terminal uses a data acquisition card to realize multi-channel data acquisition, and realizes data interaction with the labview program through a driver; uses an excitation signal board to realize fault excitation signal output in an offline state; uses a PXI system controller to adapt to various terminals and peripherals, and establishes a program development module and a communication module; The program development module includes the following functional components: An excitation output component, which is used to connect to an excitation signal board to provide an excitation signal for fault diagnosis and better stimulate analog circuit faults; A data acquisition component is connected to a data acquisition board, establishes an input channel for fault diagnosis, completes fault setting channel opening and sampling frequency and sampling point setting, and samples each channel of the circuit; A data storage component, which uses a dedicated storage device to obtain data acquired by the data acquisition component via a LabVIEW program data interface for storage, and creates a data access channel for subsequent use; A feature extraction component, wherein the feature extraction component is used to pre-process the circuit channel signal acquired by the data acquisition component, and extract extreme value data of the channel signal as channel signal feature data through a LabVIEW program plug-in; A fault entry component, wherein the fault entry component establishes a fault control signal access port with the power plant simulation module, enters the fault diagnosis table and soft fault diagnosis model output by the power plant simulation module into the system, and selects different fault modes and fault models for simulation; The fault diagnosis component is used to simulate and judge the type of fault, and the simulated judgment of the type of fault specifically refers to the simulated judgment of hard faults and the simulated judgment of soft faults; The communication module is used to establish a data communication channel between the main control terminal and the power plant simulation terminal; The power plant simulation terminal is used to establish, input and output the power plant model in the ship power system, and to complete the online simulation of the power plant. It mainly includes simulation model access components, model interaction components, model multi-thread synchronization components, and power plant model construction components; The simulation model access component establishes model parameter exchange and joint standards and data interfaces for different types of power plant simulation models based on XML files and Dll dynamic link libraries, and establishes standard model expressions for different types of power plant simulation models; The model interaction component establishes a communication structure between the model and the external system based on the UDP / TCP protocol, completes the encoding and parsing of the communication content, generates data packets that can be transferred and used between modules or components, and outputs the basic process or algorithm of data packet content splitting, data extraction, and information processing; The model multi-thread synchronization component is used to establish a standard model state ID database when multiple models are concurrent, realize multi-thread independent calling, realize multi-thread synchronization and provide a stable synchronization timer; The power plant model building component is used to call the modeling program and 3D virtual reality tools, combine hierarchical processing, modular processing and nested model structure, and use standard models to create a power plant simulation model; use the parser to parse the input and output between standard models to complete the power plant simulation.

2. The ship power system control simulation system according to claim 1, characterized in that: The excitation output component uses indicators and controls in the LabVIEW program to construct fault excitation signal output, including parameters such as the amplitude, frequency, and duty cycle of the output excitation.

3. The ship power system control simulation system according to claim 1, characterized in that: The establishment of the standard model state ID database refers to defining the state IDs of different standard models respectively according to the state characteristics of the standard models of each module of the power system, and establishing a quasi-model state ID database; Implementing multi-threaded independent calls means creating a calling mechanism that can be used to run standard model simulations independently in multiple threads; To realize multi-thread synchronization is to establish a standard model state control port in the multi-thread running space, so as to synchronize and update all standard model states in the multi-thread according to the state ID of the preset standard model; Providing a stable synchronized timer means adjusting the timer interval based on the error between the actual elapsed time and the expected elapsed time. Specifically: Measure the time that has passed since the timer last counted and compare the elapsed time to the desired timing time. If the elapsed time is less than the desired timing time, increase the timer interval to compensate for the error. If the elapsed time is greater than the desired timing time, decrease the timer interval.

4. The ship power system control simulation system according to claim 1, characterized in that: The model file corresponding to the standard model is composed of an XML file containing basic information of the model, a binary dynamic link library file and auxiliary codes; the auxiliary codes are mainly used for encryption, marking, etc. of the model file.

5. The ship power system control simulation system according to claim 1, characterized in that: The communication channel includes a UDP protocol data channel based on an independent thread between the power plant simulation terminal and the functional components in the program development module. The UDP protocol data channel is based on a blocking waiting message mode and a preemption mechanism to continuously monitor the data flow information in the data channel and complete the data transmission in real time. It also includes a PCI bus data transmission structure based on the Ethernet communication protocol between the power plant simulation terminal and the main control terminal.

6. The ship power system control simulation system according to claim 1, characterized in that: The simulation judgment of hard faults is to collect signals from the simulation board through the data acquisition component, extract the original data from the corresponding storage data of the data storage component, extract the maximum and minimum values ​​of the collected signals according to the feature extraction component, and verify them through the fault mode table in the fault entry component; compare and analyze the collected and extracted signal feature values ​​with the fault feature values ​​in the fault mode table to confirm whether the signal features match the fault feature range, and output the fault type if they match more than one. If there is no match, the next fault mode comparison analysis is performed until all comparisons are completed and the possible fault type is output. If there is no match result, an unknown fault is output; The simulation judgment of soft faults is specifically to use the excitation output component to output the specified fault excitation signal to complete the excitation simulation of the circuit soft fault, and use the data acquisition component and the data storage component to collect and store the output signal of the fault simulation board; The fault data in the soft fault simulation diagnosis model input by the fault entry component is compared and analyzed with the collected signal data to determine the softer fault type.

7. The ship power system control simulation system according to claim 1, characterized in that: The data in the xml file includes interface attribute parameters of the standard model, and the parameters include interface combination parameters of the standard model such as the input and output attributes of interface variables, the data type of variables, the storage type, etc., and the parameters include the interface combination mode and type of the standard model; the Dll dynamic link library establishes basic parameters for model calling, which are used to set model initialization, model variable setting, model operation mode and other functions, and configures the model for variable input and output, operation trigger timing, event loop framework, timing logic, etc. based on the xml file and the Dll dynamic link library definition of the standard model data interface.

8. The ship power system control simulation system according to claim 1, characterized in that: The fault excitation signal constructed by the excitation output component mainly includes a DC excitation signal and a pulse excitation signal; the excitation signal board is provided with a multi-channel high-speed analog output chip for multi-channel output of high-speed analog digital signals, and also includes a multi-channel bidirectional data port for data interaction with the data acquisition component.

9. The ship power system control simulation system according to claim 1, characterized in that: The PCI bus data transmission structure establishes a mapping table between the interface control file and the data file through a common database file. The PCI bus data transmission structure determines the correspondence between the data in the system and different interfaces by reading the mapping table, so as to load data quickly.

Citation Information

Patent Citations

  • Semi-object test platform of marine hybrid energy electric propelling system

    CN109979292A

  • Data-driven offline and online integrated simulation system and method for power distribution network

    WO2023115842A1