KR-20260066537-A - METHOD, APPARATUS AND COMPUTER PROGRAM FOR VISUALIZING SIMULATION RESULT
Abstract
A method for visualizing simulation results according to an embodiment of the present invention comprises: receiving a simulation result data file and converting it into a binary file; generating a two-dimensional image data structure based on the binary file; and rendering and outputting a three-dimensional graphic based on a frame representing a specific point in time based on the two-dimensional image data structure, wherein the step of converting into a binary file comprises: extracting information necessary for visualization from the simulation result data file based on a VTK (Visualization Toolkit); processing the extracted information necessary for visualization into a pixel array for texture based on the order between a plurality of frames and the order of the two-dimensional image data structure; and converting the generated pixel array for texture into a byte array to generate a binary file.
Inventors
- 류수영
- 김지은
- 어경빈
- 정원종
Assignees
- 이에이트 주식회사
Dates
- Publication Date
- 20260512
- Application Date
- 20241104
Claims (8)
- In a method of visualizing simulation results by a device for visualizing simulation results, A step of receiving a simulation result data file as input and converting it into a binary file; A step of generating a two-dimensional image data structure based on the above binary file; and Based on the above-mentioned two-dimensional image data structure, the method includes the step of rendering and outputting a three-dimensional graphic for a frame representing a specific point in time, and The step of converting to the above binary file is, A step of extracting information necessary for visualization from the simulation result data file based on VTK (Visualization Toolkit); A step of processing the extracted information required for the visualization into a pixel array for a texture based on the order between a plurality of the frames and the order of the two-dimensional image data structure; and A method comprising the step of converting the generated pixel array for the texture into a byte array to generate a binary file. Method for visualizing simulation results.
- In Article 1, The step of rendering and outputting the above 3D graphics is, A step of receiving, based on the order between the above frames, information of a first output frame corresponding to the time of output and information of a second output frame corresponding to the next order of the first output frame; A step of rendering and outputting a 3D graphic based on the information of the first output frame; A step of generating information of an interpolated frame by interpolating the information of the first output frame and the information of the second output frame with each other; and A step comprising rendering and outputting a 3D graphic based on the information of the first output frame, and then rendering and outputting a 3D graphic based on the information of the interpolation frame. Method for visualizing simulation results.
- In Article 2, A method for visualizing simulation results, wherein the step of rendering and outputting a three-dimensional graphic based on the information of the first output frame and the step of generating the information of the interpolation frame are performed simultaneously.
- In Article 1, The step of generating a two-dimensional image data structure from the above binary file is, A step of calculating the total number of points by converting the data type of a preset area of the above byte array; A step of calculating the size of the two-dimensional image data structure based on the total number of points and allocating the two-dimensional image data structure; and A method comprising the step of reading the above-mentioned byte array of preset units and creating one texture in the allocated above-mentioned two-dimensional image data structure, Method for visualizing simulation results.
- In Article 4, The step of generating the above 1 texture is, A method for visualizing simulation results, wherein the byte array is read into the preset unit calculated based on the total number of points and the number of channels per particle, and the 1 texture is generated.
- In Article 4, The step of rendering and outputting the above 3D graphics is, A step of reading a texture to be output from the above 2D image data structure in pixel units; A step of converting the information read in pixel units into information in particle units; and By including a step of visualizing particles based on the above particle unit information, A method for visualizing simulation results, which is visualizing the results of particle-based fluid analysis simulations.
- In a device for visualizing simulation results, A binary file generation unit that receives a simulation result data file as input and converts it into a binary file; A texture generation unit that generates a two-dimensional image data structure based on the above binary file; and Based on the above-mentioned two-dimensional image data structure, it includes an output unit that renders and outputs three-dimensional graphics based on a frame representing a specific point in time, and The above binary file generation unit is, A preprocessing unit that extracts information necessary for visualization from the simulation result data file based on VTK (Visualization Toolkit); An array processing unit that processes the extracted information required for the visualization into a pixel array for texture based on the order between a plurality of the frames and the order of the two-dimensional image data structure; and A post-processing unit comprising converting the generated pixel array for the texture into a byte array to generate a binary file, A device for visualizing simulation results.
- In a computer program stored on a computer-readable recording medium comprising a sequence of instructions for visualizing simulation results, When the above computer program is executed by a computing device, Receives a simulation result data file as input, converts it into a binary file, and A two-dimensional image data structure is generated based on the above binary file, and Based on the above 2D image data structure, 3D graphics are rendered and output based on a frame representing a specific point in time, and When converting to the above binary file, Extract information necessary for visualization from the above simulation result data file based on VTK (Visualization Toolkit), and The extracted information required for the visualization is processed into a pixel array for texture based on the order between a plurality of the frames and the order of the two-dimensional image data structure, and The method of converting the generated pixel array for the texture into a byte array to generate a binary file, A computer program stored on a computer-readable recording medium.
Description
Method, apparatus and computer program for visualizing simulation results The present invention relates to a method, apparatus, and computer program for visualizing result data obtained by performing particle or grid-based analysis simulations. Computational Fluid Dynamics (CFD) is a field of fluid dynamics that uses computers to calculate the dynamic movement of fluids using numerical methods. In CFD, methods for solving the Navier-Stokes equations, which are partial differential equations, include grid-based methods that discretize the spatial domain into small spatial meshes or grids for computation, and particle-based methods that represent the fluid as a collection of multiple particles. Particle-based methods enable more natural simulations of natural or physical phenomena by representing the object of analysis as particles instead of grids. Examples of particle-based methods include Smoothed Particle Hydrodynamics (SPH), Moving Particle Semi-implicit (MPS), and the Lattice Boltzmann Method (LBM). Meanwhile, result data from numerical analysis or simulation can be generated in a format based on VTK (Visualization Toolkit). That is, VTK files can be provided to enable visual analysis of the data by converting the simulation result data into 3D graphics and displaying them. In the past, scientific visualization software such as ParaView has been used to visualize VTK-based simulation data. In various fields such as physical simulation, fluid dynamics, and mechanical engineering, the method of visualizing VTK data through ParaView has become mainstream. However, with the rapid development of 3D graphics engines such as Unity and Unreal in recent years, these engines are establishing themselves as high-performance 3D visualization platforms beyond simple game development tools. Unity and Unreal provide environments highly suitable for building real-time 3D rendering and simulation environments, and can be used universally across various platforms. FIG. 1 is a flowchart of a method for visualizing simulation results according to one embodiment of the present invention. Figure 2 is a flowchart specifically illustrating the steps of converting to a binary file as illustrated in Figure 1. Figure 3 is a flowchart specifically illustrating the steps for generating the two-dimensional image data structure illustrated in Figure 1. Figure 4 is a diagram showing an example of a two-dimensional image data structure. FIG. 5 is a flowchart specifically illustrating the steps of rendering and outputting the three-dimensional graphics illustrated in FIG. 1. FIG. 6 is a flowchart illustrating another embodiment of the step of rendering and outputting the three-dimensional graphics illustrated in FIG. 1. FIG. 7 is a configuration diagram of a device for visualizing simulation results according to another embodiment of the present invention. Embodiments of the present invention are described below with reference to the attached drawings so that those skilled in the art can easily implement the invention. However, the present invention may be embodied in various different forms and is not limited to the embodiments described herein. Furthermore, in order to clearly explain the present invention in the drawings, parts unrelated to the explanation have been omitted, and similar parts throughout the specification are denoted by similar reference numerals. Throughout the specification, when a part is described as being "connected" to another part, this includes not only cases where they are "directly connected" but also cases where they are "electrically connected" with other elements interposed between them. Furthermore, when a part is described as "including" a component, this means that, unless specifically stated otherwise, it does not exclude other components but may include additional components, and it should be understood that this does not preclude the existence or addition of one or more other features, numbers, steps, actions, components, parts, or combinations thereof. In this specification, the term "part" includes a unit realized by hardware, a unit realized by software, and a unit realized using both. Additionally, one unit may be realized using two or more pieces of hardware, and two or more units may be realized by one piece of hardware. Meanwhile, "part" is not limited to software or hardware, and "part" may be configured to reside in an addressable storage medium or configured to run on one or more processors. Accordingly, as an example, "part" includes components such as software components, object-oriented software components, class components, and task components, as well as processes, functions, attributes, procedures, subroutines, segments of program code, drivers, firmware, microcode, circuits, data, databases, data structures, tables, arrays, and variables. The functions provided within the components and "parts" may be combined into a smaller number of components and "parts" or further separated into