A simulation method for two-dimensional transient temperature field based on PINN
By constructing a two-dimensional transient temperature field model based on PINN and combining the physical residuals of heat conduction with observational data, the instability problem of temperature field simulation under limited observation conditions is solved, and continuous prediction and reliable quantification of the temperature field are realized. This model is suitable for simulation and state analysis of heat conduction processes.
Patent Information
- Application Number
- CN202611101158.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-23
- Publication Date
- 2026-11-27
AI Technical Summary
Existing temperature field simulation methods struggle to integrate the physical constraints of heat conduction with observational data under conditions of limited, sparse, or noisy observations, and lack credibility representation, leading to unstable and inconsistent prediction results.
A two-dimensional transient temperature field model is constructed using a Physical Information Neural Network (PINN). A composite loss function is constructed using the physical residuals of heat conduction, initial conditions, boundary conditions, and observation data to train the network parameters and output continuous temperature field simulation results. Furthermore, an approximate distribution of parameters is constructed using the network parameter trajectory, providing reliable quantifications such as the predicted mean, standard deviation, and interval.
Under conditions of limited observation, noisy or sparse observation, continuous prediction and reliable quantification of two-dimensional transient temperature fields are achieved, improving the physical consistency and reliability of simulation results, and making it suitable for simulation and state analysis of industrial heat transfer processes.
Smart Images

Figure CN123179869A_ABST
Abstract
Description
Technical Field
[0001] This application relates to a simulation method for a two-dimensional transient temperature field based on PINN, belonging to the field of electrical digital data processing technology based on neural networks. Background Technology
[0002] Two-dimensional transient temperature fields are widely used in heat conduction analysis, simulation of thermal processes in materials processing, thermal state assessment, and engineering simulation calculations. The temperature field varies with spatial location and time, and its distribution characteristics can reflect heat transfer, diffusion processes, and changes in local thermal state. Therefore, establishing simulation methods capable of describing the continuous variation of two-dimensional transient temperature fields is of great significance for thermal process analysis and subsequent parameter evaluation.
[0003] Existing temperature field simulation methods typically employ numerical methods such as the finite difference method, finite element method, or finite volume method. When the heat conduction governing equations, initial conditions, boundary conditions, and mesh generation are relatively complete, these methods can obtain relatively stable numerical simulation results. However, under conditions of limited, sparse, or noisy observations, traditional numerical methods struggle to directly integrate limited observation data with the physical constraints of heat conduction, and also find it difficult to form a temperature field prediction model that facilitates continuous querying. With the development of artificial intelligence methods, neural network models have been used for temperature field prediction and physical field approximation. Pure data-driven neural networks can learn the mapping relationship between coordinate variables and temperature values from sample data, but their prediction results mainly depend on the distribution of observation samples and data quality. When the amount of observation data is limited, the observation locations are sparse, or the observation values contain noise, pure data-driven models are prone to problems such as extrapolation instability, prediction offsets near the boundaries, or inconsistencies with the laws of heat conduction.
[0004] Physics-Informed Neural Networks (PINNs) can incorporate partial differential equation residuals, initial conditions, boundary conditions, and observational data into the neural network training process, providing a new technical approach for two-dimensional transient temperature field simulation. This type of method can supplement data constraints with physical constraints under limited observation conditions, ensuring that the model is still constrained by heat conduction laws in unobserved regions. However, conventional deterministic PINNs typically output only a single temperature prediction, lacking confidence expressions such as prediction standard deviation, prediction interval, and interval coverage. When the observational data is noisy or the observation locations are sparse, a single-point prediction is insufficient to reflect the degree of fluctuation in prediction results across different regions.
[0005] Therefore, there is an urgent need to provide a simulation and reliable measurement method for two-dimensional transient temperature fields. Summary of the Invention
[0006] In view of this, this application provides a simulation method for two-dimensional transient temperature fields based on PINN, which can integrate physical constraints of heat conduction, initial conditions, boundary conditions and limited observation temperature data, and further construct and sample prediction of parameter approximate distribution based on network parameter trajectory. Thus, while outputting continuous temperature field simulation results, it provides reliable quantitative results such as prediction mean, prediction standard deviation and prediction interval, realizing the simulation and reliable measurement of two-dimensional transient temperature fields. It is suitable for situations where the temperature field is difficult to measure completely, the observation points are limited, the observation data is noisy or spatially sparse in industrial heat conduction process simulation and state analysis. Under the conditions of limited observation, noisy observation or sparse observation, it can predict the two-dimensional transient heat conduction temperature field and output reliable quantitative information.
[0007] Specifically, this application is implemented through the following scheme: A simulation method for a two-dimensional transient temperature field based on PINN is described below: Step 1: Obtain the computational domain information, spatial-temporal coordinate information, heat conduction control equations, initial conditions, boundary conditions, and finite observation temperature data for the two-dimensional transient temperature field to be simulated. D d ; Step 2: Construct a physical information neural network model. The physical information neural network model takes the coordinate variable ξ as input and the temperature prediction value at the corresponding position and time as output, and establishes a mapping relationship between continuous coordinates and temperature values. Step 3: Calculate the derivative of the predicted temperature value with respect to the spatial-temporal coordinate variables based on automatic differentiation, and construct the physical residual of heat conduction; Step four: Construct a composite loss function by combining the physical residuals of heat conduction, initial conditions, boundary conditions, and observed temperature data. Train the physical information neural network model with the goal of minimizing the composite loss function to obtain the network parameters after training. i * satisfy: i * =arg min θ L ( i ),Depend on i * The deterministic physical information neural network model is a deterministic temperature field simulation model. The coordinates to be predicted are input into the deterministic temperature field simulation model, which outputs continuous simulation results of the two-dimensional transient temperature field. .
[0008] To address the shortcomings of existing two-dimensional transient temperature field simulation methods, such as difficulty in simultaneously integrating physical constraints and observational data under conditions of limited, sparse, or noisy observations, and the lack of credibility representation, the aforementioned approach proposes a two-dimensional transient temperature field simulation and credibility measurement method based on a physical information neural network. This method takes the two-dimensional transient heat conduction temperature field as the object, acquiring computational domain information, spatial-temporal coordinate information, heat conduction control equations, initial conditions, boundary conditions, and limited observational temperature data. It then constructs a physical information neural network model with spatial-temporal coordinates as input and temperature prediction as output. Through automatic differentiation, it constructs the physical residual of heat conduction and, combined with the initial conditions, boundary conditions, and observational data, constructs a composite loss function to train a deterministic temperature field simulation model.
[0009] Furthermore, as a preferred option: In step one, For temperature information obtained under limited observation conditions, the coordinates of the observation points and their corresponding temperature values are organized into a limited observation temperature dataset, i.e., limited observation temperature data. D d ,satisfy: .
[0010] ξ i Indicates the first i The coordinate variables of each observation point; Indicates the first i The observed temperature values corresponding to each observation point; N d This indicates the number of observation points.
[0011] When constructing a finite observation sample, the finite observation temperature data D d From the reference temperature field T ref The data was extracted and the coordinates of the observation points and their corresponding temperature values were combined to form a finite observation temperature data set. D d .
[0012] The reference temperature field T ref For analyzing the temperature field, at least one of the following: a numerical reference temperature field generated by the finite difference method.
[0013] When it is necessary to simulate observational disturbances, i.e., the limited observed temperature data D d When the constructed scenario uses a noisy observation scenario, the observation noise is superimposed on the corresponding reference temperature value to obtain noisy observation temperature data: .
[0014] The observation noise satisfies: .
[0015] When it is necessary to simulate sparse observation conditions, i.e., the finite observation temperature data D d When constructing a sparse observation scenario, the number of observation points should be reduced during the construction process. N d By changing the spatial distribution or spatiotemporal distribution of observation points, sparse observation temperature data can be obtained.
[0016] In step two, A unified model is used to simulate the two-dimensional transient temperature field. Let the two-dimensional spatial computational domain be Ω, and the time interval be [0, ...]. t f The two constitute the spatiotemporal computation domain. To facilitate the unified expression of neural network mapping, physical residual calculation, and observation data constraints, two-dimensional spatial coordinates and time coordinates are combined into a space-time coordinate variable.
[0017] The coordinate variable ξ satisfies: ξ=( x,y,t )∈ , x , y Represents two-dimensional spatial coordinates; t Represents the time coordinate; Ω is the computational domain, a two-dimensional spatial computational domain; t f Indicates the end time; This represents the spatiotemporal computational domain corresponding to the two-dimensional transient temperature field. =Ω×[0, t f ].
[0018] The coordinate variable ξ of the two-dimensional transient heat conduction temperature field can be further written as ξ=( x,y,t ), ( x, y )∈Ω, t ∈[0, t f ].
[0019] The physical information neural network model is a multi-layer differentiable feedforward neural network, and its mapping relationship is expressed as follows: T θ (ξ)= W L F ( W L-1 F (… F ( W 1 ξ+ b 1 )+ b L-1 ) + bL ; W L , b L They represent the first L Layer weight matrix and bias vector; F (·) represents the activation function; L This indicates the number of network layers. Since the network is differentiable with respect to the input coordinates, it is possible to obtain the first and second derivatives of the temperature prediction with respect to spatial and temporal coordinates using automatic differentiation.
[0020] In step three, physical residuals are constructed based on the heat conduction control equations. For general forms of heat conduction constraints, the differential operators corresponding to the control equations can be applied to the neural network output and compared with the source terms or equivalent source terms to obtain the physical residuals.
[0021] The physical residual of heat conduction satisfies: r θ (ξ)= N[ T θ ] (ξ)- s (ξ), N[·] represents the differential operator corresponding to the heat conduction governing equation. i For network parameters, T θ This is the output of the physical information neural network model. s (ξ) represents the source term or equivalent source term. When there is no source term, ... s (ξ)=0.
[0022] For the two-dimensional transient heat conduction temperature field, the physical residual can be further obtained from the two-dimensional transient heat conduction governing equations: , r θ ( x,y,t ) represents the physical residual; T θ ( x,y,t ) represents the temperature prediction output by the physical information neural network model; α represents the thermal diffusivity coefficient. This physical residual is used to measure the degree to which the network's predicted temperature field satisfies the heat conduction control equation.
[0023] In step four: Based on the physical residuals at the residual sampling points within the computational domain, the physical residual loss is constructed as follows: .
[0024] The initial condition loss is constructed based on the deviation between the predicted temperature value at the initial condition sampling point and the initial temperature distribution: .
[0025] Boundary condition loss is constructed based on the deviation between the predicted temperature, temperature derivative, or heat transfer relationship at the boundary sampling points and the boundary conditions: .
[0026] The observation data loss is constructed based on the deviation between the predicted temperature value at the observation point and the limited observed temperature data: .
[0027] The above loss terms constitute a composite loss function, and the composite loss function L ( i )satisfy: L ( i )= l r L pde + l ic L ic + l bc L bc + l d L data .
[0028] in: N r 、N ic 、N bc 、N d These represent the number of residual sampling points, the number of initial condition sampling points, the number of boundary sampling points, and the number of observation points, respectively; B(·) represents the boundary operator; g (·) represents the given value corresponding to the boundary condition; L pde , L ic , L bc , L data These represent the physical residual loss, initial condition loss, boundary condition loss, and observation data loss, respectively. l r 、l ic 、l bc 、l d These represent the weighting coefficients corresponding to each loss.
[0029] The boundary condition is at least one of temperature boundary condition, heat flow boundary condition, or heat transfer boundary condition.
[0030] The boundary constraint of the temperature boundary condition is expressed as: B D [ T θ ]= T θ - T b .
[0031] The boundary constraints of the heat flow boundary conditions are expressed as follows: .
[0032] The boundary constraints of the heat transfer boundary conditions are expressed as follows: .
[0033] In the formula, T b Indicates a given boundary temperature; k Indicates thermal conductivity; This represents the temperature gradient along the normal direction outside the boundary. q b Represents a given heat flux density; h Indicates the heat transfer coefficient; T ∞ Indicates ambient temperature.
[0034] The process of training a physical information neural network model is as follows: S1: Select residual sampling points, boundary sampling points, initial condition sampling points, and observation points from the computational domain, boundary, initial time, and observation points, respectively; S2: Input the coordinate variables corresponding to the sampling points into the physical information neural network model, and calculate the physical residual loss, initial condition loss, boundary condition loss and observation data loss respectively; S3: Update the network parameters according to the composite loss function until the preset training termination condition is met; S4: The trained physical information neural network model is used as a deterministic temperature field simulation model to output continuous simulation results of the two-dimensional transient temperature field.
[0035] The continuous simulation process of the two-dimensional transient temperature field is as follows: S1: Construct a set of coordinates to be predicted, including at least one of the following: grid points within the computational domain, spatial points on a specified time slice, or sampling points on a specified cutoff line; S2: Input the set of coordinates to be predicted into the deterministic temperature field simulation model to obtain the corresponding temperature prediction values; S3: The continuous simulation results based on the temperature prediction values include at least one of the following: two-dimensional temperature field distribution, temperature field of a specified time slice, temperature distribution curve of a specified cross section, or error field. S4: With a reference temperature field, the continuous simulation results of the two-dimensional transient temperature field are compared with the reference temperature field. T ref By comparison, the simulation error index is obtained, which is the root mean square error. RMSE Mean absolute error MAE Relative L2 error RelL 2 Maximum absolute error, coefficient of determination R 2 At least one of them.
[0036] Root mean square error .
[0037] Mean Absolute Error .
[0038] Relative L2 error .
[0039] Coefficient of determination .
[0040] To further obtain reliable metrics for the simulation results, this invention, based on the deterministic temperature field simulation model, introduces a parameter approximation distribution construction and sampling prediction process based on network parameter trajectories. This allows for further output of reliable metrics: An approximate parameter distribution is constructed based on the network parameter trajectories; multiple sampling prediction models are formed through parameter sampling, resulting in multiple sampled temperature prediction results; and at least one of the prediction mean, prediction standard deviation, and prediction interval is calculated based on these multiple sampled temperature prediction results, thereby providing reliable metrics for the two-dimensional transient temperature field simulation results. More preferably, The above process can be specifically set up as follows: S1, Obtain the network parameter trajectory formed by the physical information neural network model during or after training, form the network parameter trajectory, and calculate the mean of the parameters: .
[0041] S2, calculate parameter covariance information based on the network parameter trajectory: , i k Indicates the first k The network parameters corresponding to each training time step K This indicates the number of network parameters collected.
[0042] S3, based on the network parameter trajectory, uses the random weighted average Gaussian method to construct an approximate distribution of network parameters. q ( i ), .
[0043] S4, from q ( i Multiple network parameter samples were obtained by sampling: i (s) ~ q ( i ), s =1, 2, 3, ... S ; i (s) For the first s One network parameter sample; S This represents the number of samples for the prediction model. Each network parameter sample... i (s) Loaded into a network corresponding to the physical information neural network model structure, forming a sampling prediction model. .
[0044] Each network parameter sample is loaded into a network corresponding to the physical information neural network model structure, forming multiple sampling prediction models. The same coordinate to be predicted is input into multiple sampling prediction models to obtain multiple sampled temperature prediction results, and the prediction mean and prediction standard deviation are calculated accordingly.
[0045] The formula for calculating the predicted mean is: .
[0046] The formula for calculating the predicted standard deviation is: .
[0047] A prediction interval is constructed based on the predicted mean and the predicted standard deviation; assuming the sampled prediction results approximately follow a normal distribution, the prediction interval at a 95% confidence level is expressed as follows: CI 95% (ξ)=[ µ (ξ)-1.96σ (ξ), µ (ξ)+ 1.96σ(ξ)].
[0048] Output at least one of the predicted mean, the predicted standard deviation, and the predicted interval as a reliable quantitative result of the continuous simulation of the two-dimensional transient heat conduction temperature field.
[0049] The output of the reliability metric also includes calculating the prediction interval coverage based on the reference temperature field and the prediction interval.
[0050] The predicted interval coverage is expressed as: , Represents the characteristic function.
[0051] To analyze the relationship between the confidence metric results and the degree of observational support, the distance from the predicted point to the nearest observation point can also be calculated: .
[0052] Based on the nearest observation distanced j and the predicted standard deviation σ j Calculate the correlation index, and / or separately calculate the average prediction standard deviation for the near observation area and the average prediction standard deviation for the far observation area: .
[0053] Where: ξ represents the coordinate to be predicted; S Indicates the number of sampling prediction models. Indicates the first s The sampled temperature prediction result output by the sampling prediction model at the coordinate ξ to be predicted; µ (ξ) represents the predicted mean; σ (ξ) represents the predicted standard deviation.
[0054] For the continuous temperature field simulated by the above method, the approximate distribution of parameters is constructed and sampled: the approximate distribution of parameters is constructed based on the network parameter trajectory, multiple sampling prediction models are formed through parameter sampling, and the prediction mean, prediction standard deviation and prediction interval are calculated to complete the output of the reliable measurement results of the two-dimensional transient temperature field.
[0055] Through the above technical solutions, this invention can integrate the heat conduction control equations, initial conditions, boundary conditions, and observation data into the training process of a physical information neural network model under conditions of limited observation, noisy observation, or sparse observation. This enables continuous prediction of two-dimensional transient temperature fields, analysis of temperature fields at specified times, and querying of local temperature distributions. Furthermore, it outputs reliable quantitative results such as predicted mean, predicted standard deviation, and predicted interval for the simulation results, providing auxiliary basis for temperature field analysis, thermal state assessment, and interpretation of simulation results in thermal processes.
[0056] Compared to existing technologies, traditional temperature field simulation methods typically rely on relatively complete governing equation parameters, initial conditions, boundary conditions, and grid discretization processes. While they can obtain relatively stable results in forward numerical calculations, they often encounter challenges in engineering thermal process simulation and state analysis, such as difficulty in fully measuring the temperature field, limited observation points, and noisy or sparsely distributed observation data. Furthermore, traditional numerical methods struggle to directly integrate limited observation data with the physical constraints of heat conduction. Purely data-driven models are easily affected by the number of samples, observation locations, and data quality, leading to problems such as unstable predictions in unobserved areas, prediction shifts near boundaries, or inconsistencies with heat conduction laws. Additionally, conventional deterministic models usually only output a single temperature prediction value, lacking confidence expressions such as prediction standard deviation and prediction intervals, making it difficult to assess the reliability of the simulation results.
[0057] This invention integrates the two-dimensional transient heat conduction control equations, initial conditions, boundary conditions, and limited observed temperature data into the training process of a physical information neural network model. A composite loss function is constructed using physical residual loss, initial condition loss, boundary condition loss, and observed data loss, subjecting the model training to both physical and data constraints, thus improving the physical consistency of the two-dimensional transient temperature field simulation results. The method is not limited to temperature fitting at discrete observation points but can calculate predicted temperatures at any location or time within the computational domain based on spatial-temporal coordinate input and output, thereby obtaining continuous results such as two-dimensional temperature field distributions, temperature fields at specified time slices, and temperature distribution curves at specified cross-sections. Furthermore, this invention constructs an approximate distribution of network parameters based on network parameter trajectories and forms multiple sampling prediction models through parameter sampling, outputting the predicted mean, prediction standard deviation, and prediction interval. This expands the two-dimensional transient temperature field simulation results from a single predicted value to a statistical output containing reliability information, providing auxiliary basis for temperature field analysis, thermal state assessment, and simulation result interpretation in engineering thermal processes. Attached Figure Description
[0058] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application.
[0059] Figure 1 This is a schematic diagram of the simulation process of this application.
[0060] Figure 2 This is a schematic diagram of the physical information neural network temperature field simulation model.
[0061] Figure 3 This is a schematic diagram of the construction of limited observation temperature data.
[0062] Figure 4 This is a flowchart of the sampling and reliable quantification of approximate distribution of network parameters.
[0063] Figure 5 This is a comparison of the simulation results of the temperature field of the deterministic PINN and the proposed algorithm at time t=0.50. Detailed Implementation
[0064] The present invention will be further described below with reference to embodiments and accompanying drawings. The following embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit the scope of protection of the present invention. Without departing from the technical solutions defined in the claims of the present invention, those skilled in the art can make adaptive adjustments to the computational domain, boundary condition forms, network structure, sampling methods, optimization methods, and parameter sampling methods in the embodiments.
[0065] It should be noted that the formulas identical to those in the claims in the following embodiments use the same formula numbers and formula content. Different embodiments describe the physical meaning, data sources, and implementation processes corresponding to the formulas in relation to a two-dimensional transient temperature field.
[0066] Example 1
[0067] This embodiment provides a two-dimensional transient temperature field simulation method based on PINN. This embodiment illustrates the basic implementation process of the method in a standard heat conduction scenario, including coordinate input, physical information neural network construction, physical residual calculation, composite loss function construction, deterministic temperature field simulation, and reliable quantification output. The embodiment of this application is described below with reference to the accompanying drawings.
[0068] Combination Figure 1 The simulation method of this application is as follows: Step 1, Acquisition of Modeling Information: Modeling information includes computational domain information, coordinate information, heat conduction governing equations, initial conditions, boundary conditions, and limited observation temperature data. D d The computational domain can be set as a two-dimensional spatial region Ω, and the time interval can be set as [0, ..., ... t f ],in t f This indicates the termination time. For a two-dimensional transient heat conduction temperature field, the coordinate variable ξ is expressed as: ξ = ( x,y,t ), ( x, y )∈Ω, t ∈[0, t f ]. x , y Represents two-dimensional spatial coordinates; t Represents the time coordinate.
[0069] Step two, construction of the physical information neural network model: The physical information neural network model takes the coordinate variable ξ as input and outputs the predicted temperature value at the corresponding coordinate. Combined with... Figure 2 For a two-dimensional transient heat conduction temperature field, the input coordinate variables are ( x,y,t The output variable is the predicted temperature value corresponding to that location and time. The predicted temperature value is expressed as: , This represents the predicted temperature value. T θ (ξ) represents the network parameters. i Determined physical information neural network mapping.
[0070] As a specific example, the physical information neural network model is a multi-layer differentiable feedforward neural network, and its mapping relationship is expressed as follows: Tθ (ξ)= W L F ( W L-1 F (… F ( W 1 ξ+ b 1 )+ b L-1 ) + b L ; W L , b L They represent the first L Layer weight matrix and bias vector; F (·) represents the activation function; L This indicates the number of network layers. Since the network model is differentiable, it can use automatic differentiation to calculate the first and second derivatives of the temperature prediction with respect to the input coordinates.
[0071] Step 3, Physical Residual Construction: For a two-dimensional transient heat conduction temperature field, the physical residual is used to measure the degree to which the temperature field predicted by the neural network satisfies the constraints of the heat conduction control equation or the equivalent thermal process.
[0072] In the general form, the physical residual is expressed as: r θ (ξ)= N[ T θ ] (ξ)- s (ξ), where N[·] represents the differential operator corresponding to the heat conduction control equation. s (ξ) represents the source term or equivalent source term; when no source term exists... s (ξ)=0.
[0073] For a two-dimensional transient heat conduction temperature field, the physical residual can be further expressed as: .
[0074] In the formula, r θ ( x,y,t ) represents the physical residual; T θ ( x,y,t ) represents the temperature prediction value output by the physical information neural network model; α represents the thermal diffusivity. x , y Represents two-dimensional spatial coordinates; t Represents the time coordinate.
[0075] Step 4, Construction of the Composite Loss Function: The composite loss function includes physical residual loss, initial condition loss, boundary condition loss, and observation data loss. Specifically, the physical residual loss is used to constrain the model output to satisfy the heat conduction control equation; the initial condition loss is used to constrain the model's temperature distribution at the initial time; the boundary condition loss is used to constrain the model to satisfy the boundary conditions at the boundary sampling points; and the observation data loss is used to constrain the deviation between the model's predicted temperature values at the observation points and the limited observed temperature data.
[0076] The physical residual loss is expressed as: .
[0077] The initial conditional loss is expressed as: .
[0078] The boundary condition loss is expressed as: .
[0079] The loss of observation data is expressed as: .
[0080] Therefore, the composite loss function L ( i ) is represented as: L ( i )= l r L pde + l ic L ic + l bc L bc + l d L data .
[0081] in: N r 、N ic 、N bc 、N d These represent the number of residual sampling points, the number of initial condition sampling points, the number of boundary sampling points, and the number of observation points, respectively; B(·) represents the boundary operator; g (·) represents the given value corresponding to the boundary condition; l r 、l ic 、l bc 、l d These represent the weighting coefficients corresponding to each loss.
[0082] Step 5, Deterministic Reconstruction Model Training: The physical information neural network model is trained with the goal of minimizing the composite loss function to obtain a deterministic temperature field simulation model. During training, sampling points within the computational domain, boundary sampling points, initial condition sampling points, and observation data points are input into the physical information neural network model. The network parameters are updated using the composite loss function until a preset training termination condition is met.
[0083] Network parameters after training i * Represented as: i * =arg min θ L ( i ).
[0084] After training, the coordinates to be predicted are input into the deterministic temperature field simulation model to obtain the continuous temperature field simulation results. The continuous temperature field simulation results are expressed as follows: .
[0085] The coordinates to be predicted can be grid points within the computational domain, spatial points on a specified time slice, or sampling points on a specified cross section. The simulation results of the continuous temperature field can be a two-dimensional temperature field distribution, a temperature field on a specified time slice, or a temperature distribution curve on a specified cross section.
[0086] Example 2
[0087] This embodiment takes the two-dimensional transient heat conduction temperature field in Example 1 as the object and further explains the simulation process of the two-dimensional transient temperature field under noisy and sparse observation conditions.
[0088] Combination Figure 3 From the reference temperature field T ref A limited number of observation points are selected from the data. Reference temperature field. T ref This can be an analytical temperature field or a numerical reference temperature field generated by the finite difference method. For temperature information obtained under finite observation conditions, the coordinates of the observation points and the corresponding reference temperature values are organized into finite observation temperature data. D d , represented as: .
[0089] ξ i Indicates the first i The coordinate variables of each observation point; Indicates the first i The observed temperature values corresponding to each observation point; N d This indicates the number of observation points.
[0090] When constructing noisy observed temperature data, observation noise can be superimposed on the temperature values extracted from the reference temperature field to obtain noisy observed temperature data. i The noisy temperature values at each observation point are represented as follows: .
[0091] Among them, the observation noise satisfies: .
[0092] When constructing sparse observational temperature data, the number of observation points can be reduced. N d By changing the spatial distribution or spatiotemporal distribution of observation points, sparse observation temperature data can be obtained.
[0093] Noisy observation scenarios are mainly used to represent situations where observations are disturbed, while sparse observation scenarios are mainly used to represent situations where the observation coverage is insufficient.
[0094] During training, the physical information neural network model still uses physical residual loss, boundary condition loss and observation data loss to jointly constrain the network parameters, so that the model can output continuous temperature field simulation results under limited and incomplete observation conditions.
[0095] In this embodiment, the physical information neural network model still uses coordinate variables as input and temperature prediction as output. During model training, physical residual constraints, boundary condition constraints, and observation data constraints work together to update the network parameters. Specifically, the physical residual loss constrains the physical consistency of the temperature prediction results within the computational domain through the heat conduction control equation; the boundary condition loss constrains the temperature prediction values, temperature derivatives, or heat transfer relationships at the boundary locations; and the observation data loss constrains the deviation between the temperature prediction values at the observation points and noisy or sparse observed temperature data.
[0096] In noisy observation scenarios, the loss of observational data is affected by observational perturbations. Physical residual loss and boundary condition loss can provide additional constraints for model training, enabling the model to fit not only the temperature values at the observation points. In sparse observation scenarios, the reduced number or uneven distribution of observation points will decrease the coverage of data constraints. Physical residual constraints and boundary condition constraints can provide physical constraint support for temperature field simulation in unobserved areas.
[0097] This embodiment illustrates that, under finite and incomplete observation conditions, this method can output continuous temperature field simulation results through a joint training mechanism of physical residual constraints, boundary condition constraints, and observation data constraints. Increased noise levels or a reduction in observation points typically increase the difficulty of temperature field simulation. The method in this application does not require maintaining the same accuracy under all noise intensities or all sparsity levels. Instead, by introducing a fusion mechanism of physical constraints and finite observation data, it provides an feasible technical path for continuous temperature field simulation under finite and incomplete observation conditions.
[0098] Example 3 This embodiment performs a reliable quantitative structure output and evaluation based on sampling of the approximate distribution of network parameters.
[0099] Combination Figure 4 This method acquires the network parameter trajectory formed by the physical information neural network model during or after training. The network parameter trajectory includes a set of network parameters corresponding to multiple training moments. Based on the network parameter trajectory, the mean and dispersion information of the parameters are calculated, and an approximate distribution of the network parameters is constructed.
[0100] The formula for calculating the mean of the parameters is: .
[0101] The formula for calculating parametric covariance information is: , i k Indicates the first k The network parameters corresponding to each training time step K This indicates the number of network parameters collected.
[0102] As a specific example, the approximate distribution of network parameters is constructed using the random weighted average Gaussian method, and the approximate distribution of network parameters is denoted as . q ( i ), .
[0103] from q ( i Multiple network parameter samples are obtained through sampling. The sampling process is represented as follows: i (s) ~ q ( i ), s =1, 2, 3, ... S ; i (s) For the first s One network parameter sample; S This represents the number of sampling prediction models.
[0104] Each network parameter sample i (s)Loaded into a network corresponding to the physical information neural network model structure, forming a sampling prediction model. .
[0105] The coordinates to be predicted are input into multiple sampling prediction models to obtain multiple sampling temperature prediction results.
[0106] The formula for calculating the predicted mean is: .
[0107] The formula for calculating the predictive standard deviation is: .
[0108] When the sampled prediction results approximately follow a normal distribution, the prediction interval at a 95% confidence level is expressed as: CI 95% (ξ)=[ µ (ξ)-1.96σ (ξ), µ (ξ)+ 1.96σ(ξ)].
[0109] With a reference temperature field available, the prediction interval coverage can also be calculated based on the reference temperature value and the prediction interval. The prediction interval coverage is expressed as: This is an indicator function.
[0110] To analyze the relationship between the predicted standard deviation and the observed support, the distance from the predicted point to the nearest observed point can also be calculated. j The distance from each prediction point to the nearest observation point is represented as: .
[0111] It can also separately calculate the average prediction standard deviation of the near observation area and the average prediction standard deviation of the far observation area.
[0112] The average standard deviation of the near-observed area is expressed as: .
[0113] The average standard deviation of the forecast for the distant observation area is expressed as: .
[0114] By employing the methods described above, and in conjunction with Examples 1 and 2, in addition to the deterministic temperature field simulation results, we can further output the predicted mean, predicted standard deviation, predicted interval, predicted interval coverage, and observational support statistics. These results can be used to analyze the fluctuation and reliability range of temperature field simulation results at different spatial locations, providing auxiliary information for two-dimensional transient temperature field analysis under limited observation conditions.
[0115] Analysis of simulation and credibility measurement results for the above cases: (1) Temperature field simulation analysis under analytical solution reference scenario In one implementation, a two-dimensional transient heat conduction analytical reference field is used to verify the simulation method of this application. In this scenario, the heat conduction control equations, initial conditions, boundary conditions, and analytical reference temperature field are all known conditions, which can be used to verify the effectiveness of the physical information neural network model, the physical residual construction method, and the training process of the composite loss function.
[0116] In this implementation scenario, the temperature field simulation results were evaluated using relative L2 error, root mean square error, mean absolute error, and maximum absolute error. The obtained relative L2 error was 2.62 × 10⁻⁶. -3 The root mean square error (RMSE) is 7.26 × 10⁻⁶. -4 The mean absolute error (MAE) is 4.77 × 10⁻⁶. -4 The maximum absolute error is 1.00 × 10⁻⁶. -2 .
[0117] The results above demonstrate that the proposed method can approximate the target temperature field well under analytical reference temperature field conditions. By unifying the residuals of the heat conduction control equations, initial conditions, boundary conditions, and observation data constraints into the training process, the proposed method can obtain continuous simulation results that are largely consistent with the analytical reference temperature field, thus indicating its good feasibility in standard two-dimensional transient heat conduction scenarios.
[0118] (2) Temperature field simulation analysis under finite difference reference scenario In another embodiment, a numerical reference temperature field generated using the finite difference method is employed to verify the method of this application. In this scenario, the numerical temperature field generated by the finite difference method serves as the reference temperature field, and limited observed temperature data can be extracted from the numerical reference temperature field. This approach is used to illustrate the temperature field simulation capability of the method of this application under numerical reference field conditions.
[0119] In this implementation scenario, the relative L2 error obtained by the method of this application is 2.87 × 10⁻⁶. -3 The root mean square error (RMSE) is 7.93 × 10⁻⁶. -4 The mean absolute error (MAE) is 5.35 × 10⁻⁶. -4 The maximum absolute error is 8.05 × 10⁻⁶. -3 The results above show that, under these implementation conditions, the method proposed in this application can still achieve low simulation errors in a finite-difference numerical reference temperature field. The predicted temperature field and the numerical reference temperature field maintain consistency in their main spatial distribution, and their trends along typical intercepts or centerlines also show good consistency. These results demonstrate that the method proposed in this application is applicable not only to analytical reference temperature fields but also to reference temperature fields generated by numerical methods, and can be used for continuous temperature field simulation under finite observation conditions.
[0120] (3) Simulation analysis under noisy observation conditions In a noisy observation scenario, with a fixed number of observation points, noisy observation temperature data is constructed by superimposing noise onto the observed temperature values extracted from the reference temperature field. This embodiment illustrates the effect of the method of this application on temperature field simulation when the observed values are disturbed.
[0121] With a fixed number of observation points, the relative L2 errors obtained by the method in this application are 0.003791, 0.011182, and 0.05 when the noise standard deviation is 0.00, 0.01, and 0.05, respectively. It can be seen that as the observation noise increases, the difficulty of temperature field simulation increases accordingly, and the simulation error shows an upward trend. This indicates that the perturbations contained in the observation data affect the constraint effect of the observation data loss on model training. Meanwhile, since the method in this application also introduces thermal conduction physical residual constraints and boundary condition constraints, the main structure of the temperature field can still be recovered under certain noise conditions. This result shows that the method in this application can perform continuous temperature field simulation under noisy observation conditions, but its simulation accuracy is affected by the noise intensity.
[0122] (4) Simulation analysis under sparse observation conditions In a sparse observation scenario, sparse temperature data is constructed by reducing the number of observation points under a fixed noise level. This implementation illustrates the effect of the method in this application on temperature field simulation when the observation coverage is insufficient.
[0123] Under a fixed noise level, the relative L2 errors obtained by the method in this application are 0.007451, 0.011182, and 0.025170 when the number of observation points is 240, 120, and 60, respectively. It can be seen that as the number of observation points decreases, the coverage of data constraints within the computational domain weakens, and the temperature field simulation error increases accordingly. Unlike noisy observation scenarios, sparse observations mainly affect the coverage of observation data within a spatial or spatiotemporal range, without necessarily changing the reliability of individual observations. Even with a reduced number of observation points, the physical residual constraints and boundary condition constraints in the method of this application can still provide constraint support for unobserved regions, enabling the model to output continuous temperature field simulation results under limited observation conditions. This result shows that the method of this application is suitable for temperature field simulation under sparse observation conditions, but the number and distribution of observation points will affect the final simulation effect.
[0124] Table 1: Temperature field simulation errors under different reference and observation conditions .
[0125] As shown in Table 1, under both analytical and finite difference reference field conditions, the physically constrained PINN can achieve 10 -3 The relative L2 error of the order of magnitude indicates that the model can accurately approximate the two-dimensional transient heat conduction temperature field and possesses the basic accuracy for continuous temperature field simulation. Under noisy and sparse observation conditions, the temperature field reconstruction error increases compared to the ideal reference scenario, but still remains within 10. -2 The magnitude indicates that even with a limited number of observation points and perturbed observation data, the joint training mechanism of thermal conduction physical residuals, initial condition constraints, boundary condition constraints, and observation data constraints can still support the continuous reconstruction of the main structure of the temperature field.
[0126] (5) Analysis of credible quantification results In reliable quantification implementation scenarios, an approximate distribution of network parameters is constructed based on the network parameter trajectory formed during or after the training of the physical information neural network model. Multiple sampling prediction models are then formed through parameter sampling. The same coordinate to be predicted is input into multiple sampling prediction models to obtain multiple sampled temperature prediction results. Finally, the prediction mean, prediction standard deviation, and prediction interval are calculated.
[0127] In this implementation scenario, the average prediction standard deviation is 0.0213, the 95% prediction interval coverage is 1.0, the correlation index between the prediction standard deviation and the observation distance is 0.176, the average standard deviation of the near observation area is 0.021125, and the average standard deviation of the far observation area is 0.021872.
[0128] Table 2: Comparison of Errors and Output Formats of Different Models under Limited Observation Conditions .
[0129] Combination Figure 5 As shown in Table 2, under the same limited observation conditions, the relative L2 error, RMSE, MAE, and maximum absolute error of the data-driven neural network are 0.102059, 0.028236, 0.019435, and 0.178469, respectively. The corresponding indices of the PINN model after introducing physical constraints are reduced to 0.011182, 0.003094, 0.002248, and 0.021939, respectively. Compared with the data-driven neural network, the physical constraint PINN model shows a reduction of approximately 89.0% in relative L2 error, 89.0% in RMSE, 88.4% in MAE, and 87.7% in maximum absolute error. These results indicate that under limited, noisy, and sparse observation conditions, neural networks relying solely on observed data fitting are unable to stably recover the complete temperature field. However, by introducing physical residuals of heat conduction, initial condition constraints, and boundary condition constraints, the model can supplement the limited observed data using physical constraints, thereby significantly reducing the continuous reconstruction error of the temperature field.
[0130] Furthermore, the proposed algorithm incorporates the physical constraint PINN and a parameter sampling credibility quantification method. While maintaining the deterministic point prediction results, it can additionally output credibility metrics such as the average prediction standard deviation and 95% interval coverage. The proposed algorithm has an average prediction standard deviation of 0.0213 and a 95% interval coverage of 1.0. These results demonstrate that the parameter sampling process can provide prediction fluctuation range and interval envelope information beyond a single temperature prediction value, extending the temperature field reconstruction results from deterministic point prediction to a statistical output including credibility expressions.
[0131] The above implementation results demonstrate that, under the corresponding implementation conditions, the method of this application can achieve continuous simulation of two-dimensional transient temperature fields in both analytical and finite-difference reference scenarios. Furthermore, it can recover the main structure of the temperature field by combining physical residual constraints, initial condition constraints, boundary condition constraints, and observation data constraints under noisy and sparse observation conditions. Compared to data-driven neural networks alone, the physically constrained PINN can significantly reduce temperature field reconstruction errors under the same limited observation conditions, indicating that the physical residuals of heat conduction, initial condition constraints, and boundary condition constraints can effectively supplement the limited observation data. The reliability quantification process based on parameter sampling further provides the prediction standard deviation and prediction interval coverage, expanding the temperature field simulation results from a single numerical prediction to a statistical output including reliability expression. Simultaneously, by constructing an approximate distribution of network parameters based on the network parameter trajectory and performing parameter sampling, the method of this application can further output reliability quantification results such as the prediction mean, prediction standard deviation, and prediction interval in addition to the deterministic temperature field simulation results. These results demonstrate that the present invention possesses feasibility, continuous prediction capability, and reliability expression capability in two-dimensional transient temperature field simulation tasks.
[0132] The above-described embodiments are merely illustrative of several feasible implementations of the present invention, and their descriptions are relatively specific and detailed. However, they should not be construed as limiting the scope of the present invention, nor are the embodiments intended to limit the scope of protection in the claims of the present invention. For those skilled in the art, various modifications and improvements can be made without departing from the concept of the present invention. All equivalent implementations or changes that do not depart from the present invention should be included in the technology of the present invention.
Claims
1. A simulation method for two-dimensional transient temperature fields based on PINN, characterized in that, The steps are as follows: Step 1: Obtain the computational domain information, spatial-temporal coordinate information, heat conduction control equations, initial conditions, boundary conditions, and finite observation temperature data for the two-dimensional transient temperature field to be simulated. D d , The limited observation temperature data D d From the reference temperature field T ref The extracted reference temperature field T ref At least one of the following: analytical temperature field and numerical reference temperature field generated by the finite difference method; Step two involves constructing a physical information neural network model. This model takes the coordinate variable ξ as input and outputs the predicted temperature value at the corresponding location and time, establishing a mapping relationship between continuous coordinates and temperature values. The coordinate variable ξ satisfies: ξ=( x,y,t ), ( x, y )∈Ω, t ∈[0, t f ], x , y Represents two-dimensional spatial coordinates; t Represents the time coordinate; Ω is the computational domain, a two-dimensional spatial computational domain; t f Indicates the end time; Step 3: Calculate the derivative of the predicted temperature value with respect to the spatial-temporal coordinate variables using automatic differentiation, and construct the physical residual of heat conduction. The physical residual of heat conduction satisfies: r θ (ξ)= N[ T θ ] (ξ)- s (ξ), N[·] represents the differential operator corresponding to the heat conduction governing equation. θ For network parameters, T θ This is the output of the physical information neural network model. s (ξ) represents a source term or an equivalent source term; Step four: Construct a composite loss function by combining the physical residuals of heat conduction, initial conditions, boundary conditions, and observed temperature data. Train the physical information neural network model with the goal of minimizing this composite loss function to obtain the network parameters after training. θ * satisfy: θ * =arg min θ L ( θ ),Depend on θ * The deterministic physical information neural network model is a deterministic temperature field simulation model. The coordinates to be predicted are input into the deterministic temperature field simulation model, which outputs continuous simulation results of the two-dimensional transient temperature field. , The composite loss function L ( θ )satisfy: L ( θ )= λ r L pde + λ ic L ic + λ bc L bc + λ d L data , L pde , L ic , L bc , L data These represent the physical residual loss, initial condition loss, boundary condition loss, and observation data loss, respectively. λ r , λ ic , λ bc , λ d These represent the weighting coefficients corresponding to the physical residual loss, initial condition loss, boundary condition loss, and observation data loss, respectively.
2. The simulation method for a two-dimensional transient temperature field based on PINN according to claim 1, characterized in that, In step one, the coordinates of the observation points and the corresponding reference temperature values constitute the finite observation temperature data. D d ,satisfy: ξ i Indicates the first i The coordinate variables of each observation point; Indicates the first i The observed temperature values corresponding to each observation point; N d This indicates the number of observation points.
3. The simulation method for a two-dimensional transient temperature field based on PINN according to claim 1, characterized in that, The limited observation temperature data D d The constructed scenario is a noisy observation scenario, and the observation noise is superimposed on the corresponding reference temperature value to obtain noisy observation temperature data: The observation noise satisfies: ;or, The limited observation temperature data D d The constructed scenario is a sparse observation scenario, and the number of observation points is reduced during the construction process. N d By changing the spatial distribution or spatiotemporal distribution of observation points, sparse observation temperature data can be obtained.
4. The simulation method for a two-dimensional transient temperature field based on PINN according to claim 1, characterized in that, In step two, the physical information neural network model is a multi-layer differentiable feedforward neural network, and its mapping relationship is expressed as follows: T θ (ξ)= W L Ф ( W L-1 Ф (… Ф ( W 1 ξ+ b 1 )+ b L-1 ) + b L ; W L , b L They represent the first L Layer weight matrix and bias vector; Ф (·) represents the activation function; L Indicates the number of network layers.
5. The simulation method for a two-dimensional transient temperature field based on PINN according to claim 1, characterized in that, In step four: Construct the physical residual loss based on the physical residual at the residual sampling points within the computational domain: ; The initial condition loss is constructed based on the deviation between the predicted temperature value at the initial condition sampling point and the initial temperature distribution: ; Boundary condition loss is constructed based on the deviation between the predicted temperature, temperature derivative, or heat transfer relationship at the boundary sampling points and the boundary conditions: ; The observation data loss is constructed based on the deviation between the predicted temperature value at the observation point and the limited observed temperature data: , N r 、N ic 、N bc 、N d These represent the number of residual sampling points, the number of initial condition sampling points, the number of boundary sampling points, and the number of observation points, respectively; B(·) represents the boundary operator; g (·) represents the given value corresponding to the boundary condition.
6. The simulation method for a two-dimensional transient temperature field based on PINN according to claim 1, characterized in that, In step four, the boundary condition is at least one of temperature boundary condition, heat flow boundary condition, or heat transfer boundary condition. The boundary constraint for temperature boundary conditions is expressed as: B D [ T θ ]= T θ - T b ; The boundary constraints of the heat flux boundary condition are expressed as follows: ; The boundary constraints of the heat transfer boundary conditions are expressed as follows: ; In the formula, T b Indicates a given boundary temperature; k Indicates thermal conductivity; This represents the temperature gradient along the normal direction outside the boundary. q b Indicates a given heat flux density; h Indicates the heat transfer coefficient; T ∞ Indicates ambient temperature.
7. The simulation method for a two-dimensional transient temperature field based on PINN according to claim 1, characterized in that, In step four, the continuous simulation results of the two-dimensional transient temperature field are compared with the reference temperature field. T ref By comparison, the simulation error index is obtained, which is the root mean square error. RMSE Mean absolute error MAE Relative L2 error RelL 2 Maximum absolute error, coefficient of determination R 2 At least one of them, 。 8. A simulation method for a two-dimensional transient temperature field based on PINN according to any one of claims 1 to 7, characterized in that: Based on the network parameter trajectory, an approximate parameter distribution is constructed. Multiple sampling prediction models are formed through parameter sampling to obtain multiple sampling temperature prediction results. Based on the multiple sampling temperature prediction results, at least one of the prediction mean, prediction standard deviation and prediction interval is calculated to complete the reliable measurement of the two-dimensional transient temperature field.
9. The simulation method for a two-dimensional transient temperature field based on PINN according to claim 8, characterized in that: Obtain the network parameter trajectory formed during or after the training of the physical information neural network model. Based on the network parameter trajectory, construct an approximate distribution of network parameters using the random weight average Gaussian method. q ( θ ), and from q ( θ Multiple network parameter samples were obtained by sampling: θ (s) ~ q ( θ ), s =1, 2, 3, ... S ; θ (s) For the first s One network parameter sample; S This represents the number of sampling prediction models.
10. The simulation method for a two-dimensional transient temperature field based on PINN according to claim 8, characterized in that, The formula for calculating the predicted mean is: , The formula for calculating the predicted standard deviation is: , A prediction interval is constructed based on the predicted mean and the predicted standard deviation; the sampled prediction results approximately follow a normal distribution, and the prediction interval at a 95% confidence level is expressed as follows: CI 95% (ξ)=[ µ (ξ)-1.96σ (ξ), µ [(ξ)+ 1.96σ(ξ)], ξ represents the coordinates to be predicted; S Indicates the number of sampling prediction models. Indicates the first s The sampled temperature prediction result output by the sampling prediction model at the coordinate ξ to be predicted; µ (ξ) represents the predicted mean; σ (ξ) represents the predicted standard deviation.
