CN115544672A - Digital twin simulation method, system, device and server - Google Patents

Digital twin simulation method, system, device and server Download PDF

Info

Publication number
CN115544672A
CN115544672A CN202211406004.0A CN202211406004A CN115544672A CN 115544672 A CN115544672 A CN 115544672A CN 202211406004 A CN202211406004 A CN 202211406004A CN 115544672 A CN115544672 A CN 115544672A
Authority
CN
China
Prior art keywords
test
data
model
equipment
virtual
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.)
Pending
Application number
CN202211406004.0A
Other languages
Chinese (zh)
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.)
Xian University of Technology
Original Assignee
Xian University of Technology
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 Xian University of Technology filed Critical Xian University of Technology
Priority to CN202211406004.0A priority Critical patent/CN115544672A/en
Publication of CN115544672A publication Critical patent/CN115544672A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/15Vehicle, aircraft or watercraft design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Evolutionary Computation (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Pure & Applied Mathematics (AREA)
  • Mathematical Optimization (AREA)
  • Mathematical Analysis (AREA)
  • Computational Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application provides a digital twin simulation method, a digital twin simulation system, a digital twin simulation device and a server, and relates to the technical field of virtual simulation. The method comprises the following steps: acquiring static data and dynamic data generated by a plurality of test devices executing a preset test scheme, wherein the static data are parameters of the test devices, and the dynamic data are data generated when the test devices run; generating a data model of each test device according to the static data, wherein the data model is used for representing the device parameters of each test device and the parameters of a test target range where the test device is located; modeling each test device according to the data model to obtain a geometric model of each test device; and generating a virtual twin scene corresponding to each test device according to each geometric model and the corresponding dynamic data, wherein the virtual twin scene comprises the virtual device corresponding to each test device and the corresponding dynamic data. The virtual twin scene can be constructed aiming at the test equipment, and the test cost is reduced.

Description

Digital twin simulation method, system, device and server
Technical Field
The invention relates to the technical field of virtual simulation, in particular to a digital twin simulation method, a system, a device and a server.
Background
In recent years, with the continuous development of science and technology, aircrafts in China are independently developed into work with important strategic significance.
In the process of aircraft development, a plurality of links are faced, each link needs to be subjected to strict test verification, and the correctness and the safety of each link are ensured. The test equipment is distributed in different target fields in different areas, and in order to meet the test requirements in the aircraft development process, the test equipment in a plurality of target fields needs to be combined to form a logic target field, so that a large-scale integrated test task is completed.
However, because a large number of tests are required in the aircraft development process, if a large amount of manpower and material resources are consumed in each test for the test equipment, how to construct a virtual twin scene for the test equipment so as to perform a simulation test in the virtual twin scene is very important for the test of the aircraft development process.
Disclosure of Invention
The invention aims to provide a digital twin simulation method, a digital twin simulation system, a digital twin simulation device and a digital twin simulation server aiming at the defects in the prior art so as to construct a virtual twin scene aiming at test equipment and reduce test cost.
In order to achieve the above purpose, the embodiments of the present application adopt the following technical solutions:
in a first aspect, an embodiment of the present application provides a digital twin simulation method, where the method includes:
the method comprises the steps of obtaining static data and dynamic data generated when a plurality of test devices execute a preset test scheme, wherein the static data are parameters of the test devices, and the dynamic data are generated when the test devices run;
generating a data model of each test device according to the static data, wherein the data model is used for representing the device parameters of each test device and the parameters of a test target range where the test device is located;
modeling each test device according to the data model to obtain a geometric model of each test device;
and generating a virtual twin scene corresponding to each test device according to each geometric model and the corresponding dynamic data, wherein the virtual twin scene comprises the virtual device corresponding to each test device and the corresponding dynamic data.
Optionally, before the obtaining of the static data and the dynamic data generated by the plurality of testing devices executing the preset testing scheme, the method further includes:
receiving a test starting instruction and an equipment combination instruction, wherein the test starting instruction comprises the following steps: the identifier of the preset test scheme, the device combination instruction includes: the device identification of a plurality of test devices and the combination relation among the test devices;
generating a test event according to the test starting instruction and the equipment combination instruction;
and triggering the test event, controlling the plurality of test devices to execute the preset test scheme, and generating the static data and the dynamic data.
Optionally, the modeling the test devices according to the data model to obtain a geometric model of each test device includes:
modeling the test equipment according to the equipment parameters of the test equipment in the data model to obtain a three-dimensional equipment model of the test equipment;
according to the parameters of the test target range where the test equipment is located in the data model, modeling is carried out on the test target range to obtain a three-dimensional target range model of the test target range where the test equipment is located, and the geometric model of the test equipment comprises: the three-dimensional equipment model and the three-dimensional range model.
Optionally, the data model is further configured to represent an environmental parameter of a test firing ground where the test equipment is located, and the method further includes:
according to the environmental parameters, modeling is carried out on the environment of the test target range to obtain a three-dimensional environment model of the test target range where the test equipment is located, and the geometric model of the test equipment comprises: the three-dimensional equipment model, the three-dimensional range model and the three-dimensional environment model.
Optionally, the generating a virtual twin scene corresponding to each test device according to each geometric model and corresponding dynamic data includes:
generating virtual equipment corresponding to the test equipment according to the geometric models;
matching the virtual device and the dynamic data;
analyzing the dynamic data matched with each virtual device to obtain dynamic subdata with a plurality of attributes;
and matching the plurality of attributes of the virtual equipment with the dynamic subdata of the plurality of attributes to generate the virtual twin scene.
In a second aspect, an embodiment of the present application further provides a digital twinning simulation system, where the digital twinning simulation system includes: a physical layer, a data layer, a virtual layer and an implementation layer;
the physical layer comprises a plurality of test target fields, test equipment belonging to each test target field and a plurality of test schemes, wherein the test equipment is used for executing the test schemes to generate static data and dynamic data, the static data is a parameter of the test equipment, and the dynamic data is data generated when the test equipment runs;
the data layer is used for acquiring the static data and the dynamic data generated by a plurality of test devices executing a preset test scheme through the physical layer and sending the static data and the dynamic data of the test devices to the virtual layer;
the virtual layer is used for generating a data model of each test device according to the static data, and the data model is used for representing the device parameters of each test device and the parameters of a test target range where the test device is located; the modeling tool provided by the implementation layer is used for modeling each test device according to the data model to obtain a geometric model of each test device; and the virtual twin scene generation module is further used for generating a virtual twin scene corresponding to each test device according to each geometric model and corresponding dynamic data, wherein the virtual twin scene comprises the virtual device corresponding to each test device and the corresponding dynamic data.
Optionally, the virtual layer includes: a data analysis script, an equipment matching script and an attribute matching script;
the data analysis script is used for analyzing the dynamic data acquired from the data layer to obtain the dynamic data corresponding to each test device;
the equipment matching script is used for matching the dynamic data obtained by analysis with the virtual equipment corresponding to the test equipment and sending the dynamic data corresponding to the test equipment to the corresponding geometric model;
the attribute matching script is used for analyzing each dynamic data and matching the plurality of attributes of the virtual equipment with the dynamic subdata of the plurality of attributes.
Optionally, the digital twinning simulation system further includes: a service layer;
the service layer is communicated with the physical layer and is used for managing test equipment and a test target range in the physical layer;
the service layer is communicated with the data layer and is used for analyzing and managing the data of the data layer.
In a third aspect, an embodiment of the present application further provides a digital twin simulation apparatus, where the apparatus includes:
the data acquisition module is used for acquiring static data and dynamic data of a plurality of test devices, wherein the static data are parameters of the test devices, and the dynamic data are data generated when the test devices run;
the data model generating module is used for generating a data model of each test device according to the static data, and the data model is used for representing the device parameters of each test device and the parameters of a test target range where the test device is located;
the geometric model generation module is used for modeling each test device according to the data model to obtain a geometric model of each test device;
and the virtual twin scene generation module is used for generating a virtual twin scene corresponding to each test device according to each geometric model and the corresponding dynamic data, wherein the virtual twin scene comprises the virtual device corresponding to each test device and the corresponding dynamic data.
Optionally, the apparatus further comprises:
the instruction receiving module is used for receiving a test starting instruction and an equipment combination instruction, and the test starting instruction comprises: the identifier of the preset test scheme, the device combination instruction includes: the device identification of a plurality of test devices and the combination relation among the plurality of test devices;
the event generating module is used for generating a test event according to the test starting instruction and the equipment combination instruction;
and the event triggering module is used for triggering the test event, controlling the plurality of test devices to execute the preset test scheme and generating the static data and the dynamic data.
Optionally, the geometric model generation module includes:
the equipment modeling unit is used for modeling the test equipment according to the equipment parameters of the test equipment in the data model to obtain a three-dimensional equipment model of the test equipment;
the target range modeling unit is used for modeling the test target range according to the parameters of the test target range where the test equipment is located in the data model to obtain a three-dimensional target range model of the test target range where the test equipment is located, and the geometric model of the test equipment comprises: the three-dimensional equipment model and the three-dimensional target range model.
Optionally, the geometric model generation module may further include:
the environment modeling unit is used for modeling the environment of the test target range according to the environment parameters to obtain a three-dimensional environment model of the test target range where the test equipment is located, and the geometric model of the test equipment comprises: the three-dimensional equipment model, the three-dimensional range model and the three-dimensional environment model.
Optionally, the virtual twin scene generating module includes:
the virtual equipment generating unit is used for generating virtual equipment corresponding to each test equipment according to each geometric model;
the device data matching is used for matching the virtual device with the dynamic data;
the data analysis unit is used for analyzing the dynamic data matched with each virtual device to obtain dynamic subdata with a plurality of attributes;
and the virtual twin scene generation unit is used for matching the plurality of attributes of the virtual equipment with the dynamic subdata of the plurality of attributes to generate the virtual twin scene.
In a fourth aspect, an embodiment of the present application further provides a server, including: a transceiver, a processor, and a storage medium;
the transceiver is used for receiving and transmitting data;
the storage medium stores program instructions executable by the processor;
the processor is configured to call the program instructions stored in the storage medium to perform the steps of the digital twin simulation method according to any one of the first aspect.
In a fifth aspect, the present embodiments further provide a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the steps of the digital twin simulation method according to any one of the first aspect.
The beneficial effect of this application is:
the application provides a digital twin simulation method, a system, a device and a server, wherein a data model is constructed by utilizing static data generated by a test device executing a test scheme, a geometric model of the test device is constructed according to the data model, a virtual twin scene is generated according to dynamic data of the geometric model of the test device, and the state of a plurality of test devices in a plurality of target ranges related to a preset test scheme is mapped into the virtual twin scene, so that the device states of the plurality of test devices can be restored and monitored in the virtual twin scene, virtual simulation test can be carried out by utilizing the virtual devices and the dynamic data in the virtual twin scene, and the test cost is reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a schematic structural diagram of a digital twin simulation system provided in an embodiment of the present application;
fig. 2 is a diagram of a data communication architecture according to an embodiment of the present application;
fig. 3 is a first flowchart of a digital twinning simulation method according to an embodiment of the present disclosure;
fig. 4 is a schematic flow chart of a digital twinning simulation method according to an embodiment of the present application;
fig. 5 is a schematic flowchart of a digital twin simulation method provided in an embodiment of the present application;
FIG. 6 is a fourth flowchart illustrating a digital twinning simulation method provided in an embodiment of the present application;
FIG. 7 is a schematic structural diagram of a digital twin simulation apparatus provided in an embodiment of the present application;
fig. 8 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all embodiments of the present invention.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Furthermore, the terms first, second and the like in the description and in the claims, as well as in the drawings described above, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that the features of the embodiments of the present application may be combined with each other without conflict.
In the following, the technical field applied by the embodiments of the present application will be described in detail, with reference to the digital twin simulation method, system, device and server provided by the embodiments of the present application. The embodiment of the application is applied to the field of aircraft tests, and relates to a plurality of test devices, software, models, data, simulators and professional technicians in the aircraft test process, the test resources are distributed in different target ranges in different areas, and in order to meet different test requirements, the test resources of the target ranges are required to be combined to form a logic target range for large-scale comprehensive integrated tests. In order to meet the requirements of aircraft test tasks and logic shooting range virtual tests, a virtual twin scene corresponding to a real test scene needs to be constructed so as to perform virtual simulation tests on test equipment in the virtual twin scene.
Referring to fig. 1, a schematic structural diagram of a digital twin simulation system provided in an embodiment of the present application is shown in fig. 1, where the digital twin simulation system includes: a physical layer, a data layer, a virtual layer and an implementation layer;
the physical layer comprises a plurality of test target fields, test equipment belonging to each test target field and a plurality of test schemes, the test equipment is used for executing the test schemes to generate static data and dynamic data, the static data is a parameter of the test equipment, and the dynamic data is data generated when the test equipment runs.
And the data layer is used for acquiring static data and dynamic data generated by the plurality of test equipment executing the preset test scheme through the physical layer and sending the static data and the dynamic data of the test equipment to the virtual layer.
The virtual layer is used for generating a data model of each test device according to the static data, and the data model is used for representing the device parameters of each test device and the parameters of a test target range where the test device is located; the data model is used for modeling each test device by utilizing a modeling tool provided by the implementation layer according to the data model to obtain a geometric model of each test device; and the virtual twin scene corresponding to each test device is generated according to each geometric model and the corresponding dynamic data, wherein the virtual twin scene comprises the virtual device corresponding to each test device and the corresponding dynamic data.
The service layer is used for managing test equipment and a test target range in the physical layer; and the data analysis module is also used for analyzing and managing the data of the data layer.
In this embodiment, as shown in fig. 1, the physical layer is a basis of the whole digital twin simulation system, and is divided into: device layer (D) l ) A target layer (B) l ) And a test layer (T) l ) Wherein the test layer (T) l ) For aligning a plurality of target field layers (B) l ) To manage and target the ground layer (B) l ) To the device layer (D) l ) Management, i.e. device layer (D) l ) A target layer (B) l ) And a test layer (T) l ) The relationship betweenCan be expressed as:
Figure BDA0003936663390000081
in particular, the device layer (D) l ) The test equipment is the basis of the physical layer and is composed of test equipment and other test resources distributed in each target range, and the test equipment can be theodolite, high-speed camera, radar, global Positioning System (GPS) and the like; target field layer (B) l ) The system consists of target ranges distributed in different areas, wherein the target ranges are a comprehensive body of test equipment and test resources and are also basic units of a flight test process; test layer (T) l ) Including a plurality of protocols, each protocol including all the resources and information required to be used during a test, typically involving one or more ranges. Test layer (T) l ) Is generally arranged on a logic target range test platform which can be opposite to a device layer (D) l ) A target layer (B) l ) And a test layer (T) l ) And managing, namely configuring or selecting a test scheme on the logic target range test platform so as to schedule and execute the test scheme on a plurality of test devices in a plurality of target ranges.
The data layer is used for managing data in the digital twin simulation system, and the data in the data layer mainly comprises: physical layer data, virtual layer data, and service layer data, wherein the physical layer data comprises: static data of the test equipment and dynamic data generated in the running process of the test equipment, wherein the static data comprises: the attribute parameters and the geometric parameters of the test equipment, and the dynamic data comprise: data generated during the operation of the test equipment and/or data collected during the operation of the test equipment. The virtual layer data includes: the data model, the geometric model, the behavior model of the virtual layer and the real-time data and the historical data generated by the virtual twin scene. The service layer data is data obtained by the service layer from different databases and data generated by relevant calculation of the service layer.
In some embodiments, the data layer further comprises: the system comprises a historical database, a model database and a general database, wherein the historical data can be obtained from the historical database when simulation test is carried out in a virtual twin scene by synchronizing the data in the real-time database to the historical database; the model database comprises a plurality of models obtained by performing model training on data.
The virtual layer is a twin of the physical layer and is composed of a data model (D) m ) Geometric model (G) m ) Behavior model (B) m ) And virtual twinning scene (V) s ) Composition, data model (D) m ) The static data format is used for converting the static data of the test equipment acquired from the data layer into a preset format, such as equipment size, equipment data, parameters of a target range where the test equipment is located, environmental parameters and the like.
Geometric model (G) m ) For determining the data model (D) m ) The provided data is used for modeling the test equipment, the geometric model describes the geometric information such as appearance, structure and size of the test equipment, and specifically, the geometric model can comprise: the system comprises an equipment model, a target range model and an environment model, and corresponding virtual equipment is generated by performing three-dimensional rendering on a geometric model.
Behavior model (B) m ) For matching dynamic data with virtual devices, generating virtual twin scenes (V) s ) Wherein the behavior model (B) m ) The method comprises the following steps: a data analysis script, an equipment matching script and an attribute matching script; the data analysis script can analyze the dynamic data acquired from the data layer to obtain the dynamic data of each test device, the device matching script is used for matching the dynamic data with the virtual devices and distributing the dynamic data to the virtual devices, the attribute matching script is used for performing attribute analysis on the dynamic data to obtain dynamic subdata with a plurality of attributes, and the dynamic subdata with the plurality of attributes is matched with the plurality of attributes of the virtual devices.
Data model (D) m ) Geometric model (G) m ) Behavior model (B) m ) And virtual twinning scene (V) s ) The relationship between can be expressed as:
Figure BDA0003936663390000091
and the realization layer comprises the steps of carrying out three-dimensional modeling on each test device by using 3D MAX modeling software to obtain a geometric model of the test device, and displaying the geometric model by using a Unity 3D technology to realize the construction and display of the virtual twin of the test device.
In some embodiments, the implementation layer may further display the digital twin simulation system in a form of a web page through a design of a human-computer interface and interaction, and may access and operate the digital twin simulation system through the client and the mobile phone.
The service layer acquires data from the data layer, manages, visualizes and analyzes the data, and can perform test reproduction according to historical data.
In some embodiments, the service layer may also manage devices of the physical layer, and optimize functions of the physical layer according to data analysis results.
Because the flight test in the logic target range is usually a combined test of a plurality of test devices across the target range, the types of the test devices involved in the test process are many, the data acquisition interfaces and the data acquisition modes provided by different test devices are greatly differentiated, the data formats of the test devices are different, and the data presents the characteristic of multi-source isomerism, therefore, different communication protocols need to be provided for the test devices. Please refer to table 1, which shows the communication protocol and its characteristics used in the data communication and collection process.
TABLE 1 communication protocol and its characteristics
Figure BDA0003936663390000092
Figure BDA0003936663390000101
Referring to fig. 2, a data communication architecture diagram provided in an embodiment of the present application is shown in fig. 2, where a data communication process includes:
the test equipment is in communication connection with the target range data receiving end through a short-distance communication protocol, data of the test equipment are sent to the target range data receiving end, the target range data receiving end checks and processes the data and then sends the data to the target range local database for storage, meanwhile, the target range data receiving end sends the data to a heterogeneous data acquisition interface of the cloud server through a network transmission protocol, the heterogeneous data acquisition interface sorts, summarizes and processes the data, the data are stored to the cloud real-time database, the cloud real-time database provides a data consumption interface, and static data and dynamic data in the cloud real-time database are obtained through the data consumption interface by driving the virtual layer.
It should be noted that the target range data receiving end and the target range local database are located in the physical layer of the digital twin simulation system, and the cloud server and the cloud real-time database are located in the data layer of the digital twin simulation system.
In a possible implementation mode, due to the fact that cooperation of multiple target ranges and multiple test devices is needed in the flight test process, a large amount of real-time data can be generated in the test process, and in order to reduce processing pressure and network burden of virtual twin scenes constructed by virtual layers, after the test data are received by the heterogeneous data acquisition interface, the data are classified, and the test data are divided into static data and dynamic data.
The static data refers to parameters of test equipment in a target range, parameters of the target range and environmental parameters, the parameters of the test equipment can include basic parameters of the test equipment, geometric parameters of the test equipment, basic working parameters of the equipment and the like, the parameters of the test equipment and the parameters of the target range generally only need to be acquired once when the system is started, the environmental data can also be acquired periodically, the acquisition is not needed when a virtual test is carried out every time, and the burden of the system can be reduced.
The dynamic data is real-time data acquired by each test device and each sensor in the test process, and mainly comprises two parts, wherein one part is data acquired by the sensors and comprises current environmental data such as humidity, temperature, wind speed, wind direction and the like; the other part is data collected and generated by each test device, including longitude and latitude, declination and the like of GPS, signal-to-noise ratio, radial speed, height and the like of radar, acceleration, angular acceleration, position BLH coordinates and the like of TSPI, horizontal angle, vertical angle, half-survey angle and the like of theodolite. It should be noted that the environment data is data generated by the sensor during runtime, but actually participates in the construction of the environment model as static data in the virtual layer.
Based on the above digital twin simulation system, a digital twin simulation method provided in the embodiments of the present application is described below.
Referring to fig. 3, a first flowchart of a digital twin simulation method provided in an embodiment of the present application is schematically illustrated, and as shown in fig. 3, the method may include:
s20: the method comprises the steps of obtaining static data and dynamic data generated when a plurality of test devices execute a preset test scheme, wherein the static data are parameters of the test devices, and the dynamic data are data generated when the test devices run.
In this embodiment, a preset test scheme is selected from the logical target range test platform, the preset test scheme includes identifiers related to the multiple test devices in the multiple target ranges and test-related resource information, and the multiple test devices in the multiple target ranges are controlled to execute the preset test scheme according to the preset test scheme to generate test data.
Test data generated by the plurality of test devices can be sent to a cloud server of the data layer through a multi-source heterogeneous acquisition interface, the cloud server carries out preliminary classification on the test data to obtain static data and dynamic data, the static data and the dynamic data are stored in a cloud real-time database respectively, and the virtual layer obtains the static data and the dynamic data of the plurality of test devices from the cloud real-time database respectively.
In one possible implementation, the preset test scheme may be sent to the logical target range test platform of the physical layer through a digital twin simulation system.
S30: and generating a data model of each test device according to the static data, wherein the data model is used for representing the device parameters of each test device and the parameters of the test target range where the test device is located.
In this embodiment, the virtual layer includes a blank data model of a plurality of test devices in advance, the blank data model specifies information of data, parameters, attributes, parameters of the firing range and the like included in the test devices, and after the virtual layer acquires static data of the test devices from the data layer, the virtual layer reads the static data and writes specific values of the information of the data, the parameters, the attributes, the parameters of the firing range and the like in the static data into the blank data model to obtain the data model of the test devices.
S40: and modeling each test device according to the data model to obtain a geometric model of each test device.
In this embodiment, three-dimensional modeling is performed on each test device according to information, such as various data, parameters, and attributes, of the test device included in the data model, so as to obtain a geometric model of each test device.
In some embodiments, the virtual layer may call 3D MAX modeling software provided by the utility layer, and model each test device according to the data model to obtain a geometric model of each test device.
S50: and generating a virtual twin scene corresponding to each test device according to each geometric model and the corresponding dynamic data, wherein the virtual twin scene comprises the virtual device corresponding to each test device and the corresponding dynamic data.
In this embodiment, a preset display tool is used to drive the geometric model of each test device to display, so as to obtain a virtual device corresponding to each test device, a behavior model in the virtual layer is used to drive the dynamic data of each test device to match with the virtual device corresponding to each test device, so as to generate a virtual twin scene including the virtual device and the corresponding dynamic data, and thus, the states of a plurality of test devices in a plurality of target fields related to a preset test scheme are mapped into the virtual twin scene, and the device states of the plurality of test devices can be restored and monitored in the virtual twin scene.
In some embodiments, in a virtual twin scenario, virtual devices may be driven to perform virtual simulation testing based on dynamic data and test data.
One implementation of the test apparatus performing the predetermined test protocol is described below with reference to fig. 4.
Referring to fig. 4, a second flowchart of the digital twin simulation method provided in the embodiment of the present application is shown in fig. 4, before the step S20 obtains the static data and the dynamic data generated by the plurality of test devices executing the preset test scheme, the method may further include:
s11: receiving a test starting instruction and an equipment combination instruction, wherein the test starting instruction comprises the following steps: presetting an identifier of a test scheme, wherein the equipment combination instruction comprises the following steps: device identification of a plurality of test devices, and a combinatorial relationship between the plurality of test devices.
In this embodiment, the test layer of the logic target range test platform provides a plurality of test schemes, and a tester can select a preset test scheme from the plurality of test schemes, and select a plurality of test devices from the test devices of the plurality of target ranges, and set up a combination relation for the plurality of test devices, generate a device combination instruction according to the combination relation of the plurality of test devices, respond to a test start operation input by the tester, generate a test start instruction, and carry an identifier of the preset test scheme selected by the tester in the test start instruction.
S12: and generating a test event according to the test starting instruction and the equipment combination instruction.
In this embodiment, a test event is generated according to a test start instruction and an apparatus combination instruction, and the test event is used to drive a plurality of test apparatuses to execute a preset test scheme, where a format of the test event is defined as:
Event={Equipments,Props,Attirbutes,Time}
the Event is a test Event, the Equipments are equipment identifiers of test equipment involved in the test, the tips are a combination relation between the test equipment, the Attributes are identifiers of preset test schemes, and the Time is a test starting Time.
S13: and triggering a test event, controlling a plurality of test devices to execute a preset test scheme, and generating static data and dynamic data.
In this embodiment, the test event is sent to the server of the digital twin simulation system through the message queue, and after the initialization work of the driving test is completed, the plurality of test devices in the plurality of target ranges are controlled to execute a preset test scheme, so as to generate static data and dynamic data.
After a plurality of test equipment generate static data and dynamic data, shooting range data are received and are obtained through modes such as serial ports, bluetooth, WIFI or local area networks, the static data and the dynamic data are sent to a local database to be stored, a server calls a heterogeneous data acquisition interface through a WebService technology, data are read from each local database to the server and are stored to a cloud database, and real-time data acquisition is achieved. The virtual layer calls a data pushing interface by adopting a WebService technology, and reads static data and dynamic data from a cloud database in the form of an extensible markup language (XML) document.
One implementation of modeling the test equipment according to the data model to obtain the set model is described in detail below with reference to fig. 5.
Referring to fig. 5, a third flow chart of the digital twin simulation method provided in the embodiment of the present application is shown in fig. 5, where the process of modeling each test device according to the data model in S40 to obtain the geometric model of each test device may include:
s41: and modeling the test equipment according to the equipment parameters of the test equipment in the data model to obtain a three-dimensional equipment model of the test equipment.
In this embodiment, in various parameters of the test equipment included in the data model, the equipment parameters of the test equipment are obtained, and the equipment parameters may include: the method comprises the steps of carrying out three-dimensional modeling on test equipment according to the size, the structure and the appearance of the test equipment, obtaining a three-dimensional equipment model of the test equipment, and setting basic attribute parameters and working parameters of the three-dimensional equipment model according to the basic attribute parameters and the working parameters of the test equipment.
S42: and modeling the test target range according to the parameters of the test target range where the test equipment is located in the data model to obtain a three-dimensional target range model of the test target range where the test equipment is located.
In this embodiment, in various parameters of the testing device included in the data model, the parameters of the target range of the testing target range where the testing device is located are obtained, and the parameters of the target range may include: and (3) carrying out three-dimensional modeling on the test target range according to the area of the test target range to obtain a three-dimensional target range model of the test target range.
S43: and modeling the environment of the test target range according to the environment parameters to obtain a three-dimensional environment model of the test target range where the test equipment is located.
In this embodiment, among various parameters of the testing equipment included in the data model, an environmental parameter around a testing target yard where the testing equipment is located is obtained, and the environmental parameter may include: and performing three-dimensional modeling on the environment around the test target range according to the weather parameters of the test target range and the mountain vegetation information around the test target range to obtain a three-dimensional environment model of the test target range. The geometric model of the test apparatus includes: the system comprises a three-dimensional equipment model, a three-dimensional target range model and a three-dimensional environment model.
One implementation of the above generation of the virtual twin scene from the geometric model and the dynamic data is described in detail below with reference to fig. 6.
Referring to fig. 6, a fourth flow chart of the digital twin simulation method according to the embodiment of the present application is shown in fig. 6, where the process of generating the virtual twin scene corresponding to each test device according to each geometric model and the corresponding dynamic data in the above step S50 may include:
s51: and generating virtual equipment corresponding to each test equipment according to each geometric model.
In this embodiment, a preset display tool is used to drive the geometric model of each test device to display, so as to obtain a virtual device corresponding to each test device. For example, the preset display driving tool may be a Unity 3D tool provided by the implementation layer.
S52: and matching the virtual equipment and the dynamic data.
In this embodiment, dynamic data is read in the form of an XML document from a cloud database through a behavior model of a virtual layer, a data parsing script in the behavior model parses the XML document, dynamic data of a plurality of test devices is obtained by parsing the XML document, the dynamic data of the plurality of test devices obtained by parsing is sent to an equipment matching script by the data parsing script, and the dynamic data of the plurality of test devices is matched with virtual devices corresponding to the plurality of dynamic devices by the equipment matching script.
S53: and analyzing the dynamic data matched with each virtual device to obtain dynamic subdata with a plurality of attributes.
In this embodiment, after the dynamic data is matched with the virtual devices, the attribute matching script corresponding to each virtual device analyzes the dynamic data, and the dynamic data is analyzed into dynamic subdata with multiple attributes.
S54: and matching the plurality of attributes of the virtual equipment with the dynamic subdata of the plurality of attributes to generate a virtual twin scene.
In this embodiment, because the data model is provided with a plurality of attributes included in the test device, after the geometric model is generated according to the data model and the virtual device is driven and displayed according to the geometric model, the virtual device also has a plurality of attributes, and after the dynamic subdata of the plurality of attributes is matched with the plurality of attributes of the virtual device, the virtual device is driven by the data display script to display the dynamic subdata of the plurality of attributes, so as to generate the virtual twin scene.
In the digital twin simulation method provided by the above embodiment, the static data generated by the test device executing the test scheme is used to construct the data model, the geometric model of the test device is constructed according to the data model, the virtual twin scene is generated according to the dynamic data of the geometric model of the test device, and the states of the plurality of test devices in the plurality of target fields related to the preset test scheme are mapped into the virtual twin scene, so that the device states of the plurality of test devices can be restored and monitored in the virtual twin scene, the virtual simulation test can be performed by using the virtual devices and the dynamic data in the virtual twin scene, and the test cost is reduced.
Referring to fig. 7, a schematic structural diagram of a digital twin simulation apparatus according to an embodiment of the present application is shown in fig. 7, where the apparatus includes:
the data acquisition module 10 is used for acquiring static data and dynamic data of a plurality of test devices, wherein the static data are parameters of the test devices, and the dynamic data are data generated when the test devices run;
the data model generating module 20 is configured to generate a data model of each testing device according to the static data, where the data model is used to represent device parameters of each testing device and parameters of a testing target range where the testing device is located;
the geometric model generation module 30 is used for modeling each test device according to the data model to obtain a geometric model of each test device;
and the virtual twin scene generating module 40 is configured to generate a virtual twin scene corresponding to each test device according to each geometric model and the corresponding dynamic data, where the virtual twin scene includes the virtual device corresponding to each test device and the corresponding dynamic data.
Optionally, the apparatus further comprises:
the instruction receiving module is used for receiving a test starting instruction and an equipment combination instruction, and the test starting instruction comprises the following components: presetting an identifier of a test scheme, wherein the equipment combination instruction comprises the following steps: the device identification of a plurality of test devices and the combination relation among the plurality of test devices;
the event generating module is used for generating a test event according to the test starting instruction and the equipment combination instruction;
and the event triggering module is used for triggering a test event, controlling a plurality of test devices to execute a preset test scheme and generating static data and dynamic data.
Optionally, the geometric model generation module 30 includes:
the equipment modeling unit is used for modeling the test equipment according to the equipment parameters of the test equipment in the data model to obtain a three-dimensional equipment model of the test equipment;
the target range modeling unit is used for modeling the test target range according to the parameters of the test target range where the test equipment is located in the data model to obtain a three-dimensional target range model of the test target range where the test equipment is located, and the geometric model of the test equipment comprises: a three-dimensional equipment model and a three-dimensional target range model.
Optionally, the geometric model generation module 30 may further include:
the environment modeling unit is used for modeling the environment of the test target range according to the environment parameters to obtain a three-dimensional environment model of the test target range where the test equipment is located, and the geometric model of the test equipment comprises: the system comprises a three-dimensional equipment model, a three-dimensional target range model and a three-dimensional environment model.
Optionally, the virtual twin scene generating module 40 includes:
the virtual equipment generating unit is used for generating virtual equipment corresponding to each test equipment according to each geometric model;
the device data matching is used for matching the virtual device with the dynamic data;
the data analysis unit is used for analyzing the dynamic data matched with each virtual device to obtain dynamic subdata with a plurality of attributes;
and the virtual twin scene generation unit is used for matching the plurality of attributes of the virtual equipment with the dynamic subdata of the plurality of attributes to generate a virtual twin scene.
The above-mentioned apparatus is used for executing the method provided by the foregoing embodiment, and the implementation principle and technical effect are similar, which are not described herein again.
These above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors, or one or more Field Programmable Gate Arrays (FPGAs), etc. For another example, when one of the above modules is implemented in the form of a Processing element scheduler code, the Processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
Referring to fig. 8, a schematic structural diagram of a server according to an embodiment of the present application is shown in fig. 8, where the server 100 includes: a transceiver 101, a processor 102 and a storage medium 103, the transceiver 101 being configured to receive and transmit data, the storage medium 103 storing program instructions executable by the processor 102, the processor 102 executing the program instructions to perform the steps of the above-described method embodiments. The specific implementation and technical effects are similar, and are not described herein again.
Optionally, the invention also provides a program product, for example a computer-readable storage medium, comprising a program which, when being executed by a processor, is adapted to carry out the above-mentioned method embodiments.
In the several embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one type of logical functional division, and other divisions may be realized in practice, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and shall be covered by the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A digital twinning simulation method, the method comprising:
the method comprises the steps of obtaining static data and dynamic data generated when a plurality of test devices execute a preset test scheme, wherein the static data are parameters of the test devices, and the dynamic data are data generated when the test devices run;
generating a data model of each test device according to the static data, wherein the data model is used for representing the device parameters of each test device and the parameters of a test target range where the test device is located;
modeling each test device according to the data model to obtain a geometric model of each test device;
and generating a virtual twin scene corresponding to each test device according to each geometric model and corresponding dynamic data, wherein the virtual twin scene comprises virtual devices corresponding to each test device and corresponding dynamic data.
2. The method of claim 1, wherein prior to obtaining the static data and the dynamic data resulting from the plurality of test devices executing the predetermined test protocol, the method further comprises:
receiving a test starting instruction and an equipment combination instruction, wherein the test starting instruction comprises the following steps: the identifier of the preset test scheme, the device combination instruction comprises: the device identification of a plurality of test devices and the combination relation among the test devices;
generating a test event according to the test starting instruction and the equipment combination instruction;
and triggering the test event, controlling the plurality of test devices to execute the preset test scheme, and generating the static data and the dynamic data.
3. The method of claim 1, wherein said modeling each of said test devices based on said data model to obtain a geometric model of each of said test devices comprises:
modeling the test equipment according to the equipment parameters of the test equipment in the data model to obtain a three-dimensional equipment model of the test equipment;
according to the parameters of the test target range where the test equipment is located in the data model, modeling is carried out on the test target range to obtain a three-dimensional target range model of the test target range where the test equipment is located, and the geometric model of the test equipment comprises: the three-dimensional equipment model and the three-dimensional range model.
4. The method of claim 3, wherein the data model is further configured to represent environmental parameters of a test firing ground in which the test rig is located, the method further comprising:
according to the environment parameters, modeling the environment of the test target range to obtain a three-dimensional environment model of the test target range where the test equipment is located, wherein the geometric model of the test equipment comprises: the three-dimensional equipment model, the three-dimensional target range model and the three-dimensional environment model.
5. The method of claim 1, wherein generating the virtual twin scene corresponding to each of the test devices based on each of the geometric models and the corresponding dynamic data comprises:
generating virtual equipment corresponding to the test equipment according to the geometric models;
matching the virtual device and the dynamic data;
analyzing the dynamic data matched with each virtual device to obtain dynamic subdata with a plurality of attributes;
and matching the plurality of attributes of the virtual equipment with the dynamic subdata of the plurality of attributes to generate the virtual twin scene.
6. A digital twinning simulation system, the digital twinning simulation system comprising: a physical layer, a data layer, a virtual layer and an implementation layer;
the physical layer comprises a plurality of test target ranges, test equipment belonging to each test target range and a plurality of test schemes, the test equipment is used for executing the test schemes to generate static data and dynamic data, the static data is a parameter of the test equipment, and the dynamic data is data generated when the test equipment runs;
the data layer is used for acquiring the static data and the dynamic data generated by a plurality of test devices executing a preset test scheme through the physical layer and sending the static data and the dynamic data of the test devices to the virtual layer;
the virtual layer is used for generating a data model of each test device according to the static data, and the data model is used for representing the device parameters of each test device and the parameters of a test target range where the test device is located; the data model is used for modeling each test device by utilizing a modeling tool provided by the implementation layer according to the data model to obtain a geometric model of each test device; and the virtual twin scene corresponding to each test device is generated according to each geometric model and the corresponding dynamic data, wherein the virtual twin scene comprises the virtual device corresponding to each test device and the corresponding dynamic data.
7. The digital twin simulation system of claim 6, wherein the virtual layer comprises: a data analysis script, an equipment matching script and an attribute matching script;
the data analysis script is used for analyzing dynamic data acquired from a data layer to obtain dynamic data corresponding to each test device;
the equipment matching script is used for matching the dynamic data obtained by analysis with the virtual equipment corresponding to the test equipment and sending the dynamic data corresponding to the test equipment to the corresponding geometric model;
the attribute matching script is used for analyzing each dynamic data and matching the plurality of attributes of the virtual equipment with the dynamic subdata of the plurality of attributes.
8. The digital twinning simulation system of claim 6, further comprising: a service layer;
the service layer is communicated with the physical layer and is used for managing test equipment and a test target range in the physical layer;
the service layer is communicated with the data layer and is used for analyzing and managing the data of the data layer.
9. A digital twinning simulation apparatus, the apparatus comprising:
the data acquisition module is used for acquiring static data and dynamic data generated by a plurality of test equipment executing a preset test scheme, wherein the static data are parameters of the test equipment, and the dynamic data are data generated when the test equipment runs;
the data model generating module is used for generating a data model of each test device according to the static data, and the data model is used for representing the device parameters of each test device and the parameters of a test target range where the test device is located;
the geometric model generation module is used for modeling each test device according to the data model to obtain a geometric model of each test device;
and the virtual twin scene generation module is used for generating a virtual twin scene corresponding to each test device according to each geometric model and the corresponding dynamic data, wherein the virtual twin scene comprises the virtual device corresponding to each test device and the corresponding dynamic data.
10. A server, comprising: a transceiver, a processor, and a storage medium;
the transceiver is used for receiving and transmitting data;
the storage medium stores program instructions executable by the processor;
the processor is configured to call the program instructions stored in the storage medium to perform the steps of the digital twin simulation method according to any one of claims 1 to 5.
CN202211406004.0A 2022-11-10 2022-11-10 Digital twin simulation method, system, device and server Pending CN115544672A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211406004.0A CN115544672A (en) 2022-11-10 2022-11-10 Digital twin simulation method, system, device and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211406004.0A CN115544672A (en) 2022-11-10 2022-11-10 Digital twin simulation method, system, device and server

Publications (1)

Publication Number Publication Date
CN115544672A true CN115544672A (en) 2022-12-30

Family

ID=84721057

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211406004.0A Pending CN115544672A (en) 2022-11-10 2022-11-10 Digital twin simulation method, system, device and server

Country Status (1)

Country Link
CN (1) CN115544672A (en)

Similar Documents

Publication Publication Date Title
US20180012145A1 (en) Machine learning based analytics platform
CN102693183B (en) Method and system for realizing automatic software testing
CN104981768B (en) Stream data receiver and save routine based on cloud
CN102946616B (en) Internet of things middleware performance testing system and testing method
CN112149329B (en) Method, system, equipment and storage medium for previewing state of key equipment of nuclear power plant
CN109302522A (en) Test method, device and computer system and medium
CN113132183B (en) Data transmission test method, device, electronic equipment and medium
CN102736567A (en) Method and system for centralized test control
CN104766155A (en) Engineering project element management method and system based on BIM
CN115034638A (en) Digital twinning processing method and digital twinning system
CN113502870A (en) Excavator working condition judging method and device
CN103886773B (en) Under a kind of B/S environment in GIS map the method for Real-Time Monitoring taxi
CN116737483B (en) Assembly test interaction method, device, equipment and storage medium
CN111047733B (en) Unmanned vehicle state monitoring control system
Yang et al. Research on weapon and equipment requirement analysis method based on DODAF
CN106992901B (en) Method and apparatus for resource scheduling analog pressure
Yan et al. Intergrating UAV development technology with augmented reality toward landscape tele-simulation
CN111290937B (en) Extensible mobile application automation test platform based on hybrid cloud
CN115544672A (en) Digital twin simulation method, system, device and server
CN110414021B (en) System, device and method for generating event rules of edge equipment of industrial Internet of things
CN114390093B (en) Virtual gateway simulation system
CN115561790A (en) Satellite-ground cloud edge collaborative ground target identification method and device based on deep network
CN110262973B (en) Data maintenance method, device, equipment and computer storage medium
CN115344628B (en) Space-time information system
CN112311900B (en) Navigation monitoring method and system based on data flow distributed processing

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