Digital twin fluid simulation method, device, equipment and medium

By constructing and controlling fluid models in a digital twin system, the problem of the inability of the existing technology to realize virtual simulation of oil, gas and water fluids is solved, and efficient virtual simulation of these fluids is achieved.

CN119670611APending Publication Date: 2025-03-21CHINA NATIONAL OFFSHORE OIL (CHINA) CO LTD +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411713211.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-27
Publication Date
2025-03-21

AI Technical Summary

Technical Problem

The prior art cannot effectively realize virtual simulation of fluids such as oil, gas and water.

Method used

By obtaining the physical properties information of the fluid to be simulated and the size information of the fluid container, the container model and fluid model are built in the digital twin system, the display properties of the fluid model are set, and the morphological control is performed according to the movement state parameters of the fluid to achieve dynamic display.

Benefits of technology

The digital twin simulation of fluids such as oil, gas and water is realized, and the virtual simulation of fluids is effectively realized.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119670611A_ABST
    Figure CN119670611A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of digital twinning, and discloses a digital twinning fluid simulation method, device, equipment and medium, which can obtain physical property information of a fluid to be simulated and size information of a fluid container; wherein the fluid to be simulated comprises at least one fluid. According to the physical property information of the to-be-simulated fluid and the size information of the fluid container, constructing a container model and a fluid model arranged in the container model in the digital twin system; wherein the fluid model comprises a first sub-model corresponding to each fluid. And setting a display attribute of each first sub-model in the initial fluid model to obtain a second sub-model corresponding to each first sub-model. And performing form control on each second sub-model according to the motion state parameter of each fluid, so that each second sub-model is dynamically displayed. According to the invention, digital twinborn simulation of fluids such as oil, gas and water can be realized, that is, virtual simulation of fluids such as oil, gas and water can be effectively realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of digital twin technology, and in particular to a digital twin fluid simulation method, device, equipment and medium. Background Art

[0002] With the development of computer science and technology, virtual simulation technology is constantly being optimized and upgraded.

[0003] At present, the virtual simulation of related technologies has gradually evolved from 2D graphics combined with animation to 2.5D, 3D static, and 3D dynamic display forms. Most digital projects are displayed in dynamic 3D. The virtual simulation of physical equipment in related technologies has also become relatively mature.

[0004] However, the relevant technology is still unable to effectively realize the virtual simulation of fluids such as oil, gas and water. Summary of the invention

[0005] The present invention provides a digital twin fluid simulation method, device, equipment and medium for realizing digital twin simulation of fluids such as oil, gas and water, and effectively realizing fluid virtual simulation.

[0006] In a first aspect, the present invention provides a digital twin fluid simulation method, comprising: Acquire physical property information of the fluid to be simulated and size information of the fluid container; wherein the fluid to be simulated includes at least one fluid; According to the physical property information of the fluid to be simulated and the size information of the fluid container, a container model and a fluid model located inside the container model are constructed in the digital twin system; wherein the fluid model includes a first sub-model corresponding to each of the fluids; Setting display properties of each of the first sub-models in the initial fluid model to obtain a second sub-model corresponding to each of the first sub-models; The morphology of each of the second sub-models is controlled according to the motion state parameters of each of the fluids, so that each of the second sub-models is dynamically displayed.

[0007] Optionally, the physical property information of the fluid to be simulated includes hierarchy and association information between different fluids, and also includes shape information of each fluid; The step of constructing a container model and a fluid model located inside the container model in the digital twin system according to the physical property information of the fluid to be simulated and the size information of the fluid container includes: According to the size information of the fluid container, constructing an initial fluid model corresponding to the size information in the digital twin system using grid points, lines, surfaces and element bodies; According to the hierarchy and association information between different fluids, the initial fluid model is segmented to obtain an initial sub-model corresponding to each fluid, and the size of each initial sub-model is adjusted based on the shape information of each fluid to obtain each first sub-model and the fluid model; The container model is arranged at the outer edge of the fluid model according to the size information of the fluid container.

[0008] Optionally, the physical property information of the fluid to be simulated also includes color information, density information and material information; The step of setting the display attribute of each of the first sub-models in the initial fluid model to obtain a second sub-model corresponding to each of the first sub-models includes: For any of the fluids, the color, density and material of the target sub-model are set according to the color information, density information and material information of the fluid to obtain the corresponding second sub-model; wherein the target sub-model is the first sub-model corresponding to the fluid.

[0009] Optionally, the fluid to be simulated includes oil, gas, water and oil-water mixed fluid.

[0010] Optionally, after obtaining each of the first sub-models and the fluid model, the method further includes: The stratification mode of the first sub-model corresponding to the gas is set to a single-layer mode, and the stratification mode of the first sub-model corresponding to the oil, the water and the oil-water mixed fluid is set to a double-layer mode.

[0011] Optionally, the performing morphological control on each of the second sub-models according to the motion state parameters of each of the fluids so as to enable each of the second sub-models to be dynamically displayed includes: Obtaining motion state parameters of each of the fluids from a cloud database through an interface; wherein the motion state parameters include liquid level and / or flow rate; The morphology of each of the second sub-models is controlled according to the motion state parameters of each of the fluids, so as to achieve dynamic display of each of the second sub-models driven by data.

[0012] Optionally, after performing morphological control on each of the second sub-models according to the motion state parameters of each of the fluids, the method further includes: Sending the motion state parameters of each fluid to a data display panel for display to a user; receiving a fluid control instruction input by the user; In response to the fluid control instruction, the second sub-model is controlled to make corresponding changes to achieve interaction with the user.

[0013] In a second aspect, the present invention provides a digital twin fluid simulation device, comprising: An acquisition unit, used to acquire physical property information of the fluid to be simulated and size information of the fluid container; wherein the fluid to be simulated includes at least one fluid; A construction unit, configured to construct a container model and a fluid model located inside the container model in the digital twin system according to the physical property information of the fluid to be simulated and the size information of the fluid container; wherein the fluid model includes a first sub-model corresponding to each of the fluids; an attribute setting unit, used to set the display attribute of each of the first sub-models in the initial fluid model, and obtain a second sub-model corresponding to each of the first sub-models; A control unit is used to perform morphological control on each of the second sub-models according to the motion state parameters of each of the fluids, so that each of the second sub-models can be dynamically displayed.

[0014] In a third aspect, the present invention provides a computer device comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the digital twin fluid simulation method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0015] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the digital twin fluid simulation method of the first aspect or any corresponding embodiment thereof.

[0016] The digital twin fluid simulation method, device, equipment and medium provided by the present invention can obtain the physical property information of the fluid to be simulated and the size information of the fluid container; wherein, the fluid to be simulated includes at least one fluid. According to the physical property information of the fluid to be simulated and the size information of the fluid container, a container model and a fluid model arranged inside the container model are constructed in the digital twin system; wherein, the fluid model includes a first sub-model corresponding to each fluid. The display properties of each first sub-model in the initial fluid model are set to obtain a second sub-model corresponding to each first sub-model. The morphology of each second sub-model is controlled according to the motion state parameters of each fluid so that each second sub-model is dynamically displayed. The present invention can realize the digital twin simulation of fluids such as oil, gas and water, that is, it can effectively realize the virtual simulation of fluids such as oil, gas and water. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0018] Figure 1 A flow chart of a digital twin fluid simulation method provided by an embodiment of the present invention; Figure 2 A structural application scenario diagram of a digital twin fluid simulation method provided by an embodiment of the present invention; Figure 3 A fluid model splitting logic diagram provided by an embodiment of the present invention; Figure 4 A property setting logic diagram of a digital twin fluid simulation method provided by an embodiment of the present invention; Figure 5 A schematic structural diagram of a digital twin fluid simulation device provided in an embodiment of the present invention; Figure 6 A schematic diagram of the structure of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0019] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0020] Combine the following Figure 1-Figure 4 The digital twin fluid simulation method of the present invention is described.

[0021] like Figure 1 As shown, this embodiment proposes a first digital twin fluid simulation method, which may include the following steps: S101. Obtain physical property information of a fluid to be simulated and size information of a fluid container; wherein the fluid to be simulated includes at least one fluid.

[0022] The fluid to be simulated is the fluid that needs to be virtually simulated, such as oil, gas, and water.

[0023] Optionally, the fluid to be simulated includes oil, gas, water and oil-water mixed fluid.

[0024] Specifically, the physical property information of the fluid to be simulated may include shape, density, flow rate, etc.

[0025] The size information of the fluid container may include length, width, height, diameter, volume, etc.

[0026] It should be noted that this embodiment can perform digital twin simulation on the fluid to be simulated.

[0027] S102. According to the physical property information of the fluid to be simulated and the size information of the fluid container, a container model and a fluid model located inside the container model are constructed in the digital twin system; wherein the fluid model includes a first sub-model corresponding to each fluid.

[0028] Specifically, this embodiment can construct a container model and a fluid model in the digital twin software based on the physical property information of the fluid to be simulated and the size information of the fluid container.

[0029] Optionally, the physical property information of the fluid to be simulated includes the hierarchy and association information between different fluids, and also includes the shape information of each fluid. In this case, step S102 may include: According to the size information of the fluid container, an initial fluid model corresponding to the size information is constructed in the digital twin system using grid points, lines, surfaces and element bodies; According to the hierarchy and association information between different fluids, the initial fluid model is segmented to obtain an initial sub-model corresponding to each fluid, and the size of each initial sub-model is adjusted based on the shape information of each fluid to obtain each first sub-model and a fluid model; According to the size information of the fluid container, a container model is set at the outer edge of the fluid model.

[0030] Specifically, this embodiment can use the collected parameters and internal fluid related information to build the physical model of the fluid part in the modeling software using mesh points, lines, surfaces and element operations, and sort out and group modeling for different levels and related fluid relationships. The computer automatically confirms the three groups of oil, gas and water models based on the model name and material, determines the shape, volume and density of the fluid model, and distinguishes the upper and lower hierarchical relationships of the fluid. According to the results of the three media of oil, gas and water automatically analyzed by the fluid model, the fluid container is added to the fluid model that needs to be simulated.

[0031] Among them, this embodiment can automatically distinguish the types of fluids according to the names of oil, gas, and water, and arrange the upper and lower hierarchical relationships according to the densities of different fluids.

[0032] It should be noted that the position of fluid generation is based on the axis point of each segmented fluid model itself, so as to prevent the problem of incorrect display of the loaded fluid material volume after importing the development software. Manually in 3d Max or other modeling software, the center point position needs to be set correctly. This embodiment can automatically optimize the number of faces and points of the imported model to prevent the three-dimensional running package from being too large in the digital twin project of B / S architecture, resulting in slow loading, running jams and other problems.

[0033] S103: Setting display properties of each first sub-model in the initial fluid model to obtain a second sub-model corresponding to each first sub-model.

[0034] Specifically, this embodiment can set the display properties of each first sub-model in the initial fluid model in the digital twin software based on the physical property information of each fluid.

[0035] Optionally, the physical property information of the fluid to be simulated also includes color information, density information and material information. In this case, step S103 may include: For any fluid, the color, density and material of the target sub-model are set according to the color information, density information and material information of the fluid to obtain the corresponding second sub-model; wherein the target sub-model is the first sub-model corresponding to the fluid.

[0036] Specifically, this embodiment can give the model materials with different densities, colors and physical properties, so that the fluid object can be displayed in a dynamic form.

[0037] Optionally, in other digital twin fluid simulation methods proposed in this embodiment, after step S103, the method may further include: The stratification mode of the first sub-model corresponding to gas is set to a single-layer mode, and the stratification mode of the first sub-model corresponding to oil, water and oil-water mixed fluid is set to a double-layer mode.

[0038] Specifically, in this embodiment, a computer can set the shape and layering mode of the oil, gas and water model according to the shape of the physical model, set the first sub-model corresponding to the gas to a single-layer mode, set the first sub-model corresponding to the oil and water to a double-layer mode, and further determine the display mode of the fluid.

[0039] S104. Performing morphological control on each second sub-model according to the motion state parameters of each fluid, so that each second sub-model is dynamically displayed.

[0040] Specifically, in this embodiment, the motion state parameters of each fluid in the fluid container may be obtained first, and then the shapes of each second sub-model may be controlled according to the motion state parameters of each fluid.

[0041] Optionally, step S106 may include: Obtaining the motion state parameters of each fluid from the cloud database through an interface; wherein the motion state parameters include liquid level and / or flow rate; The morphology of each second sub-model is controlled according to the motion state parameters of each fluid, so as to achieve dynamic display of each second sub-model driven by data.

[0042] Specifically, when obtaining the motion state parameters of the fluid, this embodiment can obtain real-time data, design data and simulation data from the cloud server or the edge server through the Http interface.

[0043] Specifically, this embodiment can access JSON data from the cloud database through an interface. The JSON data is connected as a floating point value. The liquid level calculation formula is floating point value / total liquid level height = percentage. The liquid level height at this time is half. The flow rate is the fluid velocity set to 0-2 levels (2 decimal places). The JSON data will be directly converted to a numerical value, and numbers greater than 2 will be displayed as a flow rate of 2. Oil, gas and water are calculated separately, and finally the parameter conversion is connected to the fluid's liquid level, flow rate and other parameters to achieve a data-driven real-time change effect of the fluid.

[0044] It should be noted that the present embodiment can calculate that the fluid model is automatically divided into two forms. The model after overall segmentation is used, and the top or bottom surface is empty. This type of model will be identified as only showing the fluid effect around, without the liquid surface display effect. Another type is the model after operation through the cover and welding points. This type of model will be identified as showing the fluid effect around and on the liquid surface.

[0045] The digital twin fluid simulation method proposed in this embodiment can obtain the physical property information of the fluid to be simulated and the size information of the fluid container; wherein, the fluid to be simulated includes at least one fluid. According to the physical property information of the fluid to be simulated and the size information of the fluid container, a container model and a fluid model arranged inside the container model are constructed in the digital twin system; wherein, the fluid model includes a first sub-model corresponding to each fluid. The display properties of each first sub-model in the initial fluid model are set to obtain a second sub-model corresponding to each first sub-model. The morphology of each second sub-model is controlled according to the motion state parameters of each fluid so that each second sub-model is dynamically displayed. This embodiment can realize the digital twin simulation of fluids such as oil, gas, and water, that is, it can effectively realize the virtual simulation of fluids such as oil, gas, and water.

[0046] like Figure 2As shown, this embodiment proposes a structural application scenario of an oil, gas and water fluid simulation system and a functional design framework for virtual fluid simulation, and realizes system development support for different architectures. In the process of constructing fluid models and container models, this embodiment can combine the characteristics of virtual fluid display effects to divide and design the main scenarios of the oil, gas and water fluid simulation system in detail.

[0047] Basic setting function: In fluid simulation, the general shape of the fluid is produced by setting the parameters of structure, detail and depth of field deviation.

[0048] Structure: including spherical, cylindrical, cubic and irregular. The default is irregular structure. The computer analyzes the structure of the physical model and calculates the reflection angle and volume shape of different structures.

[0049] Details: Display details by overlaying different levels. Details are displayed or hidden according to the user's choice. Details include single layer, multi-layer, gas, and multi-layer without gas.

[0050] Depth of field deviation: Call the camera's FOV to achieve the depth of field effect of the distant view, and also use the UV displacement to set the deviation distance.

[0051] Fluid setting function: in fluid simulation, by setting the parameters of color, density and flow rate, fluid and detailed shapes can be produced.

[0052] Color: Call the RGB three values ​​of the rendering module to control the color.

[0053] Density: Call the A value of the rendering module to control the transparency of the fluid and simulate the density effect.

[0054] Flow rate: Call the speed parameter of the particle module in Unity to control the speed of particles and simulate the flow rate effect.

[0055] Special effect setting function, in fluid simulation, by setting the parameters of bubbles and smoke, add special effects to the fluid. Use the number and life value of the particle module in Unity to achieve the bubble effect. Simulate smoke by controlling the displacement effect of the material map.

[0056] The physical property function, in fluid simulation, increases the shape of the fluid affected by the environment by calling the gravity parameter.

[0057] After completing the adjustment of oil, gas and water fluids according to the setting process, the interactive functions are artificially added according to the digital twin display requirements.

[0058] Through the HTTP interface, access different data such as real-time, design, and simulation to achieve three-dimensional data interaction; The fluid model can be obtained by modeling, as shown in the following example: Figure 3 As shown: First, three-dimensional digital modeling is performed using modeling software such as 3d Max. After completion, the model containing the fluid (common tanks and pipes) is split into independent models.

[0059] Edit the split independent container model using the Shell command and set the Shell size to 1cm outward.

[0060] In 3dmax, select all the faces of the shell through face selection, click on the expansion face, delete the faces of the shell, and use the normal flip command to flip the inner faces. The result is the physical model of the fluid in the tank, and the shell thickness is 1cm, so there will be no display problems caused by duplicate faces.

[0061] Use the Slice command to slice the entire model according to different fluids and structures, roughly dividing it into a single fluid model, a multi-layer fluid model, and a gas model. Except for gas, other fluids need to be welded. Reset the axis point of each sliced ​​model and break up the UV of the model to flatten it.

[0062] Then select all fluid models, unify the axis center as their own center point, and standardize the naming according to the fluid.

[0063] Export FBX format, excluding animation, lighting, textures, etc.

[0064] Import into Unity 3D, simply set the fluid properties, adjust the fluid parameters, check whether the display effect is normal, if there is a display problem, debug in 3d Max, export FBX to cover and update until the problem is solved.

[0065] After importing the Unity 3D development software, load the oil, gas and water fluid simulation system, and realize fluid simulation by setting various parameters of the fluid.

[0066] In this embodiment, when adding a container model, the fluid model to be simulated can be added to the fluid container, and the model shape and layering mode can be set to ensure that the fluid model is fully displayed.

[0067] like Figure 4 As shown, the model structure of the object in the basic settings is irregular by default, and is automatically generated according to the mesh structure of the model. At the same time, you can choose a cylinder, sphere, or cube, etc. Simple geometric bodies reduce resource usage. The computer will calculate the resources required for rendering based on the number of triangles.

[0068] The detail module calculates and renders according to the type of fluid. Non-fluid types (namely non-oil, gas and water) are rendered according to the shell option; oil or water are rendered according to the default single-layer option; the gas part is rendered according to the gas option; the part containing oil, gas and water is rendered according to the multi-layer option; the part containing only oil and water is rendered according to the multi-layer no gas option.

[0069] The depth of field module is a rendering effect that enhances the fluid effect. It is rendered according to the depth of field distance of 0-100. The default value is 0 and can be adjusted manually. The computer calls the camera FOV parameters to simulate the depth of field effect.

[0070] Specifically, when setting the display properties of the first sub-model, this embodiment can make more detailed rendering effects according to different fluids. Color: call the full color range value of RGB from 0 to 255, which is consistent with the default material color setting in the manual modeling process; density: call the value of 0-255 in A and convert it into a numerical range of 0-1; flow rate: call the numerical range of 0-2 of the return value of the data.

[0071] The special effects module is used to render bubbles and smoke in the fluid. It is turned on by default. The computer uses the color, speed and randomness of the Unity particle system to simulate bubbles. The color and emission speed values ​​of the particle system and material system are used to simulate the smoke effect.

[0072] The physical property module is the computer's call to open and close the gravity parameter. The higher the rendering accuracy, the better the rendering effect, but also the higher the resource usage rate. Too high rendering accuracy will cause the whole system to freeze. The computer will automatically balance the rendering accuracy and resource usage rate according to the host performance.

[0073] In other digital twin fluid simulation methods proposed in this embodiment, this embodiment can collect the parameters and internal fluid related information that need to make the fluid model in the digital twin project, and use the collected parameters and internal fluid related information that need to make the fluid model to build the entire physical model of the fluid part in the modeling software, and sort out and group the fluid relationships of different levels and associations, and set the axis center of each group of fluids to its own center point; the fluid model parameters and fluid related information include the shape of the fluid model, the volume size, the density size of the fluid (involving the upper and lower hierarchical relationship), and avoid the collision and interlacing of the physical models such as partitions during the simulation process. Space and display problems such as double-sided. In the 3D software development engine, add a fluid container to the fluid model that needs to be simulated, set the model shape and layering mode, and ensure that the fluid model is fully displayed. In the 3D software development engine, the positional relationship set by the different densities of the fluid, the color and physical properties of the fluid, and the transition connection between different fluids are used to make the display form and dynamics of the fluid object. Write calculation formulas based on the rules of the fluid's default parameters, and connect the incoming real-time data to the fluid's liquid level, flow rate and other parameters through calculation formulas, to achieve real-time changes in the fluid driven by data, and add data display panels to simultaneously display the digital twin effect.

[0074] based on Figure 1 This embodiment proposes a second digital twin fluid simulation method, which, after performing morphological control on each second sub-model according to the motion state parameters of each fluid, further includes: Send the motion state parameters of each fluid to the data display panel for display to the user; receiving a fluid control instruction input by a user; In response to the fluid control instruction, the second sub-model is controlled to make corresponding changes to achieve interaction with the user.

[0075] Specifically, this embodiment can add interactive functions to the stream, access different data such as real-time, design, simulation, etc., realize three-dimensional data interaction, add front-end linkage interaction and three-dimensional interaction, etc.

[0076] This embodiment can build a clear and effective oil, gas and water fluid simulation system framework. Through parameter settings such as adjustment of fluid models, adjustment of material physical properties, and adjustment of proportional liquid level height, the development and application of digital twin projects can be completed using related hardware displays on digital large screens, virtual helmets, or web pages.

[0077] like Figure 5 As shown, this embodiment proposes a digital twin fluid simulation device, which may include: The acquisition unit 501 is used to acquire physical property information of the fluid to be simulated and size information of the fluid container; wherein the fluid to be simulated includes at least one fluid; A construction unit 502 is used to construct a container model and a fluid model located inside the container model in the digital twin system according to the physical property information of the fluid to be simulated and the size information of the fluid container; wherein the fluid model includes a first sub-model corresponding to each fluid; The property setting unit 503 is used to set the display property of each first sub-model in the initial fluid model to obtain the second sub-model corresponding to each first sub-model; The control unit 504 is used to control the shape of each second sub-model according to the motion state parameters of each fluid, so that each second sub-model is dynamically displayed.

[0078] It should be noted that the processing of the acquisition unit 501, the construction unit 502, the attribute setting unit 503 and the control unit 504 and the beneficial effects thereof can be respectively referred to in Figure 1 Steps S101 to S104 in the above are not described in detail.

[0079] Optionally, the physical property information of the fluid to be simulated includes hierarchy and association information between different fluids, and also includes shape information of each fluid; The construction unit 502 is further configured to: According to the size information of the fluid container, an initial fluid model corresponding to the size information is constructed in the digital twin system using grid points, lines, surfaces and element bodies; According to the hierarchy and association information between different fluids, the initial fluid model is segmented to obtain an initial sub-model corresponding to each fluid, and the size of each initial sub-model is adjusted based on the shape information of each fluid to obtain each first sub-model and a fluid model; According to the size information of the fluid container, a container model is set at the outer edge of the fluid model.

[0080] Optionally, the physical property information of the fluid to be simulated also includes color information, density information and material information; the property setting unit 503 is further used to: For any fluid, the color, density and material of the target sub-model are set according to the color information, density information and material information of the fluid to obtain the corresponding second sub-model; wherein the target sub-model is the first sub-model corresponding to the fluid.

[0081] Optionally, the fluid to be simulated includes oil, gas, water and oil-water mixed fluid.

[0082] Optionally, the above device further comprises: The mode setting unit is used to set the stratification mode of the first sub-model corresponding to gas to a single-layer mode and to set the stratification mode of the first sub-model corresponding to oil, water and oil-water mixed fluid to a double-layer mode after obtaining each first sub-model and fluid model.

[0083] Optionally, the control unit 504 is further configured to: Obtaining the motion state parameters of each fluid from the cloud database through an interface; wherein the motion state parameters include liquid level and / or flow rate; The morphology of each second sub-model is controlled according to the motion state parameters of each fluid, so as to achieve dynamic display of each second sub-model driven by data.

[0084] Optionally, the above device further comprises: The interactive unit is used to send the motion state parameters of each fluid to the data display panel for display to the user after the morphology of each second sub-model is controlled according to the motion state parameters of each fluid; receive the fluid control instructions input by the user; and control the second sub-model to make corresponding changes in response to the fluid control instructions to achieve interaction with the user.

[0085] The digital twin fluid simulation device proposed in the present invention can realize digital twin simulation of fluids such as oil, gas and water, that is, it can effectively realize virtual simulation of fluids such as oil, gas and water.

[0086] The digital twin fluid simulation device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0087] The embodiment of the present invention also provides a computer device having the above Figure 5 The digital twin fluid simulation device shown.

[0088] See also Figure 6 , a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses for communication, and can be installed on a common motherboard or installed in other ways as needed. The processor can process instructions executed in the computer device, including instructions stored in or on the memory to display graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides part of the necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 6A processor 10 is taken as an example.

[0089] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0090] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.

[0091] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function. The data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage devices. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0092] The memory 20 may include a volatile memory, such as a random access memory. The memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive. The memory 20 may also include a combination of the above-mentioned types of memory.

[0093] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.

[0094] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0095] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A digital twin fluid simulation method, characterized in that: include: Acquire physical property information of the fluid to be simulated and size information of the fluid container; wherein the fluid to be simulated includes at least one fluid; According to the physical property information of the fluid to be simulated and the size information of the fluid container, a container model and a fluid model located inside the container model are constructed in the digital twin system; wherein the fluid model includes a first sub-model corresponding to each of the fluids; Setting display properties of each of the first sub-models in the initial fluid model to obtain a second sub-model corresponding to each of the first sub-models; The morphology of each of the second sub-models is controlled according to the motion state parameters of each of the fluids, so that each of the second sub-models is dynamically displayed.

2. The method according to claim 1, characterized in that The physical property information of the fluid to be simulated includes the hierarchy and association information between different fluids, and also includes the shape information of each fluid; The step of constructing a container model and a fluid model located inside the container model in the digital twin system according to the physical property information of the fluid to be simulated and the size information of the fluid container includes: According to the size information of the fluid container, constructing an initial fluid model corresponding to the size information in the digital twin system using grid points, lines, surfaces and element bodies; According to the hierarchy and association information between different fluids, the initial fluid model is segmented to obtain an initial sub-model corresponding to each fluid, and the size of each initial sub-model is adjusted based on the shape information of each fluid to obtain each first sub-model and the fluid model; The container model is arranged at the outer edge of the fluid model according to the size information of the fluid container.

3. The method according to claim 1, characterized in that The physical property information of the fluid to be simulated also includes color information, density information and material information; The step of setting the display attribute of each of the first sub-models in the initial fluid model to obtain a second sub-model corresponding to each of the first sub-models includes: For any of the fluids, the color, density and material of the target sub-model are set according to the color information, density information and material information of the fluid to obtain the corresponding second sub-model; wherein the target sub-model is the first sub-model corresponding to the fluid.

4. The method according to any one of claims 1 to 3, characterized in that The fluid to be simulated includes oil, gas, water and oil-water mixed fluid.

5. The method according to claim 4, characterized in that After obtaining each of the first sub-models and the fluid model, the method further includes: The stratification mode of the first sub-model corresponding to the gas is set to a single-layer mode, and the stratification mode of the first sub-model corresponding to the oil, the water and the oil-water mixed fluid is set to a double-layer mode.

6. The method according to claim 1, characterized in that The step of controlling the morphology of each of the second sub-models according to the motion state parameters of each of the fluids so as to enable each of the second sub-models to be dynamically displayed includes: Obtaining motion state parameters of each of the fluids from a cloud database through an interface; wherein the motion state parameters include liquid level and / or flow rate; The morphology of each of the second sub-models is controlled according to the motion state parameters of each of the fluids, so as to achieve dynamic display of each of the second sub-models driven by data.

7. The method according to claim 6, characterized in that After performing morphological control on each of the second sub-models according to the motion state parameters of each of the fluids, the method further includes: Sending the motion state parameters of each fluid to a data display panel for display to a user; receiving a fluid control instruction input by the user; In response to the fluid control instruction, the second sub-model is controlled to make corresponding changes to achieve interaction with the user.

8. A digital twin fluid simulation device, characterized in that: include: An acquisition unit, used to acquire physical property information of the fluid to be simulated and size information of the fluid container; wherein the fluid to be simulated includes at least one fluid; A construction unit, configured to construct a container model and a fluid model located inside the container model in the digital twin system according to the physical property information of the fluid to be simulated and the size information of the fluid container; wherein the fluid model includes a first sub-model corresponding to each of the fluids; an attribute setting unit, used to set the display attribute of each of the first sub-models in the initial fluid model, and obtain a second sub-model corresponding to each of the first sub-models; A control unit is used to perform morphological control on each of the second sub-models according to the motion state parameters of each of the fluids, so that each of the second sub-models can be dynamically displayed.

9. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the digital twin fluid simulation method according to any one of claims 1 to 7 by executing the computer instructions.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the digital twin fluid simulation method according to any one of claims 1 to 7.

Citation Information

Cited By

  • Industrial fluid three-dimensional dynamic visualization system and method based on digital twinning

    CN121598614A