CN115826935B - Digital twin model integration system and method based on unified language middleware - Google Patents

Digital twin model integration system and method based on unified language middleware Download PDF

Info

Publication number
CN115826935B
CN115826935B CN202310112633.0A CN202310112633A CN115826935B CN 115826935 B CN115826935 B CN 115826935B CN 202310112633 A CN202310112633 A CN 202310112633A CN 115826935 B CN115826935 B CN 115826935B
Authority
CN
China
Prior art keywords
digital twin
language
twin model
model
unified
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310112633.0A
Other languages
Chinese (zh)
Other versions
CN115826935A (en
Inventor
吴雪莹
任琳琳
刘朔
赵永
项磊
李晓明
朱佳武
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Aviation Oil Group Co ltd
Aerospace Information Research Institute of CAS
Original Assignee
China Aviation Oil Group Co ltd
Aerospace Information Research Institute of CAS
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Aviation Oil Group Co ltd, Aerospace Information Research Institute of CAS filed Critical China Aviation Oil Group Co ltd
Priority to CN202310112633.0A priority Critical patent/CN115826935B/en
Publication of CN115826935A publication Critical patent/CN115826935A/en
Application granted granted Critical
Publication of CN115826935B publication Critical patent/CN115826935B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Stored Programmes (AREA)

Abstract

The embodiment of the disclosure relates to the field of informatization systems, and provides a digital twin model integration system and method based on unified language middleware. According to the embodiment of the disclosure, the digital twin model constructed and formed based on different languages is described by adopting a unified language, and the digital twin model realized based on multiple languages is integrated by establishing a unified language middleware, so that the problem of data splitting between outputs of the digital twin models in different languages is solved, and the unified digital twin model can be utilized to carry out more omnibearing intelligent analysis and prediction on the operation conditions, efficiency and the like of corresponding key equipment and production lines in the production line.

Description

Digital twin model integration system and method based on unified language middleware
Technical Field
The disclosure relates to the technical field of informatization systems, in particular to a digital twin model integration system and method based on unified language middleware.
Background
Under the current technical conditions, the digital twin technology is utilized to simulate the production line, and the big data analysis technology is utilized to analyze the multidimensional data of the production line, so that the method is the development direction of the production line in various industries. However, the existing informatization system only uses related sensor data related to the production line as real-time monitoring data, fails to design a unified technical framework aiming at a new technology, cannot integrate digital twin models constructed and formed based on different languages, and lacks intelligent early warning operation maintenance aiming at the whole production line. Meanwhile, the existing production line monitoring system needs to manually study and judge the data under the guidance of experience, so that when facing a large production line, the mass sensor data updated in real time can greatly increase the workload of the system and operators.
Disclosure of Invention
The present disclosure is directed to at least one of the problems in the prior art, and provides a digital twin model integration system and method based on unified language middleware.
In one aspect of the disclosure, a digital twin model integration system based on unified language middleware is provided, the integration system comprises a unified language digital twin model library, a sensor data receiving module, a twin model calculating module and a calculating result distributing module, wherein:
The unified language digital twin model library is used for storing a plurality of digital twin models described by a preset language, wherein the digital twin models are formed by constructing different languages based on preset key equipment;
the sensor data receiving module is used for collecting operation data of the key equipment;
the twin model calculation module is used for receiving a service request sent by a client, acquiring the operation data corresponding to the service request from the sensor data receiving module, calling the digital twin model corresponding to the service request from the unified language digital twin model library, and inputting the operation data into the digital twin model to obtain a request result corresponding to the service request;
and the calculation result distribution module is used for returning the request result to the client.
Optionally, the preset language includes a c++ language, and the different languages include at least two of a matlab language, a python language, a java language, and a c# language.
Optionally, when the digital twin model is constructed and formed by the matlab language, a plurality of digital twin models described by a preset language are obtained by the following steps:
Respectively packaging a plurality of digital twin models formed by matlab language construction in an m-format file;
and compiling the m-format file into a dynamic link library based on C++ by using a C++ compiling tool corresponding to the matlab language, so that each digital twin model corresponds to a function in the dynamic link library respectively, and the digital twin models described by the C++ language are obtained.
Optionally, when the digital twin model is constructed and formed by the python language, a plurality of digital twin models described by a preset language are obtained by the following steps:
respectively encapsulating a plurality of digital twin models formed by python language construction in a py format file, so that each digital twin model corresponds to a function in the py format file;
instantiating a py interpreter, loading the py format file, calling the function in the py format file, and converting the function into a C++ data type;
and exporting the function of the C++ data type into a function of a C++ based dynamic link library to obtain the plurality of digital twin models described by the C++ language.
Optionally, when the digital twin model is formed by constructing the java language, a plurality of digital twin models described by a preset language are obtained through the following steps:
Creating a java virtual machine;
searching a class corresponding to a digital twin model constructed and formed through java language in the java virtual machine, and creating a corresponding class object;
and packaging the class objects into a function of a dynamic link library based on C++, and obtaining the digital twin model described by adopting the C++ language.
Optionally, when the digital twin model is formed by constructing the c# language, a plurality of digital twin models described by a preset language are obtained by the following steps:
creating a class library based on C# based on a plurality of digital twin models formed by C# language construction;
in the class library based on C#, defining corresponding classes for each digital twin model constructed and formed through C# language respectively, and generating a dynamic link library based on C#;
and calling the dynamic link library based on C# by using a cpp file to generate a dynamic link library based on C++, and enabling each function in the dynamic link library based on C++ to correspond to one digital twin model respectively to obtain the digital twin model described by the C++ language.
Optionally, the twin model calculation module is configured to call the digital twin model corresponding to the service request from the unified language digital twin model library, input the operation data into the digital twin model, and obtain a request result corresponding to the service request, and includes:
The twin model calculation module is used for calling a function in a C++ based dynamic link library corresponding to the service request from the unified language digital twin model library, inputting the operation data into the function, and taking the output result of the function as the request result corresponding to the service request.
Optionally, the calculation result distribution module is specifically configured to return the request result to the client by using a hypertext transfer protocol based on an Evpp network communication component.
Optionally, the integrated system further comprises a display calculation module;
the display calculation module is used for visually displaying the request result, calculating and analyzing the request result and displaying a corresponding analysis result.
In another aspect of the present disclosure, there is provided a method of a unified language middleware-based digital twin model integration system including a unified language digital twin model library and a sensor data receiving module, the method comprising:
receiving a service request sent by a client;
collecting operation data of key equipment corresponding to the service request through the sensor data receiving module;
Calling a digital twin model corresponding to the service request from the unified language digital twin model library; the unified language digital twin model library is pre-stored with a plurality of digital twin models described by a preset language, and the digital twin models are formed by constructing different languages based on preset key equipment;
inputting the operation data into the called digital twin model to obtain a request result corresponding to the service request;
and returning the request result to the client.
Optionally, the preset language includes a c++ language, and the different languages include at least two of a matlab language, a python language, a java language, and a c# language.
Optionally, when the digital twin model is constructed and formed by the matlab language, a plurality of digital twin models described by a preset language are obtained by the following steps:
respectively packaging a plurality of digital twin models formed by matlab language construction in an m-format file;
and compiling the m-format file into a dynamic link library based on C++ by using a C++ compiling tool corresponding to the matlab language, so that each digital twin model corresponds to a function in the dynamic link library respectively, and the digital twin models described by the C++ language are obtained.
Optionally, when the digital twin model is constructed and formed by the python language, a plurality of digital twin models described by a preset language are obtained by the following steps:
respectively encapsulating a plurality of digital twin models formed by python language construction in a py format file, so that each digital twin model corresponds to a function in the py format file;
instantiating a py interpreter, loading the py format file, calling the function in the py format file, and converting the function into a C++ data type;
and exporting the function of the C++ data type into a function of a C++ based dynamic link library to obtain the plurality of digital twin models described by the C++ language.
Optionally, when the digital twin model is formed by constructing the java language, a plurality of digital twin models described by a preset language are obtained through the following steps:
creating a java virtual machine;
searching a class corresponding to a digital twin model constructed and formed through java language in the java virtual machine, and creating a corresponding class object;
and packaging the class objects into a function of a dynamic link library based on C++, and obtaining the digital twin model described by adopting the C++ language.
Optionally, when the digital twin model is formed by constructing the c# language, a plurality of digital twin models described by a preset language are obtained by the following steps:
creating a class library based on C# based on a plurality of digital twin models formed by C# language construction;
in the class library based on C#, defining corresponding classes for each digital twin model constructed and formed through C# language respectively, and generating a dynamic link library based on C#;
and calling the dynamic link library based on C# by using a cpp file to generate a dynamic link library based on C++, and enabling each function in the dynamic link library based on C++ to correspond to one digital twin model respectively to obtain the digital twin model described by the C++ language.
Optionally, the returning the request result to the client specifically includes:
and returning the request result to the client by using a hypertext transfer protocol (HTTP) based on the Evpp network communication component.
Optionally, after returning the request result to the client, the method further includes:
and visually displaying the request result, calculating and analyzing the request result, and displaying a corresponding analysis result.
Compared with the prior art, the unified language digital twin model library is arranged in the digital twin model integrated system based on the unified language middleware, the digital twin models formed by constructing based on different languages are described by adopting the unified language, the digital twin models realized based on multiple languages are integrated together by establishing the unified language middleware, the problem of data splitting between the outputs of the digital twin models in different languages is solved, and the unified digital twin models can be utilized to carry out more omnibearing intelligent analysis and prediction on physical equipment, production line running conditions, efficiency and the like in a production line, and the workload of the system and operators is reduced.
Drawings
One or more embodiments are illustrated by way of example and not limitation in the figures of the accompanying drawings, in which like references indicate similar elements, and in which the figures do not depict a proportional limitation unless expressly stated otherwise.
FIG. 1 is a schematic diagram of a digital twin model integration system based on unified language middleware according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a model composition of a digital twin model library according to another embodiment of the present disclosure;
FIG. 3 is a schematic diagram illustrating a connection relationship between a sensor data receiving module and a key device sensor according to another embodiment of the present disclosure;
FIG. 4 is a flow chart of a method of a digital twinning model integration system based on unified language middleware provided in another embodiment of the present disclosure;
fig. 5 is a flowchart of a method for a digital twin model integration system based on unified language middleware according to another embodiment of the present disclosure.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present disclosure more apparent, the embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings. However, those of ordinary skill in the art will understand that in various embodiments of the present disclosure, numerous technical details have been set forth in order to provide a better understanding of the present disclosure. However, the technical solutions claimed in the present disclosure can be implemented without these technical details and with various changes and modifications based on the following embodiments. The following divisions of the various embodiments are for convenience of description, and should not be construed as limiting the specific implementations of the disclosure, and the various embodiments may be mutually combined and referred to without contradiction.
As shown in fig. 1, one embodiment of the present disclosure relates to a digital twin model integration system based on unified language middleware, which includes a digital twin model library, a server, and a client.
The digital twin model library is used for storing digital twin model libraries based on different languages. For example, as shown in FIG. 1, the digital twin model library may be used to store at least two of matlab (a high-level matrix/array-based programming language), python (a cross-platform computer programming language) based digital twin model library, java (an object-oriented programming language) based digital twin model library, and C# (an object-oriented programming language derived from C and C++ by Microsoft corporation) based digital twin model library. The matlab-based digital twin model library is used to store digital twin models formed by matlab language construction. The python-based digital twin model library is used to store digital twin models formed by python language construction. The java-based digital twin model library is used for storing a digital twin model formed by java language construction. The C# based digital twin model library is used for storing digital twin models formed by C# language construction. Each digital twin model can be built and formed based on key equipment in production lines of various industries. For example, each digital twin model can be constructed and formed based on key equipment such as oil tanks, hydraulic pumps, centrifugal pumps, oil pipelines, hydraulic valves, electromagnetic valves, filtering systems and the like in the aviation oil storage and transportation and filling production line. For example, as shown in fig. 2, the digital twin model may be an intelligent operation and maintenance model, an equipment health assessment model, etc. constructed based on key equipment in the aviation oil storage and transportation and filling production line.
The server is used for integrating the digital twin models stored in the digital twin model library and based on different languages, calling the integrated digital twin models according to the service request sent by the client, generating a request result corresponding to the service request, and returning the request result to the client.
The client is used for sending a service request to the server, and receiving and displaying a request result corresponding to the service request returned by the server. It should be noted that, the server may be connected to one client, or may be connected to a plurality of clients, and those skilled in the art may perform setting according to actual needs.
As shown in fig. 1, the server may include a unified language digital twin model library, a sensor data receiving module, a twin model computing module, and a computation result distributing module.
The unified language digital twin model library is used for storing a plurality of digital twin models described by a preset language. The digital twin models are formed by constructing different languages based on preset key equipment. For example, the preset language may be a c++ language, and the different languages may include at least two of a matlab language, a python language, a java language, and a c# language, and the unified language digital twin model library may be used to store a unified language digital twin model obtained by uniformly describing at least two types of digital twin models of a matlab-based digital twin model, a python-based digital twin model, a java-based digital twin model, and a c# -based digital twin model in the c++ language. For example, the unified language digital twin model library can be used for storing a unified language digital twin model obtained by uniformly describing a matlab-based digital twin model and a python-based digital twin model by adopting a C++ language, a unified language digital twin model obtained by uniformly describing a matlab-based digital twin model and a java-based digital twin model by adopting a C++ language, a unified language digital twin model obtained by uniformly describing a matlab-based digital twin model and a C# -based digital twin model by adopting a C++ language, a unified language digital twin model obtained by uniformly describing a python-based digital twin model and a java-based digital twin model by adopting a C++ language, the method can be used for storing a unified language digital twin model obtained by uniformly describing a python-based digital twin model and a C# -based digital twin model by adopting a C++ language, can also be used for storing a unified language digital twin model obtained by uniformly describing a matlab-based digital twin model, a python-based digital twin model and a java-based digital twin model by adopting a C++ language, or storing a unified language digital twin model obtained by uniformly describing a matlab-based digital twin model, a python-based digital twin model and a C# -based digital twin model by adopting a C++ language, or storing a unified language digital twin model obtained by uniformly describing a matlab-based digital twin model, a java-based digital twin model and a C# -based digital twin model by adopting a C++ language, or storing a unified language digital twin model obtained by uniformly describing a python-based digital twin model by adopting a C++ language, the unified language digital twin model obtained after unified description of the digital twin model based on java and the digital twin model based on C# can be used for storing the unified language digital twin model obtained after unified description of the digital twin model based on matlab, the digital twin model based on python, the digital twin model based on java and the digital twin model based on C#, which adopts C++ language.
It should be noted that the preset key device may be a physical device necessary in the production line of each industry. For example, for a marine oil storage and transportation filling production line, the preset key equipment may be an oil tank, a hydraulic pump, a centrifugal pump, an oil pipeline, a hydraulic valve, an electromagnetic valve, a filtering system, and the like. Of course, the specific type of the preset key device is not limited in this embodiment, and those skilled in the art may select the setting according to actual needs.
The sensor data receiving module is used for collecting operation data of the key equipment. For example, the sensor data receiving module may utilize a data acquisition server to acquire operational data of the key device via sensors disposed on the key device. For example, in conjunction with fig. 3, each key device in the production line may be provided with a key device sensor 1, 2, 3, … …, n, where the key device sensors 1, 2, 3, … …, n respectively collect operation data of the corresponding key devices, and transmit the operation data to the data collecting server, so that the data collecting server provides the operation data of each key device to the sensor data receiving module.
The twin model calculation module is used for receiving the service request sent by the client, acquiring operation data corresponding to the service request from the sensor data receiving module, calling a digital twin model corresponding to the service request from the unified language digital twin model library, and inputting the operation data into the digital twin model to obtain a request result corresponding to the service request. The service request here may be a query request for a certain key device and its corresponding digital twin model. For example, the service request may be queried for a certain oil tank and its corresponding equipment health assessment model in the aviation oil storage and transportation filling production line, so as to obtain the operation health status of the oil tank. The service request may carry identification information of the key device for which it is intended, and the specific type of digital twin model to which it corresponds. For example, if a user wishes to learn the running health status of a certain oil tank in the oil storage, transportation and filling production line through a service request, the service request may carry identification information of the oil tank, such as a device number, and a specific type of the corresponding digital twin model, that is, a device health assessment model. The twin model calculation module receives the service request sent by the client, acquires operation data acquired by each sensor from the sensor data receiving module, analyzes current operation data corresponding to the identification information of the oil tank carried by the service request from the sensor data receiving module, invokes a digital twin model corresponding to the specific type of the digital twin model carried by the service request from the unified language digital twin model library, namely, an equipment health evaluation model, inputs the analyzed current operation data of the oil tank into the invoked equipment health evaluation model, and outputs an equipment operation health state corresponding to the current operation data after the equipment health evaluation model operates, wherein the equipment operation health state is a request result corresponding to the service request.
It should be noted that, the service request may be a hypertext transfer protocol (Hyper Text Transfer Protocol, HTTP) network request, so as to implement the transmission of the service request more simply, quickly and flexibly.
It should be further noted that the twin model calculation module may obtain the operation data collected by each sensor from the sensor data receiving module through the Modbus TCP/IP protocol. Among them, the ModBus protocol was a serial communication protocol, which was published in 1979 by Modicon corporation (now schrader electric company) for communication using programmable logic controllers. Modbus has become the industry standard for industrial-area communication protocols and has become a common way of connecting industrial electronic devices. The TCP/IP protocol, transmission control protocol/internet protocol, is called TransmissionControl Protocol/Internet Protocol, and refers to a protocol cluster that enables information transmission between a plurality of different networks. The Modbus TCP/IP protocol embeds Modbus frames into TCP frames in a very simple manner, allowing Modbus to be combined with Ethernet and TCP/IP.
And the calculation result distribution module is used for returning the request result to the client. For example, if the service request carries identification information of a key device oil tank, such as a device number, and a specific type of a corresponding digital twin model, that is, a device health assessment model, the calculation result distribution module may return a request result corresponding to the service request, that is, a device operation health state, obtained by the twin model calculation module to the client.
Compared with the prior art, the embodiment of the disclosure sets a unified language digital twin model library in a digital twin model integration system based on a unified language middleware, describes the digital twin model formed by constructing based on different languages by adopting the unified language, integrates the digital twin models realized based on multiple languages together by establishing the unified language middleware, not only solves the problem of data splitting among different language digital twin model outputs in an industry production line such as an aviation oil storage and transportation filling production line, but also can utilize the uniformly described digital twin model to carry out more omnibearing intelligent analysis and prediction on physical equipment, production line running conditions, efficiency and the like in the industry production line such as the aviation oil storage and transportation filling production line, and reduces the workload of a system and operators.
When the digital twin model is constructed and formed through matlab language, a plurality of digital twin models described by a preset language, namely C++ language are obtained through the following steps:
and respectively encapsulating a plurality of digital twin models formed by matlab language construction in an m-format file. And compiling the m-format file into a dynamic link library (dynamic link library, dll) based on C++ by using a C++ compiling tool such as a Library Complie C ++ tool corresponding to matlab language, so that each digital twin model corresponds to a function in the dynamic link library respectively, and a plurality of digital twin models described by the C++ language are obtained. Meanwhile, when the matlab is deployed in operation, the operation environment of the matlab is required to be deployed correspondingly.
Illustratively, when the digital twin model is constructed and formed by python language, a plurality of digital twin models described in a preset language, i.e., c++ language, are obtained by:
and respectively encapsulating a plurality of digital twin models formed by python language construction in the py format file, so that each digital twin model corresponds to a function in the py format file. Instantiating a py interpreter, loading a py format file, calling a function in the py format file, and converting the function to a C++ data type. And exporting the function of the C++ data type into a function of a dynamic link library based on C++, and obtaining a plurality of digital twin models described by the C++ language.
Specifically, since the python language is itself implemented based on the C language, the python.h file is provided in the python language, and thus, the python native library is utilized to instantiate the py interpreter directly in the integrated development environment (IntegratedDevelopment Environment, IDE) of Microsoft Visual Studio (VS, a development kit product of microsoft corporation in the united states, which is a substantially complete development kit and includes most of the tools required in the whole software lifecycle), call the python native interface, load the py format file, call the functions in the py format file, and convert the called functions into c++ data types.
It should be noted that, when the digital twin model based on the python language is described in the c++ language through the above steps, the python three-party library package, on which the digital twin model is packaged, and the operating environment dependent file of the python itself need to be copied to the peer catalog of the application program.
When the digital twin model is formed through java language construction, a plurality of digital twin models described by a preset language are obtained through the following steps:
creating a java virtual machine; searching a class corresponding to a digital twin model constructed by java language in a java virtual machine, and creating a corresponding class object; and packaging the class objects into a function of a dynamic link library based on C++, so as to obtain a digital twin model described by adopting the C++ language.
Specifically, the class object refers to a class object in java, when the class object is packaged into a function of a dynamic link library based on C++, a related static method and a member method can be called in the java environment, and the member attribute of the class object is obtained and modified, so that the class object in java is packaged in the dynamic link library based on C++.
Illustratively, when the digital twin model is formed by c# language construction, a plurality of digital twin models described in a preset language are obtained by:
Creating a class library based on C# based on a plurality of digital twin models formed by C# language construction; in a class library based on C#, defining corresponding classes for each digital twin model constructed and formed through C# language respectively, and generating a dynamic link library based on C#; and calling a dynamic link library based on C# by using the cpp file to generate a dynamic link library based on C++, and enabling each function in the dynamic link library based on C++ to correspond to a digital twin model respectively to obtain the digital twin model described by the C++ language.
Specifically, when describing a plurality of digital twin models formed by c# language construction by using c++ language, a desired version of NET Framework, i.e., NET Framework, may be first selected, a class library based on c# is created in the NET Framework, and a class corresponding to each digital twin model formed by c# language construction is defined in the class library, based on generating a dynamic link library based on c# corresponding to the class library and a corresponding pdb file, where each function in the dynamic link library based on c# corresponds to a digital twin model formed by c# language construction. Then, taking the console application as an example, when the C++ program is utilized to call the dynamic link library based on C#, to be called, can be firstly introduced into a cpp file of the dynamic link library based on C#, then a code naming space corresponding to a digital twin model constructed and formed based on the C# -language is referenced in the cpp file, the cpp file is called through a C++ function, and the dynamic link library based on C++ can be generated, and each function in the dynamic link library based on C++ corresponds to one digital twin model respectively. It should be noted that when the cpp file is used to call the c# based dynamic link library to generate the c++ based dynamic link library, the common language runtime support function needs to be enabled, and the compliance mode is set to no.
By adopting the C++ language to uniformly describe the matlab-based digital twin model, the python-based digital twin model, the java-based digital twin model and the C# -based digital twin model, the system integration of the multi-language digital twin model can be realized by establishing a unified language middleware, and the barrier problem between output data of the 4 types of digital twin models in an industry production line such as an aviation oil storage and transportation filling production line is solved.
The twinning model calculation module is used for calling a digital twinning model corresponding to the service request from the unified language digital twinning model library, inputting operation data into the digital twinning model to obtain a request result corresponding to the service request, and comprises the following steps: and the twin model calculation module is used for calling the function in the C++ based dynamic link library corresponding to the service request from the unified language digital twin model library, inputting the operation data into the function, and taking the output result of the function as the request result corresponding to the service request.
Specifically, after the matlab-based digital twin model and the python-based digital twin model are respectively and uniformly described by adopting the C++ language, the obtained plurality of digital twin models described by adopting the C++ language are contained in a dynamic link library stored in a unified language digital twin model library in a function mode, so that a twin model calculation module can call a function in the dynamic link library corresponding to the digital twin model aimed at by a service request from the unified language digital twin model library, input operation data corresponding to the service request into the called function, and take an operation output result of the function as a request result corresponding to the service request, thereby realizing intelligent analysis and prediction on production lines of various industries based on the uniformly described digital twin model.
The computing result distribution module is specifically configured to return a request result to the client by using a hypertext transfer protocol based on the Evpp network communication component.
Specifically, the Evpp network communication component herein refers to a modern C++11 high-performance web server developed based on Libevent (a lightweight, open-source high-performance event notification library written in C language). According to the method, the computing result distribution module is used for returning the request result to the client by using the HTTP network based on the Evpp network communication component, so that the performance and the transmission efficiency of the computing result distribution module can be further improved.
The digital twin model integrated system based on the unified language middleware further comprises a display calculation module. As shown in fig. 1, the display computing module may be provided at a client. Of course, the display computing module may also be disposed on the server, and those skilled in the art may perform the setting according to actual needs.
The display calculation module is used for visually displaying the request result, calculating and analyzing the request result and displaying the corresponding analysis result. For example, the display calculation module may display the request result in a visual manner such as text, a chart, or the like. The display calculation module can also calculate and analyze the request result, and display the corresponding analysis result so as to remind the user to take corresponding maintenance measures and the like. For example, when the request result indicates that the operation state of the oil tank of the key equipment is in an abnormal state, the display calculation module can judge whether the operation state of the oil tank has affected the normal operation of the aviation oil storage, transportation and filling production line according to the abnormal state degree of the oil tank, and if the operation state of the aviation oil storage, transportation and filling production line has been affected, a user can be reminded of repairing the oil tank so as to restore the operation state of the oil tank to a healthy state.
According to the embodiment, the display calculation module is arranged in the digital twin model integrated system based on the unified language middleware, the request result can be visually displayed through the display calculation module, the user can use the system conveniently, the corresponding analysis result can be displayed through calculation and analysis of the request result, intelligent analysis and prediction are further carried out on the operation conditions of key equipment in an industrial production line such as an aviation oil storage, transportation and filling production line, and the analysis and prediction workload of the system and operators is reduced.
As shown in fig. 4, another embodiment of the present disclosure relates to a method S100 of a digital twin model integration system based on unified language middleware. The method S100 refers to a method for using a digital twin model integrated system based on unified language middleware.
The digital twin model integration system based on the unified language middleware comprises a unified language digital twin model library and a sensor data receiving module. The unified language digital twin model library is used for storing a plurality of digital twin models described by a preset language. The plurality of digital twin models are formed by different language constructions based on preset key equipment. For example, the preset language may be a c++ language, and the different languages may include at least two of a matlab language, a python language, a java language, and a c# language, and the unified language digital twin model may be used to store a unified language digital twin model obtained by uniformly describing at least two types of digital twin models of the matlab-based digital twin model, the python-based digital twin model, the java-based digital twin model, and the c# -based digital twin model in the c++ language. The sensor data receiving module is used for collecting operation data of the key equipment. For example, the sensor data receiving module may utilize a data acquisition server to acquire operational data of the key device via sensors disposed on the key device. For example, in conjunction with fig. 3, each key device in the production line may be provided with a key device sensor 1, 2, 3, … …, n, where the key device sensors 1, 2, 3, … …, n respectively collect operation data of the corresponding key devices, and transmit the operation data to the data collecting server, so that the data collecting server provides the operation data of each key device to the sensor data receiving module.
It should be noted that, the digital twin model integration system based on the unified language middleware may be shown in fig. 1, and the specific structure thereof may be described with reference to the foregoing embodiments of the present disclosure, which is not repeated herein.
As shown in fig. 4, a method S100 of a digital twin model integration system based on a unified language middleware includes:
step S110, receiving a service request sent by a client.
Specifically, the service request herein may be a query request for a certain key device and its corresponding digital twin model. For example, the service request may be queried for a certain oil tank in the aviation oil production line and its corresponding equipment health assessment model, so as to obtain the operation health status of the oil tank. The service request may carry identification information of the key device for which it is intended, and the specific type of digital twin model to which it corresponds. The service request may be an HTTP network request, so as to more simply, quickly and flexibly implement transmission of the service request.
Step S120, collecting operation data of key equipment corresponding to the service request through a sensor data receiving module.
Specifically, in this step, operation data of the key devices collected by each sensor may be obtained from the sensor data receiving module through Modbus TCP/IP protocol, then current operation data corresponding to identification information of the key devices carried by the service request, such as an oil tank, is analyzed from the operation data, and the current operation data is used as operation data corresponding to the service request.
Step S130, calling a digital twin model corresponding to the service request from a unified language digital twin model library; the unified language digital twin model library is pre-stored with a plurality of digital twin models described by a preset language, and the digital twin models are formed by constructing different languages based on preset key equipment.
For example, if the service request carries identification information, such as a device number, of a certain oil tank in the oil storage, transportation and filling production line and a specific type, such as a device health assessment model, of a digital twin model corresponding to the service request, the step may call the device health assessment model from a unified language digital twin model library, where the device health assessment model is the digital twin model corresponding to the service request.
And step S140, inputting the operation data into the called digital twin model to obtain a request result corresponding to the service request.
For example, if the operation data in the aviation oil storage, transportation and filling production line is the operation data of a certain oil tank, and the called digital twin model is the equipment health assessment model, the operation data of the oil tank can be input into the equipment health assessment model, and the result of the operation output of the equipment health assessment model is used as the request result corresponding to the service request carrying the identification information of the oil tank and the corresponding digital twin model.
Step S150, the request result is returned to the client.
For example, if the service request carries identification information, such as a device number, of a certain oil tank in the oil storage, transportation and filling production line and a specific type of a corresponding digital twin model, i.e. a device health assessment model, the step can return a request result, i.e. a device operation health state, corresponding to the service request to the client of the oil storage, transportation and filling production line system.
Compared with the prior art, the unified language digital twin model library is arranged in the digital twin model integration system based on the unified language middleware, the digital twin models formed by constructing based on different languages are described by adopting the unified language, the digital twin models realized based on multiple languages are integrated together by establishing the unified language middleware, the problem of data splitting among different language digital twin model outputs in an industry production line such as an aviation oil storage and transportation filling production line is solved, and key equipment in the industry production line such as the aviation oil storage and transportation filling production line, the operation conditions and the operation efficiency of the production line and the like can be more comprehensively and intelligently analyzed and predicted by utilizing the uniformly described digital twin models, so that the workload of a system and operators is reduced.
Illustratively, the preset language includes a C++ language, and the different languages include at least two of a matlab language, a python language, a java language, and a C# language.
When the digital twin model is constructed and formed through matlab language, a plurality of digital twin models described by a preset language, namely C++ language are obtained through the following steps:
and respectively encapsulating a plurality of digital twin models formed by matlab language construction in an m-format file. And compiling the m-format file into a C++ based dynamic link library by using a C++ compiling tool corresponding to the matlab language, so that each digital twin model corresponds to a function in the dynamic link library respectively, and a plurality of digital twin models described by the C++ language are obtained. Meanwhile, when the matlab is deployed in operation, the operation environment of the matlab is required to be deployed correspondingly.
Illustratively, when the digital twin model is constructed and formed by python language, a plurality of digital twin models described in a preset language, i.e., c++ language, are obtained by:
and respectively encapsulating a plurality of digital twin models formed by python language construction in the py format file, so that each digital twin model corresponds to a function in the py format file. Instantiating a py interpreter, loading a py format file, calling a function in the py format file, and converting the function to a C++ data type. And exporting the function of the C++ data type into a function of a dynamic link library based on C++, and obtaining a plurality of digital twin models described by the C++ language.
Specifically, since the python language is itself implemented based on the C language, the python.h file is provided in the python language, and thus, the python native library is utilized to instantiate the py interpreter directly in the integrated development environment (IntegratedDevelopment Environment, IDE) of Microsoft Visual Studio (VS, a development kit product of microsoft corporation in the united states, which is a substantially complete development kit and includes most of the tools required in the whole software lifecycle), call the python native interface, load the py format file, call the functions in the py format file, and convert the called functions into c++ data types.
It should be noted that, when the digital twin model based on the python language is described in the c++ language through the above steps, the python three-party library package, on which the digital twin model is packaged, and the operating environment dependent file of the python itself need to be copied to the peer catalog of the application program.
When the digital twin model is formed through java language construction, a plurality of digital twin models described by a preset language are obtained through the following steps:
creating a java virtual machine; searching a class corresponding to a digital twin model constructed by java language in a java virtual machine, and creating a corresponding class object; and packaging the class objects into a function of a dynamic link library based on C++, so as to obtain a digital twin model described by adopting the C++ language.
Specifically, the class object refers to a class object in java, when the class object is packaged into a function of a dynamic link library based on C++, a related static method and a member method can be called in the java environment, and the member attribute of the class object is obtained and modified, so that the class object in java is packaged in the dynamic link library based on C++.
Illustratively, when the digital twin model is formed by c# language construction, a plurality of digital twin models described in a preset language are obtained by:
creating a class library based on C# based on a plurality of digital twin models formed by C# language construction; in a class library based on C#, defining corresponding classes for each digital twin model constructed and formed through C# language respectively, and generating a dynamic link library based on C#; and calling a dynamic link library based on C# by using the cpp file to generate a dynamic link library based on C++, and enabling each function in the dynamic link library based on C++ to correspond to a digital twin model respectively to obtain the digital twin model described by the C++ language.
Specifically, when describing a plurality of digital twin models formed by c# language construction by using c++ language, a desired version of NET Framework, i.e., NET Framework, may be first selected, a class library based on c# is created in the NET Framework, and a class corresponding to each digital twin model formed by c# language construction is defined in the class library, based on generating a dynamic link library based on c# corresponding to the class library and a corresponding pdb file, where each function in the dynamic link library based on c# corresponds to a digital twin model formed by c# language construction. Then, taking the console application as an example, when the C++ program is utilized to call the dynamic link library based on C#, to be called, can be firstly introduced into a cpp file of the dynamic link library based on C#, then a code naming space corresponding to a digital twin model constructed and formed based on the C# -language is referenced in the cpp file, the cpp file is called through a C++ function, and the dynamic link library based on C++ can be generated, and each function in the dynamic link library based on C++ corresponds to one digital twin model respectively. It should be noted that when the cpp file is used to call the c# based dynamic link library to generate the c++ based dynamic link library, the common language runtime support function needs to be enabled, and the compliance mode is set to no.
By adopting the C++ language to uniformly describe the matlab-based digital twin model, the python-based digital twin model, the java-based digital twin model and the C# -based digital twin model, the system integration of the multi-language digital twin model can be realized by establishing a unified language middleware, and the barrier problem between output data of the 4 types of digital twin models in an industry production line such as an aviation oil storage and transportation filling production line is solved.
Illustratively, after the matlab-based digital twin model and the python-based digital twin model are respectively and uniformly described by adopting the C++ language, the obtained plurality of digital twin models described by adopting the C++ language are contained in a dynamic link library based on C++ stored in a unified language digital twin model library in a function mode. Therefore, step S130 may call a function in the c++ based dynamic link library corresponding to the digital twin model for the service request from the unified language digital twin model library, and step S140 inputs the operation data corresponding to the service request into the function called in step S130, and uses the operation output result of the function as the request result corresponding to the service request, thereby implementing intelligent analysis and prediction for production lines of industries based on the unified digital twin model.
Exemplary, the step S150 specifically includes: the request result is returned to the client by using the hypertext transfer protocol based on the Evpp network communication component. The Evpp network communication component herein refers to a modern c++11 high-performance network server developed based on libetent (a lightweight, open-source high-performance event notification library written in C language). According to the method, the device and the system, the request result is returned to the client by using the HTTP network based on the Evpp network communication component, so that the performance and the transmission efficiency of the calculation result distribution module can be further improved.
As shown in fig. 5, after step S150, the method S100 of the digital twin model integration system based on the unified middleware, that is, the method S100 of using the digital twin model integration system based on the unified middleware further includes:
step S160, the request result is visually displayed, calculation and analysis are carried out on the request result, and the corresponding analysis result is displayed.
For example, the step may display the request result in a visual manner such as text, a chart, etc. The step can also calculate and analyze the request result, and display the corresponding analysis result so as to remind the user to take corresponding maintenance measures and the like. For example, when the request result indicates that the operation state of the oil tank in the aviation oil storage, transportation and filling production line is in an abnormal state, the step can judge whether the operation state of the oil tank has influenced the normal operation of the aviation oil storage, transportation and filling production line according to the abnormal state degree of the oil tank, and if the operation state of the aviation oil storage, transportation and filling production line has been influenced, a user can be reminded of repairing the oil tank so as to restore the operation state of the oil tank to a healthy state.
According to the embodiment, the request result is visually displayed, so that the user can use the method and the device conveniently. Meanwhile, according to the method, the request result is calculated and analyzed, the corresponding analysis result is displayed, intelligent analysis and prediction can be further carried out on the operation conditions of key equipment in production lines of various industries, and the analysis and prediction workload of a system and operators is reduced.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific embodiments for carrying out the present disclosure, and that various changes in form and details may be made therein without departing from the spirit and scope of the present disclosure.

Claims (9)

1. The digital twin model integrated system based on the unified language middleware is characterized by comprising a unified language digital twin model library, a sensor data receiving module, a twin model calculating module and a calculating result distributing module, wherein:
the unified language digital twin model library is used for storing a plurality of digital twin models described by a preset language, wherein the digital twin models are formed by constructing different languages based on preset key equipment; the preset language comprises a C++ language, and the different languages comprise at least two of a matlab language, a python language, a java language and a C# language;
The sensor data receiving module is used for collecting operation data of the key equipment;
the twin model calculation module is used for receiving a service request sent by a client, analyzing current operation data corresponding to the service request from the operation data acquired by the sensor data receiving module, calling the digital twin model corresponding to the service request from the unified language digital twin model library, and inputting the current operation data into the digital twin model to obtain a request result corresponding to the service request;
the computing result distribution module is used for returning the request result to the client by utilizing a hypertext transfer protocol based on the Evpp network communication component.
2. The integrated system of claim 1, wherein when the digital twin model is formed by the matlab language construction, the plurality of digital twin models described in a preset language are obtained by:
respectively packaging a plurality of digital twin models formed by matlab language construction in an m-format file;
and compiling the m-format file into a dynamic link library based on C++ by using a C++ compiling tool corresponding to the matlab language, so that each digital twin model corresponds to a function in the dynamic link library respectively, and the digital twin models described by the C++ language are obtained.
3. The integrated system of claim 1, wherein when the digital twin model is formed by the python language building, a plurality of digital twin models described in a preset language are obtained by:
respectively encapsulating a plurality of digital twin models formed by python language construction in a py format file, so that each digital twin model corresponds to a function in the py format file;
instantiating a py interpreter, loading the py format file, calling the function in the py format file, and converting the function into a C++ data type;
and exporting the function of the C++ data type into a function of a C++ based dynamic link library to obtain the plurality of digital twin models described by the C++ language.
4. The integrated system of claim 1, wherein when the digital twin model is formed by the java language building, a plurality of digital twin models described in a preset language are obtained by:
creating a java virtual machine;
searching a class corresponding to a digital twin model constructed and formed through java language in the java virtual machine, and creating a corresponding class object;
And packaging the class objects into a function of a dynamic link library based on C++, and obtaining the digital twin model described by adopting the C++ language.
5. The integrated system of claim 1, wherein when the digital twin model is formed by the c# language construction, a plurality of digital twin models described in a preset language are obtained by:
creating a class library based on C# based on a plurality of digital twin models formed by C# language construction;
in the class library based on C#, defining corresponding classes for each digital twin model constructed and formed through C# language respectively, and generating a dynamic link library based on C#;
and calling the dynamic link library based on C# by using a cpp file to generate a dynamic link library based on C++, and enabling each function in the dynamic link library based on C++ to correspond to one digital twin model respectively to obtain the digital twin model described by the C++ language.
6. The integrated system according to any one of claims 2 to 5, wherein the twin model calculation module is configured to call the digital twin model corresponding to the service request from the unified language digital twin model library, input the operation data into the digital twin model, and obtain a request result corresponding to the service request, and includes:
The twin model calculation module is used for calling a function in a C++ based dynamic link library corresponding to the service request from the unified language digital twin model library, inputting the operation data into the function, and taking the output result of the function as the request result corresponding to the service request.
7. The integrated system of any one of claims 1 to 5, further comprising a display computing module;
the display calculation module is used for visually displaying the request result, calculating and analyzing the request result and displaying a corresponding analysis result.
8. A method of a unified language middleware-based digital twin model integration system, the integration system comprising a unified language digital twin model library and a sensor data receiving module, the method comprising:
receiving a service request sent by a client;
collecting operation data of key equipment corresponding to the service request through the sensor data receiving module, and analyzing current operation data corresponding to the service request from the operation data;
calling a digital twin model corresponding to the service request from the unified language digital twin model library; the unified language digital twin model library is pre-stored with a plurality of digital twin models described by a preset language, and the digital twin models are formed by constructing different languages based on preset key equipment; the preset language comprises a C++ language, and the different languages comprise at least two of a matlab language, a python language, a java language and a C# language;
Inputting the current operation data into the called digital twin model to obtain a request result corresponding to the service request;
and returning the request result to the client by using a hypertext transfer protocol (HTTP) based on the Evpp network communication component.
9. The method of claim 8, wherein after returning the request result to the client, the method further comprises:
and visually displaying the request result, calculating and analyzing the request result, and displaying a corresponding analysis result.
CN202310112633.0A 2023-02-14 2023-02-14 Digital twin model integration system and method based on unified language middleware Active CN115826935B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310112633.0A CN115826935B (en) 2023-02-14 2023-02-14 Digital twin model integration system and method based on unified language middleware

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310112633.0A CN115826935B (en) 2023-02-14 2023-02-14 Digital twin model integration system and method based on unified language middleware

Publications (2)

Publication Number Publication Date
CN115826935A CN115826935A (en) 2023-03-21
CN115826935B true CN115826935B (en) 2023-04-28

Family

ID=85521280

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310112633.0A Active CN115826935B (en) 2023-02-14 2023-02-14 Digital twin model integration system and method based on unified language middleware

Country Status (1)

Country Link
CN (1) CN115826935B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108107841A (en) * 2017-12-26 2018-06-01 山东大学 A kind of twin modeling method of numerically-controlled machine tool number
CN111857065A (en) * 2020-06-08 2020-10-30 北京邮电大学 Intelligent production system and method based on edge calculation and digital twinning
CN112685150A (en) * 2020-12-21 2021-04-20 联想(北京)有限公司 Multi-language program execution method, device and storage medium
CN113011837A (en) * 2021-03-03 2021-06-22 江苏杰瑞信息科技有限公司 Digital twin management and control platform based on micro-service

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106681726B (en) * 2016-12-30 2019-11-08 苏州同元软控信息技术有限公司 Python model conversion is the method for Modelica model
US11726822B2 (en) * 2017-06-05 2023-08-15 Umajin Inc. Systems and methods for providing digital twin-enabled applications
CN107247592B (en) * 2017-06-09 2021-11-05 携程旅游网络技术(上海)有限公司 Model management system and method under multi-service scene
CN108595171B (en) * 2018-04-27 2021-08-10 广州视源电子科技股份有限公司 Object model generation method, device, equipment and storage medium
CN112882765B (en) * 2021-01-29 2023-10-20 航天科工智能运筹与信息安全研究院(武汉)有限公司 Digital twin model scheduling method and device
CN113554063B (en) * 2021-06-25 2024-04-23 西安电子科技大学 Industrial digital twin virtual-real data fusion method, system, equipment and terminal
CN113568705B (en) * 2021-07-23 2024-03-22 西安中锐创联科技有限公司 Code integration simulation method under distributed architecture
CN115454395A (en) * 2022-08-12 2022-12-09 浙江大学 Method and device for constructing computing interface of industrial digital twin system unit equipment
CN115562158A (en) * 2022-11-10 2023-01-03 北京机床研究所有限公司 Digital twin driven numerical control machine tool intelligent diagnosis method, system and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108107841A (en) * 2017-12-26 2018-06-01 山东大学 A kind of twin modeling method of numerically-controlled machine tool number
CN111857065A (en) * 2020-06-08 2020-10-30 北京邮电大学 Intelligent production system and method based on edge calculation and digital twinning
CN112685150A (en) * 2020-12-21 2021-04-20 联想(北京)有限公司 Multi-language program execution method, device and storage medium
CN113011837A (en) * 2021-03-03 2021-06-22 江苏杰瑞信息科技有限公司 Digital twin management and control platform based on micro-service

Also Published As

Publication number Publication date
CN115826935A (en) 2023-03-21

Similar Documents

Publication Publication Date Title
US20200272116A1 (en) Distributed Industrial Performance Monitoring and Analytics
US10649449B2 (en) Distributed industrial performance monitoring and analytics
US10386827B2 (en) Distributed industrial performance monitoring and analytics platform
US10866952B2 (en) Source-independent queries in distributed industrial system
US20170102693A1 (en) Data analytic services for distributed industrial performance monitoring
US8209710B2 (en) Implementation system for business applications
Valetto et al. Using process technology to control and coordinate software adaptation
CN113867600A (en) Development method and device for processing streaming data and computer equipment
CN110908789A (en) Visual data configuration method and system for multi-source data processing
AboElHassan et al. A digital shadow framework using distributed system concepts
CN115826935B (en) Digital twin model integration system and method based on unified language middleware
Sreenuch et al. Software framework for prototyping embedded integrated vehicle health management applications
US11921734B2 (en) Method and system for data processing
Trunzer Model-driven System Architectures for Data Collection in Automated Production Systems
US20230259361A1 (en) Method and system for data processing
US20230289352A1 (en) Method and System for Data Processing
CN117311982A (en) Digital twin body display method, system, device and computer equipment
Rollo et al. Alarm root cause detection system
CN117931888A (en) Digital twin data acquisition method and device and computer equipment
Kirkos et al. Analyzing automated maintenance architectures to provide flexible smart maintenance capabilities
Hasan et al. The Dash Data Sharing System
Rollo et al. 12 ALARM ROOT CAUSE DETECTION SYSTEM
Paliulionis Integration of GIS and expert systems
Trindade et al. SIMFIX-An Integrated Supervisor-Simulation Environment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant