Three-dimensional reconstruction method, device, equipment and storage medium for numerical simulation results
By performing multi-directional sectioning and image processing on the simulation model, establishing mapping relationships, and performing coordinate transformation and Boolean operations, the problem of interference from sectioned images was solved, and high-accuracy three-dimensional reconstruction and cross-platform fusion of numerical simulation results were achieved.
Patent Information
- Application Number
- CN202210443376.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-26
- Publication Date
- 2025-09-19
- Estimated Expiration
- 2042-04-26
AI Technical Summary
The existing three-dimensional reconstruction technology of numerical simulation results affects the accuracy of cross-platform continuous numerical simulation due to the interference of non-cross-section parts in the cross-section image, making it difficult to achieve effective fusion and data conversion between multiple numerical simulation platforms.
By performing multi-directional sectioning on the simulation model, extracting serial section images, and establishing a mapping relationship between the three-channel color values and the numerical simulation results, preliminary three-dimensional reconstruction is performed. The final three-dimensional reconstruction result is obtained through coordinate transformation and Boolean operations, removing image interference and improving clarity.
It achieves high-accuracy three-dimensional reconstruction of numerical simulation results, transcends the fusion of simulation result images and three-dimensional discrete models, improves cross-platform interoperability and integration capabilities, and supports further simulation analysis.
Smart Images

Figure CN114818323B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of numerical simulation technology, and in particular to a three-dimensional reconstruction method, a three-dimensional reconstruction device, an electronic device, and a computer-readable storage medium for numerical simulation results. Background Art
[0002] Numerical simulation technology is widely used in various disciplines and is achieved through geometric modeling, mesh discretization, numerical calculation and post-processing. As the complexity of scientific problems increases, more and more numerical simulation software is required, and the data formats between different numerical simulation software are often incompatible and difficult to convert. The existing three-dimensional reconstruction technology of numerical simulation results can serve as a "bridge" between various numerical simulation platforms, connecting multiple numerical simulation platforms in series to achieve cross-platform continuous numerical simulation. However, in the post-processing module of most numerical simulation platforms, the model is uniformly and continuously sectioned and an animation file is output. The serial section images extracted from the animation file contain both the current cross-section morphology and the morphology of the part behind the current section, which affects the accuracy of the three-dimensional reconstruction of the numerical simulation results and hinders cross-platform continuous numerical simulation. Summary of the Invention
[0003] The purpose of this application is to provide a three-dimensional reconstruction method, a three-dimensional reconstruction device, an electronic device, and a computer-readable storage medium based on numerical simulation results. To provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is provided below. This summary is not intended to be a comprehensive review, identify key or important components, or delineate the scope of protection of these embodiments. Its sole purpose is to present some concepts in a simplified form, serving as a prelude to the detailed description that follows.
[0004] According to one aspect of an embodiment of the present application, a method for three-dimensional reconstruction of numerical simulation results is provided, comprising:
[0005] Cut the simulation model to obtain the animation file;
[0006] Extracting each sequence of section images from the animation file;
[0007] Performing preliminary three-dimensional reconstruction of the numerical simulation results of the simulation model using each of the serial section images;
[0008] The preliminary three-dimensional reconstruction result is sequentially subjected to coordinate transformation and Boolean operation to obtain a final three-dimensional reconstruction result of the numerical simulation result.
[0009] In some embodiments of the present application, the performing of preliminary three-dimensional reconstruction of the numerical simulation results of the simulation model using each of the serial section images includes:
[0010] Establishing a mapping relationship between three-channel color values and the numerical simulation results;
[0011] According to the mapping relationship, the spatial position and size of each pixel point on each of the serial section images are determined to obtain a preliminary three-dimensional reconstruction result of the numerical simulation result.
[0012] In some embodiments of the present application, determining the spatial position and size of each pixel point on each of the serial section images according to the mapping relationship to obtain a preliminary three-dimensional reconstruction result of the numerical simulation result includes:
[0013] Comparing the three-channel color value of each pixel on each of the serial section images with the three-channel color value of the color bar, and obtaining the simulation result value corresponding to each pixel according to the comparison result and the mapping relationship;
[0014] The position number and sectioning sequence number of the pixel point in width and height are used as the spatial position of the pixel point, and the width, height and sectioning spacing of the pixel are used as the size of the pixel point to obtain the preliminary three-dimensional reconstruction result of the numerical simulation result.
[0015] In some embodiments of the present application, the coordinate transformation and Boolean operation are sequentially performed on the preliminary three-dimensional reconstruction result to obtain the final three-dimensional reconstruction result of the numerical simulation result, including:
[0016] Unifying the preliminary three-dimensional reconstruction results into the same coordinate system through coordinate transformation;
[0017] A Boolean intersection operation is performed on the three-dimensional reconstruction results in the same coordinate system to obtain the final three-dimensional reconstruction result.
[0018] In some embodiments of the present application, before performing preliminary three-dimensional reconstruction of the numerical simulation results of the simulation model using each of the serial section images, the method further includes:
[0019] Preprocessing is performed on each of the serial cross-sectional images to obtain preprocessed serial cross-sectional images. The preprocessing includes: removing interference from the serial cross-sectional images and / or improving the clarity of the serial cross-sectional images.
[0020] In some embodiments of the present application, sectioning the simulation model includes:
[0021] The simulation model is sectioned along the positive direction and the negative direction of the three axes of the preset three-dimensional coordinate system.
[0022] In some embodiments of the present application, the sectioning interval of the simulation model is smaller than half of the minimum dimension of the simulation model in the sectioning direction.
[0023] According to another aspect of an embodiment of the present application, a three-dimensional reconstruction apparatus for numerical simulation results is provided, comprising:
[0024] The sectioning module is used to section the simulation model to obtain animation files;
[0025] An extraction module, used for extracting each sequence of section images from the animation file;
[0026] A preliminary reconstruction module, configured to perform preliminary three-dimensional reconstruction of the numerical simulation results of the simulation model using each of the serial section images;
[0027] The conversion operation module is used to perform coordinate conversion and Boolean operation on the preliminary three-dimensional reconstruction result in sequence to obtain the final three-dimensional reconstruction result of the numerical simulation result.
[0028] According to another aspect of an embodiment of the present application, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement a three-dimensional reconstruction method of the numerical simulation results described in any one of the above items.
[0029] According to another aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored. The program is executed by a processor to implement the three-dimensional reconstruction method of the numerical simulation results described in any one of the above items.
[0030] One aspect of the technical solution provided by the embodiments of the present application may have the following beneficial effects:
[0031] The three-dimensional reconstruction method of numerical simulation results provided in the embodiment of the present application solves the problem that the accuracy of the three-dimensional reconstruction results is affected by the interference of non-section parts in the sectioned image through Boolean operations between the three-dimensional reconstruction results of the numerical simulation results obtained by multi-directional sectioning, realizes the transition from the simulation result image display to the three-dimensional discrete model and its simulation results, realizes the fusion of image and simulation, and improves the accuracy of the three-dimensional reconstruction of the numerical simulation results.
[0032] Other features and advantages of the present application will be described in the subsequent description, and some of them will become obvious from the description, or some of them can be inferred or determined without doubt from the description, or understood by implementing the embodiments of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the embodiments of the present application or the technical solutions in 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 only some embodiments recorded in this application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0034] Figure 1 A flow chart showing a three-dimensional reconstruction method of numerical simulation results according to an embodiment of the present application;
[0035] Figure 2 A three-dimensional image of the appearance of a workpiece three-dimensional model is shown;
[0036] Figure 3(a) to Figure 3(f) Schematic diagrams of model M1, model M2, model M3, model M4, model M5, and model M6 respectively showing preliminary 3D reconstruction results in an example;
[0037] Figure 4(a) to Figure 4(c) Schematic diagrams of model MX, model MY and model MZ in an example are respectively shown;
[0038] FIG5( a ) and FIG5 ( b ) respectively show schematic diagrams of a model MXY and a model MXYZ in an example;
[0039] Figure 6 A block diagram of a three-dimensional reconstruction device showing numerical simulation results according to an embodiment of the present application;
[0040] Figure 7 A structural block diagram of an electronic device according to an embodiment of the present application is shown;
[0041] Figure 8 A schematic diagram of a computer-readable storage medium according to an embodiment of the present application is shown.
[0042] The realization of the objectives, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0043] In order to make the purpose, technical solutions and advantages of this application more clearly understood, this application is further described below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0044] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by those skilled in the art in the art to which this application belongs. It should also be understood that terms such as those defined in common dictionaries should be understood to have meanings consistent with their meanings in the context of the prior art, and will not be interpreted in an idealized or overly formal sense unless specifically defined as herein.
[0045] like Figure 1 As shown, an embodiment of the present application provides a three-dimensional reconstruction method of numerical simulation results. In some embodiments, the method includes steps S10 to S40:
[0046] S10. Cut the simulation model to obtain an animation file.
[0047] In some embodiments, step S10 may include: sectioning the simulation model along the positive and negative directions of three axes of a preset three-dimensional coordinate system, wherein the sectioning interval of the simulation model is less than half of the minimum dimension of the simulation model in the sectioning direction.
[0048] The simulation model can be, for example, a three-dimensional model of the workpiece, such as Figure 2 The 3D workpiece model shown is a simulation model composed of three perpendicularly intersecting rods. The rods have different sizes in the three directions, increasing in size along the X, Y, and Z axes. The numerical simulation results for the 3D workpiece model are uniformly and continuously sliced along the positive and negative directions of the X, Y, and Z axes of the preset 3D coordinate system and output as an animation file. In the preset 3D coordinate system, the horizontal direction can be defined as the Y-axis, with positive direction from left to right; the vertical direction can be defined as the X-axis, with positive direction from top to bottom; and the direction perpendicular to the sequential slice images is defined as the Z-axis, with positive direction from inside to outside.
[0049] When continuously and equidistantly and densely sectioning a model and distributing the results along the positive and negative directions of the X, Y, and Z axes, a color scale bar is displayed. The bar position does not overlap with the workpiece, the color of the bar is continuous, or the number of segments of the bar is not less than 10. The physical quantity values corresponding to the color scale bar are linearly distributed, including maximum and minimum values.
[0050] When continuously and densely sectioning the model and its resulting distribution at equal intervals along the positive and negative directions of the X, Y, and Z axes, perform the sectioning uniformly, continuously, and densely. The sectioning step length should be less than half of the model's minimum feature size in that direction. This minimum feature size includes the minimum wall thickness of the workpiece and the dimensions of structures such as holes and slots in the workpiece. The sectioning range should completely cover the simulation model, that is, the first slice should be before the simulation model, and the last slice should be after the simulation model.
[0051] The sequence sectioning direction is not limited to the positive and negative directions of the X, Y, and Z axes; it can also be any three mutually perpendicular directions. The X, Y, and Z axis definitions of the sectioned image can be aligned with the X, Y, and Z axis orientations of the simulation model, eliminating the need for rotation matching during conversion. The sectioning spacing can be aligned with the pixel resolution, eliminating the need for scale matching during model matching.
[0052] Based on the dimensions of the simulation model in the X, Y, and Z axes, the size represented by a single pixel in the XY plane and the section spacing in the Z axis can be calculated. Lx, Ly, and Lz represent the dimensions of the simulation model in the X, Y, and Z axes, while dx, dy, and dz represent the size represented by a single pixel and the section spacing, respectively. The corresponding relationships are dx = Lx / h, dy = Ly / w, and dz = Lz / n.
[0053] S20, extracting each sequence of section images from the animation file.
[0054] S30, using each sequence of section images to perform preliminary three-dimensional reconstruction of the numerical simulation results of the simulation model.
[0055] In some embodiments, step S30 may include steps S301 and S302:
[0056] S301: Establish a mapping relationship between three-channel color values and the numerical simulation results.
[0057] Specifically, a mapping relationship between the three-channel color values and the simulation result values is established through the color bar.
[0058] S302 : Determine the spatial position and size of each pixel point on each of the serial section images according to the mapping relationship, and obtain a preliminary three-dimensional reconstruction result of the numerical simulation result.
[0059] Specifically, step S302 may include step S3021 and step S3022:
[0060] S3021 , comparing the three-channel color value of each pixel point on each of the serial section images with the three-channel color value of the color bar, and obtaining a simulation result value corresponding to each pixel point according to the comparison result and the mapping relationship.
[0061] According to the mapping relationship between the three-channel color values of the color bar and the numerical simulation results, the corresponding relationship between the three-channel color values of each pixel point on the serial section image and the simulation result value is obtained.
[0062] S3022. Use the position number and sectioning sequence number of the pixel point in width and height as the spatial position of the pixel point, and use the width, height and sectioning spacing of the pixel as the size of the pixel point to obtain a preliminary three-dimensional reconstruction result of the numerical simulation result.
[0063] According to the simulation result value corresponding to each pixel point on the serial section image, the pixel point is used as a unit. The position number of the pixel in width and height and the section sequence number are used as the spatial position of the corresponding unit. The width, height and section spacing of the pixel are the size of the unit to achieve preliminary three-dimensional reconstruction of the numerical simulation results.
[0064] S40 , performing coordinate transformation and Boolean operations on the preliminary three-dimensional reconstruction results in sequence to obtain a final three-dimensional reconstruction result of the numerical simulation results.
[0065] In some embodiments, step S40 may include:
[0066] S401, unifying the preliminary 3D reconstruction results into the same coordinate system through coordinate transformation;
[0067] S402 : Perform a Boolean intersection operation on the three-dimensional reconstruction results in the same coordinate system to obtain the final three-dimensional reconstruction result.
[0068] In some embodiments, before step S30, the method further includes:
[0069] S20', preprocessing the sequence section images to obtain preprocessed sequence section images. The preprocessing may include removing interference (such as background watermarks or unnecessary text) from the sequence section images and / or improving the clarity of the sequence section images.
[0070] In a specific example, the three-dimensional reconstruction method of the numerical simulation results of the above embodiment is used to process Figure 2 The model shown will Figure 2The workpiece 3D model shown is uniformly and continuously densely sectioned along the X, Y, Z directions and their reverse directions and output as an animation file. A series of section images are extracted from the animation file, and a preliminary 3D reconstruction is performed using the series of section images to obtain a preliminary 3D reconstruction result. The preliminary 3D reconstruction result includes model M1, model M2, model M3, model M4, model M5 and model M6, and the internal expression order is (i1, j1, k1), (i2, j2, k2), (i3, j3, k3), (i4, j4, k4), (i5, j5, k5), (i6, j6, k6). Reference Figure 3(a) to Figure 3(f) 3(a) shows a schematic diagram of model M1, FIG3(b) shows a schematic diagram of model M4, FIG3(c) shows a schematic diagram of model M2, FIG3(d) shows a schematic diagram of model M5, FIG3(e) shows a schematic diagram of model M3, and FIG3(f) shows a schematic diagram of model M6. Figure 2 The model shown is uniformly and continuously densely sectioned along the positive directions of the X-axis, Y-axis and Z-axis, and the sectioning results obtained are recorded as M1, M2 and M3 respectively. The corresponding sectioning results obtained in the opposite directions are recorded as M4, M5 and M6 respectively. The internal expression order is (i1, j1, k1), (i2, j2, k2), (i3, j3, k3), (i4, j4, k4), (i5, j5, k5), and (i6, j6, k6).
[0071] In a specific example, the coordinate transformation and Boolean operation of the preliminary 3D reconstruction results obtained along the positive and negative directions of the X-axis, Y-axis and Z-axis include: taking the coordinate system of M1 as the reference, transforming M4 into the coordinate system of M1 and performing Boolean operation. If the unit existing in M1 also exists in M4, it is retained; if not, it is removed. The model result after the operation is recorded as MX, where i1 corresponds to i4, j1 corresponds to the opposite direction of j4, k1 corresponds to the opposite direction of k4, and the corresponding relationship between the coordinates is i4=i1, j4=(1-j1 / w1)*w4, k4=(1-k1 / n1)*n4; taking the coordinate system of M2 as the reference, transforming M5 into the coordinate system of M1. 2, and the model result after the operation is recorded as MY, where i2 corresponds to i5, j2 corresponds to the opposite direction of j5, and k2 corresponds to the opposite direction of k5. The corresponding relationship between the coordinates is i5=i2, j5=(1-j2 / w2)*w5, k5=(1-k2 / n2)*n5; based on the coordinate system of M3, M6 is converted to the coordinate system of M3 through coordinate transformation and Boolean operation is performed. The model result after the operation is recorded as MZ, where i3 corresponds to i6, j3 corresponds to the opposite direction of j6, and k3 corresponds to the opposite direction of k6. The corresponding relationship between the coordinates is i6=i3, j6=(1-j3 / w3)*w6, k6=(1-k3 / n3)*n6. Then, Boolean operations are performed between MX, MY, and MZ: Based on the coordinate system of MX, MY is converted to the coordinate system of MX and Boolean operations are performed. If the unit in MX also exists in MY, it is retained; if it does not exist, it is removed. The model result after the operation is recorded as MXY, where i1 corresponds to j2, j1 corresponds to the opposite direction of k2, and k1 corresponds to the opposite direction of i2. The corresponding relationship between the coordinates is i2 = (1-k1 / n1)*h2, j2 = i1 / h1*w2, k2 = (1-j1 / w1) *n2; Taking the coordinate system of MXY as the reference, transform MZ into the coordinate system of MXY and perform Boolean operation. If the unit in MXY also exists in MZ, it will be retained; if not, it will be removed. The model result after the operation is recorded as MXYZ, where i1 corresponds to the opposite direction of k3, j1 corresponds to the opposite direction of j3, and k1 corresponds to the opposite direction of i3. The corresponding relationship between the coordinates is i3 = (1-k1 / n1)*h3, j3 = (1-j1 / w1)*w3, and k3 = (1-i1 / h1)*n3.
[0072] The models M1 and M4 are transformed into model MX through coordinate transformation and Boolean operation, where i1 corresponds to i4, j1 corresponds to the opposite direction of j4, and k1 corresponds to the opposite direction of k4. The corresponding relationship between the coordinates is i4=i1, j4=(1-j1 / w1)*w4, k4=(1-k1 / n1)*n4; the models M2 and M5 are transformed into model MY through coordinate transformation and Boolean operation, where i2 corresponds to i5, j2 corresponds to the opposite direction of j5, k2 corresponds to k 5, the corresponding coordinates are i5 = i2, j5 = (1-j2 / w2)*w5, and k5 = (1-k2 / n2)*n5. Models M3 and M6 are transformed and Boolean operations are performed to obtain model MZ, where i3 corresponds to i6, j3 corresponds to the opposite direction of j6, and k3 corresponds to the opposite direction of k6. The corresponding coordinates are i6 = i3, j6 = (1-j3 / w3)*w6, and k6 = (1-k3 / n3)*n6. Figure 4(a) shows model MX, Figure 4(b) shows model MY, and Figure 4(c) shows model MZ.
[0073] The model MX and MY are transformed by coordinates and Boolean operations to obtain the model MXY, where i1 corresponds to j2, j1 corresponds to the opposite direction of k2, and k1 corresponds to the opposite direction of i2. The corresponding relationship between the coordinates is i2
[0074] =(1-k1 / n1)*h2, j2=i1 / h1*w2, k2=(1-j1 / w1)*n2; Models MXY and MZ are transformed and Boolean operations are performed to obtain model MXYZ, where i1 corresponds to j2, j1 corresponds to the opposite direction of k2, and k1 corresponds to the opposite direction of i2. The corresponding relationship between the coordinates is i2=(1-k1 / n1)*h2, j2=i1 / h1*w2, k2=(1-j1 / w1)*n2; where i1 corresponds to the opposite direction of k3, j1 corresponds to the opposite direction of j3, and k1 corresponds to the opposite direction of i3. The corresponding relationship between the coordinates is i3=(1-k1 / n1)*h3, j3=(1-j1 / w1)*w3, and k3=(1-i1 / h1)*n3. Figure 5(a) shows a schematic diagram of model MXY, and Figure 5(b) shows a schematic diagram of model MXYZ. From the comparison between Figure 5(a) and Figure 5(b), we can see that MXY and MXYZ are the same, and MXY is the accurate final 3D reconstruction result.
[0075] The final 3D reconstruction of numerical simulations from sequential slice images can be saved in an (i,j,k)-value format, where i,j,k are the pixel numbers corresponding to the X, Y, and Z axes, respectively. (i,j,k) represents the location coordinates of the cell, and value represents the simulation result mapped from the three-channel color value of that pixel. The (i,j,k) numbers range from (1,1,1) to (h,w,n), where h is the number of pixels in the image height, w is the number of pixels in the image width, and n is the number of slices. The positive directions of the X, Y, and Z axes are denoted as (h1,w1,n1), (h2,w2,n2), and (h3,w3,n3), respectively, and their negative directions are denoted as (h4,w4,n4), (h5,w5,n5), and (h6,w6,n6), respectively.
[0076] A 3D reconstruction method for the numerical simulation results of the embodiment of the present application solves the problem of interference of non-section parts of the sectioned image on the accuracy of the 3D reconstruction results in the 3D reconstruction technology of the numerical simulation results based on continuous sectioning of the model through Boolean operations between the 3D reconstruction results of the numerical simulation results obtained by multi-directional sectioning, improves the accuracy of the 3D reconstruction of the numerical simulation results, realizes the transition from the display of the simulation result image to the 3D discrete model and its simulation results, realizes the fusion of image and simulation, facilitates further simulation, allows for further in-depth analysis and post-processing, and realizes the intercommunication and integration between multiple numerical simulation platforms.
[0077] Another embodiment of the present application provides a three-dimensional reconstruction device for numerical simulation results, comprising:
[0078] The sectioning module is used to section the simulation model to obtain animation files;
[0079] An extraction module, used for extracting each sequence of section images from the animation file;
[0080] A preliminary reconstruction module, configured to perform preliminary three-dimensional reconstruction of the numerical simulation results of the simulation model using each of the serial section images;
[0081] The conversion operation module is used to perform coordinate conversion and Boolean operation on the preliminary three-dimensional reconstruction result in sequence to obtain the final three-dimensional reconstruction result of the numerical simulation result.
[0082] In certain embodiments, the preliminary reconstruction module comprises:
[0083] A mapping relationship establishing unit, used to establish a mapping relationship between the three-channel color values and the numerical simulation results;
[0084] The determining unit is used to determine the spatial position and size of each pixel point on each of the serial section images according to the mapping relationship, and obtain a preliminary three-dimensional reconstruction result of the numerical simulation result.
[0085] In some embodiments, the determining unit includes:
[0086] The first subunit is configured to compare the three-channel color value of each pixel point on each of the serial section images with the three-channel color value of the color bar, and obtain a simulation result value corresponding to each pixel point according to the comparison result and the mapping relationship;
[0087] The second subunit is used to use the position number and sectioning sequence number of the pixel point in width and height as the spatial position of the pixel point, and the width, height and sectioning spacing of the pixel as the size of the pixel point to obtain a preliminary three-dimensional reconstruction result of the numerical simulation result.
[0088] In some embodiments, the conversion operation module includes:
[0089] A coordinate conversion unit, configured to unify the preliminary three-dimensional reconstruction results into a same coordinate system through coordinate conversion;
[0090] The Boolean intersection operation unit is used to perform a Boolean intersection operation on the three-dimensional reconstruction results in the same coordinate system to obtain the final three-dimensional reconstruction result.
[0091] In certain embodiments, the apparatus of this embodiment further includes a preprocessing module, which is used to preprocess each of the serial sectional images before performing preliminary three-dimensional reconstruction of the numerical simulation results of the simulation model using each of the serial sectional images to obtain preprocessed serial sectional images, wherein the preprocessing includes: removing interference from the serial sectional images, and / or improving the clarity of the serial sectional images.
[0092] In some embodiments, sectioning the simulation model includes sectioning the simulation model along the positive direction and the negative direction of three axes of a preset three-dimensional coordinate system.
[0093] Another embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the three-dimensional reconstruction method of the numerical simulation results described in any of the above embodiments.
[0094] like Figure 7As shown, the electronic device 10 may include: a processor 100, a memory 101, a bus 102 and a communication interface 103, and the processor 100, the communication interface 103 and the memory 101 are connected via the bus 102; the memory 101 stores a computer program that can be run on the processor 100, and when the processor 100 runs the computer program, it executes the method provided in any of the aforementioned embodiments of the present application.
[0095] The memory 101 may include high-speed random access memory (RAM) and may also include non-volatile memory, such as at least one disk storage. The system network element communicates with at least one other network element via at least one communication interface 103 (which may be wired or wireless), and may utilize the Internet, a wide area network, a local area network, a metropolitan area network, or the like.
[0096] The bus 102 may be an ISA bus, a PCI bus, or an EISA bus. The bus may be divided into an address bus, a data bus, a control bus, etc. The memory 101 is used to store programs. The processor 100 executes the programs upon receiving execution instructions. The method disclosed in any of the aforementioned embodiments of the present application may be applied to the processor 100 or implemented by the processor 100.
[0097] The processor 100 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by hardware integrated logic circuits in the processor 100 or by software instructions. The above processor 100 may be a general-purpose processor, which may include a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), an off-the-shelf field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The various methods, steps, and logic block diagrams disclosed in the embodiments of this application can be implemented or executed. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiments of this application can be directly implemented and executed by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium mature in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. The storage medium is located in the memory 101 , and the processor 100 reads the information in the memory 101 and completes the steps of the above method in combination with its hardware.
[0098] The electronic device provided in the embodiments of the present application and the method provided in the embodiments of the present application are based on the same inventive concept and have the same beneficial effects as the methods adopted, operated or implemented by them.
[0099] Another embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which is executed by a processor to implement the three-dimensional reconstruction method of the numerical simulation results described in any of the above embodiments.
[0100] refer to Figure 8 As shown, the computer-readable storage medium is a CD 20 on which a computer program (ie, a program product) is stored. When the computer program is run by a processor, the method provided by any of the aforementioned embodiments is executed.
[0101] It should be noted that examples of the computer-readable storage medium may also include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other optical or magnetic storage media, which are not listed here one by one.
[0102] The computer-readable storage medium provided in the above-mentioned embodiments of the present application and the method provided in the embodiments of the present application are based on the same inventive concept and have the same beneficial effects as the method adopted, run or implemented by the application program stored therein.
[0103] It should be noted that:
[0104] The term "module" is not intended to be limited to a specific physical form. Depending on the specific application, a module can be implemented as hardware, firmware, software, and / or a combination thereof. In addition, different modules can share common components or even be implemented by the same components. There may or may not be clear boundaries between different modules.
[0105] The algorithm and display provided herein are not inherently related to any particular computer, virtual device or other equipment. Various general-purpose devices can also be used together with examples based on this. According to the above description, it is obvious that the structure required for constructing this type of device. In addition, the application is not directed to any specific programming language yet. It should be understood that various programming languages can be utilized to realize the content of the application described herein, and the above description of specific languages is for the purpose of disclosing the best mode of implementation of the application.
[0106] It should be understood that although the steps in the flowcharts of the accompanying drawings are shown in sequence as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some of the steps in the flowcharts of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
[0107] The above-described embodiments merely represent implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present application. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.
Claims
1. A three-dimensional reconstruction method of numerical simulation results, characterized in that: include: Cut the simulation model to obtain the animation file; Extracting each sequence of section images from the animation file; Performing preliminary three-dimensional reconstruction of the numerical simulation results of the simulation model using each of the serial section images; performing coordinate transformation and Boolean operations on the preliminary three-dimensional reconstruction results in sequence to obtain a final three-dimensional reconstruction result of the numerical simulation results; The simulation model is a three-dimensional model of the workpiece; The simulation model is cut to obtain an animation file, including: The numerical simulation results of the workpiece three-dimensional model are uniformly and continuously sliced along the positive direction and the reverse direction of the X-axis, Y-axis and Z-axis of the preset three-dimensional coordinate system and outputted as an animation file; The preliminary 3D reconstruction result includes the spatial position of each pixel point in the sliced image and the size of the pixel point; the spatial position of the pixel point includes the position number of the pixel point in width and height and the slice sequence number; the size of the pixel point includes the width, height and slice spacing of the pixel; the X-axis, Y-axis and Z-axis definitions of the sliced image are consistent with the directions of the X-axis, Y-axis and Z-axis of the simulation model, and the slice spacing is consistent with the pixel resolution; the slice interval of the simulation model is less than half of the minimum dimension of the simulation model in the slice direction; The coordinate transformation and Boolean operation are sequentially performed on the preliminary three-dimensional reconstruction result to obtain the final three-dimensional reconstruction result of the numerical simulation result, including: Unifying the preliminary three-dimensional reconstruction results into the same coordinate system through coordinate transformation; A Boolean intersection operation is performed on the three-dimensional reconstruction results in the same coordinate system to obtain the final three-dimensional reconstruction result.
2. The method according to claim 1, characterized in that The method of performing preliminary three-dimensional reconstruction of the numerical simulation results of the simulation model using the serial section images includes: Establishing a mapping relationship between three-channel color values and the numerical simulation results; According to the mapping relationship, the spatial position and size of each pixel point on each of the serial section images are determined to obtain a preliminary three-dimensional reconstruction result of the numerical simulation result.
3. The method according to claim 2, characterized in that Determining the spatial position and size of each pixel point on each of the serial section images according to the mapping relationship to obtain a preliminary three-dimensional reconstruction result of the numerical simulation result includes: Comparing the three-channel color value of each pixel on each of the serial section images with the three-channel color value of the color bar, and obtaining the simulation result value corresponding to each pixel according to the comparison result and the mapping relationship; The position number and sectioning sequence number of the pixel point in width and height are used as the spatial position of the pixel point, and the width, height and sectioning spacing of the pixel are used as the size of the pixel point to obtain the preliminary three-dimensional reconstruction result of the numerical simulation result.
4. The method according to claim 1, wherein Before performing preliminary three-dimensional reconstruction on the numerical simulation results of the simulation model using each of the serial section images, the method further includes: Preprocessing is performed on each of the serial cross-sectional images to obtain preprocessed serial cross-sectional images. The preprocessing includes: removing interference from the serial cross-sectional images and / or improving the clarity of the serial cross-sectional images.
5. The method according to claim 1, wherein The sectioning of the simulation model comprises: The simulation model is sectioned along the positive direction and the negative direction of the three axes of the preset three-dimensional coordinate system.
6. A three-dimensional reconstruction device for numerical simulation results, characterized in that: include: The sectioning module is used to section the simulation model to obtain animation files; An extraction module, used for extracting each sequence of section images from the animation file; A preliminary reconstruction module, configured to perform preliminary three-dimensional reconstruction of the numerical simulation results of the simulation model using each of the serial section images; A conversion operation module is used to perform coordinate conversion and Boolean operation on the preliminary three-dimensional reconstruction result in sequence to obtain the final three-dimensional reconstruction result of the numerical simulation result; The simulation model is a three-dimensional model of the workpiece; the sectioning module is further used to uniformly and continuously section the numerical simulation results under the three-dimensional model of the workpiece along the positive direction and the reverse direction of the X-axis, Y-axis, and Z-axis of the preset three-dimensional coordinate system and output them as an animation file; The preliminary 3D reconstruction result includes the spatial position of each pixel point in the sliced image and the size of the pixel point; the spatial position of the pixel point includes the position number of the pixel point in width and height and the slice sequence number; the size of the pixel point includes the width, height and slice spacing of the pixel; the X-axis, Y-axis and Z-axis definitions of the sliced image are consistent with the directions of the X-axis, Y-axis and Z-axis of the simulation model, and the slice spacing is consistent with the pixel resolution; The sectioning interval of the simulation model is less than half of the minimum dimension of the simulation model in the sectioning direction; The conversion operation module includes: A coordinate conversion unit, configured to unify the preliminary three-dimensional reconstruction results into a same coordinate system through coordinate conversion; The Boolean intersection operation unit is used to perform a Boolean intersection operation on the three-dimensional reconstruction results in the same coordinate system to obtain the final three-dimensional reconstruction result.
7. An electronic device, characterized in that: The invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the three-dimensional reconstruction method of the numerical simulation result according to any one of claims 1 to 5.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: The program is executed by a processor to implement the three-dimensional reconstruction method of the numerical simulation results as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Cross-platform continuous numerical simulation method
CN114201895A