A sharp-interface diffusion phase change calculation method based on a physical information neural network
By using a physical information neural network-based method, the interface position and composition distribution are optimized using a fixed reference length and square root time variable. This solves the problems of interface instability and time consistency in the calculation of diffusion phase transitions at sharp interfaces, and achieves more efficient and accurate calculation results.
Patent Information
- Application Number
- CN202611307692.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-27
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2046-08-27
AI Technical Summary
Existing technologies suffer from problems such as unstable interface positions, insufficient training, inadequate time consistency, and high computational complexity when calculating the sharp interface diffusion phase transition problem in binary two-phase alloy systems, especially when the composition gradient is steep and the diffusion coefficient difference is large near the interface.
A method based on physical information neural networks is adopted. By introducing a fixed reference length and a square root time variable, a dimensionless diffusion equation is established, an interface position and composition neural network is constructed, and time causality loss weights are combined to optimize interface migration and composition distribution.
It improves the physical consistency of interface position and component field, reduces interface out-of-bounds and training instability, and enhances computational stability and accuracy. It is applicable to diffusion phase transition problems with different scales and complex interface migration characteristics.
Smart Images

Figure CN122867908B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of computational simulation of metallic materials and diffusion phase transition dynamics, and particularly to a method for calculating diffusion phase transitions at sharp interfaces based on a physical information neural network. Background Technology
[0002] In binary two-phase alloy systems, the composition on both sides of the phase interface undergoes abrupt changes under local equilibrium conditions. The interface position migrates over time, and the interface velocity is determined by the difference in diffusion flux on both sides of the interface. This type of problem can usually be reduced to a sharp interface diffusion phase transition problem (also known as the Stefan moving boundary problem). For sharp interface diffusion phase transition problems, traditional computational methods (such as the finite difference method, finite element method, finite volume method, moving mesh method, thermodynamic / kinetic software, or phase field method) often require explicitly tracking the interface position and continuously updating the computational domain or reconstructing the mesh as the interface moves. When the composition gradient near the interface is steep, the difference in diffusion coefficients between the two phases is large, or the scale of the computational domain changes, the numerical implementation complexity and computational cost increase significantly.
[0003] Physical Information Neural Networks (PINNs) offer a novel computational approach to diffusion phase transition problems by embedding partial differential equations, initial conditions, and boundary conditions into a loss function and utilizing automatic differentiation to calculate physical residuals. However, directly applying PINNs to diffusion phase transition problems at sharp interfaces still faces the following challenges:
[0004] First, the interface position not only appears in the Stefan condition, but also directly determines the actual domain length of the diffusion equations on both sides;
[0005] Secondly, relying solely on Stefan conditional training of interface location neural networks can easily lead to local non-physical fluctuations, interface overtravel, or training instability due to insufficient constraints between the interface location and the component fields.
[0006] Third, diffusion phase transition is a clear time evolution problem. When ordinary physical information neural networks are optimized simultaneously across the entire time domain, the residuals in later time periods may be reduced first while the physical constraints in earlier time periods are not yet fully satisfied, resulting in insufficient causal consistency in the time progression process.
[0007] Existing phase-field methods typically use continuous phase variables to describe diffuse interfaces, but their focus is on solving phase-field equations, flow equations, or heat transfer equations. However, for diffusion phase transitions at sharp interfaces in binary alloys, the interface is treated as an independent unknown boundary, and there are local equilibrium composition jumps at the interface. Its mathematical structure and numerical challenges differ from those of phase-field methods. Therefore, there is an urgent need to establish a physical information neural network computational method for diffusion phase transitions at sharp interfaces, ensuring consistent physical constraints between the moving interface position, the two-phase composition fields, and the actual solution domain. Summary of the Invention
[0008] The purpose of this invention is to provide a method for calculating the diffusion phase transition at sharp interfaces based on a physical information neural network, so as to solve the problems existing in the above-mentioned background technology when using ordinary physical information neural networks to solve the diffusion phase transition at moving boundaries.
[0009] To achieve the above objectives, this invention provides a method for calculating sharp interface diffusion phase transitions based on a physical information neural network, comprising the following steps:
[0010] S1. Obtain the calculation parameters of the binary two-phase diffusion phase transition system, and make the calculation parameters include the boundary position, initial interface position, two-phase diffusion coefficient, equilibrium components on both sides of the interface, initial component distribution, boundary conditions, and calculation time.
[0011] S2. Introduce a fixed reference length and use the fixed reference length to make the physical coordinates, time and interface position dimensionless, establish a dimensionless diffusion equation and Stefan condition, and thus obtain dimensionless coordinates, dimensionless time, dimensionless interface position, two-phase Fourier number and Stefan coefficient.
[0012] S3. Based on the dimensionless diffusion equation, establish arbitrary Lagrange-Euler moving coordinates on both sides of the interface, so that the moving interface is located at the origin in the local coordinates on both sides.
[0013] S4. Introduce the square root time variable and transform the two-sided diffusion equation and Stefan condition into two-sided diffusion residual equation and Stefan condition residual equation with respect to the square root time variable, respectively.
[0014] S5. Construct an interface location neural network and a two-sided component neural network, and use them to predict the interface location and the two-sided component fields, respectively.
[0015] S6. Generate sampling points within the standard sampling interval, and map the sampling points to the actual moving coordinate interval of the component fields on both sides according to the interface position output by the interface position neural network, so that the distribution of sampling points is dynamically updated with the interface position.
[0016] S7. Calculate the derivative of the component neural network with respect to the square root time variable and the moving coordinate, and correct the derivative based on the change of the sampling point position with the interface position, so as to obtain the time partial derivative under the fixed moving coordinate.
[0017] S8. Divide the range of values of the square root time variable into multiple time sub-intervals arranged in chronological order, and construct time causal loss weights based on the residual loss of the preceding time sub-intervals.
[0018] S9. A total loss function is constructed based on the residuals of the two-sided diffusion equation, the interface equilibrium residual, the boundary condition residual, the Stefan condition residual, the initial condition residual, and the time causal loss. The interface migration curve and the two-phase component distribution are then output by training the interface position neural network and the two-sided component neural network.
[0019] Preferably, in step S2, a fixed reference length is used in formula 1 to make the physical coordinates, time and interface position dimensionless respectively;
[0020] (Formula 1)
[0021] in, Indicates a fixed reference length; Indicates reference time; Represents dimensionless coordinates; Indicates dimensionless time; Indicates the position of a dimensionless phase interface; Represents dimensional physical coordinates; This represents real time with dimensions.
[0022] Preferably, in step S3, the left phase shift coordinates are defined using formulas 2 and 3 respectively. Right phase shift coordinates ;
[0023] (Formula 2)
[0024] (Formula 3)
[0025] in, Representing the square root time variable The position of the dimensionless interface below; Represents dimensionless coordinates.
[0026] Preferably, in step S4, the square root time variable is calculated using Formula 4. ;
[0027] (Formula 4)
[0028] in, This represents dimensionless time.
[0029] Preferably, in step S5, a bounded output form is used to construct the interface position neural network in formula 5, so that the interface position is always between the left and right boundaries.
[0030] . (Formula 5)
[0031] in, The output of the neural network represents the interface position after constraints. Represents a bounded mapping function; Indicates the dimensionless left boundary; Indicates the dimensionless right boundary; This represents the output of the neural network at the unconstrained interface position.
[0032] Preferably, in step S6, the standard interval is set to [0,1], and a left-phase standard sampling variable is generated within the standard interval. and right-phase standard sampling variables And respectively, the intervals are mapped to the actual moving coordinates of the left and right phases using Formula 6 and Formula 7;
[0033] (Formula 6)
[0034] (Formula 7).
[0035] Preferably, in step S7, when correcting the derivative based on the change of the sampling point position with the interface position, the fixed moving coordinate time partial derivatives of the left phase component neural network and the right phase component neural network are calculated using formulas 8 and 9 respectively.
[0036] (Formula 8)
[0037] (Formula 9)
[0038] in, This represents the time partial derivative of the left-phase component neural network; Represents the left phase field variable For the square root time variable The total derivative; Represents the left phase field variable Left phase shift coordinates The first-order partial derivative on; This represents the time partial derivative of a right-phase component neural network; Represents the right-phase field variable For the square root time variable The total derivative; Represents the right-phase field variable Right phase shift coordinates The first-order partial derivative on; This represents the rate of change of the interface position relative to the square root of the time variable.
[0039] Preferably, in step S9, the total loss function includes the residual loss of the left-phase diffusion equation, the residual loss of the right-phase diffusion equation, the interface equilibrium residual loss, the boundary condition residual loss, the Stefan condition residual loss, the initial condition residual loss, and the time causality loss.
[0040] Preferably, Formula 10 and Formula 11 are used to calculate the residuals of the left-phase diffusion equation and the right-phase diffusion equation, respectively.
[0041] (Formula 10)
[0042] (Formula 11)
[0043] in, Represents the residual of the left-phase diffusion equation; Represents the left phase field variable Left phase shift coordinates Second-order partial derivatives on; This represents the dimensionless diffusion coefficient of the left phase. This represents the residual of the right-phase diffusion equation; Represents the right-phase field variable Right phase shift coordinates Second-order partial derivatives on; This represents the dimensionless diffusion coefficient of the right phase.
[0044] Equation 12 is defined as the Stefan conditional residual equation, and the Stefan conditional residual is calculated.
[0045] (Formula 12)
[0046] in, Represents the Stefan conditional residual; This represents the dimensionless interface flux coefficient of the left phase; Represents the left phase field variable In the interface The first partial derivative with respect to the left phase shift coordinate; This represents the dimensionless interface flux coefficient of the right phase; Represents the right-phase field variable In the interface The first-order partial derivative with respect to the right phase shift coordinate.
[0047] Preferably, in step S8, the method for constructing the temporal causality loss weights includes the following steps:
[0048] S81. Divide the range of values for the square root time variable into time-ordered intervals. Each time sub-interval;
[0049] S82. Calculate the residual loss of the evolution equation in each time sub-interval using Formula 13;
[0050] (Formula 13)
[0051] in, Indicates the first Evolution equation residual loss within each time sub-interval; This represents the residual loss of the left-phase diffusion equation within that time sub-interval; This represents the residual loss of the right-phase diffusion equation within that time sub-interval; This represents the Stefan conditional residual loss within that time sub-interval;
[0052] S83. Based on the residual loss of the preceding time sub-interval, construct the time causal weight using Formula 14;
[0053]
[0054] (Formula 14)
[0055] in, Indicates the first The temporal causal weights corresponding to each time sub-interval; This represents the causal weighting adjustment parameter; Indicates the first Residual loss in each time sub-interval Apply a stopping gradient operation, i.e., preserve the gradient when calculating causal weights. The value is not backpropagated through this item; the time causality loss is defined as... .
[0056] By adopting the above technical solution, the present invention has the following beneficial effects:
[0057] 1) This invention addresses the problem of diffusion phase transition at sharp interfaces in binary two-phase systems. It treats the position of the moving interface as an independent unknown function and represents the component fields on both sides of the interface by two component neural networks, which can directly describe the component discontinuity and interface migration behavior at the interface.
[0058] 2) This invention adopts a fixed reference length dimensionless method, which separates the Fourier number and Stefan coefficient from the computational domain length, thereby improving the consistency of model parameters under different diffusion couple sizes and different computational domain settings.
[0059] 3) This invention introduces the square root time variable. By explicitly incorporating the square root time feature of the diffusion-controlled interface migration into the network input and residual equations, it is beneficial to alleviate the training difficulties caused by the large interface velocity at the initial moment.
[0060] 4) This invention determines the actual solution intervals of the left and right phases and generates sampling points based on the interface position, so that the interface position not only participates in the Stefan condition residual, but also participates in the constraint of the actual domain length of the two-phase diffusion equation, thereby enhancing the physical consistency between the moving interface, the component field and the solution domain.
[0061] 5) This invention corrects for time partial derivatives to prevent the total time derivative obtained by automatic differentiation when the sampling point position changes with the interface position from being misused as the time partial derivative under fixed moving coordinates, thereby maintaining the correct mathematical meaning of the diffusion equation residual.
[0062] 6) This invention introduces temporal causality loss, which weights the time domain residuals according to time order. This can avoid the problem that the network prioritizes fitting the later time period and ignores the physical constraints of the earlier time period, thus improving the consistency of the time progression of interface migration and component field evolution.
[0063] 7) By constraining the interface position within the solution range through bounded output, this invention can reduce interface out-of-bounds phenomena, fluctuations in non-physical components, and training instability, thereby improving the stability and prediction accuracy of sharp interface diffusion phase transition calculation. Attached Figure Description
[0064] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used 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 those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0065] Figure 1 This is a flowchart illustrating a sharp interface diffusion phase transition calculation method based on a physical information neural network according to the present invention.
[0066] Figure 2 This is a schematic diagram of the physical model of the diffusion phase transition at a sharp interface between two binary phases in an embodiment of the present invention.
[0067] Figure 3 This is a schematic diagram of the interface position neural network, the left phase component neural network, and the right phase component neural network in an embodiment of the present invention.
[0068] Figure 4 This is a comparison diagram of the growth constant and analytical solution in an embodiment of the present invention.
[0069] Figure 5 This is a comparison diagram of the composition field of the Fe-Mo binary diffusion couple in the embodiments of the present invention and the experimental values.
[0070] Figure 6 This is a comparison diagram of the phase interface position of the Cu-Zn binary diffusion couple in the embodiments of the present invention and the experimental value. Detailed Implementation
[0071] The specific embodiments of the present invention will be further described below with reference to the accompanying drawings. It should be noted that these descriptions are for the purpose of aiding understanding the present invention, but do not constitute a limitation thereof. Furthermore, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0072] Please see Figures 1 to 6 As shown, this embodiment of the invention provides a method for calculating sharp interface diffusion phase transitions based on a physical information neural network, including the following steps:
[0073] S1. Obtain the calculation parameters of the binary two-phase diffusion phase transition system, and make the calculation parameters include the boundary position (including the left boundary position and the right boundary position), the initial interface position, the two-phase diffusion coefficient, the equilibrium components on both sides of the interface, the initial component distribution, the boundary conditions, and the calculation time.
[0074] S2. Introduce a fixed reference length and use the fixed reference length to make the physical coordinates, time and interface position dimensionless, establish a dimensionless diffusion equation and Stefan condition, and thus obtain dimensionless coordinates, dimensionless time, dimensionless interface position, two-phase Fourier number and Stefan coefficient.
[0075] S3. Based on the dimensionless diffusion equation, establish arbitrary Lagrange-Euler moving coordinates on both sides of the interface, so that the moving interface is located at the origin in the local coordinates on both sides.
[0076] S4. Introduce the square root time variable and transform the two-sided diffusion equation and Stefan condition into two-sided diffusion residual equation and Stefan condition residual equation with respect to the square root time variable, respectively.
[0077] S5. Construct an interface location neural network and a two-sided component neural network, and use them to predict the interface location and the two-sided component fields, respectively.
[0078] S6. Generate sampling points within the standard sampling interval, and map the sampling points to the actual moving coordinate interval of the component fields on both sides according to the interface position output by the interface position neural network, so that the distribution of sampling points is dynamically updated with the interface position.
[0079] S7. Calculate the derivatives of the component neural network with respect to the square root time variable and the moving coordinates, and correct the derivatives based on the change of the sampling point position with the interface position, so as to obtain the time partial derivatives under the fixed moving coordinates.
[0080] S8. Divide the range of values of the square root time variable into multiple time sub-intervals arranged in chronological order, and construct time causal loss weights based on the residual loss of the preceding time sub-intervals.
[0081] S9. A total loss function is constructed based on the residuals of the two-sided diffusion equation, the interface equilibrium residual, the boundary condition residual, the Stefan condition residual, the initial condition residual, and the time causal loss. The interface migration curve and the two-phase component distribution are then output by training the interface position neural network and the two-sided component neural network.
[0082] Furthermore, in step S2, the physical coordinates, time, and interface position are dimensionless using a fixed reference length in Formula 1 to obtain dimensionless coordinates, dimensionless time, dimensionless interface position, two-phase Fourier number, and Stefan coefficient.
[0083] (Formula 1)
[0084] in, Indicates a fixed reference length; Indicates reference time; Represents dimensionless coordinates; Indicates dimensionless time; Indicates the position of a dimensionless phase interface; Represents dimensional physical coordinates; This represents dimensionless real time. The dimensionless positions of the left and right boundaries are:
[0085] in, Indicates the dimensionless left boundary; This represents the dimensionless physical coordinates of the left boundary. Indicates the dimensionless right boundary; This represents the dimensionless physical coordinates of the right boundary. Preferably, the two-phase Fourier number and Stefan coefficient are defined as follows:
[0086]
[0087]
[0088] because For a fixed reference length, unlike the computational domain length, the computational domain length is determined by... and Enter the model separately. , , , It does not change with the length of the computation region.
[0089] Furthermore, in step S3, the left phase shift coordinates are defined using formulas 2 and 3 respectively. Right phase shift coordinates ;
[0090] (Formula 2)
[0091] (Formula 3)
[0092] in, Representing the square root time variable The dimensionless interface position below.
[0093] Furthermore, in step S4, the square root time variable is calculated using formula 4. ;
[0094] . (Formula 4)
[0095] Furthermore, in step S5, a bounded output form is used to construct the interface position neural network in formula 5, so that the interface position is always located between the left and right boundaries.
[0096] . (Formula 5)
[0097] in, The output of the neural network represents the interface position after constraints. Represents a bounded mapping function; Indicates the dimensionless left boundary; Indicates the dimensionless right boundary; This represents the output of the neural network at the unconstrained interface position.
[0098] Furthermore, in step S6, the standard interval is set to [0,1], and a left-phase standard sampling variable is generated within the standard interval. and right-phase standard sampling variables And respectively, the intervals are mapped to the actual moving coordinates of the left and right phases using Formula 6 and Formula 7;
[0099] (Formula 6)
[0100] . (Formula 7)
[0101] Furthermore, in step S7, when correcting the derivative based on the change of the sampling point position with the interface position, the fixed moving coordinate time partial derivatives of the left phase component neural network and the right phase component neural network are calculated using formulas 7 and 8 respectively.
[0102] (Formula 8)
[0103] (Formula 9)
[0104] in, This represents the time partial derivative of the left-phase component neural network; Represents the left phase field variable For the square root time variable The total derivative; Represents the left phase field variable Left phase shift coordinates The first-order partial derivative on; This represents the time partial derivative of a right-phase component neural network; Represents the right-phase field variable For the square root time variable The total derivative; Represents the right-phase field variable Right phase shift coordinates The first-order partial derivative on; This represents the rate of change of the interface position relative to the square root of the time variable.
[0105] Furthermore, in step S9, the total loss function includes the residual loss of the left-phase diffusion equation, the residual loss of the right-phase diffusion equation, the interface equilibrium residual loss, the boundary condition residual loss, the Stefan condition residual loss, the initial condition residual loss, and the time causality loss.
[0106] Preferably, Formula 10 and Formula 11 are used to calculate the residuals of the left-phase diffusion equation and the right-phase diffusion equation, respectively.
[0107] (Formula 10)
[0108] (Formula 11)
[0109] in, Represents the residual of the left-phase diffusion equation; Represents the left phase field variable Left phase shift coordinates Second-order partial derivatives on; This represents the dimensionless diffusion coefficient of the left phase. Represents the residual of the right-phase diffusion equation; Represents the right-phase field variable Right phase shift coordinates Second-order partial derivatives on; This represents the dimensionless diffusion coefficient of the right phase.
[0110] Equation 12 is defined as the Stefan conditional residual equation, and the Stefan conditional residual is calculated.
[0111] (Formula 12)
[0112] in, Represents the Stefan conditional residual; This represents the dimensionless interface flux coefficient of the left phase; Represents the left phase field variable In the interface The first partial derivative with respect to the left phase shift coordinate; This represents the dimensionless interface flux coefficient of the right phase; Represents the right-phase field variable In the interface The first-order partial derivative with respect to the right phase shift coordinate.
[0113] Furthermore, in step S8, the method for constructing the temporal causality loss weights includes the following steps:
[0114] S81, the square root time variable The value range is divided into time-ordered intervals. Each time sub-interval;
[0115] S82. Calculate the residual loss of the evolution equation in each time sub-interval using Formula 13;
[0116] (Formula 13)
[0117] in, Indicates the first Evolution equation residual loss within each time sub-interval; This represents the residual loss of the left-phase diffusion equation within that time sub-interval; This represents the residual loss of the right-phase diffusion equation within that time sub-interval; This represents the Stefan conditional residual loss within that time sub-interval;
[0118] S83. Based on the residual loss of the preceding time sub-interval, construct the time causal weight using Formula 14;
[0119]
[0120] (Formula 14)
[0121] in, Indicates the first The temporal causal weights corresponding to each time sub-interval; This represents the causal weighting adjustment parameter; Indicates the first Residual loss in each time sub-interval Apply a stopping gradient operation, i.e., preserve the gradient when calculating causal weights. The value is not backpropagated through this item; the time causality loss is defined as... Thus, we obtain the temporal causality loss, and the total loss function including the temporal causality loss can be written as:
[0122]
[0123] in, Indicates loss of causal relationship over time; This represents the interface balance residual loss; This represents the residual loss due to boundary conditions. This represents the initial condition residual loss; , , , These are the corresponding weights. During training, the Adam optimizer can be used for pre-training, followed by fine-tuning using the L-BFGS optimizer. Alternatively, adaptive loss weights, residual resampling, denser sampling near the interface, or gradual adjustment of causal weight parameters can be used to improve training stability. After training, the dimensionless variables are inversely transformed to physical coordinates and physical time to obtain the interface migration curve. and the distribution of two-phase components and .
[0124] It should be noted that: 1) Regarding the physical model, let the physical coordinate be z, the time be t, and the position of the moving interface be... Left side Phase region is right side Phase region is In a binary two-phase diffusion phase transition problem, the left and right phases respectively satisfy the diffusion equations:
[0125]
[0126] in, and These represent the component fields in the left and right phases, respectively. and Let represent the diffusion coefficients in the left and right phases, respectively. Under the sharp interface assumption, local equilibrium conditions are satisfied on both sides of the interface:
[0127]
[0128] The left and right boundaries can be set to zero flux, fixed composition, or other boundary conditions according to the actual situation. Taking zero flux as an example:
[0129]
[0130] The interface motion is given by the Stefan condition:
[0131]
[0132] 2) Regarding arbitrary Lagrange-Euler translation coordinates on both sides, in order to keep the moving interface fixed on the left side of the layout, arbitrary Lagrange-Euler translation coordinates are defined for the regions on both sides respectively:
[0133]
[0134] Therefore, the left and right phase areas respectively become and Mobile interface always corresponds and Define the left-phase component function as follows: The right-phase component function is By the chain rule, the two-sided diffusion equation in the form of a moving coordinate system can be obtained:
[0135]
[0136] The interface balance condition is: and The boundary conditions are: and The Stefan condition becomes:
[0137]
[0138] 3) Regarding the square root time variable, since the interface migration of the diffusion aperture dragon typically has: The characteristics make and define and Then, from: Therefore, the residuals of the left-phase diffusion equation, the right-phase diffusion equation, and the Stefan conditional residuals applicable to the physical information upgrade network can be obtained as follows:
[0139]
[0140] 4) Regarding the construction of the neural network, in this embodiment, three fully connected neural networks are constructed: a phase boundary location neural network. Left-phase component neural network and right-phase component neural network The network can adopt a multilayer perceptron structure, and the activation functions of the hidden layers can be Tanh, Sin, Swish, or other smooth activation functions. The network parameters can be initialized using Xavier. To prevent the neural network prediction results of the phase boundary position from exceeding the computational region, a bounded output form is preferred, i.e., Equation 5 above. For problems with known phase boundary migration directions, narrower upper and lower sections can be set according to physical constraints. To strictly satisfy the initial phase boundary position, a hard constraint form can also be used.
[0141]
[0142] in, Denotes a bounded or restricted function, such that Similarly, component neural networks can also satisfy the initial component distribution through initial value embedding.
[0143] The present invention will be described in detail below through specific embodiments and corresponding input parameters:
[0144] Example 1: Analytical Solution Example
[0145] This embodiment is a binary diffusion phase transition problem with analytical solutions, for different degrees of supersaturation. The growth constant can be obtained by solving the following formula. Analytical solution:
[0146]
[0147] in,
[0148] in, represent The initial value of the phase, and in this embodiment initial value and equilibrium component same.
[0149] Furthermore, the input parameters for this embodiment are determined as follows: left boundary position. Right boundary position Left-phase diffusion coefficient Right-phase diffusion coefficient Interface balance components and The values are 0.2 and 0.8 respectively; the initial components are set as step functions: the initial component of the left phase is 0.2, and the initial component of the right phase is... According to different supersaturation Settings (refer to Table 1); total simulation time 10s; after training, based on each output of the model... Corresponding phase interface displacement Through formula The corresponding growth constant can be obtained. .
[0150]
[0151] As shown in the figure, in supersaturation Within the range, the predicted growth parameters With exact solution The good consistency indicates that the established training framework, which includes dimensionless scaling, moving coordinates, square root time variables, Stefan conditional residuals, sampling point updates, and time causality loss, can accurately and stably describe the migration law of the diffusion control interface.
[0152] Example 2: Fe-Mo binary diffusion couple calculation example
[0153] This embodiment uses a Fe-Mo binary diffusion couple as the object, and the input parameters are as follows: left boundary position. Right boundary position Initial interface location Left-phase diffusion coefficient Right-phase diffusion coefficient Interface balance components and The initial components are 0.016 and 0.021 respectively; the initial components are set as a step function: the initial components for the left phase and right phase are 0.00001 and 0.0075 respectively; the total simulation time is 259200s. After training, the distribution of Mo components output by the model is as follows: Figure 5 As shown, the predicted component distribution matches the experimental data well, which means that this embodiment verifies the applicability of the present invention in practical binary diffusion couple problems.
[0154] Example 3: Cu-Zn binary diffusion couple calculation example
[0155] This embodiment uses a Cu-Zn binary diffusion couple as the object, and the input parameters are as follows: left boundary position. Right boundary position Initial interface location Left-phase diffusion coefficient Right-phase diffusion coefficient Interface balance components and The initial components are 0.324 and 0.372 respectively; the initial components are set as step functions: the initial components for the left and right phases are 0.291 and 0.394 respectively; the total simulation time is 300,000 s. After training, the change in the output phase interface position over time is as follows: Figure 6As shown, the predicted phase interface position matches the experimental data well, which means that this embodiment verifies that it is not only applicable to the monotonically advancing interface migration problem, but also to the calculation of binary diffusion phase transition with complex interface migration characteristics.
[0156] It should be noted that, for different boundary conditions, the zero-flux boundary can be replaced with a fixed-component boundary or a mixed boundary; for concentration-dependent diffusion coefficients, the zero-flux boundary can be replaced with a fixed-component boundary or a mixed boundary. and The parameters are set as functions of composition and temperature. Preferably, the neural network structure, optimization algorithm, sampling strategy, loss weight and causal weight adjustment parameters can be adjusted according to the specific system. For example, Fourier feature encoding, multi-scale neural network, residual network, adaptive sampling or encrypted sampling near the interface can be used to further improve the expressive power of the steep gradient component field near the interface.
[0157] The embodiments of the present invention have been described in detail above with reference to the accompanying drawings, but the present invention is not limited to the described embodiments. For those skilled in the art, various changes, modifications, substitutions, and variations can be made to these embodiments without departing from the principles and spirit of the present invention, and these variations still fall within the protection scope of the present invention.
Claims
1. A method for calculating sharp interface diffusion phase transitions based on physical information neural networks, characterized in that, Includes the following steps: S1. Obtain the calculation parameters of the binary two-phase diffusion phase transition system, and make the calculation parameters include the boundary position, initial interface position, two-phase diffusion coefficient, equilibrium components on both sides of the interface, initial component distribution, boundary conditions, and calculation time. S2. Introduce a fixed reference length and use the fixed reference length to make the physical coordinates, time and interface position dimensionless, establish a dimensionless diffusion equation and Stefan condition, and thus obtain dimensionless coordinates, dimensionless time, dimensionless interface position, two-phase Fourier number and Stefan coefficient. S3. Based on the dimensionless diffusion equation, establish arbitrary Lagrange-Euler moving coordinates on both sides of the interface, so that the moving interface is located at the origin in the local coordinates on both sides. S4. Introduce the square root time variable and transform the two-sided diffusion equation and Stefan condition into two-sided diffusion residual equation and Stefan condition residual equation with respect to the square root time variable, respectively. S5. Construct an interface location neural network and a two-sided component neural network, and use them to predict the interface location and the two-sided component fields, respectively. S6. Generate sampling points within the standard sampling interval, and map the sampling points to the actual moving coordinate interval of the component fields on both sides according to the interface position output by the interface position neural network, so that the distribution of sampling points is dynamically updated with the interface position. S7. Calculate the derivative of the component neural network with respect to the square root time variable and the moving coordinate, and correct the derivative based on the change of the sampling point position with the interface position, so as to obtain the time partial derivative under the fixed moving coordinate. S8. Divide the range of values of the square root time variable into multiple time sub-intervals arranged in chronological order, and construct time causal loss weights based on the residual loss of the preceding time sub-intervals. S9. A total loss function is constructed based on the residuals of the two-sided diffusion equation, the interface equilibrium residual, the boundary condition residual, the Stefan condition residual, the initial condition residual, and the time causal loss. The interface migration curve and the two-phase component distribution are then output by training the interface position neural network and the two-sided component neural network.
2. The method for calculating sharp interface diffusion phase transition based on a physical information neural network as described in claim 1, characterized in that, In step S2, a fixed reference length is used in formula 1 to make the physical coordinates, time and interface position dimensionless respectively; (Official 1) in, Indicates a fixed reference length; Indicates reference time; Represents dimensionless coordinates; Indicates dimensionless time; Indicates the position of a dimensionless phase interface; Represents dimensional physical coordinates; This represents real time with dimensions.
3. The method for calculating sharp interface diffusion phase transition based on a physical information neural network as described in claim 1, characterized in that, In step S3, the left phase shift coordinates are defined using formulas 2 and 3 respectively. Right phase shift coordinates ; (Official 2) (Official 3) in, Representing the square root time variable The position of the dimensionless interface below; This represents dimensionless coordinates.
4. The method for calculating sharp interface diffusion phase transition based on a physical information neural network as described in claim 3, characterized in that, In step S4, the square root time variable is calculated using formula 4. ; (Official 4) in, This represents dimensionless time.
5. The method for calculating sharp interface diffusion phase transition based on a physical information neural network as described in claim 4, characterized in that, In step S5, a bounded output form is used to construct the interface position neural network in formula 5, so that the interface position is always between the left and right boundaries. (Official 5) in, The output of the neural network represents the interface position after constraints. Represents a bounded mapping function; Indicates the dimensionless left boundary; Indicates the dimensionless right boundary; This represents the output of the neural network at the unconstrained interface position.
6. The method for calculating sharp interface diffusion phase transition based on a physical information neural network as described in claim 5, characterized in that, In step S6, the standard interval is set to [0,1], and a left-phase standard sampling variable is generated within the standard interval. and right-phase standard sampling variables And respectively, the intervals are solved by mapping the actual moving coordinates of the left and right phases using Formula 6 and Formula 7; (Official 6) (Official 7).
7. The method for calculating sharp interface diffusion phase transition based on a physical information neural network as described in claim 6, characterized in that, In step S7, when correcting the derivative based on the change of the sampling point position with the interface position, the fixed moving coordinate time partial derivatives of the left phase component neural network and the right phase component neural network are calculated using formulas 8 and 9 respectively. (Official 8) (Official 9) in, This represents the time partial derivative of the left-phase component neural network; Represents the left phase field variable For the square root time variable The total derivative; Represents the left phase field variable Left phase shift coordinates The first-order partial derivative on; This represents the time partial derivative of a right-phase component neural network; Represents the right-phase field variable For the square root time variable The total derivative; Represents the right-phase field variable Right phase shift coordinates The first-order partial derivative on; This represents the rate of change of the interface position relative to the square root of the time variable.
8. In the sharp interface diffusion phase transition calculation method based on physical information neural network as described in claim 7, in step S9, the total loss function includes the left-phase diffusion equation residual loss, the right-phase diffusion equation residual loss, the interface equilibrium residual loss, the boundary condition residual loss, the Stefan condition residual loss, the initial condition residual loss, and the time causality loss.
9. The sharp interface diffusion phase transition calculation method based on physical information neural network as described in claim 8, using formulas 10 and 11 to calculate the residuals of the left-phase diffusion equation and the right-phase diffusion equation, respectively; (Official 10) (Official 11) in, Represents the residual of the left-phase diffusion equation; Represents the left phase field variable Left phase shift coordinates Second-order partial derivatives on; This represents the dimensionless diffusion coefficient of the left phase. Represents the residual of the right-phase diffusion equation; Represents the right-phase field variable Right phase shift coordinates Second-order partial derivatives on; This represents the dimensionless diffusion coefficient of the right phase. Equation 12 is defined as the Stefan conditional residual equation, and the Stefan conditional residual is calculated. (Official 12) in, Represents the Stefan conditional residual; This represents the dimensionless interface flux coefficient of the left phase; Represents the left phase field variable In the interface The first partial derivative with respect to the left phase shift coordinate; This represents the dimensionless interface flux coefficient of the right phase; Represents the right-phase field variable In the interface The first-order partial derivative with respect to the right phase shift coordinate.
10. The method for calculating sharp interface diffusion phase transition based on a physical information neural network as described in claim 1, wherein step S8, the method for constructing the time-causal loss weight includes the following steps: S81. Divide the range of values for the square root time variable into time-ordered intervals. Each time sub-interval; S82. Calculate the residual loss of the evolution equation in each time sub-interval using Formula 13; (Official 13) in, Indicates the first Evolution equation residual loss within each time sub-interval; This represents the residual loss of the left-phase diffusion equation within that time sub-interval; This represents the residual loss of the right-phase diffusion equation within that time sub-interval; This represents the Stefan conditional residual loss within that time sub-interval; S83. Based on the residual loss of the preceding time sub-interval, construct the time causal weight using Formula 14; (Official 14) in, Indicates the first The temporal causal weights corresponding to each time sub-interval; This represents the causal weighting adjustment parameter; Indicates the first Residual loss in each time sub-interval Apply a stopping gradient operation, i.e., preserve the gradient when calculating causal weights. The value is not backpropagated through this item; the time causality loss is defined as... .
Citation Information
Patent Citations
Distributed computing power scheduling method and system
CN121008911A
Apparatus And Method For Tag Mapping With Industrial Machines
US20180129714A1
