Corrosion fatigue crack growth model parameter optimization method, system, equipment and medium
Through the combination of multi-objective optimization algorithm, particle swarm algorithm and genetic algorithm, the corrosion fatigue crack growth model parameters are optimized, which solves the problems of low optimization efficiency and low accuracy in the existing technology, and improves the authenticity and credibility of the model.
Patent Information
- Application Number
- CN202410047018.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-11
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-01-11
AI Technical Summary
In the existing technology, the parameter optimization efficiency of the corrosion fatigue crack growth model is low, the accuracy is not high, it is easy to fall into the local optimal solution, and the comprehensive performance is poor.
Using a multi-objective optimization algorithm combined with the particle swarm algorithm and genetic algorithm, by constructing a multi-physics coupled corrosion fatigue crack growth simulation model, using prior knowledge to simplify the target parameters, the particle swarm algorithm searches the solution space, and the genetic algorithm finely optimizes to improve parameter optimization. efficiency and accuracy.
It improves the authenticity, accuracy and comprehensive performance of the corrosion fatigue crack growth model, reduces the error between the output results of the simulation model and the real experimental data, and enhances the scientificity and credibility of the simulation model.
Smart Images

Figure CN117875179B
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of simulation model parameter optimization, and specifically relates to a corrosion fatigue crack propagation model parameter optimization method, system, equipment and medium. Background Art
[0002] Corrosion fatigue is one of the main forms of corrosion damage that affects structural materials in major equipment. This form of damage is extremely hidden and has a high probability of occurrence. Once it occurs, the harm caused is extremely great. Therefore, studying and understanding the corrosion fatigue mechanism can provide guarantees for the normal operation and reliability of equipment. Researchers often build simulation models based on mechanism-driven simulations to simulate the regular process of multi-physical field corrosion fatigue damage of equipment materials under various environmental conditions in reality, correctly guide the corrosion fatigue damage law and life prediction of actual equipment materials, and propose effective and targeted damage control countermeasures to avoid losses and harm caused by material corrosion fatigue.
[0003] Since the construction of complex multi-physics simulation models involves many model parameters, it is often necessary to select target parameters based on prior knowledge and mechanism formulas to improve the efficiency of model parameter optimization, and optimize these target parameters based on machine learning heuristic parameter optimization algorithms, so that the constructed model parameters have excellent simulation results, which can truly reflect the damage mechanism of real materials. At present, optimization algorithms based on machine learning are widely used in parameter optimization work. Common ones include genetic algorithm (GA), artificial neural network (ANN), simulated annealing algorithm (SA), particle swarm optimization (PSO), etc. These heuristic optimization algorithms provide a variety of efficient adjustment optimization methods for model parameter optimization problems. However, each algorithm has its own advantages and disadvantages for parameter optimization of different problems. It is necessary to design a suitable improved parameter optimization algorithm according to the specific model to ensure the efficiency of the optimization parameter process and the effectiveness of the results.
[0004] For example, in the prior art, a Chinese invention patent with publication number CN115236969A discloses a method for optimizing PID parameters using a particle swarm algorithm. The invention proposes a method for optimizing PID parameters using a particle swarm, which initializes the particle swarm, assigns PID parameters to unknown particles, uses a fitness function to calculate the particle fitness, finds the optimal solution for the particle and the optimal position of the swarm based on the fitness value, and finally outputs the optimized PID parameters based on the number of iterations. This method is aimed at the problem of a large range and relatively messy process in the particle swarm convergence process, but it is still impossible to obtain the global optimal solution for model parameter optimization, and the parameter optimization accuracy is low, especially for more complex optimization problems with multiple parameters and multiple conditions, there are situations where the parameter constraint range is large, the optimization efficiency is slow, the model loss is large, and the overall performance is poor.
[0005] Therefore, the existing technology has the problems of slow model parameter optimization efficiency, low accuracy, and easy to fall into local optimality, which urgently need to be solved. Summary of the invention
[0006] The purpose of the present invention is to provide a corrosion fatigue crack growth model parameter optimization method, system, equipment and medium to solve the problems of low accuracy and low comprehensive performance in the prior art and enhance the credibility of the simulation model.
[0007] To achieve the above object, the present invention provides the following technical solutions:
[0008] A method for optimizing parameters of a corrosion fatigue crack growth model, comprising the following steps:
[0009] Constructing a multi-physics field coupled corrosion fatigue crack growth simulation model mechanism function, and determining target parameters that affect the corrosion fatigue crack growth simulation model mechanism function;
[0010] Using a multi-objective optimization algorithm to optimize the mechanism function of the corrosion fatigue crack growth simulation model;
[0011] Simplifying the target parameters based on prior knowledge of the relevance of the target parameters;
[0012] Using a particle swarm algorithm to search the solution space for the target parameter and determine the solution domain;
[0013] Genetic algorithms are used to continuously refine the solution space until the optimal solution for the target parameters is output.
[0014] The corrosion fatigue crack propagation model parameter optimization method of the present invention has the following beneficial effects: through integrating corrosion fatigue multi-physical fields for coupled simulation, designing the corrosion fatigue crack propagation simulation model mechanism function, determining target parameters, introducing a multi-objective optimization algorithm, balancing the design weight strategy, and improving the fitness and rationality of the corrosion fatigue crack propagation simulation model mechanism function; then using the relationship between the prior knowledge association conditions and the parameters to optimize the target parameters, accelerate the convergence speed, and improve the optimization efficiency of the target parameters; using the efficient search ability of the particle swarm algorithm to narrow the parameter optimization direction and design the parameter solution space calculation method; using the global optimization ability of the genetic algorithm to improve the parameter optimization accuracy, and at the same time reduce the unnecessary iteration range, improve the parameter optimization efficiency, and finally obtain a high-fidelity corrosion fatigue crack propagation model, and comprehensively use a variety of methods to improve the efficiency of target parameter optimization, improve the authenticity, accuracy and comprehensive performance of the corrosion fatigue crack simulation model, reduce the error between the simulation model output result and the real experimental data, and enhance the scientificity and credibility of the simulation model.
[0015] In some embodiments, constructing a multi-physics field coupled corrosion fatigue crack growth simulation model mechanism function, and determining target parameters affecting the corrosion fatigue crack growth simulation model mechanism function includes:
[0016] Integrate the multi-physics fields of corrosion fatigue electric field, chemical field, and mechanical field, and couple to construct the mechanism function of the corrosion fatigue crack propagation simulation model.
[0017] Therefore, by integrating electric field, chemical field and mechanical field, the influencing factors of corrosion fatigue crack propagation are considered more comprehensively and fully, and the rationality and accuracy of the mechanism function of the coupled corrosion fatigue crack propagation simulation model are improved fundamentally.
[0018] In some embodiments, the target parameters include a first material constant, a current decay constant, a bare surface current density factor, a second material constant, a fracture strain of a crack tip passivation film, and a shoji constant;
[0019] The mechanism function of the corrosion fatigue crack growth simulation model is as follows:
[0020]
[0021] Among them, x1 is the first material constant, x2 is the current attenuation constant, x3 is the bare surface current density factor, x4 is the second material constant, x5 is the fracture strain of the passivation film at the crack tip, x6 is the Shoji constant, C1 is the material amplitude, i(x3) is the bare surface current density, t0 is the exposure time of the bare surface before the passivation film is repaired, ΔK and f are the crack growth stress intensity factor and frequency of the input conditions of the corrosion fatigue crack growth experiment.
[0022] Therefore, the specific influencing factors such as electric field, chemical field, and mechanical field are specifically clarified, and the input parameters of the mechanism function of the corrosion fatigue crack growth simulation model are determined, which facilitates more targeted parameter optimization.
[0023] In some embodiments, optimizing the corrosion fatigue crack growth simulation model mechanism function using a multi-objective optimization algorithm includes:
[0024] The mean square error and weight strategy are introduced to optimize the mechanism function of the corrosion fatigue crack growth simulation model.
[0025] Therefore, based on the actual data of corrosion fatigue crack growth experiments under multiple different conditions, the accuracy of the mechanism function of the corrosion fatigue crack growth simulation model is improved from a statistical perspective through the mean square error and weight strategy.
[0026] In some embodiments, optimizing the corrosion fatigue crack growth simulation model mechanism function using a multi-objective optimization algorithm further includes:
[0027] The mechanism function of the corrosion fatigue crack growth simulation model is optimized using a balanced weight strategy.
[0028] Therefore, for smaller target values, some large weights are introduced to increase the influence of these target values to avoid being overwhelmed by other relatively large target values, so that the objective function can better describe the balance of the influence of each target value, that is, the convergence of each conditional target label can be judged by the overall mean square error, thereby improving the accuracy of the iterative optimization parameters.
[0029] In some embodiments, a particle swarm algorithm is used to search a solution space for the target parameter, and determining a solution domain includes:
[0030] Initialize the position of each particle in the particle swarm;
[0031] Construct the spatial position update formula of each particle in the particle swarm;
[0032] Updating the corrosion fatigue crack growth simulation model mechanism function and continuously iterating particles;
[0033] Determine the local optimal position of the updated particle and lock the particles in the particle swarm;
[0034] Determine whether the termination condition is met. If so, generate a solution space. If not, jump to the step to construct the spatial position update formula of each particle in the particle swarm.
[0035] Therefore, by utilizing the efficient search capability of the particle swarm algorithm, based on the obtained corrosion fatigue crack growth experimental data and the initialization of the target parameters based on the particle swarm algorithm, the constraint range of each target parameter is roughly searched using the designed corrosion fatigue crack growth simulation model mechanism function to narrow the solution space of the target parameter optimization, provide upper and lower limit references for the fine optimization of the target parameters, and improve the optimization efficiency.
[0036] In some embodiments, the step of continuously optimizing in the solution space using a genetic algorithm until an optimal solution for the target parameter is output comprises:
[0037] The initialization population is randomly generated based on the target parameter solution space determined by the particle swarm algorithm;
[0038] Calculate the fitness of each target parameter individual;
[0039] Select individuals with high fitness values and eliminate individuals with low fitness values;
[0040] Perform crossover and mutation operations on individuals in the population to generate the next generation of population;
[0041] Determine whether the population meets the optimization termination conditions. If so, output the optimal solution of the target parameters. If not, jump to the step to calculate the fitness of each target parameter individual.
[0042] Therefore, the global optimization capability of the genetic algorithm is utilized to improve the accuracy of the target parameter optimization, while reducing the unnecessary iteration range and improving the efficiency of the target parameter optimization, ultimately obtaining a high-fidelity corrosion fatigue crack growth model.
[0043] The present invention also provides a corrosion fatigue crack growth model parameter optimization system, comprising:
[0044] A function construction module is used to construct a multi-physics field coupled corrosion fatigue crack growth simulation model mechanism function, and output target parameters that affect the corrosion fatigue crack growth simulation model mechanism function;
[0045] A function optimization module, connected to the function construction module, for optimizing the corrosion fatigue crack propagation simulation model mechanism function constructed by the function construction module;
[0046] A parameter optimization module, connected to the function optimization module, for designing an adaptive target parameter association strategy based on prior knowledge of target parameter association;
[0047] A particle swarm algorithm calculation module, used to use the particle swarm algorithm to search the solution space for the target parameter and determine the solution domain;
[0048] The genetic algorithm calculation module is used to use the genetic algorithm to continuously and finely optimize the solution space and output the optimal solution of the target parameters.
[0049] The corrosion fatigue crack growth model parameter optimization system of the present invention has the following beneficial effects: through the function optimization module and the parameter optimization module, the adaptability and efficiency of the mechanism function of the corrosion fatigue crack growth simulation model are improved, making the model more scientific and reasonable; through the particle swarm algorithm calculation module, in the target parameter solution domain search stage, the efficient search ability of the particle swarm algorithm is used to narrow the optimization direction of the target parameter; and then through the genetic algorithm calculation module, the global optimization ability of the genetic algorithm is used to improve the accuracy of the target parameter, and finally a high-fidelity corrosion fatigue crack growth model is obtained.
[0050] The present invention also provides an electronic device, comprising: a memory and a processor, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute the above-mentioned corrosion fatigue crack growth model parameter optimization method.
[0051] Therefore, through the comprehensive use of multi-objective optimization, particle swarm optimization, genetic algorithm and other methods, a more efficient, accurate, and scientifically reasonable corrosion fatigue crack growth model is obtained.
[0052] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for optimizing parameters of a corrosion fatigue crack growth model is implemented.
[0053] Therefore, through the comprehensive use of multi-objective optimization, particle swarm optimization, genetic algorithm and other methods, a more efficient, accurate, and scientifically reasonable corrosion fatigue crack growth model is obtained. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Figure 1 A flowchart of a corrosion fatigue crack growth model parameter optimization method provided by one embodiment of the present invention;
[0055] Figure 2 for Figure 1 Flow chart of step S4 of the corrosion fatigue crack growth model parameter optimization method shown;
[0056] Figure 3 for Figure 1 Flow chart of step S5 of the corrosion fatigue crack growth model parameter optimization method shown;
[0057] Figure 4 A structural diagram of a corrosion fatigue crack growth model parameter optimization system provided in another embodiment of the present invention. DETAILED DESCRIPTION
[0058] The present invention will be further described in detail below in conjunction with the accompanying drawings.
[0059] Figure 1 The figure schematically shows the optimization of corrosion fatigue crack growth model parameters according to an embodiment of the present invention. Figure 1 As shown, the method comprises the following steps:
[0060] S1. Construct a multi-physics field coupled corrosion fatigue crack growth simulation model mechanism function, and determine the target parameters that affect the corrosion fatigue crack growth simulation model mechanism function;
[0061] S2. Optimizing the mechanism function of the corrosion fatigue crack growth simulation model using a multi-objective optimization algorithm;
[0062] S3, simplifying the target parameters based on the prior knowledge of the correlation between the target parameters;
[0063] S4, using a particle swarm algorithm to search the solution space for the target parameter and determine the solution domain;
[0064] S5. Use genetic algorithms to continuously refine the solution space until the optimal solution for the target parameters is output.
[0065] In the specific implementation process, the target values of crack extension under different conditions of corrosion fatigue experiments are obtained, data labels are provided, and the mechanism function of the corrosion fatigue crack extension simulation model coupled with multiple physical fields is constructed to support the main input parameters, that is, the target parameters that affect the mechanism function of the corrosion fatigue crack extension simulation model. A multi-objective optimization algorithm is introduced, a weighting strategy is set in a balanced manner, and an optimized loss objective function is designed to optimize the mechanism function of the corrosion fatigue crack extension simulation model to improve the fitness and rationality of the function. Based on the prior knowledge of the correlation of the target parameters in the mechanism function of the corrosion fatigue crack extension simulation model, the correlation between the input conditions and the simulation model is reasonably explored and analyzed, and an adaptive target parameter association strategy is designed to realize the strategy of adaptively adjusting the target parameters, simplify the target parameters, and reduce the complexity of the target parameter optimization, so as to obtain the simulation performance of the high-fidelity model under various conditions through comprehensive simulation. Then, the crack propagation model parameters are initialized based on the particle swarm algorithm, and the mechanism function of the corrosion fatigue crack propagation simulation model optimized by the optimized loss objective function is used to roughly search the constraint range of each target parameter to narrow the solution space of the target parameter optimization, provide a value reference for the upper and lower limits of the target parameters for the fine target parameter optimization, and improve the optimization efficiency. Finally, the genetic algorithm is used to continuously fine-tune the solution space until the optimal solution of the target parameter is output, obtain a high-fidelity model, and improve the experimental efficiency in engineering applications. In this way, the efficiency of target parameter optimization is improved by comprehensively utilizing multiple methods, the authenticity, accuracy and comprehensive performance of the corrosion fatigue crack simulation model are improved, the error between the output results of the simulation model and the real experimental data is reduced, and the scientificity and credibility of the simulation model are enhanced.
[0066] In a specific embodiment, step S1 includes: integrating multiple physical fields such as corrosion fatigue electric field, chemical field, and mechanical field, and coupling to construct a corrosion fatigue crack growth simulation model mechanism function. More specifically, the input parameters of the function, that is, the target parameters, include a first material constant (m), a current attenuation constant (n), a bare surface current density factor (A), a second material constant (C p ), the fracture strain of the passive film at the crack tip (ε f ), shoji constant (a * ), that is, the target parameters to be considered are:
[0067]
[0068] The mechanism function of the corrosion fatigue crack growth simulation model is as follows:
[0069]
[0070] Wherein, x1 is the first material constant, x2 is the current attenuation constant, x3 is the bare surface current density factor, x4 is the second material constant, x5 is the fracture strain of the passivation film at the crack tip, x6 is the Shoji constant, C1 is the material amplitude, i(x3) is the bare surface current density, t0 is the bare surface exposure time before the passive film is repaired, ΔK and f are the crack propagation stress intensity factor and frequency of the input conditions of the corrosion fatigue crack growth experiment. The model has different responses under different conditions. The upper and lower limits of the initial solution domain of the optimization target parameters are recorded as x and f, respectively. _low 、x _up The initialization ranges of various target parameters are as follows:
[0071] x 1_low ≤x1≤x 1_up
[0072] x 2_low ≤x2≤x 2_up
[0073] x 3_low ≤x3≤x 3_up
[0074] x 4_low ≤x4≤x 4_up
[0075] x 5_low ≤x5≤x 5_up
[0076] x 6_low ≤x6≤x 6_up
[0077] Furthermore, based on experience, the initialization ranges of each target parameter are set to [0.1, 10], [0.1, 1], [0.1, 10], [1e-12, 9e-11], [1e-5, 9e-3], and [1e-11, 9e-8], respectively.
[0078] In a specific embodiment, step S2 includes: introducing a mean square error and a weight strategy to optimize the mechanism function of the corrosion fatigue crack growth simulation model, and the specific expression is:
[0079]
[0080] Where N is the number of actual target values of corrosion fatigue crack growth tests under different conditions, is the target label vector value under different conditions of corrosion fatigue crack growth experiment, is the simulation model output vector corresponding to the i-th condition, w i is the weight of the equilibrium loss function.
[0081] In a specific embodiment, step S2 also includes: using a balanced weight strategy to optimize the mechanism function of the corrosion fatigue crack extension simulation model. This is mainly because the actual obtained corrosion fatigue test crack extension target value is small. If some large weights are not introduced to increase its influence, it will be overwhelmed by other relatively large target values. The objective function will not be able to describe the balance of the influence of each target value well, that is, the convergence of each conditional target label cannot be judged by the overall mean square error, which may lead to inaccurate iterative optimization parameters. Therefore, a balanced weight strategy is designed here, that is, normalization is performed and then the inversion operation is performed, so that the smaller the value, the larger the weight value will be, thereby summarizing it into a relatively balanced error weighting method, and finally mapping it to the interval (0, 1) with the help of the activation function sigmoid. The specific formula is as follows:
[0082]
[0083] in is the L1 norm of all actual experimental target values. In this way, for the experimental target values obtained under different conditions, weights are set according to their respective importance to describe the influence of losses under different conditions. A higher weight can make the condition show a greater influence in the loss iterative optimization process, and vice versa, a lower weight reduces the influence of the loss generated under this condition. First, the output under each condition is normalized and mapped to the interval of (0, 1) as the weight setting of the loss under each condition, balancing the mechanism function of the corrosion fatigue crack propagation simulation model to make it more adaptable and accurate.
[0084] In a specific embodiment, the implementation process of step S3 can be implemented in the following manner: using the input condition frequency f and the current decay constant (n) and the fracture strain (ε) of the crack tip passivation film in the target parameters to be optimized. f ) is based on the analysis and statistics of prior knowledge, and an adaptive dynamic parameter update mechanism is designed, which is expressed as:
[0085]
[0086] Among them C εf The target parameter is the fracture strain ε of the passive film at the crack tip. f The amplitude factor, that is, the target parameter ε f The key parameter to be optimized is τ, which is the interval coefficient of different loading conditions in the experiment. Here, τ is empirically set to 4.5. It can be seen that the target parameter ε f The relationship between the connection parameters f and n can make iterative loss easier to converge, making the simulation model more efficient in the optimization process of the target parameters. Therefore, the optimized target parameters are updated as follows:
[0087]
[0088] The mathematical expression of the mechanism function of the corrosion fatigue crack growth simulation model is further optimized and updated as follows:
[0089]
[0090] In a specific embodiment, see Figure 2 As shown, step S4 includes:
[0091] S41, initializing the position of each particle in the particle swarm;
[0092] S42, constructing a spatial position update formula for each particle in the particle swarm;
[0093] S43, updating the corrosion fatigue crack growth simulation model mechanism function, and continuously iterating particles;
[0094] S44, determining the local optimal position of the updated particle and locking the particles in the particle group;
[0095] S45. Determine whether the termination condition is met. If so, generate a solution space. If not, jump to step S42.
[0096] In the specific implementation process, the particle swarm size is set to 30, the number of iterations is 40, the position of each particle in the particle swarm is initialized, and the current speed update formula of each particle is:
[0097] v ij (t+1)=wv ij (t)+c1r 1ij (t)[P ij,pbest (t)-x ij (t)]+c2r 2ij (t)[P j,gbest (t)-x ij (t)]
[0098] The position update formula of each particle is:
[0099] x ij (t+1)=x ij (t)+v ij (t+1)
[0100]
[0101] Among them, w is the inertia weight of the particle to maintain the previous speed, v ij (t) is the current velocity of the particle, v ij (t+1) is the velocity of the particle at the next moment, x ij(t) is the current position of the particle, x ij (t+1) is the position of the particle at the next moment, c1 and c2 are learning factors, r 1ij (t) and r 2ij (t) are all random numbers between (0, 1), P ij,pbest (t) is the current global optimal position of the particle, P j,gbest (t) is the current global best position of the particle, is the adaptive value at the next moment, is the adaptive value corresponding to the local optimal position.
[0102] Furthermore, the global spatial position update formula of each particle in the particle swarm is as follows:
[0103]
[0104] Then, the mechanism function of the corrosion fatigue crack growth simulation model is used to update and continuously iterate the particles, then the local optimal position of the updated particles is determined, and the particles in the particle group are locked. At the same time, the termination condition within the allowable rough error is set to determine whether the termination condition is met. If it is met, the solution space is generated and the program is stopped. If it is not met, it jumps to step S42, and then re-executes step S42, step S43, and step S44, and then determines whether the termination condition is met. This cycle is repeated until the constraint range of the solution domain of each target parameter is calculated.
[0105] Specifically, the optimal value of the output value of the target parameter optimization fitness function after the algorithm is terminated and the mean of the particle swarm corresponding to the termination condition interval of the specific expansion factor (that is, the numerical mean of each parameter) are obtained, and the target parameter range that needs to be constrained in the solution space is determined according to the statistical parameter values corresponding to the two. The solution domain calculation formula is:
[0106]
[0107] in The particle parameter numerical vector corresponding to the optimal value output by the fitness function, The mean vector of the particle swarm corresponding to the expansion factor set in the termination condition. Here, the expansion factor is set to 3. If the termination condition is 1E-5, the statistical interval is the mean of the particle swarm within [1E-5, 3E-5].
[0108] After the particle swarm algorithm quickly searches the mechanism function of the model, the solution space of each target parameter to be optimized is determined, and the upper and lower limits of the solution domain update determined by optimization are as follows:
[0109] 3≤x1≤6
[0110] 0.4≤x2≤0.8
[0111] 0.1≤x3≤5
[0112] 0.5E-12≤x4≤2E-11
[0113] 1E-4≤x5≤9E-3
[0114] 1E-10≤x6≤9E-9
[0115] In a specific embodiment, see Figure 3 As shown, step S5 includes:
[0116] S51, randomly generate an initialization population according to the target parameter solution space;
[0117] S52, calculating the fitness of each target parameter individual;
[0118] S53, select individuals with high fitness value and eliminate individuals with low fitness value;
[0119] S54, perform crossover and mutation operations on individuals in the population to generate the next generation of population;
[0120] S55, determine whether the population meets the optimization termination conditions, if so, output the optimal solution of the target parameters, if not, jump to step S52.
[0121] During the implementation process, the genetic algorithm is used to globally optimize the target parameters. The number of individuals N in the population is set to 10, the crossover probability ρ is 0.7, the mutation rate r is 0.1, the maximum number of evolutionary iterations iter is 50, and the termination condition ε of the fitness function is 1E-5. According to the target parameter solution domain obtained by the above-mentioned particle swarm algorithm search, the parameter genetic space range setting is applied to the genetic algorithm, and the initialization population is randomly generated. 10 groups of target parameters are randomly initialized in the solution space, and the target parameters are respectively encoded with real numbers. The mechanism function of the corrosion fatigue crack propagation simulation model is used as the fitness function to calculate the fitness value of each target parameter individual. Then, the roulette operator selection operation is used to extract 10 parent individuals of the current population, and the proportion of fitness values is used to produce the next generation population. The probability of being produced into the next generation population is shown as follows:
[0122]
[0123] Among them, N is the population size, which is set to 10 here; X is a population individual i In this way, individuals with high fitness values are retained and individuals with low fitness values are eliminated.
[0124] Then, a real number coding crossover operation is performed, and two individuals are randomly selected from the population with a crossover probability of ρ of 0.7 to randomly exchange positions to generate offspring individuals, ensuring that the new generation has better individuals. Furthermore, a real number coding mutation operation is performed on the new individuals in the solution domain with a mutation rate of r = 0.1 to increase the diversity of the population, introduce new excellent features, and produce a better next generation population. According to the set termination conditions, it is determined whether the population meets the optimization termination conditions. If it does, the algorithm is terminated and the optimal solution of the target parameters is output. If it does not, it jumps to the step of calculating the fitness value of each target parameter individual, and then performs selection operations, crossover operations, and mutation operations to generate the next generation population. This cycle is repeated until the optimization termination conditions are met, that is, the set stop conditions or number of iterations are met, the algorithm is terminated, and the output of the individual with the best fitness is decoded as the optimal solution of the corresponding target parameters. In an example, the results of the target parameters are as follows:
[0125]
[0126] The optimal solution of the target parameters was applied to the mechanism function of the corrosion fatigue crack growth model, and the average error between the simulation model calculation results and the experimental true value was evaluated to be approximately 8.65%, which greatly improved the accuracy of the corrosion fatigue crack growth model.
[0127] like Figure 4 As shown, an embodiment of the present invention further discloses a corrosion fatigue crack growth model parameter optimization system, comprising:
[0128] A function building module is used to build a multi-physics field coupled corrosion fatigue crack growth simulation model mechanism function and output target parameters that affect the corrosion fatigue crack growth simulation model mechanism function;
[0129] A function optimization module, connected to the function construction module, for optimizing the corrosion fatigue crack propagation simulation model mechanism function constructed by the function construction module;
[0130] The parameter optimization module is connected to the function optimization module and is used to design an adaptive target parameter association strategy based on the prior knowledge of the target parameter association;
[0131] Particle swarm algorithm calculation module, used to use particle swarm algorithm to search the solution space of target parameters and determine the solution domain;
[0132] The genetic algorithm calculation module is used to use the genetic algorithm to continuously and finely optimize the solution space and output the optimal solution of the target parameters.
[0133] In the specific implementation process, the function construction module integrates the coupling construction of multiple physical fields such as corrosion fatigue electric field, chemical field, and mechanical field, constructs the mechanism function of the corrosion fatigue crack extension simulation model coupled with multiple physical fields, and outputs the target parameters affecting the model. The function optimization module uses the mean square error and weight strategy to optimize the mechanism function of the corrosion fatigue crack extension simulation model to make it more scientific and reasonable and improve accuracy. The parameter optimization module uses the prior knowledge of the correlation of the target parameters to design an adaptive parameter association strategy to reduce the complexity of parameter optimization, and to obtain the simulation performance of the high-fidelity model under various conditions through comprehensive simulation. The particle swarm algorithm calculation module uses the efficient search ability of the particle swarm algorithm to shrink the optimization direction of the target parameters and determine the solution domain during the target parameter solution domain search stage. Then, through the genetic algorithm calculation module, the global optimization ability of the genetic algorithm is used to improve the accuracy of the target parameters, and finally a high-fidelity corrosion fatigue crack extension model is obtained.
[0134] The embodiment of the present invention also discloses an electronic device, including: a memory and a processor, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute the above-mentioned corrosion fatigue crack growth model parameter optimization method. By executing the above-mentioned corrosion fatigue crack growth model parameter optimization method, it can realize the specific functions of the method and provide a corrosion fatigue crack growth model with higher accuracy.
[0135] The embodiment of the present invention also discloses a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned corrosion fatigue crack growth model parameter optimization method is implemented. By executing the above-mentioned corrosion fatigue crack growth model parameter optimization method, the specific functions of the method can be realized, and a corrosion fatigue crack growth model with higher accuracy can be provided.
[0136] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0137] The method according to the present invention described above can be implemented in hardware, firmware, or as software or computer code that can be stored in a recording medium (such as a CD ROM, RAM, floppy disk, hard disk or magneto-optical disk), or as a computer code that is originally stored in a remote recording medium or a non-temporary machine-readable medium downloaded through a network and will be stored in a local recording medium, so that the method described herein can be stored in such software processing on a recording medium using a general-purpose computer, a special-purpose processor or programmable or special-purpose hardware (such as an ASIC or FPGA). It can be understood that a computer, a processor, a microprocessor controller or programmable hardware includes a storage component (e.g., RAM, ROM, flash memory, etc.) that can store or receive software or computer code, and when the software or computer code is accessed and executed by a computer, a processor or hardware, the processing method described herein is implemented. In addition, when a general-purpose computer accesses the code for implementing the processing shown here, the execution of the code converts the general-purpose computer into a special-purpose computer for executing the processing shown here.
[0138] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of the present invention. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A method for optimizing parameters of a corrosion fatigue crack growth model, characterized in that: The method comprises the following steps: Integrate the multi-physics fields of corrosion fatigue electric field, chemical field, and mechanical field, and couple to build the mechanism function of the corrosion fatigue crack propagation simulation model: Wherein, x1 is the first material constant, x2 is the current decay constant, x3 is the bare surface current density factor, x4 is the second material constant, x5 is the fracture strain of the passive film at the crack tip, x6 is the Shoji constant, C1 is the material amplitude, i(x3) is the bare surface current density, t0 is the bare surface exposure time before the passive film is repaired, ΔK and f are the crack growth stress intensity factor and frequency of the input conditions of the corrosion fatigue crack growth experiment; The mean square error and balanced weight strategy are introduced to optimize the mechanism function of the corrosion fatigue crack growth simulation model; According to the prior knowledge of the correlation of the target parameters, the target parameters are simplified and the mechanism function of the corrosion fatigue crack growth simulation model is updated as follows: Where n is the current decay constant; Using a particle swarm algorithm to initialize the position of each particle in the particle swarm, construct a spatial position update formula for each particle in the particle swarm, update the corrosion fatigue crack growth simulation model mechanism function, continuously iterate the particles, determine the local optimal position of the updated particles, and lock the particles in the particle swarm to determine whether the termination condition is met. If it is met, a solution space is generated. If it is not met, jump to constructing a spatial position update formula for each particle in the particle swarm to search the solution space for the target parameter and determine the solution domain; Using genetic algorithms, the initialization population is randomly generated according to the target parameter solution space, the fitness of each target parameter individual is calculated, individuals with high fitness values are selected, and individuals with low fitness values are eliminated. Crossover and mutation operations are performed on population individuals to generate the next generation population. It is determined whether the population meets the optimization termination conditions. If so, the optimal solution of the target parameter is output. Otherwise, jump to calculating the fitness of each target parameter individual.
2. A corrosion fatigue crack growth model parameter optimization system, characterized in that: include: A function construction module is used to integrate multiple physical fields such as corrosion fatigue electric field, chemical field and mechanical field, couple to construct a mechanism function of a corrosion fatigue crack growth simulation model, and determine target parameters that affect the mechanism function of the corrosion fatigue crack growth simulation model; A function optimization module, connected to the function construction module, for optimizing the corrosion fatigue crack propagation simulation model mechanism function constructed by the function construction module using a mean square error and a balanced weight strategy; A parameter optimization module, connected to the function optimization module, is used to design an adaptive target parameter association strategy based on prior knowledge of target parameter association and update the corrosion fatigue crack growth simulation model mechanism function; A particle swarm algorithm calculation module is used to initialize the position of each particle in the particle swarm using the particle swarm algorithm, construct a spatial position update formula for each particle in the particle swarm, update the corrosion fatigue crack growth simulation model mechanism function, continuously iterate the particles, determine the local optimal position of the updated particles, and lock the particles in the particle swarm to determine whether the termination condition is met. If so, a solution space is generated, and if not, jump to constructing a spatial position update formula for each particle in the particle swarm; The genetic algorithm calculation module is used to use the genetic algorithm to randomly generate an initialized population according to the target parameter solution space, calculate the fitness of each target parameter individual, select individuals with high fitness values, eliminate individuals with low fitness values, perform crossover and mutation operations on population individuals, generate the next generation population, and determine whether the population meets the optimization termination conditions. If so, output the optimal solution of the target parameter. If not, jump to calculate the fitness of each target parameter individual.
3. An electronic device, characterized in that: include: A memory and a processor, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute the corrosion fatigue crack growth model parameter optimization method according to claim 1.
4. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for optimizing parameters of a corrosion fatigue crack growth model according to claim 1 is implemented.
