Heat conduction simulation method of casting process based on MAGMA

By using Kalman filter algorithm and adaptive technology during the MAGMA casting process, adjusting the simulation parameters of the casting cooling process, the problem of insufficient flexibility in the casting process is solved, and higher simulation accuracy is achieved and adaptability, optimize casting quality and production efficiency.

CN118571389BActive Publication Date: 2024-11-19JIANGSU HONGDE SPECIAL PARTS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411049887.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-01
Publication Date
2024-11-19
Estimated Expiration
2044-08-01

AI Technical Summary

Technical Problem

The existing thermal simulation technology lacks flexibility in the casting process and cannot accurately adapt to the complex and variability of the thermal behavior of the materials, resulting in large deviations from the actual production conditions, affecting product quality and production efficiency.

Method used

The thermal conductivity simulation method based on the MAGMA casting process is adopted to calculate the entropy change by collecting time series thermal energy distribution data, adjust the simulation parameters using the Kalman filter algorithm, identify the change trend of key parameters, adaptively adjust the entropy change threshold, and realize dynamic parameter adjustment and Simulation accuracy optimization.

Benefits of technology

It significantly improves the adaptability and accuracy of the simulation, can react changes in thermal simulation in real time, optimize the reaction speed and accuracy of the results of thermal simulation, reduce casting defects, and reduce energy consumption and manufacturing costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118571389B_ABST
    Figure CN118571389B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of thermal simulation technology, specifically to a heat conduction simulation method for a casting process based on MAGMA, comprising the following steps: collecting time series thermal energy distribution data output by a casting simulation, calculating data entropy changes at multiple time points, and quantifying and feeding back the disorder changes of the system state to obtain entropy quantification results. In the present invention, by applying a Kalman filter algorithm and adaptive technology, fine adjustment of simulation parameters of the casting cooling process and adjustment of the dynamic entropy change threshold are achieved, and the simulation adaptability and accuracy are significantly improved. The core advantage of this method is that it can react to changes in thermal simulation in real time and predict potential state changes in the future, thereby optimizing the reaction speed of thermal simulation and the accuracy of the results, integrating real-time and historical data, enhancing the reliability of the simulation, identifying potential deviations at an early stage, making timely adjustments, reducing casting defects, improving casting quality, and reducing energy consumption and manufacturing costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of thermal simulation, and in particular to a heat conduction simulation method based on a MAGMA casting process. Background Art

[0002] Thermal simulation is a field dedicated to analyzing and predicting the thermal behavior of materials during heating or cooling. This technology is widely used in a variety of engineering and scientific problems, including casting, welding, material processing, and thermal management of electronic equipment. By using numerical calculation methods, thermal simulation can simulate the transfer of heat energy in solid, liquid or gaseous media. These simulations usually rely on finite element analysis (FEA), computational fluid dynamics (CFD) or other numerical methods to solve heat transfer modes such as heat conduction, convection and radiation. Effective thermal simulation not only helps engineers optimize designs and reduce energy consumption, but also predicts and avoids possible thermal failure problems, thereby improving product performance and safety.

[0003] Among them, the thermal simulation method of the casting process involves the use of computational models to predict and analyze the thermal behavior of metals and other casting materials during the casting process. This simulation is mainly used to optimize the structure and quality of castings by precisely controlling the cooling rate of the material in the mold to reduce defects such as thermal cracks or shrinkage holes. In addition, this technology can help determine the optimal casting parameters, such as pouring temperature, cooling time and system layout, thereby improving production efficiency and the mechanical properties of castings. In practical applications, thermal simulation of the casting process is achieved through advanced software tools that are capable of simulating complex physical phenomena such as phase change, heat conduction and fluid flow, providing a scientific basis for the development and optimization of casting processes.

[0004] Existing thermal simulation technologies usually rely on static data and fixed parameters, lacking sufficient flexibility to cope with the complex and variable thermal behavior of materials. Especially in the casting process, which is greatly affected by material properties, environmental conditions and production process variables, fixed simulation parameters often cannot accurately adapt to these changes, resulting in a large deviation between the simulation results and the actual production conditions. Thermal simulation methods that lack a dynamic adjustment mechanism are difficult to reflect actual changes in production in real time, which may cause structural defects in castings, affect product quality, and may lead to waste of materials and energy, increasing production costs. In addition, the deficiencies of traditional methods in dealing with sudden variables also lead to inaccurate control of the casting process, further exacerbating production risks and economic losses. Summary of the invention

[0005] The purpose of the present invention is to solve the shortcomings in the prior art and to propose a heat conduction simulation method for a MAGMA casting process.

[0006] In order to achieve the above object, the present invention adopts the following technical solution: based on the MAGMA casting process heat conduction simulation method, the following steps are included:

[0007] S1: Collect the time series heat energy distribution data output by casting simulation, calculate the data entropy change at multiple time points, quantify the disorder change of the feedback system state, and obtain the entropy quantification result;

[0008] S2: Based on the entropy variable quantification results, the Kalman filter algorithm is used to adjust the simulation parameters in the casting cooling process, and the state estimation and error correction of the real-time collected thermal data are performed to obtain the dynamic parameter adjustment results;

[0009] S3: Based on the dynamic parameter adjustment results, the historical casting data is reviewed item by item, the changing trend of key parameters is identified, the differentiated casting conditions are automatically matched, the entropy change threshold is adjusted, and the adaptive entropy change threshold result is obtained;

[0010] S4: Use the adaptive entropy change threshold results to perform MAGMA simulation. By re-running the simulation, test the effect of the adjusted parameters, compare the original simulation results with the adjusted results, and obtain the simulation accuracy comparison results.

[0011] As a further solution of the present invention, the steps for obtaining the entropy quantification result are specifically as follows:

[0012] S111: Collect the time series of heat energy distribution data through casting simulation, defined as set D, using the formula:

[0013]

[0014] Computational Dataset Entropy value, generate entropy value data set ;

[0015] in, is the thermal energy distribution data set, For data points In the dataset The probability of for The error term, is the error adjustment coefficient, For the dataset The entropy value of

[0016] S112: Entropy Dataset For time series analysis, the formula is:

[0017]

[0018] Add the absolute value term, calculate the entropy change between time points, and generate the entropy change sequence ;

[0019] in, For time point and The entropy change between and is a dataset of adjacent time points, is the weighting coefficient;

[0020] S113: Entropy change sequence For quantification, use the formula:

[0021]

[0022] The square root function is applied to highlight the impact of abnormal changes and the entropy variable is obtained;

[0023] in, is the entropy variable quantification result, is the total number of data points in the time series, For time point The absolute entropy change of .

[0024] As a further solution of the present invention, the steps for obtaining the dynamic parameter adjustment result are specifically as follows:

[0025] S211: Use the entropy variable quantization result S to initialize the Kalman filter state, set the state variables and estimation error, and use the formula:

[0026]

[0027]

[0028] generating initial state estimates and initial error estimates;

[0029] in, is based on Adjusted initial state estimate, It is a small adjustment. is the initial estimation error, is the assumed process noise variance, is the coefficient used to adjust the error estimate, according to Square root adjustment;

[0030] S212: Apply the Kalman filter algorithm to update the state estimate based on the actual measurement value at the current moment, using the formula:

[0031]

[0032]

[0033] Update state estimate ;

[0034] in, is the actual hot data value at the current time point, is the updated state estimate, is the previous state estimate, is the Kalman gain, is the previous prediction error, is the measurement noise variance, and is the introduced parameter to adjust the sensitivity of state update;

[0035] S213: Using the updated state estimate To correct the error, use the formula:

[0036]

[0037] Generate a new prediction error after error correction, and adjust the simulation parameters of the casting cooling process according to the new prediction error to obtain a dynamic parameter adjustment result;

[0038] in, is the new prediction error after error correction, is the Kalman gain, is the gain adjustment factor.

[0039] As a further solution of the present invention, the step of identifying the change trend of the key parameters is specifically:

[0040] S311: Collect historical data from the casting system, including entropy change value, temperature, cooling rate, record the timestamp and operating conditions of each data, using the formula:

[0041] , time

[0042] Generate historical data sets;

[0043] in, represents the entropy change value, Indicates temperature, Indicates the cooling rate, time indicates the timestamp;

[0044] S312: Use historical data sets to clean the data and remove outliers in the data. Apply the formula:

[0045]

[0046] Generate a cleaned dataset;

[0047] in, is the filtered historical data set. Represents data points The deviation of is the deviation calculation function, is the preset maximum deviation;

[0048] S313: Perform time series analysis on the cleaned data set to identify the changing trends of key parameters including entropy change and temperature, and use an improved time series analysis model:

[0049]

[0050] Generate changing trends of key parameters;

[0051] in, Indicates the key parameter trends identified, are model parameters adjusted to fit the linear growth, decreasing effects, and square root growth trends of the data, It is a time variable, which indicates the length of time from the beginning of historical data to the present.

[0052] As a further solution of the present invention, the step of obtaining the result of the adaptive entropy change threshold value is specifically as follows:

[0053] S321: Based on the trend of key parameters , analyze the trend matching degree between current casting conditions and historical data, using the formula:

[0054]

[0055] Calculate the matching error and generate the matching result ;

[0056] in, is the parameter value under the current casting condition, is the historical trend value, is the deviation adjustment constant, which increases stability, is a nonlinear adjustment index, which strengthens the sensitivity of deviation;

[0057] S322: According to the matching result , evaluate whether the casting conditions need to be adjusted, using the formula:

[0058]

[0059] Generate adjusted casting conditions;

[0060] in, and Respectively represent the casting condition sets before and after adjustment, is the adjustment coefficient, which affects the speed and magnitude of the adjustment. It is to adjust the buffer constant and slow down the adjustment response;

[0061] S323: Adjusted casting conditions To set the current entropy change threshold, use the formula:

[0062]

[0063] Generate adaptive entropy change threshold results;

[0064] in, is the adjusted entropy change threshold, is the original threshold, represents the change in matching error, is the threshold adjustment factor, is a smoothing parameter that reduces the abruptness of the threshold adjustment.

[0065] As a further solution of the present invention, the steps of testing the effect of the adjusted parameters are specifically as follows:

[0066] S411: Load the adaptive entropy change threshold and the adjusted casting parameters, perform MAGMA simulation, set the simulation initial conditions, and use the formula:

[0067]

[0068] Generate initial simulation configuration ;

[0069] in, represents the adjusted casting parameters, is the adaptive entropy change threshold, and is the adjustment coefficient used to balance the impact of casting parameters and entropy change threshold, and are additional parameters used to adjust the sensitivity and decay rate of the initial parameters;

[0070] S412: Adopt initialization simulation configuration , simulate the casting process, using the formula:

[0071]

[0072] Generate simulation results ;

[0073] in, is the output of the simulation, is the result influence coefficient, which is used to adjust the simulation accuracy and response speed. is the coefficient that adjusts the simulation sensitivity, is the set of initialization parameters used for the simulation;

[0074] S413: Analyze simulation results , evaluate the effect of parameter adjustment and determine whether the predetermined casting quality standards are met, using the formula:

[0075]

[0076] Generate simulation effect evaluation results ;

[0077] in, Based on simulation results Evaluation of the effect of adjusted parameters, is the evaluation weight coefficient, used to weight the result differences, is the original simulation result.

[0078] As a further solution of the present invention, the steps for obtaining the simulation accuracy comparison result are specifically as follows:

[0079] S421: Set the initial conditions for the comparison analysis, using the improved formula:

[0080]

[0081] Generate initial configuration for comparison analysis ;

[0082] in, and is the coefficient used to adjust the weight of the original and adjusted results, is a weight parameter used to adjust the sensitivity of the comparison;

[0083] S422: Perform comparison analysis and use initial configuration , calculate the difference between the two simulation results, using the formula:

[0084]

[0085] Producing differentiated results ;

[0086] in, is the coefficient that adjusts the sensitivity of the difference calculation, is a normalization coefficient used to standardize the difference calculation;

[0087] S423: Evaluating differential results , judge whether it is within the acceptable range, if the judgment result is logically true, then the adjustment is determined to be successful, using the formula:

[0088]

[0089] Generate simulation accuracy comparison results;

[0090] in, Based on the difference results Simulation quality assessment, and are the adjustment coefficients and decay rates of the evaluation model, used to determine the magnitude of the impact of the differences.

[0091] Compared with the prior art, the advantages and positive effects of the present invention are:

[0092] In the present invention, by applying the Kalman filter algorithm and adaptive technology, the fine adjustment of the simulation parameters of the casting cooling process and the adjustment of the dynamic entropy change threshold are achieved, which significantly improves the simulation adaptability and accuracy. The core advantage of this method is that it can respond to changes in thermal simulation in real time and predict potential state changes in the future, thereby optimizing the reaction speed of thermal simulation and the accuracy of the results. The integration of real-time and historical data enhances the reliability of the simulation, can identify potential deviations at an early stage, make timely adjustments, reduce casting defects, improve casting quality, and reduce energy consumption and manufacturing costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0093] Figure 1 It is a schematic diagram of the main steps of the present invention;

[0094] Figure 2 Schematic diagram of the steps for obtaining the entropy quantification result of the present invention;

[0095] Figure 3 A schematic diagram of the steps for obtaining the dynamic parameter adjustment results of the present invention;

[0096] Figure 4 Schematic diagram of the steps for identifying the changing trend of key parameters of the present invention;

[0097] Figure 5 Schematic diagram of the steps for obtaining the result of the adaptive entropy change threshold value of the present invention;

[0098] Figure 6 A schematic diagram of the steps for testing the effect of adjusted parameters in the present invention;

[0099] Figure 7 Schematic diagram of the steps for obtaining the simulation accuracy comparison results of the present invention. DETAILED DESCRIPTION

[0100] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0101] In the description of the present invention, it should be understood that the terms "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, in the description of the present invention, "multiple" means two or more, unless otherwise clearly and specifically defined. Example

[0102] See also Figure 1 The present invention provides a technical solution: based on the MAGMA casting process thermal conductivity simulation method, comprising the following steps:

[0103] S1: Collect the time series heat energy distribution data output by casting simulation, calculate the data entropy change at multiple time points, quantify the disorder change of the feedback system state, and obtain the entropy quantification result;

[0104] S2: Based on the entropy variable quantification results, the Kalman filter algorithm is used to adjust the simulation parameters in the casting cooling process, and the state estimation and error correction of the real-time collected thermal data are performed to obtain the dynamic parameter adjustment results;

[0105] S3: Based on the dynamic parameter adjustment results, the historical casting data is reviewed item by item, the changing trend of key parameters is identified, the differentiated casting conditions are automatically matched, the entropy change threshold is adjusted, and the adaptive entropy change threshold result is obtained;

[0106] S4: Use the adaptive entropy change threshold results to perform MAGMA simulation. By re-running the simulation, test the effect of the adjusted parameters, compare the original simulation results with the adjusted results, and obtain the simulation accuracy comparison results.

[0107] The entropy variable quantification results include entropy value indicators, entropy value classification, and key time points. The dynamic parameter adjustment results include the adjusted temperature parameters, cooling rate, and simulation accuracy. The adaptive entropy change threshold results include the new threshold, threshold adaptability, and historical comparison data. The simulation accuracy comparison results include the accuracy improvement rate, comparison before and after optimization, and parameter adjustment effect.

[0108] See also Figure 2 , the specific steps to obtain the entropy variable quantification results are:

[0109] S111: Collect the time series of heat energy distribution data through casting simulation, defined as set D, using the formula:

[0110]

[0111] Computational Dataset Entropy value, generate entropy value data set ;

[0112] in, is the thermal energy distribution data set, For data points In the dataset The probability of for The error term, is the error adjustment coefficient, For the dataset The entropy value of

[0113] S112: Entropy Dataset For time series analysis, the formula is:

[0114]

[0115] Add the absolute value term, calculate the entropy change between time points, and generate the entropy change sequence ;

[0116] in, For time point and The entropy change between and is a dataset of adjacent time points, is the weighting coefficient;

[0117] S113: Entropy change sequence For quantification, use the formula:

[0118]

[0119] The square root function is applied to highlight the impact of abnormal changes and the entropy variable is obtained;

[0120] in, is the entropy variable quantification result, is the total number of data points in the time series, For time point The absolute entropy change of .

[0121] formula:

[0122]

[0123] Parameter explanation and examples:

[0124] : Data points In the dataset The probability in . Suppose there is a data set There are three data points: , then the probability of each data point can be assumed to be equal probability, that is, the probability of each point is .

[0125] : Data points The error term is set as probability of ,Right now .

[0126] : Error adjustment coefficient, assumed to be 0.5, to enhance the model's sensitivity to errors.

[0127] Calculation process:

[0128] First, calculate the probability of each data point :

[0129]

[0130] The first part of calculating information entropy (traditional entropy calculation):

[0131]

[0132] The second part of the calculation information excerpt (the error adjustment part):

[0133]

[0134] Combining the two parts, we get the following summary:

[0135]

[0136] Explanation of the example results:

[0137] Calculation results Represents the entropy of the data set D after taking into account the data error. This entropy measures the disorder of the data set, and the added error term helps reflect the impact of data uncertainty.

[0138] formula:

[0139]

[0140] Parameter explanation and examples:

[0141] and : The value of the data set at two consecutive time points. Assume .

[0142] : Weighting coefficient, assumed to be 0.2, increases the sensitivity to the magnitude of entropy change.

[0143] Calculation process:

[0144] Calculate the basic difference in entropy change:

[0145]

[0146] Calculate the absolute value of entropy change adjustment item:

[0147]

[0148] The total entropy change is obtained:

[0149]

[0150] Explanation of the example results:

[0151] Entropy change Represents the change in disorder of a system between two points in time, including a weighted adjustment for the magnitude of the entropy change, indicating that the system has become slightly more ordered.

[0152] formula:

[0153]

[0154] Parameter explanation and examples:

[0155] : Entropy change value obtained from step 2. Continuing to use the result of the previous step, assume that the entropy change at the three time points is

[0156]

[0157] : The number of time points, assumed to be 4.

[0158] Calculation process:

[0159] Calculate the square root of the absolute value of the entropy change at each time point:

[0160]

[0161] Calculate the average:

[0162]

[0163] Explanation of the example results:

[0164] The entropy variable obtained is A quantitative indicator that represents the average change in disorder at each time point, reflecting the average intensity of changes in the system state.

[0165] See also Figure 3 , the specific steps for obtaining the dynamic parameter adjustment results are:

[0166] S211: Use the entropy variable quantization result S to initialize the Kalman filter state, set the state variables and estimation error, and use the formula:

[0167]

[0168]

[0169] generating initial state estimates and initial error estimates;

[0170] in, is based on Adjusted initial state estimate, It is a small adjustment. is the initial estimation error, is the assumed process noise variance, is the coefficient used to adjust the error estimate, according to Square root adjustment;

[0171] S212: Apply the Kalman filter algorithm to update the state estimate based on the actual measurement value at the current moment, using the formula:

[0172]

[0173]

[0174] Update state estimate ;

[0175] in, is the actual hot data value at the current time point, is the updated state estimate, is the previous state estimate, is the Kalman gain, is the previous prediction error, is the measurement noise variance, and is the introduced parameter to adjust the sensitivity of state update;

[0176] S213: Using the updated state estimate To correct the error, use the formula:

[0177]

[0178] Generate a new prediction error after error correction, and adjust the simulation parameters of the casting cooling process according to the new prediction error to obtain a dynamic parameter adjustment result;

[0179] in, is the new prediction error after error correction, is the Kalman gain, is the gain adjustment factor.

[0180] formula:

[0181]

[0182] Parameter explanation and examples:

[0183] The entropy variable is quantified and is assumed to be 2.5.

[0184] : A small adjustment, assumed to be 0.1.

[0185] The process noise variance has a reasonable value of 1.0, which is set according to the system stability and noise level.

[0186] : Adjustment coefficient, assumed to be 0.5.

[0187] Calculation process:

[0188] Compute initial state estimate :

[0189]

[0190] Compute initial error estimate

[0191]

[0192] Result analysis:

[0193] Initial state estimation Represents the adjusted state estimate base value. Initial error estimate Indicates the level of uncertainty at the beginning.

[0194] formula:

[0195]

[0196] Parameter explanation and examples:

[0197] : The previous state estimate, obtained from step 2.6.

[0198] : The actual measured value at the current time point, assumed to be 3.0.

[0199] : Last prediction error, 1.79.

[0200] : Measurement noise variance, set to 1.2.

[0201] : Enhancement coefficient, set to 1.1.

[0202] : Adjust the state update sensitivity and set it to 1.5.

[0203] Calculation process:

[0204] Calculate Kalman gain :

[0205]

[0206] Update state estimate :

[0207]

[0208] Result analysis:

[0209] Updated state estimate Represents an estimate of the system state with reference to the current data.

[0210] formula:

[0211]

[0212] Parameter explanation and examples:

[0213] : New prediction error.

[0214] Kalman gain 0.66.

[0215] The previous forecast error was 1.79.

[0216] : Gain adjustment coefficient, set to 0.5.

[0217] Calculation process:

[0218] Calculate the error-corrected forecast error :

[0219]

[0220] Result analysis:

[0221] Corrected forecast error represents the uncertainty of the updated state estimate.

[0222] See also Figure 4, the specific steps for identifying the changing trend of key parameters are:

[0223] S311: Collect historical data from the casting system, including entropy change value, temperature, cooling rate, record the timestamp and operating conditions of each data, using the formula:

[0224] , time

[0225] Generate historical data sets;

[0226] in, represents the entropy change value, Indicates temperature, Indicates the cooling rate, time indicates the timestamp;

[0227] S312: Use historical data sets to clean the data and remove outliers in the data. Apply the formula:

[0228]

[0229] Generate a cleaned dataset;

[0230] in, is the filtered historical data set. Represents data points The deviation of is the deviation calculation function, is the preset maximum deviation;

[0231] S313: Perform time series analysis on the cleaned data set to identify the changing trends of key parameters including entropy change and temperature, and use an improved time series analysis model:

[0232]

[0233] Generate changing trends of key parameters;

[0234] in, Indicates the key parameter trends identified, are model parameters adjusted to fit the linear growth, decreasing effects, and square root growth trends of the data, It is a time variable, which indicates the length of time from the beginning of historical data to the present.

[0235] formula:

[0236]

[0237] Parameter details:

[0238] : Intercept term, representing the baseline trend value when there is no time change.

[0239] : Linear time coefficient, indicating a trend of linear growth or decrease over time.

[0240] : Decreasing coefficient, through the denominator Introduced to simulate the tapering effect.

[0241] : Root coefficient, through Introduced to simulate the trend of accelerating growth over time.

[0242] : Time variable, indicating the length of time from the beginning of data collection to the present (e.g. years, days, etc.).

[0243] Assumed parameter values ​​and examples:

[0244] Assumptions:

[0245]

[0246]

[0247]

[0248]

[0249] Represents the time year, from 1 to 5 years.

[0250] Calculation process and examples:

[0251] Assume that the calculation for the third year value:

[0252] Compute the linear-time term:

[0253]

[0254] Calculate the decreasing term:

[0255]

[0256] Calculate the square root growth term:

[0257]

[0258] Calculate the sum:

[0259]

[0260] Result interpretation:

[0261] Calculation results It is the trend value of the key parameter in the third year, which reflects the combined impact of growth over time, decreasing effects and accelerated growth.

[0262] See also Figure 5 , the specific steps for obtaining the adaptive entropy change threshold result are:

[0263] S321: Based on the trend of key parameters , analyze the trend matching degree between current casting conditions and historical data, using the formula:

[0264]

[0265] Calculate the matching error and generate the matching result ;

[0266] in, is the parameter value under the current casting condition, is the historical trend value, is the deviation adjustment constant, which increases stability, is a nonlinear adjustment index, which strengthens the sensitivity of deviation;

[0267] S322: According to the matching result , evaluate whether the casting conditions need to be adjusted, using the formula:

[0268]

[0269] Generate adjusted casting conditions;

[0270] in, and Respectively represent the casting condition sets before and after adjustment, is the adjustment coefficient, which affects the speed and magnitude of the adjustment. It is to adjust the buffer constant and slow down the adjustment response;

[0271] S323: Adjusted casting conditions To set the current entropy change threshold, use the formula:

[0272]

[0273] Generate adaptive entropy change threshold results;

[0274] in, is the adjusted entropy change threshold, is the original threshold, represents the change in matching error, is the threshold adjustment factor, is a smoothing parameter that reduces the abruptness of the threshold adjustment.

[0275] formula:

[0276]

[0277] Parameter explanation:

[0278] The parameter value under the current casting conditions.

[0279] : Historical trend value.

[0280] : Deviation adjustment constant, set to 1 to increase calculation stability.

[0281] The nonlinear adjustment exponent is set to 0.5 to enhance the effect of large deviations.

[0282] Assumed parameter values:

[0283]

[0284]

[0285]

[0286]

[0287] Calculation process:

[0288] for and :

[0289]

[0290] for and :

[0291]

[0292] for and :

[0293]

[0294] Total error for:

[0295]

[0296] Result interpretation:

[0297] Indicates that according to the overall match between current conditions and historical trends, the higher Values ​​indicate a poor match or need for adjustment.

[0298] Detailed explanation and derivation of the formula of step 2:

[0299] formula:

[0300]

[0301] Parameter explanation:

[0302] The current condition is assumed to be 20.

[0303] Target condition, assumed to be 25.

[0304] : Adjustment coefficient, set to 0.8.

[0305] : Adjust the buffer constant and set it to 5.

[0306] 6.419 obtained from step.

[0307] Calculation process:

[0308]

[0309] Result interpretation:

[0310] The adjusted casting condition is 20.395, showing a slight adjustment to get closer to the target condition.

[0311] formula:

[0312]

[0313] Parameter explanation:

[0314] The original entropy change threshold is assumed to be 100.

[0315] : The change in matching error, from the results of step 2, assuming that the error decreases after the initial adjustment, from 6.419 to 4.0.

[0316] The threshold adjustment factor is set to 0.5 to control the sensitivity of the adjustment.

[0317] : Smoothing parameter, set to 1, to balance the adjustment range and prevent drastic changes in the threshold.

[0318] Calculation process:

[0319] Assuming the initial error is 6.419, and is reduced to 4.0 through adjustment. .

[0320]

[0321] Result interpretation:

[0322] The adjusted entropy change threshold is 100.354, which represents a slight increase to accommodate the reduction in matching error. This adjustment ensures that the threshold is closer to the actual casting conditions, reflecting the improved adaptability of the casting process.

[0323] See also Figure 6 , the steps to test the effect of the adjusted parameters are as follows:

[0324] S411: Load the adaptive entropy change threshold and the adjusted casting parameters, perform MAGMA simulation, set the simulation initial conditions, and use the formula:

[0325]

[0326] Generate initial simulation configuration ;

[0327] in, represents the adjusted casting parameters, is the adaptive entropy change threshold, and is the adjustment coefficient used to balance the impact of casting parameters and entropy change threshold, and are additional parameters used to adjust the sensitivity and decay rate of the initial parameters;

[0328] S412: Adopt initialization simulation configuration , simulate the casting process, using the formula:

[0329]

[0330] Generate simulation results ;

[0331] in, is the output of the simulation, is the result influence coefficient, which is used to adjust the simulation accuracy and response speed. is the coefficient that adjusts the simulation sensitivity, is the set of initialization parameters used for the simulation;

[0332] S413: Analyze simulation results , evaluate the effect of parameter adjustment and determine whether the predetermined casting quality standards are met, using the formula:

[0333]

[0334] Generate simulation effect evaluation results ;

[0335] in, Based on simulation results Evaluation of the effect of adjusted parameters, is the evaluation weight coefficient, used to weight the result differences, is the original simulation result.

[0336] formula:

[0337]

[0338] Parameter explanation:

[0339] : Adjustment coefficients, which control the influence and adjustment rate of different parameters.

[0340] Adjusted casting parameters.

[0341] Adaptive entropy change threshold.

[0342] Assumed parameter values:

[0343] (Adjusted parameter value)

[0344] (Entropy change value)

[0345]

[0346] Calculation process:

[0347]

[0348] Result interpretation:

[0349] is the calculated initialization simulation configuration parameter, which reflects the combined impact of the adjusted parameters and the entropy change threshold.

[0350] formula:

[0351]

[0352] Parameter explanation:

[0353] : Coefficient affecting the simulation results.

[0354] Initialization parameters for step computation.

[0355] Assumed parameter values:

[0356]

[0357] (Results from step 1)

[0358] Calculation process:

[0359]

[0360] Result interpretation:

[0361] It represents the simulation result of the adjusted casting parameters, which is calculated by a complex formula taking into account the nonlinear influence of the parameters.

[0362] formula:

[0363]

[0364] Parameter explanation:

[0365] : Evaluation weight coefficient used to enhance the sensitivity of result differences.

[0366] The simulation output results calculated in step 2.

[0367] Original simulation results.

[0368] Assumed parameter values:

[0369]

[0370] (Result from step 2)

[0371] (Original simulation results)

[0372] Calculation process:

[0373]

[0374] Result interpretation:

[0375] It is the evaluation result of the effect of the adjusted parameters based on the simulation results. This value reflects the square of the difference between the adjusted and original simulation results. The weighting increases the sensitivity and usefulness of the evaluation results. This result helps to quantify the effectiveness of parameter adjustments and the accuracy of simulations.

[0376] See also Figure 7 , the specific steps for obtaining the simulation accuracy comparison results are:

[0377] S421: Set the initial conditions for the comparison analysis, using the improved formula:

[0378]

[0379] Generate initial configuration for comparison analysis ;

[0380] in, and is the coefficient used to adjust the weight of the original and adjusted results, is a weight parameter used to adjust the sensitivity of the comparison;

[0381] S422: Perform comparison analysis and use initial configuration , calculate the difference between the two simulation results, using the formula:

[0382]

[0383] Producing differentiated results ;

[0384] in, is the coefficient that adjusts the sensitivity of the difference calculation, is a normalization coefficient used to standardize the difference calculation;

[0385] S423: Evaluating differential results , judge whether it is within the acceptable range, if the judgment result is logically true, then the adjustment is determined to be successful, using the formula:

[0386]

[0387] Generate simulation accuracy comparison results;

[0388] in, Based on the difference results Simulation quality assessment, and are the adjustment coefficients and decay rates of the evaluation model, used to determine the magnitude of the impact of the differences.

[0389] formula:

[0390]

[0391] Parameter explanation:

[0392] : Weight factor, used to balance the weight of the original result and the adjusted result.

[0393] : A factor that enhances the sensitivity and precision of the comparison.

[0394] : Assume the original simulation result is 100.

[0395] Assume the adjusted simulation result is 105.

[0396] Parameter settings:

[0397]

[0398]

[0399]

[0400] Calculation process:

[0401]

[0402] Result interpretation:

[0403] The value of is 105, which means that a composite simulation result that takes differences into account after weighting is closer to the adjusted simulation value, showing the direct impact of parameter adjustment on the result.

[0404] formula:

[0405]

[0406] Parameter explanation:

[0407] : Coefficient for adjusting the sensitivity of difference calculation.

[0408] : Normalization coefficient, used for standardized difference calculation.

[0409] and Keep the same as above.

[0410] Parameter settings:

[0411]

[0412]

[0413] Calculation process:

[0414]

[0415] Result interpretation:

[0416] The value of is 0.5, which indicates that the difference between the two simulation results is relatively small in the normalized difference comparison and can be considered to be within an acceptable range.

[0417] formula:

[0418]

[0419] Parameter explanation:

[0420] and : Evaluate the adjustment coefficients and decay rates of the model.

[0421] The difference results obtained from step 2.

[0422] Parameter settings:

[0423]

[0424]

[0425] Calculation process:

[0426]

[0427] Result interpretation:

[0428] The value of is approximately 0.7788, which represents the quality comparison index between the adjusted simulation results and the original results. The closer the value is to 1, the higher the quality is, indicating that the adjustment is effective.

[0429] The above are only preferred embodiments of the present invention and are not intended to limit the present invention in other forms. Any technician familiar with the profession may use the technical contents disclosed above to change or modify them into equivalent embodiments with equivalent changes and apply them to other fields. However, any simple modification, equivalent change and modification made to the above embodiments based on the technical essence of the present invention without departing from the technical solution of the present invention still falls within the protection scope of the technical solution of the present invention.

Claims

1. Based on the MAGMA casting process thermal simulation method, It is characterized in that The following steps are involved: Collect the time series heat energy distribution data output by casting simulation, calculate the data entropy change at multiple time points, quantify the disorder change of the feedback system state, and obtain the entropy quantification result; The steps for obtaining the entropy quantification result are specifically as follows: The time series of thermal energy distribution data is collected through casting simulation and defined as the thermal energy distribution data set D, using the formula: Calculate the entropy value of the heat energy distribution data set D to generate an entropy value data set H(D); Where D is the heat energy distribution data set, p i is the probability of data point i in the thermal energy distribution data set D, q i For p i The error term, γ is the error adjustment coefficient, H(D) is the entropy value of the heat energy distribution data set D; The time series analysis of the entropy data set H(D) is performed using the formula: ΔH(t)=H(D t+1 )-H(D t )+α|H(D t+1 )-H(D t )| Add the absolute value term, calculate the entropy change between time points, and generate the entropy change sequence ΔH; Where ΔH(t) is the entropy change between time points t and t+1, D t and D t+1 is the data set of adjacent time points, α is the weighting coefficient; The entropy change sequence ΔH is quantified using the formula: The square root function is applied to highlight the impact of abnormal changes and the entropy variable is obtained; Among them, S is the entropy quantification result, n is the total number of data points in the time series, and |ΔH(t)| is the absolute entropy change value at time point t; Based on the entropy variable quantification result, the Kalman filter algorithm is used to adjust the simulation parameters in the casting cooling process, and the state estimation and error correction of the real-time collected thermal data are performed to obtain the dynamic parameter adjustment result; The steps for obtaining the dynamic parameter adjustment result are specifically as follows: Use the entropy variable quantization result to initialize the Kalman filter state, set the state variables and estimate the error, and use the formula: x 0 =S+δ generating initial state estimates and initial error estimates; Among them, x 0 is the initial state estimate based on S adjustment, δ is a small adjustment, P 0 is the initial estimation error, σ 2 is the assumed process noise variance, λ is the coefficient used to adjust the error estimate, adjusted according to the square root of S; Apply the Kalman filter algorithm to update the state estimate with the actual measurement value at the current moment, using the formula: Update state estimate Among them, y t is the actual hot data value at the current time point, is the updated state estimate, x t-1 is the previous state estimate, K t is the Kalman gain, P t-1 is the previous prediction error, R is the measurement noise variance, β and η are the introduced parameters to adjust the sensitivity of state update; Using the updated state estimate To correct the error, use the formula: P t =(1-K t ×φ)×P t-1 Generate a new prediction error after error correction, and adjust the simulation parameters of the casting cooling process according to the new prediction error to obtain a dynamic parameter adjustment result; Among them, P t is the new prediction error after error correction, K t is the Kalman gain, φ is the gain adjustment coefficient; Based on the dynamic parameter adjustment results, the historical casting data is reviewed item by item, the change trend of key parameters is identified, the differentiated casting conditions are automatically matched, and the entropy change threshold is adjusted to obtain an adaptive entropy change threshold result; The steps for identifying the changing trend of the key parameters are specifically as follows: Collect historical data from the casting system, including entropy change value, temperature, cooling rate, record the timestamp and operating conditions of each data, and use the formula: D b ={s,t,r,time} Generate historical dataset D b ; Among them, s represents the entropy change value, t represents the temperature, r represents the cooling rate, and time represents the timestamp; Use historical data sets to clean the data, remove outliers in the data, and apply the formula: D′={d∈D|δ(d)<∈} Generate a cleaned dataset; Where D′ is the filtered historical data set, δ(d) represents the deviation of data point d, δ is the deviation calculation function, and ∈ is the preset maximum deviation; Perform time series analysis on the cleaned data set to identify the changing trends of key parameters including entropy change and temperature, and use an improved time series analysis model: Generate changing trends of key parameters; Among them, T represents the trend of key parameter changes, β 0 , β 1 , β 2 , β 3 is the model parameter, which is adjusted to fit the linear growth, decreasing effect and square root growth trend of the data. t is the time variable, which indicates the length of time from the beginning of historical data to the present. The steps for obtaining the adaptive entropy change threshold result are specifically as follows: Based on the key parameter change trend T, the trend matching degree between the current casting conditions and historical data is analyzed, using the formula: Calculate the matching error and generate a matching result M; Among them, c i is the parameter value under the current casting condition, T i is the historical trend value, μ is the deviation adjustment constant, which increases stability, and ν is the nonlinear adjustment index, which strengthens the sensitivity of the deviation; According to the matching result M, evaluate whether the casting conditions need to be adjusted, using the formula: Generate adjusted casting conditions; Among them, C and C′ represent the casting condition sets before and after the adjustment, respectively, λ is the adjustment coefficient, which affects the speed and amplitude of the adjustment, and ρ is the adjustment buffer constant, which slows down the adjustment response; The current entropy change threshold is set for the adjusted casting condition C′ using the formula: Generate adaptive entropy change threshold results; Among them, Θ new is the result of adaptive entropy change threshold, Θ old is the original threshold, ΔM represents the change in matching error, κ is the threshold adjustment coefficient, and σ is the smoothing parameter to reduce the mutation of threshold adjustment; The adaptive entropy change threshold result is used to perform MAGMA simulation, and the effect of the adjusted parameters is tested by re-running the simulation, and the original simulation result is compared with the adjusted result to obtain the simulation accuracy comparison result.

2. According to the MAGMA casting process thermal simulation method based on claim 1, It is characterized in that The steps of testing the effect of the adjusted parameters are specifically as follows: Load the adaptive entropy change threshold and the adjusted casting parameters, perform MAGMA simulation, set the simulation initial conditions, and use the formula: Generate initialization simulation configuration P init ; Among them, P adj represents the adjusted casting parameters, Θ new is the result of the adaptive entropy change threshold, α and β are adjustment coefficients used to balance the influence of casting parameters and entropy change threshold, ∈ and σ are additional parameters used to adjust the sensitivity and decay rate of the initial parameters; Use the initialization simulation configuration P init , simulate the casting process, using the formula: Generate simulation results R sim ; Among them, R sim is the output result of the simulation, γ is the result influence coefficient, which is used to adjust the simulation accuracy and response speed, δ is the coefficient for adjusting the simulation sensitivity, and P init is the set of initialization parameters used for the simulation; Analyze the simulation results R sim , evaluate the effect of parameter adjustment and determine whether the predetermined casting quality standards are met, using the formula: E sim =ω·(R sim -R orig ) 2 Generate simulation effect evaluation results E sim ; Among them, E sim Indicates that based on the simulation results R sim Evaluation of the effect of the adjusted parameters, ω is the evaluation weight coefficient, used to weight the difference in results, R orig is the original simulation result.

3. According to the MAGMA casting process heat conduction simulation method of claim 2, It is characterized in that The steps for obtaining the simulation accuracy comparison result are specifically as follows: Set the initial conditions for the comparison analysis and use the improved formula: C compare =θ·R orig +φ·R sim +k·(R orig -R sim ) 2 Generate initial configuration C for comparison analysis compare ; Among them, θ and φ are coefficients used to adjust the weight of the original and adjusted results, and κ is a weight parameter used to adjust the comparison sensitivity; Perform comparative analysis, using initial configuration C compare , calculate the difference between the two simulation results, using the formula: Generate differential results D diff ; Among them, ψ is a coefficient that adjusts the sensitivity of the difference calculation, and ρ is a normalization coefficient used to standardize the difference calculation; Evaluate the difference in results diff , judge whether it is within the acceptable range, if the judgment result is logically true, then the adjustment is determined to be successful, using the formula: Generate simulation accuracy comparison results; Among them, Q quality Based on the difference results D diff ξ and λ are the adjustment coefficients and decay rates of the evaluation model, which are used to determine the impact of the differences.