Computational method of cloud diagram of inhomogeneous microstructure and mechanical properties of metal castings based on experimental data

By establishing a quantitative relationship between the melt cooling rate and the microstructure and mechanical properties, combined with mold flow analysis and Matlab programming, the microstructure and mechanical properties distribution cloud diagram of the metal casting is calculated, solving the problem of predicting the unevenness of castings in the existing technology. Improved reliability and accuracy of casting design.

CN114707258BActive Publication Date: 2024-10-25SUZHOU JUNJING METAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210209995.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-04
Publication Date
2024-10-25
Estimated Expiration
2042-03-04

AI Technical Summary

Technical Problem

It is difficult to accurately and quantitatively predict the uneven microstructure and mechanical property distribution of metal castings with existing technology, resulting in reduced service performance and structural design reliability and accuracy of castings.

Method used

Through experiments and theoretical calculations, the quantitative relationship between the melt cooling rate and the microstructure parameters and mechanical property parameters is established. The mold flow analysis software is used to simulate the casting filling process. Matlab programming is used to calculate the microstructure and mechanical property distribution cloud diagrams at different locations of the casting. .

Benefits of technology

It achieves reliable and accurate calculation and prediction of uneven microstructure and mechanical properties of castings, improves the accuracy of service performance prediction and structural design of castings, and avoids parameter deviation problems in theoretical model calculations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114707258B_ABST
    Figure CN114707258B_ABST
Patent Text Reader

Abstract

The present invention provides a method for calculating the cloud map of the uneven microstructure and mechanical properties of metal castings based on experimental data, which solves the problem that it is difficult to accurately and quantitatively predict the distribution of the uneven microstructure and mechanical properties of metal castings. Specifically, the method is based on the quantitative relationship between the cooling rate of the casting melt and the microstructure parameters and mechanical property parameters, combined with the casting filling simulation, to calculate the uneven microstructure parameters and mechanical property (strength, plasticity) parameters of the metal casting.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of metal material casting microstructure and mechanical property simulation, and specifically relates to a method for calculating a cloud map of uneven microstructure and mechanical properties of metal castings based on experimental data, that is, a method for calculating a cloud map of uneven microstructure and mechanical property distribution of metal castings based on cooling rate non-uniformity. Background Art

[0002] Casting is a low-cost, high-efficiency forming technology for complex metal structures, which is widely used in the field of metal structure manufacturing; most metal castings have uneven wall thickness. After the molten metal is injected into the mold cavity, this uneven wall thickness will inevitably lead to differences in the cooling rate of the melt in various parts of the casting, and the difference in the cooling rate of the metal melt will lead to uneven microstructure and mechanical properties of the casting. Therefore, the uneven microstructure and mechanical properties caused by the difference in melt cooling rate are common in metal castings (especially metal mold castings).

[0003] The inhomogeneity of the microstructure and mechanical properties of parts is crucial to the service performance, stress simulation, and structural design of castings. For example, the uneven distribution of the microstructure of castings will seriously affect the fatigue resistance of castings; on the other hand, the stress simulation and structural design of parts based on the finite element method are mostly based on the assumption that the mechanical properties of parts are uniform. Ignoring the inhomogeneity of the mechanical properties of castings will inevitably greatly reduce the reliability and accuracy of stress simulation and structural design. Therefore, how to quantitatively calculate and predict the distribution of uneven microstructure and mechanical properties of castings, and draw cloud maps of the distribution of key microstructure parameters and mechanical property parameters at different positions of castings, is conducive to predicting the service performance of castings and optimizing structural design.

[0004] For the simulation of heterogeneous microstructures, current methods include cellular automata. For example, a Chinese patent document with an announcement date of March 12, 2021 and an announcement number of CN110245449B discloses a method for numerically predicting the composition heterogeneity of magnesium alloy castings, in which the cellular automaton method is used to simulate the growth of α-Mg dendrites with different growth orientations, and obtains the curve of the dendrite specific surface area versus solid phase fraction. Current research is mostly focused on one-dimensional and two-dimensional cellular automata, and three-dimensional solid castings cannot be predicted as a whole. Two-dimensional cellular automata are usually divided into regular spatial units (such as square grids, equilateral triangles, etc.), and rule processing is performed according to Von Neumann, Moore, and Margolus methods, which directly leads to the fact that cellular state transition rules are generally not applicable to more distant units.

[0005] As for the method of predicting mechanical properties, it is currently possible to predict through tissue. For example, a Chinese patent with the announcement date of September 9, 2015 and the announcement number of CN104899412A discloses a method for predicting the mechanical properties of aluminum alloy castings, in which porosity and secondary dendrite arm spacing are used to predict mechanical properties. In this method, the relationship between porosity, secondary dendrite arm spacing and mechanical properties is obtained through experiments, but the porosity and secondary dendrite arm spacing are obtained by establishing a mathematical model of the solidification process, and are not combined with actual experiments.

[0006] The current microstructure prediction and mechanical property prediction are not combined with experiments, and the theoretical parameters are difficult to obtain, so accurate three-dimensional prediction is impossible. The cooling rate cannot be observed during the actual casting process of the parts, and the microstructure and mechanical properties of the parts cannot be determined.

[0007] Therefore, it is urgent to explore a new method for calculating the cloud diagram of the inhomogeneous microstructure and mechanical properties of metal castings. Summary of the invention

[0008] In order to solve the problem that it is difficult to accurately and quantitatively predict the distribution of uneven microstructure and mechanical properties of metal castings, the present invention provides a method for calculating the cloud map of uneven microstructure and mechanical properties of metal castings based on experimental data. Specifically, the method is based on the quantitative relationship between the cooling rate of the casting melt and the microstructure parameters and mechanical property parameters, combined with the casting filling simulation, to calculate the uneven microstructure parameters and mechanical property (strength, plasticity) parameters of the metal casting.

[0009] The inventive concept of the present invention:

[0010] Firstly, the quantitative relationship between melt cooling rate and microstructure parameters and mechanical property parameters is established through experimental and / or theoretical calculation methods; then, the cooling rate of different positions of the casting during the filling process is simulated by mold flow analysis software (EASYCAST, ProCAST, etc.), and the original file containing the casting position coordinate information and cooling rate is exported; further, through programming, based on the obtained quantitative relationship between melt cooling rate and microstructure parameters and mechanical property parameters, casting position coordinate information and cooling rate, the microstructure parameters and mechanical properties corresponding to different positions of the casting are calculated; finally, through Matlab programming, the quantitative distribution cloud map of the microstructure and mechanical properties of the casting is calculated.

[0011] To achieve the above purpose, the technical solution provided by the present invention is:

[0012] A method for calculating the non-uniform microstructure and mechanical properties cloud map of metal castings based on experimental data, which is special in that:

[0013] S1. Establish the quantitative relationship between sample microstructure parameters and mechanical property parameters and melt cooling rate:

[0014] S1.1 Preparation of experimental samples with different cooling rates:

[0015] By designing casting molds with different wall thicknesses, the cooling rate was distributed between 0 and 120 K / s, and more than 7 groups of experimental samples with different cooling rates were obtained;

[0016] S1.2 Perform microstructure measurements on the seven or more experimental samples with different cooling rates prepared in S1.1, obtain corresponding data between each microstructure parameter and the melt cooling rate, and further establish a quantitative relationship between the microstructure parameter and the melt cooling rate through data analysis (data analysis is performed in Origin software);

[0017] Standard mechanical properties tests were performed on more than 7 groups of experimental samples with different cooling rates prepared by S1.1 to obtain the corresponding data between the mechanical properties parameters and the melt cooling rate. The quantitative relationship between the mechanical properties parameters and the melt cooling rate was further established through data analysis (data analysis was performed in Origin software).

[0018] S2. Obtain the corresponding relationship between the casting position coordinates and the cooling rate in the mold flow analysis software (the casting and the experimental sample material are the same):

[0019] Through mold flow analysis software, analyze the temperature field changes at different positions of the casting after the melt fills the casting cavity under different casting process conditions (different casting processes refer to processes with different casting conditions such as gravity casting and low-pressure casting. The temperature fields of different casting processes can be obtained by setting casting parameters in these mold flow analysis software). Select the cooling rate of the melt before the casting solidifies as the cooling rate of each position, obtain the corresponding relationship between the casting position coordinates and the cooling rate (specifically, obtain the cloud map of the casting model and the cooling rate in the mold flow software, and the specific data needs to be extracted using Matlab software), and obtain the three-dimensional cooling rate distribution of the component casting;

[0020] S3. Using the quantitative relationship between microstructure parameters and melt cooling rate, the quantitative relationship between mechanical property parameters and melt cooling rate established in S1, and the corresponding relationship between casting position coordinates and cooling rate obtained in S2, the corresponding relationship between casting position coordinates and microstructure parameters and mechanical property parameters is obtained through Matlab program (i.e., the microstructure parameters and mechanical properties corresponding to different positions of the casting are obtained); then, the scatter3 function is used to obtain the cloud map of uneven microstructure and mechanical properties of metal castings.

[0021] Specifically, the built-in functions of Matlab are used to extract the casting position coordinates and cooling rate information, and the information is substituted into the relationship established by S1 to obtain the casting position coordinates and the corresponding microstructure parameters and mechanical property parameters. Finally, the scatter3 function is used to plot the corresponding relationship between the casting position coordinates and the microstructure parameters and mechanical property parameters in three-dimensional space, and the distribution of each parameter in the overall space of the casting can be obtained. Thus, a cloud map of the uneven microstructure and mechanical properties of metal castings is obtained.

[0022] Further, in S1, the microstructure parameter refers to the secondary dendrite arm spacing;

[0023] The mechanical property parameter refers to yield strength or plasticity.

[0024] Furthermore, in S2, the mold flow software is EASYCAST or ProCAST.

[0025] Furthermore, the order of S1 and S2 can be swapped.

[0026] The advantages of the present invention are:

[0027] 1. The present invention proposes a method for calculating and predicting the spatial distribution of non-uniform microstructure and mechanical properties of castings. Compared with the microstructure prediction method in current commercial software, the quantitative relationship between the microstructure and mechanical parameters and the cooling rate established based on experimental measurement has high reliability and high precision, which can avoid the problem of difficult acquisition of calculation parameters and large deviation between parameter values ​​and true values ​​in the calculation process of theoretical models, and can more effectively realize the calculation and prediction of microstructure and mechanical parameters.

[0028] 2. During the application of the present invention, the user can also independently establish a database for different materials according to actual working conditions, and through data analysis, correct and establish the quantitative relationship between the organization and mechanical parameters and the cooling rate, and continuously optimize this quantitative relationship during the actual application process to further improve the calculation accuracy and reliability.

[0029] 3. The mechanical properties cloud map data calculated based on the present invention can also be imported into commercial finite element simulation software such as ABAQUS through data programming to perform force simulation and structural optimization design of castings based on uneven distribution of mechanical properties. Compared with the force analysis and structural optimization design based on the assumption that the mechanical properties of the castings are the same everywhere, this optimization process can significantly improve the accuracy of mechanical simulation, thereby more effectively guiding the structural design of castings.

[0030] 4. The method of the present invention can be used to quantitatively calculate the distribution of microstructure parameters and mechanical property parameters of metal castings at different positions of the castings, which can provide effective support for casting process design, service performance prediction and casting structure optimization design.

[0031] 5. The present invention obtains the cooling rate of the parts in the mold flow analysis software, and then obtains the quantitative relationship between the microstructure parameters and the cooling rate, and the mechanical property parameters and the cooling rate from the experiment, and finally obtains the microstructure and mechanical property cloud map of the parts. The accuracy of the method provided by the present invention lies in the size of the mesh division of the parts in the mold flow analysis software. The finer the mesh, the more accurate it is. The smallest mesh size tried is 0.2mm. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 The present invention is a flowchart of an implementation method of a cloud diagram calculation method for non-uniform microstructure and mechanical properties of metal castings based on experimental data.

[0033] Figure 2 The corresponding relationship between the secondary dendrite arm spacing and the melt cooling rate of A356 cast aluminum alloy experimentally measured in Example 1 and Example 2 and the quantitative relationship model obtained by data fitting. (The reference is Appendix 1)

[0034] Figure 3 The corresponding relationship between the yield strength of A356 cast aluminum alloy and the melt cooling rate measured in the experiments in Example 1 and Example 2 and the quantitative relationship model obtained by data fitting.

[0035] Figure 4 The secondary dendrite arm spacing and yield strength distribution cloud diagram of a typical A356 aluminum alloy casting are calculated after obtaining the casting cooling rate distribution based on the EASYCAST mold flow analysis software in Example 1.

[0036] Figure 5 The secondary dendrite arm spacing and yield strength distribution cloud diagram of a typical A356 aluminum alloy casting are calculated after obtaining the casting cooling rate distribution based on ProCAST mold flow analysis software in Example 2. DETAILED DESCRIPTION

[0037] The content of the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments: Example 1 and Example 2 are both cloud diagrams obtained under the quantitative relationship between the microstructure parameters and cooling rate, and the mechanical property parameters and cooling rate of the A356 cast aluminum alloy obtained under gravity casting. Through the method of the present invention, the casting method and alloy can be changed to obtain the microstructure and mechanical property cloud diagrams of other cast alloy parts.

[0038] The present invention provides a method for calculating a cloud map of uneven microstructure and mechanical properties of a metal casting based on experimental data, comprising the following steps:

[0039] S1. Establish the quantitative relationship between sample microstructure parameters and mechanical properties parameters and melt cooling rate

[0040] S1.1 Preparation of experimental samples with different cooling rates:

[0041] By designing casting molds with different wall thicknesses, the cooling rate was distributed between 0 and 120 K / s, and more than 7 groups of experimental samples with different cooling rates were obtained;

[0042] S1.2 performing microstructural measurements on the seven or more experimental samples with different cooling rates prepared in S1.1, respectively, obtaining corresponding data between each microstructural parameter and the melt cooling rate, and further establishing a quantitative relationship between the microstructural parameter and the melt cooling rate through data analysis (data analysis is performed in Origin software); the microstructural parameter refers to the secondary dendrite arm spacing;

[0043] Standard mechanical property tests were performed on more than 7 groups of experimental samples with different cooling rates prepared in S1.1 to obtain corresponding data between mechanical property parameters and melt cooling rate, and further quantitative relationship between mechanical property parameters and melt cooling rate was established through data analysis (data analysis was performed in Origin software); the mechanical property parameters refer to yield strength or plasticity;

[0044] S2. Obtain the corresponding relationship between the position coordinates of the component casting (same as the experimental sample material) and the cooling rate in the mold flow analysis software (EASYCAST, ProCAST):

[0045] Through mold flow analysis software, analyze the temperature field changes at different positions of the casting after the melt fills the casting cavity under different casting process conditions (different casting processes refer to processes with different casting conditions such as gravity casting and low-pressure casting. The temperature fields of different casting processes can be obtained by setting casting parameters in these mold flow analysis software). Select the cooling rate of the melt before the casting solidifies as the cooling rate of each position, obtain the corresponding relationship between the casting position coordinates and the cooling rate (specifically, obtain the cloud map of the casting model and the cooling rate in the mold flow software, and the specific data needs to be extracted using Matlab software), and obtain the three-dimensional cooling rate distribution of the component casting;

[0046] S3. Using the quantitative relationship between microstructure parameters and melt cooling rate, the quantitative relationship between mechanical property parameters and melt cooling rate established in S1, and the corresponding relationship between casting position coordinates and cooling rate obtained in S2, the corresponding relationship between casting position coordinates and microstructure parameters and mechanical property parameters is obtained through Matlab program (i.e., the microstructure parameters and mechanical properties corresponding to different positions of the casting are obtained); then, the scatter3 function is used to obtain the cloud map of uneven microstructure and mechanical properties of metal castings.

[0047] Specifically, the function provided by Matlab is used to extract the position coordinates and cooling rate information of the castings, and the information is substituted into the relationship established by S1, so as to obtain the position coordinates of the castings and the corresponding microstructure parameters and mechanical properties parameters, and finally the function of scatter3 is used to draw the corresponding relationship between the position coordinates of the castings and the microstructure parameters and mechanical properties parameters in three-dimensional space, so as to obtain the distribution of each parameter in the overall space of the casting, and thus obtain the cloud map of the uneven microstructure and mechanical properties of the metal castings. The above S1 and S2 can be interchanged.

[0048] Example 1

[0049] Based on EASYCAST mold flow analysis software, the secondary dendrite arm spacing and yield strength distribution cloud diagram of a typical A356 aluminum alloy casting are calculated. The specific steps include:

[0050] Step 1. After completing the solidification simulation from EASYCAST, obtain the cooling rate file .VEL file.

[0051] Step 2: Analyze the data of .VEL file:

[0052] Step 2-1. Obtain the grid size from the second line of the .VEL file. The grid size of Example 1 is 0.5 mm.

[0053] Step 2-2, EASYCAST is a finite difference method, the grid is a hexahedron, the data provided starting from the third line of the .VEL file can determine the coordinates of the center point and the cooling rate, for example, "5 46 5 9.677527" represents the position of the 5th 0.5mm in the X direction, the 46th 0.5mm in the Y direction, and the 5th 0.5mm in the Z direction, 9.677527 represents the cooling rate, so the cooling rate of the center point is used to represent the cooling rate of the entire grid.

[0054] Step 3. Delete the first two lines and the last four lines of the .VEL file, leaving only the data that can determine the center point and the four columns of data for the cooling rate, and obtain the basic information file lengsu.txt.

[0055] Step 4. Open the program file easycast_exchang.m (Appendix 2). This program extracts the information of the center point and the cooling rate, and substitutes the cooling rate into the relationship between the secondary dendrite arm spacing and the melt cooling rate and the relationship between the yield strength and the melt cooling rate, as shown in Figure 2 and Figure 3Modify the path, file name and file format of the basic information file lengsu.txt, the secondary dendrite arm spacing file sdas_easycast.txt and the yield strength file qdt_easycast.txt, and click Run to get the model file with the secondary dendrite arm spacing and yield strength information.

[0056] Step 5. Open the program file of easycast_yuntu.m (Appendix 3), put the data files (secondary dendrite arm spacing sdas_easycast.txt, yield strength qdt_easycast.txt) in the same folder, modify the file name and file format after loading, modify the grid size after x, y, and z, set the scale axis range, view angle, and title, and finally run to obtain the secondary dendrite arm spacing and yield strength distribution cloud map, as shown in the figure. Figure 4 shown.

[0057] Example 2

[0058] Based on ProCAST mold flow analysis software, the secondary dendrite arm spacing and yield strength distribution cloud diagram of a typical A356 aluminum alloy casting are calculated. The specific steps include:

[0059] Step 1. Obtain the node number and coordinates in ProCAST. After the casting simulation is completed, open the g.unf file in the Viewer section, then click Mesh in the upper left corner, click Export in the File drop-down menu, and output the g.inp file.

[0060] Step 2. Obtain the cooling rate file in ProCAST. In the Viewer section of ProCAST, click Metallurgical Tools in the Results drop-down menu, select R, G, L, and according to the nyiama criterion calculation criteria, fill in 1 for A, 0 for B, 1 for C, -0.5 for D, 615 (Tliquidus+2) for L upper temperature, 548 (Tsolidus) for L lower temperature, and 554.5 (Tsolidus+0.1*(Tliquidus-Tsolidus)) for R, Gtemperature. Then calculate and obtain the cooling rate distribution of the casting simulation in ProCAST, select node in the selection menu bar, select the model (select only the casting), click Export As in the File drop-down menu, and then select PATRAN, I-DEAS, STL, G3D... This item outputs the cooling rate file .ntl with the node number.

[0061] Step 3. Open the cold speed file .ntl, delete the first four lines, and obtain the cold speed file lengsu_pro.txt which only contains two columns of information: node number and cold speed.

[0062] Step 4. Obtain the secondary dendrite arm spacing file and yield strength file. Open the procast_exchange program file (Appendix 4). This program extracts the node coordinates and cooling rate, and substitutes the cooling rate into the relationship between the secondary dendrite arm spacing and the melt cooling rate and the relationship between the yield strength and the melt cooling rate, as shown in Figure 2 and Figure 3 Modify the path, file name and file format of the g.inp file, cooling rate file lengsu_pro.txt, secondary dendrite arm spacing file sdas_procast.txt and yield strength file qdt_procast.txt, and click Run to get the model file with secondary dendrite arm spacing and yield strength information.

[0063] Step 5. Open the procast_yuntu.m program file (Appendix 5), put the data files (secondary dendrite arm spacing sdas_procast.txt, yield strength qdt_procast.txt) in the same folder, modify the file name and file format after loading, set the scale axis range, view angle and title, and finally run to obtain the secondary dendrite arm spacing and yield strength distribution cloud map, as shown in the figure. Figure 5 shown.

[0064] The microstructure parameters needed to obtain the secondary dendrite arm spacing and yield strength distribution cloud diagrams in Example 1 and Example 2, as well as the quantitative relationship between the mechanical property parameters and the melt cooling rate, are all obtained according to the aforementioned method.

[0065] In summary, the method for calculating and predicting the spatial distribution of the non-uniform microstructure and mechanical properties of a casting proposed in the present invention can be used to visualize the non-uniform microstructure parameters and mechanical property (strength, plasticity) parameters of metal castings.

[0066] Figure 2 References

[0067] [1]Kai Z,Yucheng S,Suolin W,et al.Effects of Cooling Rate on High-temperature Mechanical Properties of A356 Alloys[J].RARE METAL MATERIALS ANDENGINEERING,2011,40(s3):63-68.

[0068] [2]Ni H,Sun B,Jiang H,et al.Effect of JDN-I flux on DAS of A356 alloyat different cooling rate[J].Materials ence&Engineering A,2003,348(1-2):1-5.

[0069] [3] Liu Yingzhuo, Dang Bo, Liu Feng. Effect of cooling rate on microstructure and microhardness of A356 aluminum alloy[J]. Journal of Xi'an University of Technology, 2013(02):128-133.

[0070] [4]S, Boontein, N, et al. Reduction in secondary dendrite arm spacing incast aluminum alloy A356 by Sb addition [J]. International Journal of CastMetals Research, 2011.

[0071] [5] Dang Bo. Integrated study of non-equilibrium solidification and solid phase transformation of A356 aluminum alloy[D]. Northwestern Polytechnical University, 2017.

[0072] Appendix 2

[0073] easycast_exchang.m program code

[0074] easycast_exchang.m

[0075] clear all;

[0076] clc;

[0077] line_number=112828;%Total number of lines in the cold speed file lengsu.txt

[0078] m = 1;

[0079] n=0;

[0080] a={};

[0081] fw1 = fopen ('lengsu.txt', 'r'); % Open the cold speed file lengsu.txt as read-only

[0082] fw6 = fopen ('sdas_easycast.txt', 'a+'); % Create a new file sdas_easycast.txt to store secondary dendrite arm information and model information

[0083] fw7 = fopen ('qdt_easycast.txt', 'a+'); % Create a new file to store yield strength information and model information

[0084] qdt_easycast.txt

[0085] while m<=line_number

[0086] n=n+length(a);

[0087] fseek(fw1,n,-1); % pointer

[0088] a=fgets(fw1); %Get a line of numbers

[0089] b=regexp(a,”,'split'); %Get a cell by separating data with spaces

[0090] c = str2num (char (b)); % Convert the format through str2num and char functions

[0091] SDAS(m)=3*10^(-5)*(c(4))^(-0.302); %SDAS and cooling rate formula, SDAS unit is m, cooling rate unit is K / s

[0092] SDAS(m)=SDAS(m)*10^6;%Change the unit to μm

[0093] qft(m)=0.0011*(c(4))^2+0.3998*c(4)+171.12;% yield strength unit is MPa

[0094] fprintf(fw6,'%d%d%d%6.3f\n',c(1),c(2),c(3),SDAS(m));

[0095] fprintf(fw7,'%d%d%d%6.3f\n',c(1),c(2),c(3),qft(m));

[0096] m=m+1;

[0097] end

[0098] fclose('all');

[0099] Addendum 3:

[0100] easycast_yuntu.m program code

[0101] easycast_yuntu.m

[0102] clear all;

[0103] A=load('qdt_easycast.txt'); % Load the information file storing yield strength information and model information

[0104] x=A(:,1)*0.5;%The coordinate of the center point on the x-axis

[0105] y=A(:,2)*0.5;%The coordinate of the center point on the y axis

[0106] z=A(:,3)*0.5;%The coordinate of the center point on the z axis

[0107] v=A(:,4);%yield strength

[0108] scatter3(x,y,z,20,v,'filled','s');% 20 represents the size of the scattered points, 's' represents the shape of the scattered points, represented by a cube

[0109] ax=gca; % Returns the axis or table of the current figure

[0110] axis equal; % keep the scale axis size the same

[0111] axis([0 60 0 60 0 20]); %Set the scale axis range, which are x-axis minimum value, x-axis maximum value, y-axis minimum value, y-axis maximum value, z-axis minimum value, z-axis maximum value

[0112] view(30,60); %Adjust the azimuth and elevation of the view

[0113] xlabel('X'); %Add a label to the x-axis

[0114] ylabel('Y'); %Add a label to the y-axis

[0115] zlabel('Z'); %Add a label to the z-axis

[0116] colorbar;%Add color label

[0117] title('YS(MPa)'); %Set the title of the graph

[0118] Appendix 4: procast_exchang.m program code

[0119] procast_exchang.m

[0120] clear all;

[0121] clc;

[0122] fw1 = fopen ('g.inp', 'r'); % Open g.inp file

[0123] line_number=73926;% line number of g.inp file

[0124] Z = {};

[0125] w={};

[0126] p = 0;

[0127] o=1;

[0128] while o<=line_number% This loop is to find the position of *NODE in the g.inp file

[0129] if isempty(Z)

[0130] p=p+length(w);

[0131] fseek(fw1,p,-1); % pointer

[0132] w = fgets (fw1); % Get a line of numbers

[0133] Z = strfind (w, '*NODE'); % Find *NODE

[0134] end

[0135] o=o+1;

[0136] end

[0137] p=p+length(w);

[0138] nodenum=13643;% the number of nodes

[0139] fw5 = fopen ('sdas_procast.txt', 'a+'); % Create a new file sdas_procast.txt to store secondary dendrite arm information and model information

[0140] fw6=fopen('qdt_procast.txt','a+'); %Create a new file to store yield strength information and model information

[0141] qdt_procast.txt

[0142] y=1;

[0143] CR = load ('lengsu_pro.txt'); % Load the cold speed file of procast

[0144] While y <= nodenum% This loop extracts the cooling rate and substitutes it into the relationship between yield strength and melt cooling rate to obtain the yield strength.

[0145] fseek(fw1,p,-1); % pointer

[0146] C = fgets (fw1); % Get a line of numbers

[0147] p=p+length(C);

[0148] jg=regexp(C,',','split'); %Get a cell by separating data with spaces

[0149] D = str2num (char (jg)); % Convert the format through str2num and char functions

[0150] ncr=CR(y,2);

[0151] SDAS(y)=3*10^(-5)*(ncr)^(-0.302); %% Formula of SDAS and cooling rate, SDAS unit is m, cooling rate unit is K / s

[0152] SDAS(y)=SDAS(y)*10^6;%Change the unit to μm

[0153] qft(y)=0.0011*(ncr)^2+0.3998*ncr+171.12;% yield strength unit is MPa

[0154] fprintf(fw5,'%9.6f%9.6f%9.6f%8.6f\n',D(2),D(3),D(4),SDAS(y));

[0155] fprintf(fw6,'%9.6f%9.6f%9.6f%8.6f\n',D(2),D(3),D(4),qft(y));

[0156] y=y+1;

[0157] end

[0158] fclose('all');

[0159] Appendix 5: procast_yuntu.m program code

[0160] procast_yuntu.m

[0161] clear all;

[0162] A=load('qdt_procast.txt'); % Load the information file storing yield strength information and model information

[0163] x=A(:,1);

[0164] y=A(:,2);

[0165] z=A(:,3);

[0166] v=A(:,4);

[0167] scatter3(x,y,z,80,v,'filled');% 20 represents the size of the scattered points

[0168] ax=gca; % Returns the axis or table of the current figure

[0169] axis equal; % keep the scale axis size the same

[0170] axis([-40 40-40 40-10 30]); %Set the scale axis range, which are x-axis minimum value, x-axis maximum value, y-axis minimum value, y-axis maximum value, z-axis minimum value, z-axis maximum value

[0171] view(30,70); %Adjust the azimuth and elevation of the view

[0172] xlabel('X'); %Add a label to the x-axis

[0173] ylabel('Y'); %Add a label to the y-axis

[0174] zlabel('Z'); %Add a label to the z-axis

[0175] colorbar;%Add color label

[0176] title('YS(MPa)'); %Set the title of the graph

[0177] The above description shows and describes several preferred embodiments of the invention, but as mentioned above, it should be understood that the present invention is not limited to the form disclosed herein, and should not be regarded as excluding other embodiments, but can be used in various other combinations, modifications and environments, and can be modified within the scope of the invention concept described herein through the above teachings or the technology or knowledge of the relevant field. The changes and modifications made by those skilled in the art shall be within the scope of protection of the claims attached to the invention without departing from the spirit and scope of the invention.

Claims

1. A method for calculating the non-uniform microstructure and mechanical properties cloud map of metal castings based on experimental data, characterized in that: S1. Establish the quantitative relationship between sample microstructure parameters and mechanical property parameters and melt cooling rate: S1.1 Preparation of experimental samples with different cooling rates By designing casting molds with different wall thicknesses, the cooling rate was distributed between 0 and 120 K / s, and more than 7 groups of experimental samples with different cooling rates were obtained; S1.2 respectively measure the microstructures of the seven or more experimental samples with different cooling rates prepared in S1.1, obtain the corresponding data between each microstructure parameter and the melt cooling rate, and further establish the quantitative relationship between the microstructure parameters and the melt cooling rate through data analysis; Standard mechanical property tests were performed on more than 7 groups of experimental samples with different cooling rates prepared by S1.1 to obtain the corresponding data between the mechanical property parameters and the melt cooling rate. The quantitative relationship between the mechanical property parameters and the melt cooling rate was further established through data analysis. S2. Obtain the corresponding relationship between the casting position coordinates and the cooling rate in the mold flow analysis software: Through mold flow analysis software, the temperature field changes at different positions of the casting are analyzed after the melt fills the casting cavity under different casting process conditions. The cooling rate of the melt before the casting solidifies is selected as the cooling rate at each position to obtain the corresponding relationship between the casting position coordinates and the cooling rate. S3. Using the quantitative relationship between microstructure parameters and melt cooling rate, the quantitative relationship between mechanical property parameters and melt cooling rate established in S1, and the corresponding relationship between casting position coordinates and cooling rate obtained in S2, the corresponding relationship between casting position coordinates and microstructure parameters and mechanical property parameters is obtained through Matlab program; then, the scatter3 function is used to obtain the cloud map of uneven microstructure and mechanical properties of metal castings.

2. The method for calculating the non-uniform microstructure and mechanical properties cloud map of metal castings based on experimental data according to claim 1, characterized in that: In S1, the microstructure parameter refers to the secondary dendrite arm spacing; The mechanical property parameter refers to yield strength or plasticity.

3. The method for calculating the non-uniform microstructure and mechanical properties cloud map of metal castings based on experimental data according to claim 1 or 2, characterized in that: In S2, the mold flow software is EASYCAST and ProCAST.

4. The method for calculating the non-uniform microstructure and mechanical properties cloud map of metal castings based on experimental data according to claim 3, characterized in that: The order of S1 and S2 can be swapped.