A phase field simulation method and device including elastic strain energy

By converting the full-space Fourier transform into a local transform and reducing the convolution kernel, the problem of large data communication volume in large-scale phase field simulation in the existing technology is solved, fast calculation and large-scale simulation are achieved, and the material microprocessor is improved. Research capabilities on structural evolution.

CN118133646BActive Publication Date: 2024-09-13COMP NETWORK INFORMATION CENT CHINESE ACADEMY OF SCI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410290170.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-14
Publication Date
2024-09-13
Estimated Expiration
2044-03-14

AI Technical Summary

Technical Problem

When considering elastic strain energy in existing phase field simulations, the computational requirements of the full-space Fourier transform result in a large amount of data communication, which limits the scale of large-scale simulations and makes it difficult to conduct effective simulations in three-dimensional or larger spaces.

Method used

By converting the full-space Fourier transform into a local Fourier transform and designing an approximation algorithm, the full-space size convolution kernel is reduced to a small convolution kernel, reducing data communication and achieving fast calculation.

Benefits of technology

It significantly reduces the amount of data communication, supports large-scale phase field simulations containing elastic strain energy, improves computing efficiency, and provides more detailed research assistance for the evolution of material microstructure.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118133646B
    Figure CN118133646B
Patent Text Reader

Abstract

A phase field simulation method including elastic strain energy, characterized in that it is applied to the microstructure evolution of materials, the microstructure includes multiple particles, and the multiple particles form a field, and the method includes: determining a simulation area of ​​the microstructure, and multiple sub-areas included in the simulation area; obtaining elastic strain energy coefficient parameters, elastic modulus matrix and strain matrix; based on the elastic strain energy coefficient parameters, the elastic modulus matrix and strain matrix related to the elastic strain energy density function, determining the Fourier transform result of the shape function, and determining the Fourier transform result of the convolution kernel; wherein the shape function is used to characterize the field, and the convolution kernel is a convolution kernel processed by a truncated radius; according to the Fourier transform result of the convolution kernel and the Fourier transform result of the shape function, the final elastic strain energy of each sub-area is determined. This method can significantly reduce data communication, ensure fast calculation, and ultimately achieve the purpose of supporting large-scale phase field simulation containing elastic strain energy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computational physics and high performance computing technology, and in particular to a phase field simulation method and device including elastic strain energy. Background Art

[0002] In the field of materials science, microstructure, which is described as the spatial arrangement of phases and possible defects with different compositional and structural characteristics, plays a crucial role in determining many important properties of multiphase and multicomponent materials, such as hardness, strength, ductility, and conductivity. In order to understand, predict, and optimize macroscopic material properties that are sensitive to microstructure, it is necessary to have a deep understanding of the evolution of this microstructure. Although phase field modeling is a relatively new paradigm, it has become an important computational method for simulating and predicting the evolution of mesoscale morphology and microstructure under the action of different driving forces (e.g., composition gradient, temperature, pressure, temperature gradient, etc.). In the phase field method, the total free energy may include local free energy, interface energy, elastic strain energy, magnetic energy, electrostatic energy, etc. The classical phase transition thermodynamics that only considers local free energy and interface energy cannot explain the detailed morphology of multiphase crystals. The key factor in understanding the formation mechanism of heterogeneous crystal structures is the elastic strain energy generated by the lattice mismatch of coexisting phases. Large-scale phase field simulations with elastic strain energy can provide more help for the study of related mechanisms of physical and chemical processes. However, since the Khachaturyan-Shatalov microelasticity theory requires a full-space Fourier transform, and the current mature libraries that support multi-dimensional parallel fast Fourier transform also have a large amount of and frequent data communication, most existing phase field simulations are performed in a smaller three-dimensional space or even in a two-dimensional space, making elastic strain energy a bottleneck for large-scale simulations of such phase field models. Summary of the invention

[0003] In order to solve the problems existing in the prior art, the embodiments of the present application provide a phase field simulation method, apparatus, computing device, computer storage medium and a product including a computer program including elastic strain energy, which can significantly reduce data communication, ensure fast calculation, and ultimately achieve the purpose of supporting large-scale phase field simulation including elastic strain energy.

[0004] In a first aspect, an embodiment of the present application provides a phase field simulation method including elastic strain energy, which is applied to the microstructure evolution of a material, wherein the microstructure includes a plurality of particles, and the plurality of particles form a field, and the method includes: determining a simulation area of ​​the microstructure, wherein the simulation area includes a plurality of sub-areas; obtaining configuration parameters, wherein the configuration parameters include elastic strain energy coefficient parameters, an elastic modulus matrix and a strain matrix related to an elastic strain energy density function; based on the elastic strain energy coefficient parameters, an elastic modulus matrix and a strain matrix related to an elastic strain energy density function, determining a Fourier transform result of a shape function, and determining a Fourier transform result of a convolution kernel; wherein the shape function is used to characterize the field, and the convolution kernel is a convolution kernel processed by a truncated radius; determining the final elastic strain energy of each sub-area according to the Fourier transform result of the convolution kernel and the Fourier transform result of the shape function.

[0005] In some possible implementations, determining the Fourier transform result of the shape function includes: processing the shape function of the current sub-region according to the coefficient matrix of the Fourier transform and the inverse Fourier transform required by the shape function to determine the Fourier transform result of the shape function; the coefficient matrix includes x The coefficient matrix in the three directions of , y, and z, where x The coefficient matrix size of the direction is (N x +n x -1)×(N x +n x -1), the coefficient matrix size in the y direction is (N y +n y -1)×(N y +n y -1), the coefficient matrix size in the z direction is (N z +n z -1)×(N z +n z -1), N x 、N y 、N z Respectively characterize the sub-regions in x , y, z dimensions, n x 、n y 、n z Respectively represent the scale of the cutoff radius in the x, y, and z directions.

[0006] In some possible implementations, the Fourier transform result of the convolution kernel is determined, including: determining the stress matrix based on the elastic modulus matrix and the strain matrix; determining the position matrix in the reciprocal space; determining the elastic strain energy density based on the stress matrix and the position matrix; processing the Fourier inverse transform result of the elastic strain energy density according to the coefficient matrix of the inverse Fourier transform required by the convolution kernel to determine the convolution kernel; processing the convolution kernel according to the coefficient matrix of the Fourier transform required by the convolution kernel to determine the Fourier transform result of the convolution kernel.

[0007] In some possible implementations, the elastic strain energy density is calculated according to the following formula:

[0008]

[0009] In the formula, λ ijkl Characterize the elastic modulus, Characterize the first strain tensor, Characterize the second strain tensor, Ω jk Characterization The inverse matrix of Characterizes the first stress tensor, Characterizes the second stress tensor, n i Represents the i-th component of the reciprocal space unit vector n, n l Represents the lth component of the reciprocal space unit vector n.

[0010] In some possible implementations, the final elastic strain energy is determined according to the following formula:

[0011]

[0012] In the formula, dV represents the integral differential element of the reciprocal space, k represents the position in the reciprocal space, dr represents the integral differential element of the real space, and e ikr Characterize the Euler function associated with the Fourier transform, The Fourier transform of the shape function θ1(r), B(n) represents the elastic strain energy density, Characterization The conjugation of.

[0013] In some possible implementations, the coefficient matrices of the Fourier transform and inverse Fourier transform required by the shape function are calculated according to the following formula

[0014]

[0015]

[0016]

[0017] In the formula, The coefficient matrix representing the x direction, The coefficient matrix representing the y direction, represents the coefficient matrix in the z direction, and j represents the imaginary unit.

[0018] In some possible implementations, the convolution kernel requires a Fourier transform coefficient matrix,

[0019]

[0020]

[0021]

[0022] Where P x The coefficient matrix representing the x direction, P y The coefficient matrix representing the y direction, P z The coefficient matrix representing the z direction, j represents the imaginary unit, N x 、N y 、N z Respectively represent the scale of the sub-region in the x, y, and z directions, n x 、n y 、n z Respectively represent the scale of the cutoff radius in the x, y, and z directions.

[0023] In some possible implementations, the coefficient matrix of the inverse Fourier transform required by the convolution kernel is calculated according to the following formula

[0024]

[0025]

[0026]

[0027] In the formula, Q x The coefficient matrix representing the x direction, Q y The coefficient matrix representing the y direction, Q z The coefficient matrix representing the z direction, j represents the imaginary unit, N x 、N y 、N z Respectively represent the scale of the sub-region in the x, y, and z directions, n x 、n y 、n z Respectively represent the scale of the cutoff radius in the x, y, and z directions.

[0028] In a second aspect, an embodiment of the present application provides a phase field simulation device including elastic strain energy, which is applied to the microstructural evolution of a material, wherein the microstructure includes a plurality of particles, and the plurality of particles form a field, and the device includes: an acquisition module, which is used to determine a simulation area of ​​the microstructure, and the simulation area includes a plurality of sub-areas; the acquisition module is also used to acquire configuration parameters, and the configuration parameters include elastic strain energy coefficient parameters, an elastic modulus matrix and a strain matrix related to the elastic strain energy density function; a processing module is used to determine the Fourier transform result of a shape function and the Fourier transform result of a convolution kernel based on the elastic strain energy coefficient parameters, the elastic modulus matrix and the strain matrix related to the elastic strain energy density function; wherein the shape function is used to characterize the field, and the convolution kernel is a convolution kernel processed by a truncated radius; the processing module is also used to determine the final elastic strain energy of each sub-area based on the Fourier transform result of the convolution kernel and the Fourier transform result of the shape function.

[0029] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, comprising computer-readable instructions. When a computer reads and executes the computer-readable instructions, the computer executes the method described in any one of the first aspects.

[0030] In a fourth aspect, an embodiment of the present application provides a computing device, comprising a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, the method described in any one of the first aspects is executed.

[0031] In a fifth aspect, an embodiment of the present application provides a product comprising a computer program. When the computer program product runs on a processor, the processor executes the method as described in any one of the first aspects.

[0032] This method converts the full-space Fourier transform of the field into a local Fourier transform when the material's microstructure evolves, and reduces a convolution kernel of full-space size to a very small convolution kernel. This can significantly reduce data communication and ensure fast calculation, ultimately achieving the purpose of supporting large-scale phase field simulations containing elastic strain energy, thereby providing assistance for the study of physical and chemical processes. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0034] Figure 1 It is a flow chart of a phase field simulation method including elastic strain energy provided in an embodiment of the present application;

[0035] Figure 2 It is a schematic diagram of a large-scale phase field simulation result of a titanium alloy containing elastic strain energy transforming from β phase to ω phase provided in an embodiment of the present application;

[0036] Figure 3 It is a schematic diagram of a large-scale phase field simulation result of a Ti-6Al-4V alloy containing elastic strain energy transforming from β phase to α phase provided in an embodiment of the present application;

[0037] Figure 4 is a schematic structural diagram of a phase field simulation device including elastic strain energy provided in an embodiment of the present application;

[0038] Figure 5 It is a structural diagram of a computing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0039] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0040] The term "and / or" in this article is a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The symbol " / " in this article indicates that the associated objects are in an or relationship, for example, A / B means A or B.

[0041] The terms "first" and "second" in the specification and claims herein are used to distinguish different objects rather than to describe a specific order of the objects. For example, a first response message and a second response message are used to distinguish different response messages rather than to describe a specific order of the response messages.

[0042] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0043] In the description of the embodiments of the present application, unless otherwise specified, "multiple" means two or more than two. For example, multiple processing units refer to two or more processing units, etc.; multiple elements refer to two or more elements, etc.

[0044] To facilitate the understanding of the embodiments of the present application, the following will further explain and illustrate specific embodiments in conjunction with the accompanying drawings. The embodiments do not constitute a limitation on the embodiments of the present invention.

[0045] First, the technical terms involved in the embodiments of the present application are introduced:

[0046] 1. Phase field refers to the use of differential equations to reflect the combined effects of diffusion, ordering potential and thermodynamic driving with specific physical mechanisms. The above equations are solved by computer programming to obtain the instantaneous state of the research system in time and space.

[0047] 2. Elastic strain energy refers to the energy stored in the solid during the deformation process when the work done by the external force is converted into energy. The energy stored in the solid due to deformation under the action of external force is called deformation energy or strain energy.

[0048] 3. Solid-solid phase change refers to the process in which the structure or physical properties of a substance change between solid states.

[0049] Next, the technical solution provided by the embodiments of the present application is introduced.

[0050] In the phase field method of the microstructural evolution of materials, the total free energy may include local free energy, interface energy, elastic strain energy, magnetic energy, electrostatic energy, etc. Most solid-solid phase transitions will consider elastic strain energy, which also depends on the shape of the particles. According to the Khachaturyan-Shatalov microelasticity theory, it can be expressed as an integral in reciprocal space, where the integral function is the product of the elastic energy density and the square of the modulus of the Fourier transform of the shape function. However, since the entire calculation process currently supports multi-dimensional parallel fast Fourier transform, a Fourier transform of the entire space is required, and this transformation consumes an unacceptable amount of simulation time when the scale is large, making it impossible to achieve long-term simulation.

[0051] In view of this, an embodiment of the present application provides a phase field simulation method including elastic strain energy, which is applied to the microstructural evolution of materials. The microstructure includes multiple particles, and the multiple particles form a field. The Fourier transform of the field is converted into a convolution, and the full-space Fourier transform is converted into a local Fourier transform. Then, according to the characteristics of the convolution kernel, an approximate algorithm is designed to reduce a convolution kernel of the full space size to a very small convolution kernel. This can significantly reduce data communication and ensure fast calculation, ultimately achieving the purpose of supporting large-scale phase field simulation containing elastic strain energy, thereby providing assistance for the study of physical and chemical processes.

[0052] Next, the theoretical basis of the phase field simulation method including elastic strain energy provided in the embodiment of the present application is introduced.

[0053] Specifically, starting from the theoretical proof of elastic strain energy given by Khachaturyan-Shatalov microelasticity theory, the derivation process of the elastic strain energy expression of multiphase crystals can be abstracted into six parts: In the first part, a group of small clusters are selected in the parent phase crystal and clusters are cut out from them. If the clusters are large enough and the surface effect can be ignored, the energy of the system is not affected in this step. In the second part, each cluster is transformed into a new phase corresponding to one of the lattice rearrangements under stress-free conditions. Therefore, the clusters are transformed into a new set of phases. The related expansion of the clusters does not involve strain energy changes because the clusters are stress-free. In the third part, surface traction is applied to each cluster to restore its original shape. In the fourth part, each crystal cluster is removed and then put back into the hole of the parent crystal. No energy change will occur during insertion because each inclusion will be inserted into the cut space just right. In the fifth part, each cluster is "welded" to the parent phase. In the sixth part, each cluster is relaxed by eliminating external forces. In summary, the mechanical analysis and mathematical abstraction of the above six parts, the elastic strain energy can be expressed as:

[0054]

[0055] In the formula, E elast Characterizes elastic strain energy, λ ijkl Characterize the elastic modulus, Characterize the first strain tensor, Characterize the second strain tensor, represents the first stress tensor, V represents the volume of the entire space (i.e., the simulation area), Characterizes the homogeneous strain in the ij direction, represents the homogeneous strain in the kl direction, dV represents the integral differential element, Characterization and shape functions An intermediate parameter related to δε ij (r) Characterizes the heterogeneous strain in the ij direction, δε kl (r) represents the heterogeneous strain in the kl direction, V1 represents the total volume of the particles, and the particles include particles that have been deformed and particles that have not yet been deformed, and Characterizes the shape function, which is equal to 1 inside the particle and 0 outside the particle.

[0056] The system reaches mechanical equilibrium when the change of homogeneous strain and local displacement u(r) minimizes the value of elastic strain energy. Among them, the local displacement u(r) satisfies At this point, the above formula for solving the elastic strain energy can be equivalently converted to solve the following differential equation in the time domain:

[0057]

[0058] In the formula, Representation of partial derivative, u k The kth component representing the local displacement u(r), r j Characterizes the jth component of position r, r l Characterizes the lth component of position r.

[0059] Combining Gauss's theorem and convolution theorem, the solution of the differential equation in the time domain is:

[0060]

[0061] In the formula, k represents the vector of the reciprocal space, i represents the imaginary unit, and k k The component representing the position k in reciprocal space, e ikr represents the Euler function related to Fourier transform. ij (k) represents an intermediate parameter, and n i for A component of G ij (k) satisfies G ik -1 (k)G kj (k) = δ ij .

[0062] The local displacement u(r) is differentiated, and combined with the relationship between heterogeneous strain and local displacement, the derivative of the local displacement is substituted into the elastic strain energy formula. According to the derivation and exchange properties of convolution and Parseval's theorem, the expression of elastic strain energy can be obtained as follows:

[0063]

[0064] Where B(n) represents the elastic strain energy density, Fourier transform representing the shape function θ1(r) The elastic strain energy density function satisfies Ω jk Characterization The inverse matrix of is an intermediate parameter.

[0065] According to the expression of elastic strain energy and elastic strain energy density function, it can be seen that the expression of elastic strain energy contains a huge convolution with the scale of the entire simulation area, and the data distribution of the convolution kernel has certain characteristics. The values ​​with larger absolute values ​​are distributed in the center of the simulation area, and the values ​​with smaller absolute values ​​are distributed in the remaining part of the simulation area. By estimating the elastic strain energy and combining it with the error range allowed by the specific application, the truncation radius n of the convolution kernel is determined. x (scale along the x-axis), n y (scale along the y-axis) and n z (scale along the z-axis), thereby truncating the convolution kernel in the time domain. It is worth noting that in the following description, unless otherwise specified, the convolution kernel is the convolution kernel processed by the truncation radius. Through this truncation operation, a small part of the convolution kernel that carries most of the information is retained, and the Fourier transform of the whole space is converted into the Fourier transform of the local space, which fundamentally reduces data communication and makes large-scale phase field simulation containing elastic strain energy possible.

[0066] The above is a theoretical introduction to the phase field simulation method of elastic strain energy provided in the embodiment of the present application. Based on this theory, the embodiment of the present application also provides a phase field simulation method of elastic strain energy.

[0067] For example, Figure 1 The flowchart of a phase field simulation method including elastic strain energy provided by an embodiment of the present application is shown. The method can be applied to the microstructure evolution of materials. The microstructure includes a variety of particles, and the multiple particles form a field. The evolution of the particles over time (i.e., the evolution of the field over time) causes the change of the material properties. Among them, the field can be characterized by a shape function. The shape function is a function used to represent the change of the field in space. Through the shape function, the distribution of the field can be obtained. Figure 1 As shown, the phase field simulation method including elastic strain energy may include the following steps:

[0068] S11: Determine a simulation area of ​​the microstructure, the simulation area includes multiple sub-areas, and initialize configuration parameters, the configuration parameters include elastic strain energy coefficient parameters, elastic modulus matrix related to elastic strain energy density function, and strain matrix.

[0069] In this embodiment, for solid-solid phase change, a fixed area in the solid can be selected as the simulation area, and the elastic strain energy of the simulation area can be used as the elastic strain energy of the solid-solid phase change. The fixed area can be a cube. When performing calculations, a process of the computing device calculates the elastic strain energy of a sub-area. To obtain configuration parameters, the initialization data file can be read. The configuration file includes elastic strain energy coefficient parameters, elastic modulus matrix related to the elastic strain energy density function, and strain matrix. Specifically, the initialization data file is elastic_input.txt. In this file, there is a 6*6 elastic modulus matrix and several 3*3 strain matrices. The number of strain matrices is equal to the number of field variables in the physical model, and they correspond one to one.

[0070] Next, the stress matrix and position matrix can be obtained based on the elastic modulus and strain matrix. The position matrix is ​​the position matrix of the reciprocal space. According to the expression of elastic strain energy in the theoretical introduction of the phase field simulation method of elastic strain energy, in order to calculate the elastic strain energy density matrix, it is also necessary to calculate the position matrix n11, n22, n33 of the reciprocal space, where n11, n22, n33 represent the positions in the x, y, and z directions, respectively, corresponding to the three components of n in the expression of elastic strain energy. After the stress matrix and the position matrix are calculated, the Fourier transform coefficient matrix can be obtained based on the stress matrix and the position matrix. The Fourier transform coefficient matrix includes the coefficient matrix of the convolution kernel for Fourier transform and the coefficient matrix of the shape function for Fourier transform.

[0071] Among them, the coefficient matrix of the convolution kernel for Fourier transform includes the coefficient matrices in the three directions of x, y, and z, among which the coefficient matrix in the x direction is recorded as P x , the coefficient matrix in the y direction is denoted as P y , the coefficient matrix in the z direction is denoted as P z .P x The size is n x ×(N x +n x -1), P y The size is n y ×(N y +n y -1), P z The size is n z ×(N z +n z -1). x , P y , P z The expressions are as follows:

[0072]

[0073]

[0074]

[0075] In the formula, j represents the imaginary unit, N x Characterizes the size of the local sub-region along the x-axis, N y Characterizes the scale of the local sub-region along the y-axis, N z Characterizes the scale of the local sub-region along the z-axis.

[0076] The coefficient matrix of the Fourier transform of the shape function also includes the coefficient matrices in the x, y, and z directions, where the coefficient matrix in the x direction is recorded as The coefficient matrix in the y direction is recorded as The coefficient matrix in the z direction is recorded as The size of (N x +n x -1)×(N x +n x -1), The size of (N y +n y -1)×(N y +n y -1), The size of (N z +n z -1)×(N z +n z -1). The expressions are as follows:

[0077]

[0078]

[0079]

[0080] Wherein, j represents the imaginary unit.

[0081] S12: Initialize elastic strain energy.

[0082] In this embodiment, the elastic strain energy of the solid after the solid-solid phase change can be initialized to calculate the elastic strain energy. Since the elastic strain energy term of each time step is constantly changing during the calculation process, the elastic strain energy term needs to be initialized before each calculation of the elastic interaction to avoid calculation errors. The initialization operation refers to setting the elastic strain energy to 0.

[0083] S13: Determine the Fourier transform result of the shape function and the Fourier transform result of the convolution kernel.

[0084] In this embodiment, the simulation area can be divided into connected sub-areas, each of which is also in the shape of a cube. The edge and angle data of each sub-area are transmitted to the adjacent sub-area through the extended buffer together with the surface data. Through three rounds of communication between adjacent sub-areas in the x, y, and z directions, the first round of communication is the communication in the x direction, the second round of communication is the communication in the y direction, and the third round of communication is the communication in the z direction, so that the surface, edge and angle data of the current sub-area arrive at the destination (i.e., the adjacent sub-area). Among them, in the first round of communication, the surface data from the current sub-area is packaged into the sending buffer and sent to the adjacent sub-area. During the communication process, the surface data from the second direction is packaged into the sending buffer. After receiving, the edge data and angle data are copied to the sending buffer, and the sending buffer is filled with the surface data. In the second round of communication, during the communication process, the surface data of the third direction is packaged into the sending buffer. In the third round of communication, the data of the third direction is transmitted. After receiving the packaged data, the packaged data is unpacked. The data obtained after unpacking is Fourier transformed to determine the Fourier transform result of the shape function. When performing Fourier transform, the coefficient matrix used is the coefficient matrix of the Fourier transform of the aforementioned shape function

[0085] At the same time, the elastic strain energy density function can also be obtained based on the obtained stress matrix and position matrix. and Subtracting these two items, we can get the elastic strain energy density function B(n). Using the coefficient matrix of the inverse Fourier transform required by the convolution kernel, we can calculate the inverse Fourier transform of the elastic strain energy density function to get the convolution kernel. According to the coefficient matrix of the Fourier transform of the convolution kernel, we can perform Fourier transform on the convolution kernel and determine the Fourier transform result of the convolution kernel. Among them, the coefficient matrix of the inverse Fourier transform required by the convolution kernel in the x direction is denoted as Q x , whose size is n x ×N x ; The coefficient matrix in the y direction is recorded as Q y , whose size is n y ×N y ; The coefficient matrix in the z direction is denoted as Q z , whose size is n z ×N z .Q x , Q y , Q z The representation is as follows

[0086]

[0087]

[0088]

[0089] Wherein, N1 represents the scale in the x direction, N2 represents the scale in the y direction, and N3 represents the scale in the z direction.

[0090] S14: Determine the elastic strain energy of each sub-region according to the Fourier transform result of the convolution kernel and the Fourier transform result of the shape function.

[0091] In this embodiment, after the Fourier transform result of the convolution kernel and the Fourier transform result of the shape function are determined, the obtained matrix can be multiplied point by point to obtain the product. The product is inversely transformed by Fourier, and the inverse transformation result is the elastic strain energy of the solid-solid phase change.

[0092] In order to verify the practicality of this method, the present application embodiment also provides two solid-solid phase change scenarios. For example, Figure 2 A schematic diagram of the large-scale phase field simulation results of a titanium alloy with elastic strain energy transforming from β phase to ω phase is shown. Figure 3 A schematic diagram showing the results of a large-scale phase field simulation of the transformation of Ti-6Al-4V alloy from β phase to α phase containing elastic strain energy.

[0093] for Figure 2 In general, the size of the simulation area is set to N1 = N2 = N3 = 4096, and the size of its sub-area is set to N x =N y =N z =256, a total of 4096 processes are required to operate. It is estimated that this embodiment can meet the requirements of simulation evolution when the relative error of elastic strain energy is about 10%. At this time, the truncation radius of the selected convolution kernel is n x =n y =n z =32. Read the initialization data file elastic_input.txt, including elastic strain energy coefficient parameters, a 6*6 elastic modulus matrix related to the elastic strain energy density function, and 4 3*3 strain matrices. Since four possible ω variants will be produced during the β→ω phase transformation of titanium alloy, this has 4 strain matrices corresponding to the four variants one by one. Then, the phase field simulation method of elastic strain energy provided in the embodiment of the present application is used for calculation. After 500 steps of simulation, the spherical ω phase grains are transformed into elliptical grains. As the transformation proceeds, it can be found that some ω phase grains merge together to form larger ω phase grains. These merged ω phase grains may cause material embrittlement because they become obstacles to dislocation movement.

[0094] for Figure 3In general, the size of the simulation area is set to N1 = N2 = N3 = 4096, and the size of its sub-area is set to N x =N y =N z =256, and 4096 processes are also required to operate. It is estimated that this embodiment can meet the requirements of simulation evolution when the relative error of elastic strain energy is about 13%. At this time, the truncation radius of the selected convolution kernel is n x =n y =n z =32. Read the initialization data file elastic_input.txt, including elastic strain energy coefficient parameters, a 6*6 elastic modulus matrix related to the elastic strain energy density function, and 6 3*3 strain matrices. The titanium alloy Ti-6Al-4V will produce 12 possible α variants during the β→α phase transformation. This embodiment selects the first 6 α variants. Therefore, there are 6 strain matrices corresponding to the six variants. Then, the phase field simulation method of elastic strain energy provided in the embodiment of the present application is used for calculation. After 16,000 steps of simulation, the initial spherical α phase grains are placed in the simulation area. As the evolution progresses, the α phase gradually changes into a lamellar structure. Different variants compete with each other, and the same variants merge to eventually form a complex texture.

[0095] The above is an introduction to the phase field simulation method including elastic strain energy provided in the embodiment of the present application. The cutoff radius of the convolution kernel can be adjusted according to the application requirements to greatly reduce data communication. Through non-blocking communication and efficient matrix multiplication algorithm, the algorithm further improves the computing performance, achieves fast calculation of elastic strain energy, and supports large-scale simulation including elastic strain energy.

[0096] It is understandable that the size of the sequence number of each step in the above-mentioned embodiments does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. In addition, in some possible implementations, the steps in the above-mentioned embodiments can be selectively executed according to actual conditions, and can be partially executed or fully executed, which is not limited here. All or part of any feature of any embodiment of the present application can be freely and arbitrarily combined without contradiction. The combined technical solution is also within the scope of the present application.

[0097] Based on the method in the above embodiment, the embodiment of the present application also provides a phase field simulation device including elastic strain energy.

[0098] For example, Figure 4 A phase field simulation device including elastic strain energy is shown. Figure 4As shown, the phase field simulation device 400 including elastic strain energy may include: an acquisition module 401 and a processing module 402 .

[0099] The acquisition module 401 is used to determine a simulation area of ​​the microstructure, and the simulation area includes multiple sub-areas.

[0100] The acquisition module 401 is further used to acquire configuration parameters, which include elastic strain energy coefficient parameters, elastic modulus matrix and strain matrix related to elastic strain energy density function.

[0101] The processing module 402 is used to determine the Fourier transform result of the shape function and the Fourier transform result of the convolution kernel based on the elastic strain energy coefficient parameter, the elastic modulus matrix related to the elastic strain energy density function and the strain matrix; wherein the convolution kernel is a convolution kernel processed by a truncated radius.

[0102] The processing module 402 is further used to determine the final elastic strain energy of each of the sub-regions according to the Fourier transform result of the convolution kernel and the Fourier transform result of the shape function.

[0103] It should be understood that the above-mentioned device is used to execute the method in the above-mentioned embodiment. The implementation principle and technical effect of the corresponding program module in the device are similar to those described in the above-mentioned method. The working process of the device can refer to the corresponding process in the above-mentioned method, which will not be repeated here.

[0104] The present application also provides a computing device 500. Figure 5 As shown, computing device 500 includes: bus 502, processor 504, memory 506 and communication interface 508. Processor 504, memory 506 and communication interface 508 communicate through bus 502. Computing device 500 can be a server or a terminal device. It should be understood that the present application does not limit the number of processors and memories in computing device 500.

[0105] The bus 502 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 The bus 504 is represented by only one line, but it does not mean that there is only one bus or one type of bus. The bus 504 may include a path for transmitting information between various components of the computing device 500 (eg, the memory 506, the processor 504, and the communication interface 508).

[0106] The processor 504 may include any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).

[0107] The memory 506 may include a volatile memory, such as a random access memory (RAM). The processor 504 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid state drive (SSD).

[0108] The memory 506 stores executable program codes, and the processor 504 executes the executable program codes to respectively implement the functions of the initialization module 401 and the processing module 402, thereby implementing all or part of the steps of the method in the above embodiment. That is, the memory 506 stores instructions for executing all or part of the steps in the method in the above embodiment.

[0109] Alternatively, the memory 506 stores executable codes, and the processor 504 executes the executable codes to respectively implement the functions of the aforementioned phase field simulation device 400 including elastic strain energy, thereby implementing all or part of the steps in the above-mentioned embodiment method. That is, the memory 506 stores instructions for executing all or part of the steps in the above-mentioned embodiment method.

[0110] The communication interface 508 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the computing device 500 and other devices or a communication network.

[0111] Based on the methods in the above embodiments, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program runs on a processor, the processor executes the methods in the above embodiments.

[0112] Based on the methods in the above embodiments, an embodiment of the present application provides a computer program product. When the computer program product runs on a processor, the processor executes the methods in the above embodiments.

[0113] It is understood that the processor in the embodiments of the present application may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. The general-purpose processor may be a microprocessor or any conventional processor.

[0114] The method steps in the embodiments of the present application can be implemented by hardware or by a processor executing software instructions. The software instructions can be composed of corresponding software modules, and the software modules can be stored in random access memory (RAM), flash memory, read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, mobile hard disks, CD-ROMs, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an ASIC.

[0115] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer instructions may be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state disk (SSD)), etc.

[0116] It should be understood that the various numerical numbers involved in the embodiments of the present application are only used for the convenience of description and are not used to limit the scope of the embodiments of the present application.

Claims

1. A phase field simulation method including elastic strain energy, characterized in that: Applied to the microstructure evolution of a material, the microstructure comprising a plurality of particles, the plurality of particles forming a field, the method comprising: Determine a simulation area of ​​the microstructure, wherein the simulation area includes a plurality of sub-areas; Acquiring configuration parameters, wherein the configuration parameters include elastic strain energy coefficient parameters, an elastic modulus matrix related to the elastic strain energy density function, and a strain matrix; Based on the elastic strain energy coefficient parameter, the elastic modulus matrix related to the elastic strain energy density function and the strain matrix, the Fourier transform result of the shape function and the Fourier transform result of the convolution kernel are determined; wherein the shape function is used to characterize the field, and the convolution kernel is a convolution kernel processed by a truncated radius; the Fourier transform result of the shape function is determined, including: processing the shape function of the current sub-area according to the coefficient matrix of the Fourier transform and the inverse Fourier transform required by the shape function, and determining the Fourier transform result of the shape function; the coefficient matrix includes x The coefficient matrix in the three directions of , y, and z, where x The coefficient matrix size of the direction is (N x +n x -1)×(N x +n x -1), the coefficient matrix size in the y direction is (N y +n y -1)×(N y +n y -1), the coefficient matrix size in the z direction is (N z +n z -1)×(N z +n z -1), N x 、N y 、N z Respectively characterize the sub-regions in x , y, z dimensions, n x 、n y 、n z Respectively characterize the scale of the truncation radius in the x, y, and z directions; the determination of the Fourier transform result of the convolution kernel includes: determining the stress matrix according to the elastic modulus matrix and the strain matrix; determining the position matrix of the reciprocal space; determining the elastic strain energy density based on the stress matrix and the position matrix; processing the Fourier inverse transform result of the elastic strain energy density according to the coefficient matrix of the Fourier inverse transform required by the convolution kernel to determine the convolution kernel; processing the convolution kernel according to the coefficient matrix of the Fourier transform required by the convolution kernel to determine the Fourier transform result of the convolution kernel; The final elastic strain energy of each of the sub-regions is determined according to the Fourier transform result of the convolution kernel and the Fourier transform result of the shape function.

2. The method according to claim 1, characterized in that The elastic strain energy density is calculated according to the following formula In the formula, λ ijkl Characterize the elastic modulus, Characterize the first strain tensor, Characterize the second strain tensor, Ω jk (n) represents the intermediate parameters, specifically The inverse matrix of Characterizes the first stress tensor, Characterizes the second stress tensor, n i Represents the i-th component of the reciprocal space unit vector n, n l Represents the lth component of the reciprocal space unit vector n, n k Represents the kth component of the reciprocal space unit vector n.

3. The method according to claim 2, characterized in that The final elastic strain energy is determined according to the following formula: In the formula, dV represents the integral differential element of the reciprocal space, k represents the position in the reciprocal space, dr represents the integral differential element of the real space, and e ikr Characterize the Euler function associated with the Fourier transform, The Fourier transform of the shape function θ1(r), B(n) represents the elastic strain energy density, Characterization The conjugation of.

4. The method according to claim 1, characterized in that: The coefficient matrices of the Fourier transform and inverse Fourier transform required by the shape function are calculated according to the following formula In the formula, The coefficient matrix representing the x direction, The coefficient matrix representing the y direction, The coefficient matrix represents the z direction, and j represents the imaginary unit.

5. The method according to claim 1, characterized in that The convolution kernel requires the Fourier transform coefficient matrix, Where P x The coefficient matrix representing the x direction, P y The coefficient matrix representing the y direction, P z The coefficient matrix representing the z direction, j represents the imaginary unit, N x 、N y 、N z Respectively represent the scale of the sub-region in the x, y, and z directions, n x 、n y 、n z Respectively characterize the scale of the cutoff radius in the x, y, and z directions.

6. The method according to claim 1, characterized in that The coefficient matrix of the inverse Fourier transform required by the convolution kernel is calculated according to the following formula In the formula, Q x Characterization x The coefficient matrix of the direction, Q y The coefficient matrix representing the y direction, Q z The coefficient matrix representing the z direction, j represents the imaginary unit, N x 、N y 、N z Respectively characterize the sub-regions in x , y, z dimensions, n x 、n y 、n z Respectively characterize the scale of the cutoff radius in the x, y, and z directions.

7. A phase field simulation device including elastic strain energy, characterized in that: Applied to the microstructure evolution of a material, the microstructure includes a plurality of particles, the plurality of particles form a field, and the device includes: An acquisition module, used for determining a simulation area of ​​the microstructure, wherein the simulation area includes a plurality of sub-areas; The acquisition module is further used to acquire configuration parameters, wherein the configuration parameters include elastic strain energy coefficient parameters, elastic modulus matrix and strain matrix related to elastic strain energy density function; A processing module is used to determine the Fourier transform result of the shape function and the Fourier transform result of the convolution kernel based on the elastic strain energy coefficient parameter, the elastic modulus matrix related to the elastic strain energy density function and the strain matrix; wherein the shape function is used to characterize the field, and the convolution kernel is a convolution kernel processed by a truncated radius; the Fourier transform result of the shape function is determined, including: processing the shape function of the current sub-area according to the coefficient matrix of the Fourier transform and the inverse Fourier transform required by the shape function, and determining the Fourier transform result of the shape function; the coefficient matrix includes coefficient matrices in three directions of x, y and z, wherein the size of the coefficient matrix in the x direction is (N x +n x -1)×(N x +n x -1), the coefficient matrix size in the y direction is (N y +n y -1)×(N y +n y -1), the coefficient matrix size in the z direction is (N z +n z -1)×(N z +n z -1), N x 、N y 、N z Respectively represent the scale of the sub-region in the x, y, and z directions, n x 、n y 、n z Respectively characterize the cutoff radius x , y, and z directions; the determining of the Fourier transform result of the convolution kernel comprises: determining the stress matrix according to the elastic modulus matrix and the strain matrix; determining the position matrix of the reciprocal space; determining the elastic strain energy density based on the stress matrix and the position matrix; processing the Fourier inverse transform result of the elastic strain energy density according to the coefficient matrix of the Fourier inverse transform required by the convolution kernel to determine the convolution kernel; processing the convolution kernel according to the coefficient matrix of the Fourier transform required by the convolution kernel to determine the Fourier transform result of the convolution kernel; The processing module is further used to determine the final elastic strain energy of each sub-region according to the Fourier transform result of the convolution kernel and the Fourier transform result of the shape function.