CN112506476B - Method and device for quickly constructing digital twin workshop system - Google Patents

Method and device for quickly constructing digital twin workshop system Download PDF

Info

Publication number
CN112506476B
CN112506476B CN202011230066.1A CN202011230066A CN112506476B CN 112506476 B CN112506476 B CN 112506476B CN 202011230066 A CN202011230066 A CN 202011230066A CN 112506476 B CN112506476 B CN 112506476B
Authority
CN
China
Prior art keywords
data
workshop
gpu
geometric model
digital twin
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
CN202011230066.1A
Other languages
Chinese (zh)
Other versions
CN112506476A (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.)
Zhejiang Chint Electrics Co Ltd
Wenzhou University
Original Assignee
Wenzhou University
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 Wenzhou University filed Critical Wenzhou University
Priority to CN202011230066.1A priority Critical patent/CN112506476B/en
Publication of CN112506476A publication Critical patent/CN112506476A/en
Application granted granted Critical
Publication of CN112506476B publication Critical patent/CN112506476B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/20Processor architectures; Processor configuration, e.g. pipelining
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/60Memory management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/005General purpose rendering architectures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/50Lighting effects

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • Image Generation (AREA)

Abstract

The invention provides a rapid architecture method of a digital twin workshop system, which comprises the steps of forming a process file with workshop production logic and manufacturing procedures according to extracted dynamic process data of a manufacturing workshop, and constructing a logic data model of the workshop according to the process file; and acquiring geometric model data of the manufacturing workshop through an embedded data controller and the like, and completing geometric data modeling of the digital twin workshop through a geometric modeling method. Transferring geometric model data from a CPU memory to a pre-allocation cache region of a GPU based on a shader coding mode, and presetting coordinate transformation of a geometric model in a twin space through matrix transformation; and the CPU sends a graphic rendering instruction to the GPU while calculating the dynamic logic data, so that the GPU and the geometric model data of the pre-allocation cache area interact in multiple batches. The invention can calculate the dynamic logic data and the geometric model data of the twin system in parallel, and can solve the problem of delayed mapping of a digital twin workshop system caused by large data volume.

Description

Method and device for quickly constructing digital twin workshop system
Technical Field
The invention relates to the technical field of digital manufacturing, in particular to a method and a device for quickly constructing a digital twin workshop system.
Background
A Digital Twin (DT) is a critical technology for carrying out mirror image mapping on a physical system by using a Digital model in a virtual space, and simulation analysis of multidisciplinary, multi-physical quantity, multi-scale and multi-probability is carried out by methods such as physical modeling, sensor updating, data transmission, service analysis and the like, so that the full life cycle process of a corresponding entity is faithfully reflected, and the Digital analysis, the simulation, the operation and the maintenance and the management are realized.
At present, the digital twin is a leading-edge technology in the field of information physical systems internationally, and has wide application prospects in the fields of electric power, urban planning, building construction, industrial manufacturing and the like. In the early stage, the establishment of a digital twin system focuses on the aspects of the establishment of a geometric model, data transmission and service analysis, the established model mainly takes a static object as a main part, the models do not have cooperative motion attributes, and the data content and the form are single. However, for an industrial manufacturing system, due to the existence of a manufacturing process and a manufacturing flow, when a digital twin system is modeled, besides a large amount of static geometric model data, a large amount of dynamic attribute data also exists, that is, due to logic data such as production and process introduced in the manufacturing process, motion matching relationship modeling is required, so that resource consumption and complexity of model construction are increased, and the early digital twin system is not suitable for the field of industrial manufacturing. Therefore, with the increase of data volume and twin system operation requirements, how to rapidly construct a digital twin system and ensure the fidelity and real-time performance of twin relationship has become one of the key points of the development of digital twin technology in the manufacturing field.
The establishment of the digital twin system depends on the processing and calculation of a large amount of model data, particularly the manufacturing field including a large amount of model data with static attributes and logic data with dynamic attributes, and the key for guaranteeing the faithful and real-time mapping relationship of the twin system is to quickly calculate data and improve execution efficiency, and the research on the aspect is less at present. Meanwhile, the processing of the geometric model data and the dynamic logic data by the digital twin system is mainly completed by the CPU and the GPU, so that computing resources and computing tasks need to be reasonably distributed, otherwise, the execution efficiency of the digital twin system cannot be improved, and the problem of delay mapping of the twin system is caused.
Disclosure of Invention
The technical problem to be solved by the embodiments of the present invention is to provide a method and an apparatus for quickly constructing a digital twin workshop system, which solve the problem of twin system delayed mapping caused by a large amount of operation data in the digital twin workshop system by reasonably allocating resources occupied by geometric model data and dynamic logic data and by performing parallel computation on the geometric model data and the dynamic logic data by using a CPU and a GPU.
In order to solve the above technical problem, an embodiment of the present invention provides a method for quickly configuring a digital twin workshop system, including the following steps:
s1, forming a process file with a workshop production logic and a manufacturing procedure according to the extracted dynamic process data of the manufacturing workshop, and constructing a logic data model of the workshop according to the process file; acquiring geometric model data of a manufacturing workshop through an embedded data controller and the like to complete geometric data modeling of the digital twin workshop;
s2, transferring the geometric model data from the CPU memory to a pre-allocation cache area of the GPU based on a shader coding mode, and presetting coordinate transformation of the geometric model in a twin space through matrix transformation;
s3, the CPU sends a graphic rendering instruction to the GPU while calculating the dynamic logic data, so that the GPU and the geometric model data of the pre-allocation cache area interact in multiple batches, parallel calculation of the geometric model data is completed, and a rendered digital twin workshop is obtained.
The geometric model data of the manufacturing workshop is acquired by matching various tools such as an embedded data controller, a sensor network, a data acquisition card, an industrial camera and the like.
The dynamic process data of the workshop comprise workshop production logic, manufacturing process and the like. The geometric model data includes texture, position, size, and size data of the plant model.
Wherein, the step S3 specifically includes:
and the CPU sends a graphic rendering instruction to the GPU while calculating the dynamic logic data, after the GPU obtains the CPU graphic calling rendering instruction, the GPU performs multi-batch interaction with the geometric model data of the pre-allocation cache region, reads vertex data and rendering states of the geometric model data in the pre-allocation cache region in batches, and completes multi-batch rendering of the model. Determining the size and the position of the rendered model of each batch through corresponding matrix operation;
the embodiment of the invention also provides a rapid architecture device of a digital twin workshop system, which comprises:
the data modeling module is used for forming a process file with workshop production logic and manufacturing procedures according to the extracted dynamic process data of the manufacturing workshop and constructing a logic data model of the workshop; and acquiring geometric model data of the manufacturing workshop through an embedded data controller and the like to complete the geometric data modeling of the digital twin workshop.
The data transfer module transfers geometric model data, including vertex patches and other data, from a CPU memory to a pre-allocation cache region of the GPU based on a shader coding mode, and determines the size and the position of a rendered geometric model through matrix operation in the pre-allocation cache region of the GPU;
and the parallel computing module is used for sending a graphic rendering instruction to the GPU while the CPU computes the dynamic logic data, so that the GPU and the geometric model data of the pre-allocation cache area are interacted in multiple batches, and the vertex data and the rendering state of the geometric model data in the pre-allocation cache area are read in batches to finish the multiple-batch rendering of the model. Determining the size and the position of the rendered model of each batch through corresponding matrix operation;
the geometric model data of the manufacturing workshop is acquired by matching various tools such as an embedded data controller, a sensor network, a data acquisition card, an industrial camera and the like.
The dynamic process data of the workshop comprise workshop production logic, manufacturing process and the like. The geometric model data comprises the texture, position, size and other data of the workshop model.
The embodiment of the invention has the following beneficial effects:
according to the method, the pre-allocation cache area is established in the GPU, geometric model data operation in the digital twin workshop is divided from the CPU, so that frequent interaction between the CPU and the GPU caused by a large number of model rendering works is converted into data communication between the GPU and the pre-allocation cache area, the computing resources of the CPU are saved, the CPU can intensively process logic data (namely dynamic logic data) in the digital twin workshop, parallel computing of the twin workshop data by the CPU and the GPU is realized, reasonable distribution of resources occupied by the geometric model data and the dynamic logic data is realized, parallel computing of the twin workshop data by the CPU and the GPU is realized, and the problem of twin system delayed mapping caused by large amount of system operation data of the digital twin workshop is solved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is within the scope of the present invention for those skilled in the art to obtain other drawings based on the drawings without inventive exercise.
FIG. 1 is a flow chart of a method for rapidly constructing a digital twin workshop system according to an embodiment of the present invention;
FIG. 2 is a logic diagram of parallel computation of logic and model data in an application scenario of the rapid architecture method for a digital twin plant system according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a CPU model data transmission process in an application scenario of the digital twin workshop system rapid architecture method according to the embodiment of the present invention;
FIG. 4 is a schematic diagram of a GPU model data processing process in an application scenario of the rapid architecture method for a digital twin plant system according to the embodiment of the present invention;
fig. 5 is a flowchart of a digital twin workshop rendering process in an application scene of the digital twin workshop system rapid architecture method according to the embodiment of the present invention;
fig. 6 is a comparison diagram of operation effects of a digital twin plant of a circuit breaker in an application scenario of the rapid architecture method for a digital twin plant system according to the embodiment of the present invention;
fig. 7 is a schematic structural diagram of a digital twin plant system rapid configuration device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail with reference to the accompanying drawings.
As shown in fig. 1, a proposed method for quickly configuring a digital twin workshop system in an embodiment of the present invention includes the following steps:
step S1, forming a process file with workshop production logic and manufacturing procedures according to the extracted dynamic process data of the manufacturing workshop, and constructing a logic data model of the workshop; and acquiring geometric model data of the manufacturing workshop through an embedded data controller and the like to complete the geometric data modeling of the digital twin workshop.
The specific process is that the workshop environment and the production process of a common industrial manufacturing workshop are complex, the parts in the workshop are numerous, the production flow is complicated, and in order to build a digital twin workshop in a virtual environment, the physical geometric information of the manufacturing workshop needs to be accurately modeled and faithfully mapped.
Firstly, acquiring geometric model data and dynamic process data of a workshop by matching various tools such as an embedded data controller, a sensor network, a data acquisition card and an industrial camera, forming a process file and constructing a logic data model of the workshop; the geometric model data of the workshop comprise but are not limited to the texture, position, size and the like of a workshop global model, and the information data are static model data; the production logic information includes, but is not limited to, production processes and steps of a workshop dynamic production line, and the production logic information data is dynamic logic data.
Secondly, constructing a digital twin workshop based on the information model. For example, the geometric information of the information model, including geometric model data and dynamic process data of a workshop, is collected, a twin geometric model (namely a digital twin workshop) is constructed in a virtual environment, and meanwhile, the model is subjected to mesh merging optimization processing to prepare for constructing a scene.
Step S2 is to transfer the geometric model data from the CPU memory to the pre-allocation buffer of the GPU based on the shader encoding, and to preset the coordinate transformation of the geometric model in the twin space by matrix transformation.
The specific process is that the architecture of the digital twin plant depends on a large number of geometric models and logic model support with dynamic attributes, and a computer needs to give enough CPU resources to dynamic logic data with high complexity so as to realize high coupling between model logic behaviors.
In a traditional digital twin workshop based on CPU operation, a CPU needs to process a large amount of geometric model data and logic data simultaneously, so that the problems of high system memory pressure, too heavy CPU load and delayed mapping of a digital twin body are easily caused.
In view of the fact that the GPU internally comprises hundreds of stream processors and is suitable for parallel data calculation, a pre-allocation cache area is established in the GPU, and static model operation of a workshop is divided from the CPU (namely model data mapped in the digital twin workshop is transferred to the GPU pre-allocation cache area), so that frequent interaction between the CPU and the GPU is converted into data communication between the GPU and the pre-allocation cache area, and resource consumption of the CPU is avoided. Meanwhile, logic planning is carried out based on an actual manufacturing process and a process flow, constraint rules and dynamic logic data of production behaviors are established, the CPU can process the logic data in a centralized mode, parallel calculation of the CPU and the GPU on twin workshop data is achieved, and calculation efficiency is improved.
And step S3, the CPU sends a graphic rendering instruction to the GPU while calculating the dynamic logic data, so that the GPU and the geometric model data of the pre-allocation cache area interact in multiple batches, the parallel calculation of the geometric model data is completed, and the rendered digital twin workshop is obtained.
The method comprises the specific steps that a CPU sends a graphic rendering instruction to a GPU while calculating dynamic logic data, after the GPU obtains a CPU graphic call rendering instruction, the GPU and geometric model data of a pre-allocation cache area perform multi-batch interactive calculation, vertex data and rendering states of the geometric model data in the pre-allocation cache area are read in batches, and multi-batch rendering of the model is completed. Determining the size and the position of the rendered model of each batch through corresponding matrix operation;
in the embodiment of the invention, the process flow and the production logic of the manufacturing workshop are mainly calculated by a CPU, and the specific implementation mode comprises a state machine, collision detection and the like. In addition, the CPU also requires processing and calculation of geometric model data. As shown in fig. 2, all the dynamic logic data for implementing the dynamic production line are loaded into the memory from the disk, and then transmitted to the video memory of the GPU for storage. And the GPU reads the vertex data and the rendering state in the pre-allocation cache region in multiple batches according to the received CPU rendering command, and reads the size and the position of the preset model in the virtual space through the matrix transformation in the cache region. And finally, dynamically rendering the production logic picture of the workshop production line on a user interface.
Considering that the geometric model data of the workshop accords with the data characteristics of parallel computation, a large amount of model computation work is separated to the GPU for being carried out in a shader coding mode, a part of cache regions are pre-distributed in a GPU video memory for the GPU to read and write, and the CPU only needs to be responsible for informing the GPU of data interaction with the pre-distributed cache regions. As shown in fig. 3, for the CPU end to transmit geometric model DATA, a large amount of geometric model DATA (DATA2) in the digital twin plant is loaded from a disk to a memory, and then transferred to a pre-allocation buffer by means of transmission, storage, and the like, where DATA2 includes vertex information and rendering state of the geometric model.
As shown in fig. 4, in order to process the geometric model data by the GPU side, the CPU stores the data information of the geometric model in the pre-allocation cache region of the GPU, and when the GPU receives a graphics rendering instruction called by the CPU, reads vertex data and rendering states in the pre-allocation cache region in multiple batches, determines the size, position, and the like of a rendering model in the rendering batch through corresponding matrix operation, and implements parallel processing of logic and model data, thereby completing construction of a digital twin plant, as shown in fig. 5.
It should be noted that there are three main transformations of world coordinates (i.e., vertex transformations) of a twin in virtual space: the method comprises the steps of translating, zooming and rotating, wherein a workshop model with dynamic logic attributes can preset a motion track in a memory of a CPU.
Using homogeneous coordinate representation, an arbitrary vector (x, y, z) in a scene can be translated (t) in space on each coordinate axis, as shown in equation (1)x,ty,tz) Distance.
Figure GDA0002916430280000071
Assume that the scaling factor is (k)x,ky,kz) If all three scaling factors k are equal, called uniform scaling, otherwise non-uniform scaling, which stretches or squeezes the model, changes the angle and scale associated with the model, and generally does not select non-uniform scaling in order to maintain the realism of the model in the scene.
Also as shown in equation (2), the arbitrary vector (x, y, z) is scaled in space by (k)x,ky,kz) And (4) doubling.
Figure GDA0002916430280000072
Also as shown in equation (3), using rotation about axis X, Y, Z, a matrix of rotation along any one axis can be derived, for vector (x, y, z) about any direction vector (R)x,Ry,Rz) Rotate
Figure GDA0002916430280000074
And (4) an angle.
Figure GDA0002916430280000073
As shown in fig. 6, an application scenario of the digital twin plant system rapid architecture method in the embodiment of the present invention is further described:
in order to verify the result, a batch circuit breaker manufacturing workshop is taken as an object, and the provided digital twin workshop rapid architecture method is verified and compared. The circuit breaker is commonly used in distribution and power distribution networks, is an electrical device for protecting the safety of terminal electricity utilization, and has a annual demand as high as billions.
The geometric structure of the miniature circuit breaker comprises a handle, a magnetic system and other parts, and takes a miniature circuit breaker manufacturing workshop with the daily output of more than 10 ten thousand poles as an example, the workshop system comprises 6 complete production lines, a single production line comprises 24 equipment sets, 144 manufacturing units in total, 4860 assembling actions and 4548 detecting actions are involved, the manufacturing process comprises 18 process flows of automatic assembly, multi-stage riveting, laser marking and the like, the number of twin workshop geometric models of corresponding numbers is up to 47415, and the twin workshop geometric models comprise 6.39 multiplied by 107A vertex sum of 6.71 x 107And each patch has a large demand on computing resources.
The circuit breaker digital twin workshop comprises a workshop storage model, a circuit breaker production line, corresponding production line equipment and other mapping models, geometric model data of the circuit breaker workshop is collected through an embedded data controller and the like, and geometric data modeling of the digital twin workshop is completed through a geometric modeling method. And analyzing the model of the breaker workshop according to the acquired model information, and calculating to realize the dynamic production logic of the production line through a state machine, collision detection and operation logic control codes, thereby realizing the three-dimensional reconstruction of the breaker digital twin workshop.
A twin workshop visualization platform is developed in a software development environment, and the content comprises a frequently displayed workshop operation condition interface and a popup window type unit operation condition interface. The workshop operation condition interface comprises the following production data: equipment operation state, planned assembly quantity, planned achievement rate, once-through rate, each unit OEE (equipment integrated efficiency), equipment energy consumption, system real-time and the like; the operation interface comprises the following data: unit name, equipment running state, yield, qualification rate, unqualified quantity, equipment comprehensive efficiency and the like. When a certain process of the physical workshop breaks down, the twin workshop immediately interrupts user operation through the sending and receiving of signals, the twin workshop automatically jumps to a fault unit, the fault unit stops the production process, and the true mapping with a workshop physical system is realized. When the signal is recovered to normal, the system stops warning and recovers to normal operation state synchronously with the physical breaker workshop.
In order to compare and verify the performance of the built digital twin workshop system, the invention verifies the proposed digital twin workshop rapid architecture method based on the Intel (R) core (TM) i7-10510U CPU @1.80GHz 2.30GHz hardware environment. Table 1 records the processing results of the units such as automatic pad printing, multi-stage riveting, automatic nail penetration, automatic detection, and laser marking, which are compared with the method based on the prior serial CPU computation and the method based on the parallel logic and model data computation proposed by the present invention under the above hardware conditions.
TABLE 1
Figure GDA0002916430280000081
Figure GDA0002916430280000091
Four indexes of Frame Per Second (FPS), Batches, CPU utilization rate and GPU utilization rate are respectively compared, the FPS is the frequency of updating pictures per second when a scene is drawn, the pictures are more smooth and vivid when the frame rate is higher, the frame rate is generally required to reach an interactive frame rate (30FPS), and human eyes cannot perceive the change of the frame rate when the frame rate reaches 75 FPS. The process of calling the graphics rendering API by the CPU is called Batch, and the drawing of each primitive needs to be called by a drawing function, so that the quantity of Batch is increased progressively, and the drawing efficiency is seriously influenced by a large amount of model drawing operations. As can be seen from table 1, CPU-based rendering has been difficult to meet the rendering requirements when rendering 10302 the number of models. However, in the framework method proposed herein, under more logic process conditions, the number of FPS is increased from 10.3 to 392 when the number of models reaches 40032, which is much higher than the frame rate perceived by human eyes, thereby improving the execution efficiency. In addition, because the CPU calling frequency pressure is released, the corresponding quantity of the latches is reduced from 4810 to 10, the use efficiency of the GPU is improved by the parallel framework method, the use efficiency is improved from 65% to 97%, and the calculation pressure of the CPU is greatly reduced.
In fig. 6, for comparison of the operation effect of the whole circuit breaker digital twin workshop, it can be seen from the comparison result that, due to the adoption of the parallel processing method, the GPU usage efficiency is improved, the calculation burden of the CPU is released, the capability of processing dynamic logic data is improved, the operation frame rate of the circuit breaker digital twin workshop is increased to 387fps which is far higher than the requirement of the interactive frame rate, the CPU utilization rate is decreased by 31%, the GPU utilization rate is increased by 21%, the batchs is decreased to 261 from the original 6898, and the optimization effect is obvious.
As shown in fig. 7, in an embodiment of the present invention, a digital twin workshop system fast configuration apparatus is provided, including:
the data modeling module is used for forming a process file with workshop production logic and manufacturing procedures according to the extracted dynamic process data of the manufacturing workshop and constructing a logic data model of the workshop; and acquiring geometric model data of the manufacturing workshop through an embedded data controller and the like to complete the geometric data modeling of the digital twin workshop.
The data transfer module transfers geometric model data, including vertex patches and other data, from a CPU memory to a pre-allocation cache region of the GPU based on a shader coding mode, and determines the size and the position of a rendered geometric model through matrix operation in the pre-allocation cache region of the GPU;
and the parallel computing module is used for sending a graphic rendering instruction to the GPU while the CPU computes the dynamic logic data, so that the GPU and the geometric model data of the pre-allocation cache area are interacted in multiple batches, and the vertex data and the rendering state of the geometric model data in the pre-allocation cache area are read in batches to finish the multiple-batch rendering of the model. Determining the size and the position of the rendered model of each batch through corresponding matrix operation;
the geometric model data of the manufacturing workshop is acquired by matching various tools such as an embedded data controller, a sensor network, a data acquisition card, an industrial camera and the like.
The dynamic process data of the workshop comprise workshop production logic, manufacturing process and the like. The geometric model data comprises the texture, position, size and other data of the workshop model. The embodiment of the invention has the following beneficial effects:
according to the method, the pre-allocation cache area is established in the GPU, geometric model data operation in the digital twin workshop is divided from the CPU, so that frequent interaction between the CPU and the GPU is converted into data communication between the GPU and the pre-allocation cache area, the computing resources of the CPU are saved, meanwhile, the CPU can intensively process logic data (namely dynamic logic data) in the digital twin workshop, parallel computing of the CPU and the GPU on the twin workshop data is realized, reasonable allocation of resources occupied by the geometric model data and the dynamic logic data is realized, parallel computing of the CPU and the GPU on the twin workshop data is realized, and the problem of twin system delayed mapping caused by large amount of system operation data of the digital twin workshop is solved.
It should be noted that, in the above system embodiment, each included unit is only divided according to functional logic, but is not limited to the above division as long as the corresponding function can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It will be understood by those skilled in the art that all or part of the steps in the method for implementing the above embodiments may be implemented by relevant hardware instructed by a program, and the program may be stored in a computer-readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc.
While the invention has been described in connection with what is presently considered to be the most practical and preferred embodiment, it is to be understood that the invention is not to be limited to the disclosed embodiment, but on the contrary, is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.

Claims (4)

1. A rapid architecture method of a digital twin workshop system is characterized by comprising the following steps:
s1, forming a process file with a workshop production logic and a manufacturing procedure according to the extracted dynamic process data of the manufacturing workshop, and constructing a logic data model of the workshop through the process file; acquiring geometric model data of a manufacturing workshop, and completing geometric data modeling of the digital twin workshop through geometric modeling, wherein dynamic process data of the workshop comprise workshop production logic and manufacturing procedure data which are dynamic logic data, and the geometric model data comprise texture, position, dimension and size data of a workshop model;
s2, transferring the geometric model data from the CPU memory to a pre-allocation cache area of the GPU based on a shader coding mode, and presetting coordinate transformation of the geometric model in a twin space through matrix transformation;
s3, the CPU sends a graphic rendering instruction to the GPU while calculating the dynamic logic data, so that the GPU and the geometric model data of the pre-allocation cache area interact in multiple batches, parallel calculation of the geometric model data is completed, and a rendered digital twin workshop is obtained.
2. The method for rapid architecture of a digital twin plant system according to claim 1, wherein the geometric model data of the manufacturing plant is cooperatively collected by a plurality of tools including an embedded data controller, a sensor network, a data acquisition card and an industrial camera.
3. The digital twin plant system rapid architecture method according to claim 1, wherein the step S3 specifically includes:
the method comprises the steps that a CPU sends a graphic rendering instruction to a GPU while calculating dynamic logic data, after the GPU obtains a CPU graphic call rendering instruction, the GPU and geometric model data of a pre-allocation cache area carry out multi-batch interaction, vertex data and rendering states of the geometric model data in the pre-allocation cache area are read in batches, multi-batch rendering of the model is completed, and the size and the position of a rendered model in each batch are determined through corresponding matrix operation.
4. A digital twin workshop system fast architecture device, comprising:
the data modeling module is used for forming a process file with workshop production logic and manufacturing procedures according to the extracted dynamic process data of the manufacturing workshop and constructing a logic data model of the workshop; collecting geometric model data of a manufacturing workshop, and completing geometric data modeling of the digital twin workshop, wherein dynamic process data of the workshop comprise workshop production logic and manufacturing procedure data which are dynamic logic data, and the geometric model data comprise texture, position, dimension and size data of a workshop model;
the data transfer module transfers the geometric model data comprising the vertex patch data from the CPU memory to a pre-allocation cache area of the GPU based on a shader coding mode, and determines the size and the position of a rendered geometric model through matrix operation in the pre-allocation cache area of the GPU;
and the parallel computing module is used for sending a graphic rendering instruction to the GPU while the CPU computes the dynamic logic data, so that the GPU and the geometric model data of the pre-allocation cache region carry out multi-batch interaction, the vertex data and the rendering state of the geometric model data in the pre-allocation cache region are read in batches, multi-batch rendering of the model is completed, and the size and the position of the rendered model of each batch are determined through corresponding matrix operation.
CN202011230066.1A 2020-11-06 2020-11-06 Method and device for quickly constructing digital twin workshop system Active CN112506476B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011230066.1A CN112506476B (en) 2020-11-06 2020-11-06 Method and device for quickly constructing digital twin workshop system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011230066.1A CN112506476B (en) 2020-11-06 2020-11-06 Method and device for quickly constructing digital twin workshop system

Publications (2)

Publication Number Publication Date
CN112506476A CN112506476A (en) 2021-03-16
CN112506476B true CN112506476B (en) 2022-04-22

Family

ID=74955628

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011230066.1A Active CN112506476B (en) 2020-11-06 2020-11-06 Method and device for quickly constructing digital twin workshop system

Country Status (1)

Country Link
CN (1) CN112506476B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113345060A (en) * 2021-06-01 2021-09-03 温州大学 Rendering method of digital twin model, and visual cone removing method and system
CN113608887B (en) * 2021-07-07 2023-07-04 中国电子科技集团公司第三十研究所 Real-time interaction method for digital twin virtual-real network information
CN114706338B (en) * 2022-04-20 2023-01-31 北京金石视觉数字科技有限公司 Interaction control method and system based on digital twin model
CN115083535B (en) * 2022-08-23 2022-11-08 佰墨思(成都)数字技术有限公司 Configuration digital twin construction method and system for biological pharmaceutical workshop
CN115351524B (en) * 2022-08-30 2023-09-19 北京航空航天大学 Digital twin multi-level model assembling method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110850818A (en) * 2019-10-21 2020-02-28 温州大学 Method for realizing digital twin modeling of automatic assembly workshop of circuit breaker
CN111784812A (en) * 2020-06-09 2020-10-16 当家移动绿色互联网技术集团有限公司 Rendering method, rendering device, storage medium and electronic equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7558428B2 (en) * 2004-09-13 2009-07-07 Microsoft Corporation Accelerated video encoding using a graphics processing unit
US11726822B2 (en) * 2017-06-05 2023-08-15 Umajin Inc. Systems and methods for providing digital twin-enabled applications
CN113287154A (en) * 2018-10-14 2021-08-20 本特利系统有限公司 Conversion of infrastructure model geometry to tile format

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110850818A (en) * 2019-10-21 2020-02-28 温州大学 Method for realizing digital twin modeling of automatic assembly workshop of circuit breaker
CN111784812A (en) * 2020-06-09 2020-10-16 当家移动绿色互联网技术集团有限公司 Rendering method, rendering device, storage medium and electronic equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Towards architecting digital twin-pervaded systems;Thomas Bauer et al.;《Proceedings of the 7th International Workshop on Software Engineering for Systems-of-Systems》;20190531;66-69 *
基于VGE理念的高山滑雪数字孪生关键技术研究与应用;孟阳等;《城市住宅》;20200725(第07期);12-15 *

Also Published As

Publication number Publication date
CN112506476A (en) 2021-03-16

Similar Documents

Publication Publication Date Title
CN112506476B (en) Method and device for quickly constructing digital twin workshop system
Wang et al. Pixel2Mesh: 3D mesh model generation via image guided deformation
CN101458825B (en) Collision detection method implementing 3D animation model in display card, display card and system therefor
CN113688545B (en) Visualization method and system for finite element post-processing result and data processing terminal
EP2243118A2 (en) Method, medium, and system for compressing and decoding mesh data in three-dimensional mesh model
CN108986221A (en) A kind of three-dimensional face grid texture method lack of standardization approached based on template face
CN104391683A (en) Method and device for educing model cartoon in three-dimensional software based on 3Dmax script
CN110889901B (en) Large-scene sparse point cloud BA optimization method based on distributed system
CN112419511B (en) Three-dimensional model file processing method and device, storage medium and server
CN110503718A (en) Three-dimensional engineering model lightweight display methods
Bao The application of intelligent algorithms in the animation design of 3D graphics engines
CN114254238A (en) Three-dimensional Web modeling platform based on digital twinning
CN111914376A (en) Method and device for automatically constructing power grid bus mode diagram and storage medium
CN110009100B (en) Calculation method of user-defined operator and related product
CN105205851B (en) A kind of extraordinary film rendering method and system based on GPU supercomputer
JPS6386079A (en) Three-dimensional shadow image forming processing device
CN111651826A (en) Building information model technology-based building industrialization system
CN113971721A (en) Lightweight characterization method for digital twins of substation equipment
CN113628318A (en) Ray tracing-based distributed real-time neuron rendering method and system
CN114859830A (en) Digital twin system applied to industrial production
CN114797109A (en) Object editing method and device, electronic equipment and storage medium
CN110689616B (en) Water delivery channel parametric modeling method based on three-dimensional digital earth
Feng et al. Analysis of lightweight processing technology for WEB oriented BIM model
CN111275806A (en) Parallelization real-time rendering system and method based on points
CN115630578B (en) Calculation power system prediction layout optimization method

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
TR01 Transfer of patent right

Effective date of registration: 20230420

Address after: 325000 No.1 Zhengtai Road, Zhengtai Industrial Park, beibaixiang Town, Yueqing City, Wenzhou City, Zhejiang Province

Patentee after: ZHEJIANG CHINT ELECTRICS Co.,Ltd.

Patentee after: Wenzhou University

Address before: 325000 Wenzhou City National University Science Park incubator, No. 38 Dongfang South Road, Ouhai District, Wenzhou, Zhejiang

Patentee before: Wenzhou University

TR01 Transfer of patent right
CP03 Change of name, title or address

Address after: 325000 Wenzhou City National University Science Park incubator, No. 38 Dongfang South Road, Ouhai District, Wenzhou, Zhejiang

Patentee after: Wenzhou University

Patentee after: ZHEJIANG CHINT ELECTRICS Co.,Ltd.

Address before: 325000 No.1 Zhengtai Road, Zhengtai Industrial Park, beibaixiang Town, Yueqing City, Wenzhou City, Zhejiang Province

Patentee before: ZHEJIANG CHINT ELECTRICS Co.,Ltd.

Patentee before: Wenzhou University

CP03 Change of name, title or address