Temperature mapping method and device for die casting, electronic equipment and storage medium

By mapping the temperature data of the structured grid model to the unstructured grid model, the problem of difficult to predict parameter changes during the molding process of large die-casting parts is solved, and high-accuracy monitoring and control of die-casting parameters is achieved.

CN118569043APending Publication Date: 2024-08-30CHONGQING CHANGAN AUTOMOBILE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410802706.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

It is difficult to predict the liquid metal flow parameters and temperature field during the molding process of large die-casting parts, resulting in poor dimensional control of die-casting parts, and the existing technology has low accuracy in monitoring parameter changes.

Method used

By mapping the temperature data of the structured grid model to the unstructured grid model, and using the mapping table between the first grid model and the second grid model, the temperature value in the unstructured grid model is accurately determined, Thereby monitoring and controlling parameter changes of die castings.

Benefits of technology

It improves the monitoring accuracy and control effect of die casting parameter changes, reduces the amount of calculation, and improves the accuracy and efficiency of temperature mapping.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118569043A
    Figure CN118569043A
Patent Text Reader

Abstract

The invention relates to a temperature mapping method and device for a die casting, electronic equipment and a storage medium, and relates to the technical field of data processing. The method at least solves the technical problems that in the prior art, the accuracy of monitoring parameter changes of a die casting is low, and the effect of controlling the parameters of the die casting is poor, and comprises the steps that data of a first grid model and data of a second grid model of a target die casting are obtained, the data of the first grid model comprises temperature data of the target die casting, each first unit block included in the first grid model corresponds to N first nodes, each first node corresponds to a coordinate value and a temperature value, each second unit block included in the second grid model corresponds to M second nodes, and each second node corresponds to a coordinate value; and determining a temperature value of each second node included in the second grid model based on the coordinate value and the temperature value of each first node included in the first grid model and the coordinate value of each second node included in the second grid model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a temperature mapping method, device, electronic device and storage medium for a die casting. Background Art

[0002] Die castings are parts produced through the die casting process. Die casting is a metal casting process that uses the mold cavity to apply high pressure to the molten liquid metal so that the liquid metal fills the mold cavity. After the liquid metal solidifies, the mold is opened to take out the solidified metal parts. In the process of producing die castings, it is necessary to calculate the flow parameters of the liquid metal and the corresponding temperature field when the liquid metal solidifies, and then determine the displacement field of the die casting after cooling based on the temperature field.

[0003] For large die castings (large size, large volume, heavy weight, etc.), the final size of large die castings cannot be effectively controlled because the structure of large die castings is more complex, the flow parameters and temperature field of liquid metal during the molding process are more difficult to predict, and the shrinkage (displacement field) of the structure after solidification is also more difficult to predict. Therefore, in the current process of producing die castings, the accuracy of monitoring the parameter changes of die castings is low, and the effect of controlling the parameters of die castings is poor. Summary of the invention

[0004] The present application provides a temperature mapping method, device, electronic device and storage medium for die castings, so as to at least solve the technical problems in the related art of low accuracy in monitoring the parameter changes of die castings and poor effect in controlling the parameters of die castings. The technical solution of the present application is as follows:

[0005] According to a first aspect of the present application, a temperature mapping method for a die casting is provided, the method comprising: acquiring data of a first grid model and data of a second grid model of a target die casting, the data of the first grid model comprising temperature data of the target die casting, the first grid model comprising a plurality of first unit blocks, each of the plurality of first unit blocks corresponding to N first nodes, each first node corresponding to a coordinate value and a temperature value, the first grid model being a structured grid, the second grid model comprising a plurality of second unit blocks, each of the plurality of second unit blocks corresponding to M second nodes, each second node corresponding to a coordinate value, the second grid model being an unstructured grid, N and M being positive integers; determining the temperature value of each second node included in the second grid model based on the coordinate value and temperature value of each first node included in the first grid model and the coordinate value of each second node included in the second grid model.

[0006] According to the above technical means, the present application can map the temperature value of each first node included in the first grid model to the M second nodes corresponding to each second unit block in the second grid model based on the N first nodes corresponding to each first unit block in the first grid model of the target die casting, and the coordinate value corresponding to each first node, so as to determine the temperature value of each second node included in the second grid model. Thus, the temperature data of the structured grid model is mapped to the unstructured grid model, and then according to the temperature data in the unstructured grid model, the parameter changes of the die casting can be accurately monitored, and the effect of controlling the parameters of the die casting can be improved.

[0007] In a possible implementation, the method further includes: constructing a first mapping table based on data of the first grid model, the first mapping table including coordinate values ​​and temperature values ​​of each first node among all first nodes included in the first grid model; determining a coordinate range corresponding to each first unit block based on the coordinate value of each first node among N first nodes corresponding to each first unit block; and constructing a second mapping table based on data of the second grid model, the second mapping table including coordinate values ​​of each second node among all second nodes included in the second grid model.

[0008] According to the above technical means, the present application can construct a corresponding first mapping table based on the data of the first grid model, so as to accurately determine the coordinate value and temperature value of each first node, and determine the coordinate range corresponding to each first unit block based on the coordinate value of each first node. And construct a corresponding second mapping table based on the data of the second grid model to determine the coordinate value of each second node. Therefore, based on these two mapping tables, the coordinate range to which the coordinate value of each second node belongs can be accurately determined from the first mapping table according to the coordinate value of each second node, thereby determining the first unit block corresponding to each second node. In the subsequent process, the temperature value of each second node can be accurately determined, thereby improving the accuracy of temperature mapping.

[0009] In a possible implementation, the above-mentioned determining the temperature value of each second node included in the second grid model based on the coordinate value and temperature value of each first node included in the first grid model and the coordinate value of each second node included in the second grid model includes: for any second node among all the second nodes included in the second grid model, based on the coordinate value of any second node and the coordinate range corresponding to each first unit block in the multiple first unit blocks, determining the target unit block corresponding to any second node from the multiple first unit blocks; determining the temperature value of any second node based on the coordinate value and temperature value of each first node among the N first nodes corresponding to the target unit block.

[0010] According to the above technical means, the present application can determine the coordinate range to which the coordinate value of any second node belongs based on the coordinate value of any second node and the coordinate range corresponding to each first unit block, thereby determining the target unit block corresponding to any second node; then the temperature value of any second node can be determined based on the coordinate value and temperature value of each first node corresponding to the target unit block. In this way, based on the mapping position of each second node in the first grid model, and the coordinate value and temperature value of the first node included in the target unit block corresponding to the mapping position, the temperature value of the first node included in the target unit block is mapped to the second node, and the temperature value of each second node can be determined. Therefore, based on the second grid model after temperature mapping, the parameter changes of the die casting can be accurately monitored, and the effect of controlling the parameters of the die casting can be improved.

[0011] In a possible implementation, the above-mentioned determining a target unit block corresponding to any second node from multiple first unit blocks based on the coordinate value of any second node and the coordinate range corresponding to each first unit block in the multiple first unit blocks includes: for any first unit block in the multiple first unit blocks, determining whether the coordinate value of any second node belongs to the coordinate range corresponding to any first unit block based on the coordinate value of any second node and the coordinate value of each first node in the N first nodes corresponding to any first unit block; when it is determined that the coordinate value of any second node belongs to the coordinate range corresponding to the target unit block, determining that there is a corresponding relationship between any second node and the target unit block.

[0012] According to the above technical means, the present application can determine the target unit block corresponding to the coordinate range to which the coordinate value of any second node belongs based on the coordinate value of any second node and the coordinate value of each first node in the N first nodes corresponding to each first unit block, thereby determining that any second node has a corresponding relationship with the target unit block. In this way, based on the relationship between the coordinate value of the second node and the coordinate value of each first node corresponding to each first unit block, the target unit block corresponding to the second node can be accurately determined, thereby accurately determining the temperature value of each second node in the subsequent process.

[0013] In a possible implementation, each of the multiple first unit blocks is composed of multiple faces, and each of the multiple faces is composed of P first nodes among the N first nodes corresponding to the first unit block, where P is a positive integer less than N; the above-mentioned determination of whether the coordinate value of any second node belongs to the coordinate range corresponding to any first unit block based on the coordinate value of any second node and the coordinate value of each first node among the N first nodes corresponding to any first unit block includes: determining multiple volume parameters based on the coordinate value of any second node and the coordinate values ​​of the P first nodes corresponding to each of the multiple faces included in any first unit block; determining whether the coordinate value of any second node belongs to the coordinate range corresponding to any first unit block based on the multiple volume parameters and the volume parameter of any first unit block; wherein, when the sum of the multiple volume parameters is equal to the volume parameter of any first unit block, it is determined that the coordinate value of any second node belongs to the coordinate range corresponding to any first unit block.

[0014] According to the above technical means, the present application can determine multiple volume parameters based on the coordinate value of any second node and the coordinate values ​​of P first nodes corresponding to each of the multiple faces included in any first unit block, that is, determine the volume of the polyhedron formed by the position point corresponding to the coordinate value of any second node and each of the multiple faces included in any first unit block. Then, based on the size relationship between the volumes of the multiple polyhedrons formed and the volume of any first unit block, when the sum of the volumes of the multiple polyhedrons is equal to the volume of any first unit block, the coordinate range to which the coordinate value of any second node belongs is determined, thereby determining the first unit block corresponding to any second node. In this way, a first unit block corresponding to each second node in the first network model can be accurately determined.

[0015] In a possible implementation, the above-mentioned determination of the temperature value of any second node based on the coordinate value and temperature value of each first node among the N first nodes corresponding to the target unit block includes: determining N target distances corresponding to the coordinate value of any second node and the coordinate value of each first node among the N first nodes corresponding to the target unit block; determining N coefficients based on the size relationship between the N target distances, one target distance corresponding to one coefficient, and the larger the value of the target distance, the smaller the corresponding coefficient; determining the temperature value of any second node based on the temperature value of each first node among the N first nodes corresponding to the target unit block and the N coefficients.

[0016] According to the above technical means, the present application can determine the distance between the coordinate value of any second node and the coordinate value of each first node in the corresponding target unit block, thereby determining the corresponding coefficient based on the size relationship between the coordinate value of any second node and the coordinate value of each first node in the target unit block, and then determining the temperature value of any second node based on the temperature value of each first node in the target unit block and the corresponding coefficient. In this way, the corresponding coefficient is determined based on the distance between the coordinate values, and the larger the distance value, the smaller the corresponding coefficient, so that when mapping the temperature value, the accuracy of the determined temperature value of the second node can be improved.

[0017] In a possible implementation, the method further includes: in a case where a target unit block corresponding to any second node is not determined from a plurality of first unit blocks, determining that the temperature value of any second node is 0; for any second unit block among the plurality of second unit blocks included in the second grid model, in a case where it is determined that there is a target node corresponding to a temperature value of 0 among the M second nodes corresponding to any second unit block, determining the average of the temperature values ​​of the second nodes whose corresponding temperature values ​​are not 0 among the M second nodes corresponding to any second unit block as the temperature value of the target node.

[0018] According to the above technical means, the present application can determine the temperature value of a second node as 0 when the target unit block corresponding to the second node is not determined from multiple first unit blocks, thereby further determining the average value of the temperature values ​​of other second nodes with non-0 temperature values ​​in the second unit block corresponding to the second node with a temperature value of 0 as the temperature value of the second node. In this way, when the temperature values ​​of some second nodes cannot be mapped from the first grid model, the temperature values ​​of these nodes can be determined based on the temperature values ​​of other nodes in the second unit block to which the second node belongs, thereby accurately determining the temperature value of each second node.

[0019] In a possible implementation, the above-mentioned determining a target unit block corresponding to any second node from multiple first unit blocks based on the coordinate value of any second node and the coordinate range corresponding to each first unit block in the multiple first unit blocks includes: dividing the multiple first unit blocks included in the first grid model into at least two areas based on the coordinate range corresponding to each first unit block in the multiple first unit blocks, each area in the at least two areas including at least one first unit block in the multiple first unit blocks; determining the coordinate range corresponding to each area based on the coordinate range corresponding to at least one first unit block included in each area in the at least two areas; determining the target area to which the coordinate value of any second node belongs based on the coordinate value of any second node and the coordinate range corresponding to each area in the at least two areas; determining the target unit block corresponding to any second node from at least one first unit block included in the target area based on the coordinate value of any second node and the coordinate range corresponding to each first unit block in the at least one first unit block included in the target area.

[0020] According to the above technical means, the present application can further divide the multiple first unit blocks included in the first grid model into at least two areas, and determine the coordinate range corresponding to each area. Therefore, based on the coordinate value of any second node, the target area to which the coordinate value of any second node belongs can be first determined, and then the target unit block corresponding to any second node can be determined from at least one first unit block included in the target area. In this way, by dividing the area, the amount of calculation can be reduced when determining the target unit block corresponding to the second node, and the efficiency of determining the target unit block corresponding to the second node can be improved.

[0021] In one possible implementation, the first mapping table includes: a unit block-node mapping table, a node-coordinate mapping table, and a node-temperature mapping table; the unit block-node mapping table is used to indicate the number of N first nodes corresponding to each first unit block among the multiple first unit blocks included in the first grid model, the node-coordinate mapping table is used to indicate the coordinate value and number of each first node among all the first nodes included in the first grid model, and the node-temperature mapping table is used to indicate the temperature value and number of each first node among all the first nodes included in the first grid model.

[0022] According to the above-mentioned technical means, the present application can, when constructing the first mapping table, specifically determine the correspondence between the unit blocks and the node numbers, the correspondence between the node numbers and the coordinate values, and the correspondence between the node numbers and the temperature values, so that in the process of temperature mapping, the required data can be directly determined from the first mapping table, thereby improving the efficiency of data processing during temperature mapping.

[0023] According to a second aspect provided by the present application, a temperature mapping device for a die casting is provided, the temperature mapping device for the die casting comprising: an acquisition module and a processing module; the acquisition module is used to acquire data of a first grid model and data of a second grid model of a target die casting, the data of the first grid model comprising temperature data of the target die casting, the first grid model comprising a plurality of first unit blocks, each of the plurality of first unit blocks corresponding to N first nodes, each first node corresponding to a coordinate value and a temperature value, the first grid model is a structured grid, the second grid model comprises a plurality of second unit blocks, each of the plurality of second unit blocks corresponding to M second nodes, each second node corresponding to a coordinate value, the second grid model is an unstructured grid, and N and M are both positive integers; the processing module is used to determine the temperature value of each second node included in the second grid model based on the coordinate value and temperature value of each first node included in the first grid model, and the coordinate value of each second node included in the second grid model.

[0024] In one possible implementation, the processing module is further used to construct a first mapping table based on the data of the first grid model, the first mapping table including the coordinate value and temperature value of each first node among all the first nodes included in the first grid model; the processing module is further used to determine the coordinate range corresponding to each first unit block based on the coordinate value of each first node among the N first nodes corresponding to each first unit block; the processing module is further used to construct a second mapping table based on the data of the second grid model, the second mapping table including the coordinate value of each second node among all the second nodes included in the second grid model.

[0025] In one possible implementation, the processing module is specifically used to determine, for any second node among all the second nodes included in the second grid model, a target unit block corresponding to any second node from multiple first unit blocks based on the coordinate value of any second node and the coordinate range corresponding to each first unit block in the multiple first unit blocks; the processing module is specifically used to determine the temperature value of any second node based on the coordinate value and temperature value of each first node in the N first nodes corresponding to the target unit block.

[0026] In one possible implementation, the processing module is specifically used to determine, for any first unit block among multiple first unit blocks, whether the coordinate value of any second node belongs to a coordinate range corresponding to any first unit block based on the coordinate value of any second node and the coordinate value of each first node among N first nodes corresponding to any first unit block; the processing module is specifically used to determine that there is a corresponding relationship between any second node and the target unit block when it is determined that the coordinate value of any second node belongs to the coordinate range corresponding to the target unit block.

[0027] In a possible implementation, each of the multiple first unit blocks is composed of multiple faces, and each of the multiple faces is composed of P first nodes among N first nodes corresponding to the first unit block, where P is a positive integer less than N; a processing module is specifically used to determine multiple volume parameters based on the coordinate value of any second node and the coordinate values ​​of the P first nodes corresponding to each of the multiple faces included in any first unit block; the processing module is specifically used to determine whether the coordinate value of any second node belongs to the coordinate range corresponding to any first unit block based on the multiple volume parameters and the volume parameters of any first unit block; wherein, when the sum of the multiple volume parameters is equal to the volume parameter of any first unit block, it is determined that the coordinate value of any second node belongs to the coordinate range corresponding to any first unit block.

[0028] In one possible implementation, the processing module is specifically used to determine N target distances corresponding to the coordinate value of any second node and the coordinate value of each of the N first nodes corresponding to the target unit block; the processing module is specifically used to determine N coefficients based on the size relationship between the N target distances, one target distance corresponds to one coefficient, and the larger the value of the target distance, the smaller the corresponding coefficient; the processing module is specifically used to determine the temperature value of any second node based on the temperature value of each of the N first nodes corresponding to the target unit block and the N coefficients.

[0029] In one possible implementation, the processing module is further used to determine that the temperature value of any second node is 0 when the target unit block corresponding to any second node is not determined from the multiple first unit blocks; the processing module is further used to, for any second unit block among the multiple second unit blocks included in the second grid model, when it is determined that there is a target node corresponding to the M second nodes corresponding to any second unit block and the temperature value is 0, determine the average value of the temperature values ​​of the second nodes whose corresponding temperature values ​​are not 0 among the M second nodes corresponding to any second unit block as the temperature value of the target node.

[0030] In a possible implementation, a processing module is specifically used to divide the multiple first unit blocks included in the first grid model into at least two areas based on the coordinate range corresponding to each first unit block in the multiple first unit blocks, and each area of ​​the at least two areas includes at least one first unit block among the multiple first unit blocks; the processing module is specifically used to determine the coordinate range corresponding to each area based on the coordinate range corresponding to at least one first unit block included in each area of ​​the at least two areas; the processing module is specifically used to determine the target area to which the coordinate value of any second node belongs based on the coordinate value of any second node and the coordinate range corresponding to each area in the at least two areas; the processing module is specifically used to determine the target unit block corresponding to any second node from the at least one first unit block included in the target area based on the coordinate value of any second node and the coordinate range corresponding to each first unit block in the at least one first unit block included in the target area.

[0031] In one possible implementation, the first mapping table includes: a unit block-node mapping table, a node-coordinate mapping table, and a node-temperature mapping table; the unit block-node mapping table is used to indicate the number of N first nodes corresponding to each first unit block among the multiple first unit blocks included in the first grid model, the node-coordinate mapping table is used to indicate the coordinate value and number of each first node among all the first nodes included in the first grid model, and the node-temperature mapping table is used to indicate the temperature value and number of each first node among all the first nodes included in the first grid model.

[0032] According to the third aspect provided by the present application, an electronic device is provided, comprising: a processor; a memory for storing processor executable instructions; wherein the processor is configured to execute instructions to implement the method of the above-mentioned first aspect and any possible implementation manner thereof.

[0033] According to the fourth aspect provided by the present application, a computer-readable storage medium is provided. When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method in the above-mentioned first aspect and any possible implementation method thereof.

[0034] According to the fifth aspect provided by the present application, a computer program product is provided, the computer program product comprising computer instructions, and when the computer instructions are executed on an electronic device, the electronic device executes the method of the above-mentioned first aspect and any possible implementation manner thereof.

[0035] Therefore, the above technical features of the present application have the following beneficial effects:

[0036] (1) The present application can map the temperature value of each first node included in the first grid model to the M second nodes corresponding to each second unit block in the second grid model based on the N first nodes corresponding to each first unit block in the first grid model of the target die casting and the coordinate value corresponding to each first node, so as to determine the temperature value of each second node included in the second grid model. Thus, the temperature data of the structured grid model is mapped to the unstructured grid model, and then the parameter changes of the die casting can be accurately monitored according to the temperature data in the unstructured grid model, and the effect of controlling the parameters of the die casting can be improved.

[0037] (2) The present application can construct a corresponding first mapping table based on the data of the first grid model, so as to accurately determine the coordinate value and temperature value of each first node, and determine the coordinate range corresponding to each first unit block based on the coordinate value of each first node. And construct a corresponding second mapping table based on the data of the second grid model to determine the coordinate value of each second node. Therefore, based on these two mapping tables, the coordinate range to which the coordinate value of each second node belongs can be accurately determined from the first mapping table according to the coordinate value of each second node, thereby determining the first unit block corresponding to each second node. In the subsequent process, the temperature value of each second node can be accurately determined, thereby improving the accuracy of temperature mapping.

[0038] (3) The present application can determine the coordinate range to which the coordinate value of any second node belongs based on the coordinate value of any second node and the coordinate range corresponding to each first unit block, thereby determining the target unit block corresponding to any second node; then, based on the coordinate value and temperature value of each first node corresponding to the target unit block, the temperature value of any second node can be determined. In this way, based on the mapping position of each second node in the first grid model, and the coordinate value and temperature value of the first node included in the target unit block corresponding to the mapping position, the temperature value of the first node included in the target unit block is mapped to the second node, and the temperature value of each second node can be determined. Therefore, based on the second grid model after temperature mapping, the parameter changes of the die casting can be accurately monitored, and the effect of controlling the parameters of the die casting can be improved.

[0039] (4) The present application can determine the target unit block corresponding to the coordinate range to which the coordinate value of any second node belongs based on the coordinate value of any second node and the coordinate value of each first node among the N first nodes corresponding to each first unit block, thereby determining that any second node has a corresponding relationship with the target unit block. In this way, based on the relationship between the coordinate value of the second node and the coordinate value of each first node corresponding to each first unit block, the target unit block corresponding to the second node can be accurately determined, thereby accurately determining the temperature value of each second node in the subsequent process.

[0040] (5) The present application can determine multiple volume parameters based on the coordinate value of any second node and the coordinate values ​​of P first nodes corresponding to each of the multiple faces included in any first unit block, that is, determine the volume of the polyhedron formed by the position point corresponding to the coordinate value of any second node and each of the multiple faces included in any first unit block. Then, based on the size relationship between the volumes of the multiple polyhedrons and the volume of any first unit block, when the sum of the volumes of the multiple polyhedrons is equal to the volume of any first unit block, the coordinate range to which the coordinate value of any second node belongs is determined, thereby determining the first unit block corresponding to any second node. In this way, a first unit block corresponding to each second node in the first network model can be accurately determined.

[0041] (6) The present application can determine the distance between the coordinate value of any second node and the coordinate value of each first node in the corresponding target unit block, thereby determining the corresponding coefficient based on the size relationship between the coordinate value of any second node and the coordinate value of each first node in the target unit block, and then determine the temperature value of any second node based on the temperature value of each first node in the target unit block and the corresponding coefficient. In this way, the corresponding coefficient is determined based on the distance between the coordinate values. When the distance value is larger, the corresponding coefficient is smaller, so that when mapping the temperature value, the accuracy of the determined temperature value of the second node can be improved.

[0042] (7) In the present application, when a target unit block corresponding to a second node is not determined from a plurality of first unit blocks, the temperature value of the second node can be determined as 0, thereby further determining the average value of the temperature values ​​of other second nodes whose temperature values ​​are not 0 in the second unit block corresponding to the second node whose temperature value is 0 as the temperature value of the second node. In this way, when the temperature values ​​of some second nodes cannot be mapped from the first grid model, the temperature values ​​of these nodes can be determined based on the temperature values ​​of other nodes in the second unit block to which the second node belongs, thereby accurately determining the temperature value of each second node.

[0043] (8) The present application can further divide the multiple first unit blocks included in the first grid model into at least two regions, and determine the coordinate range corresponding to each region. Therefore, based on the coordinate value of any second node, the target region to which the coordinate value of any second node belongs can be first determined, and then the target unit block corresponding to any second node can be determined from at least one first unit block included in the target region. In this way, by dividing the regions, the amount of calculation can be reduced when determining the target unit block corresponding to the second node, and the efficiency of determining the target unit block corresponding to the second node can be improved.

[0044] (9) When constructing the first mapping table, the present application can specifically determine the correspondence between the unit blocks and the node numbers, the correspondence between the node numbers and the coordinate values, and the correspondence between the node numbers and the temperature values. Therefore, in the process of temperature mapping, the required data can be directly determined from the first mapping table, thereby improving the efficiency of data processing during temperature mapping.

[0045] It should be noted that the technical effects brought about by any implementation method in the second to fifth aspects can refer to the technical effects brought about by the corresponding implementation method in the first aspect, and will not be repeated here.

[0046] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application, and do not constitute an improper limitation on the present application.

[0048] Figure 1 is a schematic structural diagram of a temperature mapping system for a die casting according to an exemplary embodiment;

[0049] Figure 2 is a flow chart showing a temperature mapping method for a die casting according to an exemplary embodiment;

[0050] Figure 3 is a schematic diagram of a model according to an exemplary embodiment;

[0051] Figure 4 is a flow chart showing another temperature mapping method for a die casting according to an exemplary embodiment;

[0052] Figure 5 is a flow chart showing another temperature mapping method for a die casting according to an exemplary embodiment;

[0053] Figure 6 is a schematic diagram showing the positional relationship between nodes of different grid models according to an exemplary embodiment;

[0054] Figure 7 is another model schematic diagram shown according to an exemplary embodiment;

[0055] Figure 8 is a block diagram of a temperature mapping device for a die casting according to an exemplary embodiment;

[0056] Fig. 9 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0057] In order to enable ordinary persons in the art to better understand the technical solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.

[0058] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.

[0059] Currently, in the process of manufacturing die-casting parts, after the liquid metal solidifies, when the mold is opened to take out the solidified metal parts, the temperature is still high at this time, and it is generally cooled by water cooling or air cooling. Since the cavity of the mold contains not only the product, but also the liquid metal flow channel and other parts connected to the product, the materials other than the product must be cut off by punching or laser trimming after cooling. Only after all the above processes are completed can we get a basically formed part. Subsequently, the parts are polished to remove burrs, and then scanning is needed to determine whether the parts meet the tolerances. Parts with unqualified shapes need to be processed by shaping, cutting and other processes before the parts can be delivered.

[0060] The characteristic of "large integrated die castings" is that they are large. Generally speaking, a larger part is often assembled from multiple small parts. For example, the metal base plate under the back seat of a car cannot be stamped out at one time because the overall shape is too complex, so it is usually assembled from multiple sheet metal parts by welding. Integrated die casting replaces these independently formed parts with an integral die casting to be formed at one time, so it appears large. Compared with general die castings (usually ranging in size from a few centimeters to tens of centimeters), integrated die castings reach a scale of hundreds of centimeters. The difficulty of the molding process of this type of part lies in the fact that it requires a larger tonnage of the die casting machine, and because of its more complex structure, the flow of liquid metal during the molding process is more difficult to predict, and the shrinkage of the structure after solidification is also more difficult to predict, resulting in the size of the product cannot be effectively controlled.

[0061] Although it is possible to conduct virtual numerical experiments with the help of computer software through "virtual experiments" to make a prediction of the flow, temperature, shrinkage, etc. of the hare metal. That is, through Computer Aided Engineering (CAE) in the industrial product design stage, a means of assisting engineers to predict and evaluate the performance of product structures in advance through virtual simulation experiments. Since real experiments are costly and time-consuming, virtual experiments can effectively reduce the cost of real experiments. For high-value industries such as automobiles and aircraft, its application value is particularly prominent. In the entire virtual forming experiment, three steps of calculation are required: (1) the flow of liquid metal needs to be calculated first, (2) then the temperature field of its solidification is calculated, and (3) then the displacement field after cooling is calculated from the entire temperature field. This application mainly explains how to interpolate the temperature field into step (3), that is, to achieve "temperature mapping."

[0062] It should be noted that temperature mapping solves the problem of mapping the node data of the grid model in the calculation process of steps (1) and (2) to the grid model corresponding to step (3). This is because the numerical methods used in steps (1) and (2) are different from those used in (3), resulting in different grid models. Temperature is data existing at the nodes of the grid, and the coordinates of the nodes in different grid models are not completely coincident. For example, for the same grid model corresponding to a sphere, steps (1) and (2) use voxel grids, which are structured grids (meaning that all internal points in the grid area have the same adjacent units, and the number of other grids adjacent to each small grid is fixed, and the relative positions are also fixed). Step (3) uses tetrahedral unstructured grids (meaning that all internal points in the grid area do not have the same adjacent units, and the number of other grids adjacent to each small grid is not fixed, and the relative positions are also not fixed). Its characteristics are high fit to the surface, but the adjacency relationship between grids is not as fixed as that of structured grids. The problem to be solved in this application is how to map the temperature data on the nodes of the structured grid model to the nodes of the unstructured grid model.

[0063] This is because when calculating step (3), mesh models of different sizes are usually selected to analyze the third part. This is because unstructured meshes have some problems when they are divided, such as poor mesh quality, broken meshes, too large meshes, or isolated meshes in some areas. When optimizing this mesh, it is necessary to re-interpolate the temperature to the new mesh. We can choose to remap from the voxel mesh or map from the existing unstructured mesh. For the deformation analysis process of the casting after mold opening, it is necessary to initialize the temperature field at the moment of mold opening. The temperature data is the result data of the flow analysis and heat transfer analysis of the previous link. The results are stored in the unit or unit node of the previous link, and the mesh of the previous link is inconsistent with the subsequent deformation analysis mesh. Therefore, the patent needs to solve the problem of how to extract the temperature data from the previous mesh and map it to the subsequent mesh.

[0064] The temperature mapping method for die castings provided in the embodiments of the present application can be applicable to the temperature mapping system for die castings. Figure 1 FIG. 1 shows a schematic diagram of the structure of the temperature mapping system of the die casting. Figure 1 As shown, the temperature mapping system 10 for die castings includes: an electronic device 11 , a first grid model 12 and a second grid model 13 .

[0065] The electronic device 11 is used to obtain data of a first grid model 12 and data of a second grid model 13 of a target die casting, the data of the first grid model 12 includes temperature data of the target die casting, the first grid model 12 includes multiple first unit blocks, each of the multiple first unit blocks corresponds to N first nodes, each first node corresponds to a coordinate value and a temperature value, the first grid model 12 is a structured grid, the second grid model 13 includes multiple second unit blocks, each of the multiple second unit blocks corresponds to M second nodes, each second node corresponds to a coordinate value, the second grid model 13 is an unstructured grid, and N and M are both positive integers.

[0066] The electronic device 11 is further used to determine the temperature value of each second node included in the second grid model 13 based on the coordinate value and temperature value of each first node included in the first grid model 12 and the coordinate value of each second node included in the second grid model 13.

[0067] For ease of understanding, the temperature mapping method for die castings provided in the present application is specifically introduced below with reference to the accompanying drawings.

[0068] Figure 2 is a flow chart of a temperature mapping method for a die casting according to an exemplary embodiment. Figure 2 As shown, the temperature mapping method of the die casting includes the following S201-S202:

[0069] S201 , obtaining data of a first mesh model and data of a second mesh model of a target die casting.

[0070] Among them, the data of the first grid model includes temperature data of the target die casting, the first grid model includes multiple first unit blocks, each of the multiple first unit blocks corresponds to N first nodes, each first node corresponds to a coordinate value and a temperature value, the first grid model is a structured grid, the second grid model includes multiple second unit blocks, each of the multiple second unit blocks corresponds to M second nodes, each second node corresponds to a coordinate value, the second grid model is an unstructured grid, and N and M are both positive integers.

[0071] In the embodiment of the present application, after the liquid metal solidifies and the mold is opened to take out the solidified metal parts, an old mesh with temperature data (i.e., the first mesh model) can be obtained, and a new mesh without temperature data (i.e., the second mesh model) can also be obtained. The goal is to map the temperature data on the first mesh model to the second mesh model.

[0072] It can be understood that both the first grid model and the second grid model are models constructed based on the target die casting, and the first grid model and the second grid model can be divided into a plurality of unit blocks, and the vertices of each unit block are determined as nodes. In this way, the temperature data of the target die casting can be correspondingly stored in each first node included in the first grid model.

[0073] For example, the target die casting is a sphere. Figure 3 As shown, the first grid model and the second grid model corresponding to the target die casting are shown. The first grid model is a structured grid. The first grid model includes a plurality of first unit blocks of a hexahedral structure. Each first unit block corresponds to 6 first nodes. Each first node corresponds to a coordinate value and a temperature value. The second grid model is an unstructured grid. The second grid model includes a plurality of second unit blocks of a tetrahedral structure. Each second unit block corresponds to 4 second nodes. Each second node corresponds to a coordinate value.

[0074] In some embodiments, a first mapping table can be constructed based on data of the first grid model, the first mapping table including coordinate values ​​and temperature values ​​of each first node among all first nodes included in the first grid model; then, based on the coordinate values ​​of each first node among the N first nodes corresponding to each first unit block, the coordinate range corresponding to each first unit block is determined.

[0075] In some embodiments, a second mapping table may be constructed based on the data of the second mesh model, where the second mapping table includes the coordinate value of each second node among all the second nodes included in the second mesh model.

[0076] In the embodiment of the present application, the present application can construct a corresponding first mapping table based on the data of the first grid model, so as to accurately determine the coordinate value and temperature value of each first node, and determine the coordinate range corresponding to each first unit block based on the coordinate value of each first node. And construct a corresponding second mapping table based on the data of the second grid model to determine the coordinate value of each second node. Therefore, based on these two mapping tables, the coordinate range to which the coordinate value of each second node belongs can be accurately determined from the first mapping table according to the coordinate value of each second node, thereby determining the first unit block corresponding to each second node. In order to accurately determine the temperature value of each second node in the future, the accuracy of temperature mapping is improved.

[0077] It should be noted that the first mapping table includes: a unit block-node mapping table, a node-coordinate mapping table and a node-temperature mapping table; the unit block-node mapping table is used to indicate the number of N first nodes corresponding to each first unit block among the multiple first unit blocks included in the first grid model, the node-coordinate mapping table is used to indicate the coordinate value and number of each first node among all the first nodes included in the first grid model, and the node-temperature mapping table is used to indicate the temperature value and number of each first node among all the first nodes included in the first grid model.

[0078] Optionally, all the first nodes included in the first grid model can be numbered from small to large in a certain order, and the temperature data on each first node is also stored in a column vector in order, and the column vector can be stored in a text file. All the first units included in the first grid model are also sorted from small to large. Which first nodes each first unit contains, that is, the correspondence between the unit number and the node number, is stored in a table in advance. The first row stores the numbers of multiple first nodes corresponding to the first unit numbered A001, and the second row corresponds to the numbers of multiple first nodes corresponding to the first unit numbered A002, and so on to obtain the unit block-node mapping table in the first mapping table. In this way, when the number of a first unit is determined, the corresponding multiple first nodes can be determined in the first mapping table.

[0079] Optionally, the first mapping table may also include a node-coordinate mapping table, which records the coordinate values ​​corresponding to the number of each first node. That is, the first row stores the Cartesian coordinates of the first node numbered B001, the second row stores the Cartesian coordinates of the first node numbered B002, and so on. The first mapping table may also include a node-temperature mapping table, which stores the temperature values ​​corresponding to each first node. Similarly, the second mapping table corresponding to the data of the second grid model can be described with reference to the first mapping table. As for the temperature data in the second mapping table corresponding to the data of the second grid model, since it is not yet known (needs to be mapped from the first grid model), it can be temporarily recorded as 0.

[0080] In an embodiment of the present application, the present application can specifically determine the correspondence between the unit blocks and the node numbers, the correspondence between the node numbers and the coordinate values, and the correspondence between the node numbers and the temperature values ​​when constructing the first mapping table, so that in the process of temperature mapping, the required data can be directly determined from the first mapping table, thereby improving the efficiency of data processing during temperature mapping.

[0081] S202: Determine the temperature value of each second node included in the second grid model based on the coordinate value and temperature value of each first node included in the first grid model and the coordinate value of each second node included in the second grid model.

[0082] It should be noted that, for the specific process of determining the temperature value of each second node included in the second grid model, reference may be made to the following description, which will not be repeated here.

[0083] In an embodiment of the present application, the present application can map the temperature value of each first node included in the first grid model to the M second nodes corresponding to each second unit block in the second grid model based on the N first nodes corresponding to each first unit block in the first grid model of the target die casting, and the coordinate value corresponding to each first node, so as to determine the temperature value of each second node included in the second grid model. Thus, the temperature data of the structured grid model is mapped to the unstructured grid model, and then according to the temperature data in the unstructured grid model, the parameter changes of the die casting can be accurately monitored, and the effect of controlling the parameters of the die casting can be improved.

[0084] In some embodiments, in order to determine the temperature value of each second node included in the second grid model, such as Figure 4 As shown, in a temperature mapping method for a die casting provided in an embodiment of the present application, the above S202 may specifically include S401-S402:

[0085] S401. For any second node among all the second nodes included in the second grid model, based on the coordinate value of any second node and the coordinate range corresponding to each first unit block in the plurality of first unit blocks, determine a target unit block corresponding to any second node from the plurality of first unit blocks.

[0086] Optionally, one second node (i.e., any second node) can be determined from the second grid model each time in ascending order according to the numbers of all second nodes included in the second grid model. Then, the corresponding coordinate value is indexed in the node-coordinate mapping table in the second mapping table according to the number of the second node, and is recorded as point A. Then, the coordinate value corresponding to point A is determined in the first unit block corresponding to the first grid model (i.e., inside that first unit block), and is determined as the target unit block, which is recorded as B (the coordinate value corresponding to point A is within the range of B).

[0087] In some embodiments, in order to determine a target unit block corresponding to any second node from a plurality of first unit blocks, the above-mentioned step of “determining a target unit block corresponding to any second node from a plurality of first unit blocks based on a coordinate value of any second node and a coordinate range corresponding to each first unit block in the plurality of first unit blocks” in S401 may specifically include S4011-S4012:

[0088] S4011. For any first unit block among multiple first unit blocks, based on the coordinate value of any second node and the coordinate value of each first node among the N first nodes corresponding to any first unit block, determine whether the coordinate value of any second node belongs to the coordinate range corresponding to any first unit block.

[0089] S4012: When it is determined that the coordinate value of any second node belongs to the coordinate range corresponding to the target unit block, determine that there is a corresponding relationship between any second node and the target unit block.

[0090] In the embodiment of the present application, the present application can determine the target unit block corresponding to the coordinate range to which the coordinate value of any second node belongs based on the coordinate value of any second node and the coordinate value of each first node in the N first nodes corresponding to each first unit block, thereby determining that any second node has a corresponding relationship with the target unit block. In this way, based on the relationship between the coordinate value of the second node and the coordinate value of each first node corresponding to each first unit block, the target unit block corresponding to the second node can be accurately determined, thereby accurately determining the temperature value of each second node in the subsequent process.

[0091] In some embodiments, each of the multiple first unit blocks is composed of multiple faces, and each of the multiple faces is composed of P first nodes among N first nodes corresponding to the first unit block, where P is a positive integer less than N.

[0092] In some embodiments, based on the coordinate value of any second node and the coordinate value of each of the N first nodes corresponding to any first unit block, determining whether the coordinate value of any second node belongs to the coordinate range corresponding to any first unit block, specifically may include: determining multiple volume parameters based on the coordinate value of any second node and the coordinate values ​​of P first nodes corresponding to each of the multiple faces included in any first unit block; then, based on the multiple volume parameters and the volume parameters of any first unit block, determining whether the coordinate value of any second node belongs to the coordinate range corresponding to any first unit block; wherein, when the sum of the multiple volume parameters is equal to the volume parameter of any first unit block, it is determined that the coordinate value of any second node belongs to the coordinate range corresponding to any first unit block.

[0093] Exemplarily, a unit block corresponds to 4 nodes, and a unit block corresponds to 6 nodes (or other number of nodes) for reference. Assume that the coordinate values ​​of the four first nodes corresponding to a first unit block (i.e., unit block B) determined from the first grid model are: V1 = (x1, y1, z1), V2 = (x2, y2, z2), V3 = (x3, y3, z3), V4 = (x4, y4, z4), and the coordinate value of a second node (i.e., node A) in the second grid model is (x, y, z). Based on the coordinate value of the second node (i.e., node A) and the coordinate values ​​of any three of the four first nodes corresponding to the first unit block (i.e., unit block B), multiple volume parameters can be determined.

[0094] As shown in Formula 1, a volume parameter D1 is determined based on the coordinate value of the second node (i.e., node A) and V2=(x2, y2, z2), V3=(x3, y3, z3), and V4=(x4, y4, z4).

[0095]

[0096] As shown in Formula 2, a volume parameter D2 is determined based on the coordinate value of the second node (i.e., node A) and V1=(x1, y1, z1), V3=(x3, y3, z3), and V4=(x4, y4, z4).

[0097]

[0098] As shown in Formula 3, a volume parameter D3 is determined based on the coordinate value of the second node (i.e., node A) and V1=(x1, y1, z1), V2=(x2, y2, z2), and V4=(x4, y4, z4).

[0099]

[0100] As shown in Formula 4, a volume parameter D4 is determined based on the coordinate value of the second node (i.e., node A) and V1=(x1, y1, z1), V2=(x2, y2, z2), and V3=(x3, y3, z3).

[0101]

[0102] As shown in Formula 5, the volume parameter D0 of the first unit block (i.e., unit block B) is determined based on V1=(x1, y1, z1), V2=(x2, y2, z2), V3=(x3, y3, z3), and V4=(x4, y4, z4).

[0103]

[0104] Thus, when D0=D1+D2+D3+D4 is determined, it can be determined that the coordinate value of the second node (ie, node A) belongs to the interior of the first unit block (ie, unit block B).

[0105] In an embodiment of the present application, the present application can determine multiple volume parameters based on the coordinate value of any second node and the coordinate values ​​of P first nodes corresponding to each of the multiple faces included in any first unit block, that is, determine the volume of the polyhedron formed by the position point corresponding to the coordinate value of any second node and each of the multiple faces included in any first unit block. Then, based on the size relationship between the volumes of the multiple polyhedrons formed and the volume of any first unit block, when the sum of the volumes of the multiple polyhedrons is equal to the volume of any first unit block, determine the coordinate range to which the coordinate value of any second node belongs, thereby determining the first unit block corresponding to any second node. In this way, a first unit block corresponding to each second node in the first network model can be accurately determined.

[0106] S402: Determine the temperature value of any second node based on the coordinate value and temperature value of each first node among the N first nodes corresponding to the target unit block.

[0107] In the embodiment of the present application, the present application can determine the coordinate range to which the coordinate value of any second node belongs based on the coordinate value of any second node and the coordinate range corresponding to each first unit block, thereby determining the target unit block corresponding to any second node; then the temperature value of any second node can be determined based on the coordinate value and temperature value of each first node corresponding to the target unit block. In this way, based on the mapping position of each second node in the first grid model, and the coordinate value and temperature value of the first node included in the target unit block corresponding to the mapping position, the temperature value of the first node included in the target unit block is mapped to the second node, and the temperature value of each second node can be determined. Therefore, based on the second grid model after temperature mapping, the parameter changes of the die casting can be accurately monitored, and the effect of controlling the parameters of the die casting can be improved.

[0108] In some embodiments, in order to determine the temperature value of any second node, the above S402 may specifically include S4021-S4023:

[0109] S4021. Determine N target distances corresponding to the coordinate value of any second node and the coordinate value of each first node in the N first nodes corresponding to the target unit block.

[0110] S4022. Determine N coefficients based on the size relationship between the N target distances, one target distance corresponds to one coefficient, and the larger the target distance value, the smaller the corresponding coefficient.

[0111] S4023. Determine the temperature value of any second node based on the temperature value of each first node among the N first nodes corresponding to the target unit block and the N coefficients.

[0112] Optionally, when determining the correspondence between a second node and a first unit block, the following situations may occur in theory: (1) a first unit block B is found, and the second node A is located inside the first unit block B; (2) the second node A is on the boundary of multiple first unit blocks; (3) the second node A is not inside any first unit block. Therefore, for situations (1) and (2), it is considered that the temperature value of the second node A is equal to the weighted sum of the temperature values ​​of the surrounding nodes (i.e., the nodes corresponding to the first unit block B).

[0113] Specifically, by determining the distance between the coordinate value of the second node A and each first node corresponding to the first unit block B, a weighting coefficient is defined. The closer the coordinate value of the second node A is to the coordinate value of a first node, the greater the coefficient corresponding to the temperature value of the first node.

[0114] For example, the distances between the coordinate value of the second node A and the coordinate values ​​of multiple first nodes corresponding to the first unit block B (taking three first nodes as an example) are d1, d2, and d3 from near to far, and the temperature values ​​of the multiple first nodes corresponding to the first unit block B are T1, T2, and T3, respectively. Based on the principle that the closer the distance, the larger the corresponding coefficient, the temperature value of the second node A can be calculated as: TA=T1*d3 / (d1+d2+d3)+T2*d2 / (d1+d2+d3)+T3*d1 / (d1+d2+d3).

[0115] In the embodiment of the present application, the present application can determine the distance between the coordinate value of any second node and the coordinate value of each first node in the corresponding target unit block, thereby determining the corresponding coefficient based on the size relationship between the coordinate value of any second node and the coordinate value of each first node in the target unit block, and then determining the temperature value of any second node based on the temperature value of each first node in the target unit block and the corresponding coefficient. In this way, the corresponding coefficient is determined based on the distance between the coordinate values, and the corresponding coefficient is smaller when the distance value is larger, so that the accuracy of the temperature value of the determined second node can be improved when mapping the temperature value.

[0116] In some embodiments, Figure 5 As shown, in a temperature mapping method for a die casting provided in an embodiment of the present application, specifically, S501-S502 may also be included:

[0117] S501 : When no target unit block corresponding to any second node is determined from a plurality of first unit blocks, determine the temperature value of any second node to be 0.

[0118] S502. For any second unit block among the multiple second unit blocks included in the second grid model, when it is determined that there is a temperature value corresponding to a target node among the M second nodes corresponding to any second unit block that is 0, the average value of the temperature values ​​of the second nodes whose corresponding temperature values ​​are not 0 among the M second nodes corresponding to any second unit block is determined as the temperature value of the target node.

[0119] Optionally, the second node A is not inside any first unit block because the geometrical characterization degree of the target die casting by the first mesh model is different from that of the second mesh model. Figure 6As shown, a schematic diagram of the positional relationship between the nodes of different grid models is shown. On the boundary of the circle (i.e., the target die casting 601), the first grid model 602 (indicated by dotted lines, including multiple first nodes 603) and the second grid model 604 (indicated by solid lines, including multiple second nodes 605) are respectively located at different positions on the boundary of the circle. At this time, the two types of nodes are not inside the unit blocks of each other's grid models.

[0120] Based on this, when it is determined that the second node A is not inside any first unit block, the temperature value of the second node A can be first determined to be 0, and then the average temperature value of the other second nodes included in the second unit block C where the second node A is located (that is, the nodes other than the second node A among the multiple second nodes included in the second unit block C) can be determined as the temperature value of the second node A.

[0121] In the embodiment of the present application, the present application can determine the temperature value of a second node as 0 when the target unit block corresponding to the second node is not determined from the multiple first unit blocks, thereby further determining the average value of the temperature values ​​of other second nodes whose temperature values ​​are not 0 in the second unit block corresponding to the second node whose temperature value is 0 as the temperature value of the second node. In this way, when the temperature values ​​of some second nodes cannot be mapped from the first grid model, the temperature values ​​of these nodes can be determined based on the temperature values ​​of other nodes in the second unit block to which the second node belongs, thereby accurately determining the temperature value of each second node.

[0122] In some embodiments, in order to determine a target unit block corresponding to any second node from a plurality of first unit blocks, the above step of “determining a target unit block corresponding to any second node from a plurality of first unit blocks based on a coordinate value of any second node and a coordinate range corresponding to each first unit block in the plurality of first unit blocks” in S401 includes S4013-S4016:

[0123] S4013. Divide the multiple first unit blocks included in the first grid model into at least two areas based on the coordinate range corresponding to each of the multiple first unit blocks, and each of the at least two areas includes at least one first unit block among the multiple first unit blocks.

[0124] It should be noted that, for the second node A, when a first unit block B is determined from the first grid model, assuming that the second grid model includes m second nodes and the first grid model includes n first unit blocks, then m*n judgments are required to determine the target unit block corresponding to the second node A.

[0125] Optionally, when determining the target unit block from the n first unit blocks included in the first grid model, it can be accelerated, and this process does not need to determine each of the n first unit blocks included in the first grid model separately. The n first unit blocks included in the first grid model can be subjected to a structured partitioning operation in advance, thereby reducing the amount of calculation.

[0126] S4014. Determine a coordinate range corresponding to each area based on a coordinate range corresponding to at least one first unit block included in each area of ​​the at least two areas.

[0127] S4015: Determine the target area to which the coordinate value of any second node belongs based on the coordinate value of any second node and the coordinate range corresponding to each area of ​​the at least two areas.

[0128] S4016. Determine a target unit block corresponding to any second node from at least one first unit block included in the target area based on the coordinate value of any second node and the coordinate range corresponding to each first unit block in the at least one first unit block included in the target area.

[0129] Optionally, if the first grid model is a structured grid and the second grid model is also a structured grid, then the number of the first unit block included in the first grid model and its own coordinate value have a direct index relationship, because for a structured grid, the topological relationship between grids is fixed, and the number of its unit block can be determined according to the coordinate value. In this way, according to the coordinate value of the second node A, the unit block corresponding to the coordinate value of the second node A can be directly indexed from the unit blocks included in the first grid model, and then a detailed internal judgment can be made.

[0130] Optionally, if the first grid model is an unstructured grid, it is necessary to first divide the first grid model into regions according to the coordinate range of the first unit block included in the first grid model. Figure 7 As shown, the first grid model is divided into multiple regions (e.g., 4 regions or 6 regions) in space by the first plane 701 and the second plane 702, and each region corresponds to multiple first unit blocks. The first plane 701 and the second plane 702 are intersecting planes (which may be vertical planes), and it is possible to first determine in which region the coordinate value of the second node A is located, and then determine the first unit blocks included in the region. In this way, the determination of most useless unit blocks can be omitted.

[0131] In an embodiment of the present application, the present application can further divide the multiple first unit blocks included in the first grid model into at least two areas, and determine the coordinate range corresponding to each area. Thus, based on the coordinate value of any second node, the target area to which the coordinate value of any second node belongs can be first determined, and then the target unit block corresponding to any second node can be determined from at least one first unit block included in the target area. In this way, by dividing the area, the amount of calculation can be reduced when determining the target unit block corresponding to the second node, and the efficiency of determining the target unit block corresponding to the second node can be improved.

[0132] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the method. In order to achieve the above functions, the temperature mapping device or electronic device of the die casting includes a hardware structure and / or software module corresponding to the execution of each function. It should be easily appreciated by those skilled in the art that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of this application.

[0133] The embodiment of the present application can divide the temperature mapping device or electronic device of the die casting into functional modules according to the above method. For example, the temperature mapping device or electronic device of the die casting can include various functional modules corresponding to the various functional divisions, or two or more functions can be integrated into one processing module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical functional division. There may be other division methods in actual implementation.

[0134] Figure 8 is a block diagram of a temperature mapping device for a die casting according to an exemplary embodiment. Figure 8 The temperature mapping device 800 for a die casting includes: an acquisition module 801 and a processing module 802 .

[0135] The acquisition module 801 is used to acquire data of a first grid model and a second grid model of a target die casting, the data of the first grid model includes temperature data of the target die casting, the first grid model includes a plurality of first unit blocks, each of the plurality of first unit blocks corresponds to N first nodes, each first node corresponds to a coordinate value and a temperature value, the first grid model is a structured grid, the second grid model includes a plurality of second unit blocks, each of the plurality of second unit blocks corresponds to M second nodes, each second node corresponds to a coordinate value, the second grid model is an unstructured grid, and N and M are both positive integers; the processing module 802 is used to determine the temperature value of each second node included in the second grid model based on the coordinate value and temperature value of each first node included in the first grid model and the coordinate value of each second node included in the second grid model.

[0136] In one possible implementation, the processing module 802 is further used to construct a first mapping table based on the data of the first grid model, the first mapping table including the coordinate value and temperature value of each first node among all the first nodes included in the first grid model; the processing module 802 is further used to determine the coordinate range corresponding to each first unit block based on the coordinate value of each first node among the N first nodes corresponding to each first unit block; the processing module 802 is further used to construct a second mapping table based on the data of the second grid model, the second mapping table including the coordinate value of each second node among all the second nodes included in the second grid model.

[0137] In one possible implementation, the processing module 802 is specifically used to determine, for any second node among all the second nodes included in the second grid model, a target unit block corresponding to any second node from a plurality of first unit blocks based on the coordinate value of any second node and the coordinate range corresponding to each first unit block in the plurality of first unit blocks; the processing module 802 is specifically used to determine the temperature value of any second node based on the coordinate value and temperature value of each first node in the N first nodes corresponding to the target unit block.

[0138] In one possible implementation, the processing module 802 is specifically used to determine, for any first unit block among multiple first unit blocks, whether the coordinate value of any second node belongs to the coordinate range corresponding to any first unit block based on the coordinate value of any second node and the coordinate value of each first node among the N first nodes corresponding to any first unit block; the processing module 802 is specifically used to determine that there is a corresponding relationship between any second node and the target unit block when it is determined that the coordinate value of any second node belongs to the coordinate range corresponding to the target unit block.

[0139] In a possible implementation, each of the multiple first unit blocks is composed of multiple faces, and each of the multiple faces is composed of P first nodes among N first nodes corresponding to the first unit block, where P is a positive integer less than N; the processing module 802 is specifically used to determine multiple volume parameters based on the coordinate value of any second node and the coordinate values ​​of the P first nodes corresponding to each of the multiple faces included in any first unit block; the processing module 802 is specifically used to determine whether the coordinate value of any second node belongs to the coordinate range corresponding to any first unit block based on the multiple volume parameters and the volume parameters of any first unit block; wherein, when the sum of the multiple volume parameters is equal to the volume parameter of any first unit block, it is determined that the coordinate value of any second node belongs to the coordinate range corresponding to any first unit block.

[0140] In one possible implementation, processing module 802 is specifically used to determine N target distances corresponding to the coordinate value of any second node and the coordinate value of each of the N first nodes corresponding to the target unit block; processing module 802 is specifically used to determine N coefficients based on the size relationship between the N target distances, one target distance corresponds to one coefficient, and the larger the value of the target distance, the smaller the corresponding coefficient; processing module 802 is specifically used to determine the temperature value of any second node based on the temperature value of each of the N first nodes corresponding to the target unit block and the N coefficients.

[0141] In one possible implementation, the processing module 802 is further used to determine that the temperature value of any second node is 0 when the target unit block corresponding to any second node is not determined from the multiple first unit blocks; the processing module 802 is also used to, for any second unit block among the multiple second unit blocks included in the second grid model, when it is determined that there is a target node corresponding to the temperature value of 0 among the M second nodes corresponding to any second unit block, determine the average value of the temperature values ​​of the second nodes whose corresponding temperature values ​​are not 0 among the M second nodes corresponding to any second unit block as the temperature value of the target node.

[0142] In a possible implementation, the processing module 802 is specifically used to divide the multiple first unit blocks included in the first grid model into at least two areas based on the coordinate range corresponding to each first unit block in the multiple first unit blocks, and each area in the at least two areas includes at least one first unit block in the multiple first unit blocks; the processing module 802 is specifically used to determine the coordinate range corresponding to each area based on the coordinate range corresponding to at least one first unit block included in each area in the at least two areas; the processing module 802 is specifically used to determine the target area to which the coordinate value of any second node belongs based on the coordinate value of any second node and the coordinate range corresponding to each area in the at least two areas; the processing module 802 is specifically used to determine the target unit block corresponding to any second node from the at least one first unit block included in the target area based on the coordinate value of any second node and the coordinate range corresponding to each first unit block in the at least one first unit block included in the target area.

[0143] In one possible implementation, the first mapping table includes: a unit block-node mapping table, a node-coordinate mapping table, and a node-temperature mapping table; the unit block-node mapping table is used to indicate the number of N first nodes corresponding to each first unit block among the multiple first unit blocks included in the first grid model, the node-coordinate mapping table is used to indicate the coordinate value and number of each first node among all the first nodes included in the first grid model, and the node-temperature mapping table is used to indicate the temperature value and number of each first node among all the first nodes included in the first grid model.

[0144] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0145] Fig. 9 FIG. 1 is a block diagram of an electronic device according to an exemplary embodiment. Fig. 9 As shown, the electronic device 900 includes but is not limited to: a processor 901 and a memory 902 .

[0146] The memory 902 is used to store executable instructions of the processor 901. It can be understood that the processor 901 is configured to execute instructions to implement the temperature mapping method of the die casting in the above embodiment.

[0147] It should be noted that those skilled in the art can understand that Fig. 9 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and the electronic device may include Fig. 9 More or fewer components may be shown, or certain components may be combined, or the components may be arranged differently.

[0148] The processor 901 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing software programs and / or modules stored in the memory 902, and calling data stored in the memory 902, it performs various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. The processor 901 may include one or more processing units. Optionally, the processor 901 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 901.

[0149] The memory 902 can be used to store software programs and various data. The memory 902 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application program required by at least one functional module (such as a detection module, a control module, etc.), etc. In addition, the memory 902 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0150] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory 902 including instructions, and the instructions can be executed by a processor 901 of an electronic device 900 to implement the temperature mapping method of a die casting in the above embodiment.

[0151] In actual implementation, Figure 8 The functions of the acquisition module 801 and the processing module 802 in Fig. 9 The processor 901 in the embodiment calls the computer program stored in the memory 902. The specific execution process can refer to the description of the temperature mapping method of the die casting in the above embodiment, which will not be repeated here.

[0152] Optionally, the computer-readable storage medium may be a non-temporary computer-readable storage medium, for example, the non-temporary computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0153] In an exemplary embodiment, the present application also provides a computer program product including one or more instructions, which can be executed by the processor 901 of the electronic device 900 to complete the temperature mapping method of the die casting in the above embodiment.

[0154] It should be noted that when the instructions in the above-mentioned computer-readable storage medium or one or more instructions in the computer program product are executed by the processor of the electronic device, the various processes of the above-mentioned temperature mapping method embodiment of the die-casting part are implemented, and the same technical effect as the above-mentioned temperature mapping method of the die-casting part can be achieved. To avoid repetition, it will not be repeated here.

[0155] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0156] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0157] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0158] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0159] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or the full classification part or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including a number of instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute the full classification part or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, ROM, RAM, disk or CD and other media that can store program code.

[0160] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A temperature mapping method for a die casting, characterized in that: The method comprises: Acquire data of a first grid model and data of a second grid model of a target die casting, wherein the data of the first grid model includes temperature data of the target die casting, the first grid model includes a plurality of first unit blocks, each of the plurality of first unit blocks corresponds to N first nodes, each first node corresponds to a coordinate value and a temperature value, the first grid model is a structured grid, the second grid model includes a plurality of second unit blocks, each of the plurality of second unit blocks corresponds to M second nodes, each second node corresponds to a coordinate value, the second grid model is an unstructured grid, and N and M are both positive integers; Based on the coordinate value and temperature value of each first node included in the first grid model and the coordinate value of each second node included in the second grid model, the temperature value of each second node included in the second grid model is determined.

2. The method according to claim 1, characterized in that The method further comprises: constructing a first mapping table based on the data of the first grid model, wherein the first mapping table includes coordinate values ​​and temperature values ​​of each first node among all first nodes included in the first grid model; Determine a coordinate range corresponding to each first unit block based on a coordinate value of each first node among the N first nodes corresponding to each first unit block; A second mapping table is constructed based on the data of the second mesh model, wherein the second mapping table includes coordinate values ​​of each second node among all second nodes included in the second mesh model.

3. The method according to claim 1 or 2, characterized in that: The step of determining the temperature value of each second node included in the second grid model based on the coordinate value and the temperature value of each first node included in the first grid model and the coordinate value of each second node included in the second grid model comprises: For any second node among all the second nodes included in the second grid model, based on the coordinate value of the any second node and the coordinate range corresponding to each first unit block among the plurality of first unit blocks, determine a target unit block corresponding to the any second node from the plurality of first unit blocks; The temperature value of any one of the second nodes is determined based on the coordinate value and the temperature value of each first node among the N first nodes corresponding to the target unit block.

4. The method according to claim 3, characterized in that The determining, based on the coordinate value of the any second node and the coordinate range corresponding to each first unit block in the plurality of first unit blocks, a target unit block corresponding to the any second node from the plurality of first unit blocks comprises: For any first unit block among the plurality of first unit blocks, determining whether the coordinate value of any second node belongs to the coordinate range corresponding to any first unit block based on the coordinate value of the any second node and the coordinate value of each first node among the N first nodes corresponding to the any first unit block; In the case where it is determined that the coordinate value of any second node belongs to the coordinate range corresponding to the target unit block, it is determined that there is a corresponding relationship between any second node and the target unit block.

5. The method according to claim 4, characterized in that Each of the plurality of first unit blocks is formed by a plurality of faces, and each of the plurality of faces is formed by P first nodes among the N first nodes corresponding to the first unit block, where P is a positive integer less than N; The determining, based on the coordinate value of the any second node and the coordinate value of each of the N first nodes corresponding to the any first unit block, whether the coordinate value of the any second node belongs to the coordinate range corresponding to the any first unit block includes: Determine a plurality of volume parameters based on the coordinate value of any second node and the coordinate values ​​of P first nodes corresponding to each of the plurality of faces included in any first unit block; Based on the multiple volume parameters and the volume parameters of any one of the first unit blocks, determine whether the coordinate value of any one of the second nodes belongs to the coordinate range corresponding to any one of the first unit blocks; wherein, when the sum of the multiple volume parameters is equal to the volume parameter of any one of the first unit blocks, determine that the coordinate value of any one of the second nodes belongs to the coordinate range corresponding to any one of the first unit blocks.

6. The method according to claim 3, characterized in that: The determining the temperature value of any second node based on the coordinate value and the temperature value of each first node among the N first nodes corresponding to the target unit block includes: Determine N target distances corresponding to the coordinate value of any second node and the coordinate value of each first node among the N first nodes corresponding to the target unit block; Determine N coefficients based on the magnitude relationship between the N target distances, one target distance corresponds to one coefficient, and a larger target distance has a smaller corresponding coefficient; The temperature value of any one of the second nodes is determined based on the temperature value of each of the N first nodes corresponding to the target unit block and the N coefficients.

7. The method according to claim 3, characterized in that The method further comprises: In the case that the target unit block corresponding to any one of the second nodes is not determined from the plurality of first unit blocks, determining the temperature value of any one of the second nodes to be 0; For any second unit block among the multiple second unit blocks included in the second grid model, when it is determined that there is a temperature value corresponding to a target node among the M second nodes corresponding to any second unit block that is 0, the average value of the temperature values ​​of the second nodes whose corresponding temperature values ​​are not 0 among the M second nodes corresponding to any second unit block is determined as the temperature value of the target node.

8. The method according to claim 3, characterized in that The determining, based on the coordinate value of the any second node and the coordinate range corresponding to each first unit block in the plurality of first unit blocks, a target unit block corresponding to the any second node from the plurality of first unit blocks comprises: Based on the coordinate range corresponding to each of the plurality of first unit blocks, the plurality of first unit blocks included in the first grid model are divided into at least two regions, each of the at least two regions including at least one first unit block among the plurality of first unit blocks; Determine a coordinate range corresponding to each area based on a coordinate range corresponding to at least one first unit block included in each area of ​​the at least two areas; Determine the target area to which the coordinate value of any second node belongs based on the coordinate value of any second node and the coordinate range corresponding to each of the at least two areas; Based on the coordinate value of the any second node and the coordinate range corresponding to each first unit block in the at least one first unit block included in the target area, a target unit block corresponding to the any second node is determined from the at least one first unit block included in the target area.

9. The method according to claim 2, characterized in that: The first mapping table includes: a unit block-node mapping table, a node-coordinate mapping table and a node-temperature mapping table; the unit block-node mapping table is used to indicate the number of N first nodes corresponding to each first unit block among the multiple first unit blocks included in the first grid model, the node-coordinate mapping table is used to indicate the coordinate value and number of each first node among all the first nodes included in the first grid model, and the node-temperature mapping table is used to indicate the temperature value and number of each first node among all the first nodes included in the first grid model.

10. A temperature mapping device for a die casting, characterized in that: The temperature mapping device for the die casting comprises: an acquisition module and a processing module; The acquisition module is used to acquire data of a first grid model and data of a second grid model of a target die casting, wherein the data of the first grid model includes temperature data of the target die casting, the first grid model includes a plurality of first unit blocks, each of the plurality of first unit blocks corresponds to N first nodes, each first node corresponds to a coordinate value and a temperature value, the first grid model is a structured grid, the second grid model includes a plurality of second unit blocks, each of the plurality of second unit blocks corresponds to M second nodes, each second node corresponds to a coordinate value, the second grid model is an unstructured grid, and N and M are both positive integers; The processing module is used to determine the temperature value of each second node included in the second grid model based on the coordinate value and temperature value of each first node included in the first grid model and the coordinate value of each second node included in the second grid model.

11. An electronic device, characterized in that: include: A processor and a memory; wherein the memory is used to store one or more programs, and the one or more programs include computer-executable instructions. When the electronic device is running, the processor executes the computer-executable instructions stored in the memory to enable the electronic device to perform the method described in any one of claims 1-9.

12. A computer-readable storage medium, characterized in that: When the computer-executable instructions stored in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device can perform the method as claimed in any one of claims 1 to 9.