A joint simulation method and system for ship maneuvering control system

By constructing the DLL library and DDS protocol communication of the ship maneuvering control system on the Simulink platform, the problem of the black box nature of the FMU model and separation from the original platform in the existing technology is solved, and efficient and accurate joint simulation of the ship maneuvering control system is achieved.

CN118011865BActive Publication Date: 2024-10-15CHINA STATE SHIPBUILDING CORP LTD RESEARCH INSTITUTE 719
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410190104.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-19
Publication Date
2024-10-15
Estimated Expiration
2044-02-19

AI Technical Summary

Technical Problem

In the existing joint simulation of ship maneuvering control systems, the FMU model is a black box model, which is troublesome to modify and runs out of the original simulation software platform, resulting in inaccurate solutions and poor real-time performance.

Method used

Simulink is used as the main model to build the steering hydraulics, pipeline water movement and control subsystems, and realizes distributed communication through the DLL library and DDS protocol to ensure data exchange and coordination and improve simulation efficiency.

Benefits of technology

Cross-system joint simulation is realized, ensuring the accuracy of subsystem models and consistent synchronization of simulation clocks, improving simulation efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118011865B_ABST
    Figure CN118011865B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of ship power system simulation technology, and in particular to a ship maneuvering control system joint simulation method and system, the method comprising: using Simulink as a main model to respectively construct a steering hydraulic subsystem, a pipeline water transfer subsystem and a control subsystem; establishing independent DLL libraries, wherein the DLL libraries include DDS libraries of functions related to DDS communication; defining their own data types respectively; solving models according to respective simulation time steps, and generating data to be transmitted to other subsystems and / or the main model; receiving data in a timely manner based on a DDS protocol, and performing corresponding processing. The present invention solves the problem of difficulty in realizing cross-system joint simulation of a ship maneuvering control system, and can realize joint simulation on different clients based on a DDS distributed communication method, and can also take into account the accuracy of subsystem models and the consistent synchronization of simulation clocks.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of ship power system simulation, and in particular to a ship maneuvering and control system joint simulation method and system. Background Art

[0002] Ship maneuvering control systems generally include steering hydraulics, pipeline water transfer, control and other subsystems. The simulation of each subsystem mainly relies on the following tool software:

[0003] Steering hydraulics: mechanical motion simulation ADAMS (rudder transmission), hydraulic system simulation AMESim;

[0004] Pipeline water transfer: 1D fluid simulation Flowmaster;

[0005] Control systems: control logic simulation Simulink.

[0006] Often, the heads of different subsystems are responsible for independent simulation research of their respective subsystems. Currently, the simulation models are packaged in FMU format and imported into a unified platform to carry out joint simulation. However, the FMU model is a black box model, which is difficult to modify and runs independently of the original simulation software platform, resulting in defects such as inaccurate solutions and low real-time performance.

[0007] Therefore, the prior art urgently needs a ship power system simulation method and system that can improve simulation efficiency. Summary of the invention

[0008] The technical problem to be solved by the present invention is to provide a ship maneuvering control system joint simulation method and system for improving the simulation efficiency of the ship power system in view of the deficiencies of the above technical solutions.

[0009] In order to achieve the above object, according to one aspect of the present invention, a joint simulation method of a ship maneuvering control system is provided, comprising:

[0010] Step S101, using Simulink as the main model to construct the steering hydraulic subsystem, pipeline water transfer subsystem and control subsystem respectively;

[0011] Step S103, establishing independent DLL libraries for the main model, the steering hydraulic subsystem, the pipeline water transfer subsystem and the control subsystem, wherein the DLL library includes a DDS library of functions related to DDS communication;

[0012] Step S105, the main model, the steering hydraulic subsystem, the pipeline water transfer subsystem and the control subsystem respectively define their own data types;

[0013] Step S107: the steering hydraulic subsystem, pipeline water transfer subsystem and control subsystem solve the model according to their respective simulation time steps, and generate data to be transmitted to other subsystems and / or the main model;

[0014] Step S109: Based on the DDS protocol, the steering hydraulic subsystem, pipeline water transfer subsystem and control subsystem publish their respective data to the DDS center of the main model, and other subsystems that have subscribed to the corresponding data receive the data in a timely manner and perform corresponding processing.

[0015] Wherein, the step 101 comprises:

[0016] The steering hydraulic subsystem includes at least the following components: a hydraulic pump, a hydraulic valve, a hydraulic cylinder and a first sensor group;

[0017] The pipeline water transfer subsystem includes at least the following components: pipelines, valves, pumps and water tanks;

[0018] The control subsystem includes the following components: a second sensor group, a PID controller and an actuator.

[0019] Wherein, the step S103 includes:

[0020] Step S1031, implementing each subsystem as an independent DLL library, including a DDS library of functions related to DDS communication;

[0021] Step S1033: In each DLL library, use the API provided by the DDS library to create DDS publishers and subscribers, and define corresponding DDS topics and data types.

[0022] Step S1035: In the DLL library, use the DDS API to publish the subsystem data to the corresponding DDS topic, or subscribe to the data published by other subsystems;

[0023] Step S1037: In the main model, use the API provided by the DDS library to create DDS publishers and subscribers, and define corresponding DDS topics and data types; subscribe to the DDS topics published by each subsystem DLL library, receive the data published by it, and use the DDS API to publish the data to the DDS topics associated with each subsystem DLL library to achieve information transmission and coordination.

[0024] Wherein, in the steering hydraulic subsystem, the hydraulic pressure and the hydraulic cylinder displacement are published to the corresponding DDS topic, using the publishing function in the DDS API;

[0025] In the pipeline water transfer subsystem, subscribe to the DDS topic published by the steering hydraulic subsystem, obtain the hydraulic pressure data through the subscription function in the DDSAPI, and calculate the flow rate to publish it to the corresponding DDS topic;

[0026] In the control subsystem, the DDS topics published by the steering hydraulic subsystem and the pipeline water transfer subsystem are subscribed to, and the hydraulic pressure, hydraulic cylinder displacement and valve opening are obtained through the subscription function in the DDS API. After being processed by the control algorithm, the control instructions are published to the corresponding DDS topics.

[0027] Among them, in the main model, the DDS publisher and subscriber are created using the DDS API, and the DDS topics and data types that match the DDS topics and data types used in the DLL library are defined;

[0028] In the main model, subscribe to the DDS topic published in the DLL library and obtain the corresponding data through the subscription function in the DDS API;

[0029] In the main model, use the publish function in the DDS API to publish data to the DDS topic associated with the DLL library so that other sub-models or DLL libraries can obtain the data.

[0030] Wherein, the step S105 includes:

[0031] Determining input and output signals of the main model, the steering hydraulic subsystem, the pipeline water transfer subsystem and the control subsystem;

[0032] According to the functions and requirements of the main model, steering hydraulic subsystem, pipeline water transfer subsystem and control subsystem, the data type, dimension and data exchange method that each subsystem needs to exchange are clearly defined.

[0033] The data exchange modes include batch data exchange, event-triggered data exchange and data stream exchange.

[0034] Among them, the input and output of each sub-model and the main model are defined as follows:

[0035] The input of the steering hydraulic subsystem is control command (command) and sensor signal (sensor), and the output is hydraulic pressure (pressure) and hydraulic cylinder displacement (displacement);

[0036] The input of the pipeline water transfer subsystem is hydraulic pressure (pressure), valve opening (valve_opening), and the output is flow (flow);

[0037] The input of the control subsystem is a sensor signal (sensor) and a reference signal (reference), and the output is a control command (command);

[0038] The input interfaces of the main model are command, sensor, reference, and the output interfaces are pressure, displacement, and flow.

[0039] The data exchange and coordination in the main model are realized through the publish-subscribe mechanism of the DDS protocol, and the data between the sub-models are transmitted and shared on the DDS topic.

[0040] According to another aspect of the present invention, a ship maneuvering control system joint simulation system is also included, the system adopts the above-mentioned ship maneuvering control system joint simulation method, and the system includes:

[0041] A steering hydraulic subsystem, which is used to simulate a working model of the steering hydraulic subsystem;

[0042] A pipeline water transfer subsystem, which is used to simulate a working model of the pipeline water transfer subsystem;

[0043] A control subsystem, which is used to simulate a working model of the control subsystem;

[0044] The main model platform uses Simulink as the main model to carry the working model of the above subsystems, and simulates through the DLL library and DDS mechanism.

[0045] According to another aspect of the present invention, a computer-readable storage medium is also included, on which a data processing program is stored. The data processing program is executed by a processor to implement the above-mentioned ship power system simulation method based on the lumped parameter method.

[0046] Based on the above technical solution, the present application provides a joint simulation method and system for ship maneuvering control systems, which has the following technical effects:

[0047] The present invention solves the problem of difficulty in realizing cross-system joint simulation of ship maneuvering control systems. Based on the DDS distributed communication method, joint simulation can be realized on different clients, and the accuracy of subsystem models and the consistent synchronization of simulation clocks can also be taken into account. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] The accompanying drawings constituting a part of this document are used to provide a further understanding of this document. The exemplary embodiments and descriptions of this document are used to explain this document and do not constitute an improper limitation on this document. In the accompanying drawings:

[0049] Figure 1A flowchart of the joint simulation of a ship maneuvering and control system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0050] In order to make the purpose, technical solutions and advantages of the embodiments of this article clearer, the technical solutions in the embodiments of this article will be clearly and completely described below in conjunction with the drawings in the embodiments of this article. Obviously, the described embodiments are part of the embodiments of this article, not all of the embodiments. Based on the embodiments in this article, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this article. It should be noted that the embodiments in this article and the features in the embodiments can be combined with each other arbitrarily without conflict.

[0051] Unless the context clearly requires otherwise, throughout the specification and claims, the words "include", "comprising" and similar words should be interpreted in an inclusive sense rather than an exclusive or exhaustive sense; that is, in the sense of "including but not limited to".

[0052] Embodiment 1

[0053] like Figure 1 As shown, a joint simulation method of a ship maneuvering control system comprises:

[0054] Step S101, using Simulink as the main model to construct the steering hydraulic subsystem, pipeline water transfer subsystem and control subsystem respectively;

[0055] Step S103, establishing independent DLL libraries for the main model, the steering hydraulic subsystem, the pipeline water transfer subsystem and the control subsystem, wherein the DLL library includes a DDS library of functions related to DDS communication;

[0056] Step S105, the main model, the steering hydraulic subsystem, the pipeline water transfer subsystem and the control subsystem respectively define their own data types;

[0057] Step S107: the steering hydraulic subsystem, pipeline water transfer subsystem and control subsystem solve the model according to their respective simulation time steps, and generate data to be transmitted to other subsystems and / or the main model;

[0058] Step S109: Based on the DDS protocol, the steering hydraulic subsystem, pipeline water transfer subsystem and control subsystem publish their respective data to the DDS center of the main model, and other subsystems that have subscribed to the corresponding data receive the data in a timely manner and perform corresponding processing.

[0059] Embodiment 2

[0060] The present invention also includes a joint simulation method for a ship maneuvering control system, comprising:

[0061] Step S101, using Simulink as the main model to construct the steering hydraulic subsystem, pipeline water transfer subsystem and control subsystem respectively;

[0062] Step S103, establishing independent DLL libraries for the main model, the steering hydraulic subsystem, the pipeline water transfer subsystem and the control subsystem, wherein the DLL library includes a DDS library of functions related to DDS communication;

[0063] Step S105, the main model, the steering hydraulic subsystem, the pipeline water transfer subsystem and the control subsystem respectively define their own data types;

[0064] Step S107: the steering hydraulic subsystem, pipeline water transfer subsystem and control subsystem solve the model according to their respective simulation time steps, and generate data to be transmitted to other subsystems and / or the main model;

[0065] Step S109: Based on the DDS protocol, the steering hydraulic subsystem, pipeline water transfer subsystem and control subsystem publish their respective data to the DDS center of the main model, and other subsystems that have subscribed to the corresponding data receive the data in a timely manner and perform corresponding processing.

[0066] Wherein, the step 101 comprises:

[0067] The steering hydraulic subsystem includes at least the following components: a hydraulic pump, a hydraulic valve, a hydraulic cylinder and a first sensor group;

[0068] The pipeline water transfer subsystem includes at least the following components: pipelines, valves, pumps and water tanks;

[0069] The control subsystem includes the following components: a second sensor group, a PID controller and an actuator.

[0070] In one embodiment, in the steering hydraulic subsystem model, a flow-pressure characteristic curve is used to represent the relationship between the flow and pressure of the hydraulic pump, a valve characteristic curve is used to represent the relationship between the opening of the hydraulic valve and the flow, and a pressure-displacement characteristic curve is used to represent the relationship between the force and displacement of the hydraulic cylinder.

[0071] In the pipeline water transfer subsystem model, fluid mechanics equations (such as Bernoulli's equation) are used to represent the relationship between pipeline flow and pressure; valve characteristic curves are used to represent the relationship between valve opening and flow; and pump characteristic curves are used to represent the relationship between pump flow and pressure.

[0072] In the control subsystem model, the controller is represented by a proportional-integral-derivative (PID) control algorithm, where the output control command is related to the measurement error, integral error, and derivative error.

[0073] The second group of sensors can be represented using the sensor characteristic equation, which converts physical quantities (such as position, pressure) into electrical signals.

[0074] The actuator response can be represented using the actuator dynamic equations, which convert control commands into actual outputs.

[0075] Wherein, the step S103 includes:

[0076] Step S1031, implementing each subsystem as an independent DLL library, including a DDS library of functions related to DDS communication;

[0077] Step S1033: In each DLL library, use the API provided by the DDS library to create DDS publishers and subscribers, and define corresponding DDS topics and data types.

[0078] Step S1035: In the DLL library, use the DDS API to publish the subsystem data to the corresponding DDS topic, or subscribe to the data published by other subsystems;

[0079] Step S1037: In the main model, use the API provided by the DDS library to create DDS publishers and subscribers, and define corresponding DDS topics and data types; subscribe to the DDS topics published by each subsystem DLL library, receive the data published by it, and use the DDS API to publish the data to the DDS topics associated with each subsystem DLL library to achieve information transmission and coordination.

[0080] In one embodiment, in a DLL library:

[0081] Import the corresponding DDS library and header files to use the DDS API in the DLL library.

[0082] Use the DDS API to create DDS publishers and subscribers, and define corresponding DDS topics and data types. These topics and data types should match the DDS topics and data types used in the main model to achieve data exchange and sharing.

[0083] In the steering hydraulic system sub-model, data such as hydraulic pressure and hydraulic cylinder displacement are published to the corresponding DDS topics using the publishing function in the DDS API.

[0084] In the pipeline water transfer system sub-model, subscribe to the DDS topic published by the steering hydraulic system sub-model, obtain data such as hydraulic pressure through the subscription function in the DDSAPI, calculate the flow rate and other result data as needed, and then publish it to the corresponding DDS topic.

[0085] In the control system submodel, subscribe to the DDS topics published by the steering hydraulic system submodel and the pipeline water transfer system submodel, obtain data such as hydraulic pressure, hydraulic cylinder displacement and valve opening through the subscription function in the DDS API, and receive sensor data and reference data at the same time. After being processed by the control algorithm, the control instructions are published to the corresponding DDS topic.

[0086] In the main model:

[0087] Import the corresponding DDS library and header files to use the DDS API in the main model.

[0088] Use the DDS API to create DDS publishers and subscribers, and define the corresponding DDS topics and data types. These topics and data types should match the DDS topics and data types used in the DLL library.

[0089] In the main model, subscribe to the DDS topic published in the DLL library and obtain the corresponding data through the subscription function in the DDS API.

[0090] In the main model, obtain and process the data from the DLL library as needed, and pass the data to other sub-models or perform other operations.

[0091] In the main model, use the publish function in the DDS API to publish data to the DDS topic associated with the DLL library so that other sub-models or DLL libraries can obtain the data.

[0092] Wherein, in the steering hydraulic subsystem, the hydraulic pressure and the hydraulic cylinder displacement are published to the corresponding DDS topic, using the publishing function in the DDS API;

[0093] In the pipeline water transfer subsystem, subscribe to the DDS topic published by the steering hydraulic subsystem, obtain the hydraulic pressure data through the subscription function in the DDSAPI, and calculate the flow rate to publish it to the corresponding DDS topic;

[0094] In the control subsystem, the DDS topics published by the steering hydraulic subsystem and the pipeline water transfer subsystem are subscribed to, and the hydraulic pressure, hydraulic cylinder displacement and valve opening are obtained through the subscription function in the DDS API. After being processed by the control algorithm, the control instructions are published to the corresponding DDS topics.

[0095] Among them, in the main model, the DDS publisher and subscriber are created using the DDS API, and the DDS topics and data types that match the DDS topics and data types used in the DLL library are defined;

[0096] In the main model, subscribe to the DDS topic published in the DLL library and obtain the corresponding data through the subscription function in the DDS API;

[0097] In the main model, use the publish function in the DDS API to publish data to the DDS topic associated with the DLL library so that other sub-models or DLL libraries can obtain the data.

[0098] Wherein, the step S105 includes:

[0099] Determining input and output signals of the main model, the steering hydraulic subsystem, the pipeline water transfer subsystem and the control subsystem;

[0100] According to the functions and requirements of the main model, steering hydraulic subsystem, pipeline water transfer subsystem and control subsystem, the data type, dimension and data exchange method that each subsystem needs to exchange are clearly defined.

[0101] The data exchange modes include batch data exchange, event-triggered data exchange and data stream exchange.

[0102] In one embodiment, batch data exchange refers to periodically transmitting all interface data to other subsystems at one time. At the end of each simulation step, all data is collected and batched once. This method is suitable for situations where the amount of data is small and the real-time requirement is not high.

[0103] Event-triggered data exchange is the process of transmitting data only when an interface signal changes. By monitoring changes in interface signals, data transmission is triggered only when necessary. This can reduce the amount of data transmission and improve real-time performance.

[0104] Data stream exchange is to transmit interface data in real time during the simulation process. Each subsystem exchanges data through data stream to maintain the real-time and synchronization of data. This method is suitable for systems with high real-time requirements.

[0105] According to the choice of data exchange mode, select appropriate communication middleware to support data exchange and synchronization. Use DDS as the communication middleware, define the data type of each interface signal, and use the tools provided by DDS to define publishers and subscribers.

[0106] Set data transmission frequency and priority: According to the system requirements, set the transmission frequency and priority of interface data. This can ensure that the data transmission between different subsystems meets the real-time requirements and perform reasonable data exchange scheduling according to the priority.

[0107] Conduct interface testing and verification: After completing the interface definition and data exchange method planning, conduct interface testing and verification to ensure that the data transmission between subsystems is correct, the data format is consistent with the interface definition, and meets the system's functional and performance requirements.

[0108] Among them, the input and output of each sub-model and the main model are defined as follows:

[0109] The input of the steering hydraulic subsystem is control command (command) and sensor signal (sensor), and the output is hydraulic pressure (pressure) and hydraulic cylinder displacement (displacement);

[0110] The input of the pipeline water transfer subsystem is hydraulic pressure (pressure), valve opening (valve_opening), and the output is flow (flow);

[0111] The input of the control subsystem is a sensor signal (sensor) and a reference signal (reference), and the output is a control command (command);

[0112] The input interfaces of the main model are command, sensor, reference, and the output interfaces are pressure, displacement, and flow.

[0113] The data exchange and coordination in the main model are realized through the publish-subscribe mechanism of the DDS protocol, and the data between the sub-models are transmitted and shared on the DDS topic.

[0114] In one embodiment, the steering hydraulic system submodel, the pipeline water transfer system submodel and the control system submodel are linked together, and the DDS API is used in the DLL library. Data exchange and coordination with the DLL library are performed in the main model, making it relatively easy to modify and expand the system.

[0115] Subsystem modification: If you need to modify the logic or function in the steering hydraulic system submodel, pipeline water transfer system submodel or control system submodel, you can modify it in the corresponding DLL library. In this way, you can focus on the implementation of a specific subsystem without unnecessary impact on other subsystems or the main model.

[0116] Modification of DDS topics and data types: If you need to modify DDS topics or data types to adapt to changes or expansions in the system, you can update the definition and use in the DLL library and the main model accordingly. This ensures that data is correctly transferred and shared between subsystems.

[0117] Modification of data exchange and coordination: If the way data is exchanged and coordinated needs to be modified, such as changing the publishing and subscription strategy of data, corresponding changes can be made in the DLL library and the main model. This enables optimization or adjustment according to specific needs.

[0118] Embodiment 3

[0119] In the main model, the steering hydraulic subsystem, pipeline water transfer subsystem and control subsystem are linked together through the DDS communication interface:

[0120] Steering hydraulic subsystem:

[0121] Input: control command (command), sensor signal (sensor)

[0122] Output: hydraulic pressure, hydraulic cylinder displacement

[0123] Pipeline water transfer subsystem:

[0124] Input: hydraulic pressure (pressure), valve opening (valve_opening)

[0125] Output: flow

[0126] Control subsystem:

[0127] Input: sensor signal (sensor), reference signal (reference)

[0128] Output: control command

[0129] Integration part in the main model:

[0130] The DDS protocol is used to define the communication interface between sub-models, including data types and topics.

[0131] Create a DDS publisher and subscriber in the main model to implement data publishing and subscription.

[0132] Define the DDS topic and the corresponding data type:

[0133] Steering hydraulic system topics: hydraulic pressure and cylinder displacement

[0134] Topics of Pipeline Water Transfer System: Hydraulic Pressure (pressure) and Valve Opening (valve_opening)

[0135] Control system topics: sensor signals, reference signals and control commands

[0136] In the steering hydraulic subsystem, the hydraulic pressure and hydraulic cylinder displacement are published as data to the corresponding DDS topics.

[0137] In the pipeline water transfer subsystem, subscribe to the steering hydraulic system topic, obtain the hydraulic pressure data, and publish the flow as data to the pipeline water transfer system topic.

[0138] In the control subsystem, the steering hydraulic system topic and the pipeline water transfer system topic are subscribed to obtain the data of hydraulic pressure (pressure), hydraulic cylinder displacement (displacement) and valve opening (valve_opening), and at the same time receive sensor signals (sensor) and reference signals (reference). After being processed by the control algorithm, the control command (command) is published as data to the control system topic.

[0139] Data exchange and coordination in the main model are implemented through the publish-subscribe mechanism of the DDS protocol, and data between sub-models are transmitted and shared on the DDS topic.

[0140] Embodiment 4:

[0141] Using DLL (Dynamic Link Library) to associate subsystems includes the following steps:

[0142] Implement each subsystem as an independent DLL library. Each DLL library can contain the subsystem's function code, data structure, and interface definition.

[0143] In the main model, load and link these DLL libraries using an appropriate development environment (such as C++). The exact steps may vary depending on the development environment used.

[0144] In the main model, the DLL library is interacted with by calling functions. The functions defined in the DLL are called in the main model to realize data transfer and coordination between subsystems.

[0145] Define appropriate data structures or interfaces to enable the main model to exchange data with the DLL library. This can include the definition of input parameters and output results, as well as the sharing and transfer of data structures.

[0146] The following is an example of how to use a DLL library to associate a subsystem:

[0147] Steering Hydraulic System DLL Library:

[0148] Define functions GetHydraulicPressure() and GetHydraulicDisplacement() to obtain data of hydraulic pressure and hydraulic cylinder displacement.

[0149] Pipeline water transfer system DLL library:

[0150] Define functions SetHydraulicPressure() and SetValveOpening() to set the data of hydraulic pressure and valve opening.

[0151] Define the function GetFlow() to obtain flow data.

[0152] Control system DLL library:

[0153] Define functions SetSensorData() and SetReferenceData() to set sensor data and reference data.

[0154] Define the function GetCommand() to obtain the data of the control command.

[0155] Main Model:

[0156] Load and link the steering hydraulic system DLL, pipeline water transfer system DLL and control system DLL.

[0157] Data is passed and coordinated between the main model and the DLL using appropriate function calls.

[0158] Data exchange and coordination can be done through the following steps:

[0159] In the main model, the functions GetHydraulicPressure() and GetHydraulicDisplacement() of the steering hydraulic system DLL are called to obtain the data of hydraulic pressure and hydraulic cylinder displacement.

[0160] The acquired data of hydraulic pressure and hydraulic cylinder displacement are passed to the pipeline water transfer system DLL, the hydraulic pressure is set by the function SetHydraulicPressure(), and the valve opening is set by the function SetValveOpening().

[0161] Call the function GetFlow() of the pipeline water transfer system DLL to obtain the flow data.

[0162] The sensor data and reference data are passed to the control system DLL and set through the functions SetSensorData() and SetReferenceData().

[0163] Call the function GetCommand() of the control system DLL to obtain the data of the control command.

[0164] Embodiment 5

[0165] According to another aspect of the present invention, a ship maneuvering control system joint simulation system is also included, the system adopts the above-mentioned ship maneuvering control system joint simulation method, and the system includes:

[0166] A steering hydraulic subsystem, which is used to simulate a working model of the steering hydraulic subsystem;

[0167] A pipeline water transfer subsystem, which is used to simulate a working model of the pipeline water transfer subsystem;

[0168] A control subsystem, which is used to simulate a working model of the control subsystem;

[0169] The main model platform uses Simulink as the main model to carry the working model of the above subsystems, and simulates through the DLL library and DDS mechanism.

[0170] Embodiment 6

[0171] This embodiment includes a computer-readable storage medium, on which a data processing program is stored. The data processing program is executed by a processor to implement a joint simulation method of a ship maneuvering and control system in accordance with Embodiment 1.

[0172] It should be understood by those skilled in the art that the embodiments of this article can be provided as methods, devices (equipment), or computer program products. Therefore, this article can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, this article can adopt the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program codes. Computer storage media include volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data), including but not limited to RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. In addition, it is well known to those of ordinary skill in the art that communication media generally contain computer-readable instructions, data structures, program modules or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.

[0173] This document is described with reference to flowcharts and / or block diagrams of methods, apparatuses (devices), and computer program products according to the embodiments of this document. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0174] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0175] Although the preferred embodiments of this invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of this invention.

[0176] Obviously, those skilled in the art can make various changes and modifications to this article without departing from the spirit and scope of this article. Thus, if these modifications and variations of this article fall within the scope of the claims and their equivalents, then the intention of this article also includes these modifications and variations.

Claims

1. A joint simulation method for ship maneuvering control system, Features: The following steps are involved: Step S101, using Simulink as the main model to respectively construct a steering hydraulic subsystem, a pipeline water transfer subsystem and a control subsystem, wherein the steering hydraulic subsystem at least includes the following components: a hydraulic pump, a hydraulic valve, a hydraulic cylinder and a first sensor group; Step S103, establishing independent DLL libraries for the main model, the steering hydraulic subsystem, the pipeline water transfer subsystem and the control subsystem, wherein the DLL library includes a DDS library of functions related to DDS communication; Step S105, the main model, the steering hydraulic subsystem, the pipeline water transfer subsystem and the control subsystem respectively define their own data types; Step S107: the steering hydraulic subsystem, pipeline water transfer subsystem and control subsystem solve the model according to their respective simulation time steps, and generate data to be transmitted to other subsystems and / or the main model; Step S109: Based on the DDS protocol, the steering hydraulic subsystem, pipeline water transfer subsystem and control subsystem publish their respective data to the DDS center of the main model, and other subsystems that have subscribed to the corresponding data receive the data in a timely manner and perform corresponding processing; The step S101 comprises: The pipeline water transfer subsystem includes at least the following components: pipelines, valves, pumps and water tanks; The control subsystem includes the following components: a second sensor group, a PID controller and an actuator; The step S103 includes: Step S1031, implementing each subsystem as an independent DLL library, including a DDS library of functions related to DDS communication; Step S1033: In each DLL library, use the API provided by the DDS library to create a DDS publisher and subscriber, and define the corresponding DDS topic and data type; Step S1035: In the DLL library, use the DDS API to publish the subsystem data to the corresponding DDS topic, or subscribe to the data published by other subsystems; Step S1037: In the main model, use the API provided by the DDS library to create DDS publishers and subscribers, and define corresponding DDS topics and data types; subscribe to the DDS topics published by each subsystem DLL library, receive the data published by it, and use the DDS API to publish the data to the DDS topics associated with each subsystem DLL library to achieve information transmission and coordination; In the steering hydraulic subsystem, the hydraulic pressure and the hydraulic cylinder displacement are published to the corresponding DDS topic using the publishing function in the DDS API; In the pipeline water transfer subsystem, subscribe to the DDS topic published by the steering hydraulic subsystem, obtain the hydraulic pressure data through the subscription function in the DDS API, and calculate the flow rate to publish it to the corresponding DDS topic; In the control subsystem, subscribe to the DDS topics published by the steering hydraulic subsystem and the pipeline water transfer subsystem, obtain the hydraulic pressure, hydraulic cylinder displacement and valve opening through the subscription function in the DDS API, and publish the control instructions to the corresponding DDS topics after being processed by the control algorithm; In the main model, use the DDS API to create DDS publishers and subscribers, and define DDS topics and data types that match those used in the DLL library; In the main model, subscribe to the DDS topic published in the DLL library and obtain the corresponding data through the subscription function in the DDS API; In the main model, use the publish function in the DDS API to publish data to the DDS topic associated with the DLL library so that other sub-models or DLL libraries can obtain the data; The step S105 comprises: Determining input and output signals of the main model, the steering hydraulic subsystem, the pipeline water transfer subsystem and the control subsystem; According to the functions and requirements of the main model, steering hydraulic subsystem, pipeline water transfer subsystem and control subsystem, clearly define the data type, dimension and data exchange method that each subsystem needs to exchange; The data exchange modes include batch data exchange, event-triggered data exchange and data stream exchange; The input and output of each sub-model and the main model are defined as follows: The input of the steering hydraulic subsystem is control command (command) and sensor signal (sensor), and the output is hydraulic pressure (pressure) and hydraulic cylinder displacement (displacement); The input of the pipeline water transfer subsystem is hydraulic pressure (pressure), valve opening (valve_opening), and the output is flow (flow); The input of the control subsystem is a sensor signal (sensor) and a reference signal (reference), and the output is a control command (command); The input interface of the main model is control command (command), sensor signal (sensor), reference signal (reference), and the output interface is hydraulic pressure (pressure), hydraulic cylinder displacement (displacement), flow (flow); The data exchange and coordination in the main model are realized through the publish-subscribe mechanism of the DDS protocol, and the data between the sub-models are transmitted and shared on the DDS topic.

2. A ship maneuvering control system joint simulation system, the system adopts the ship maneuvering control system joint simulation method according to claim 1, the system include: A steering hydraulic subsystem, which is used to simulate a working model of the steering hydraulic subsystem; A pipeline water transfer subsystem, which is used to simulate a working model of the pipeline water transfer subsystem; A control subsystem, which is used to simulate a working model of the control subsystem; The main model platform uses Simulink as the main model to carry the working model of the above subsystems, and simulates through the DLL library and DDS mechanism.