Turbulence simulation efficient partial differential equation solving device based on diffusion model

By introducing diffusion models and deep learning in solving partial differential equations, combined with data noise addition and noise reduction modules, the problem of low efficiency and difficulty in capturing randomness of traditional methods is solved, and efficient and accurate turbulence simulation is achieved, reducing computing resources. consumption.

CN118586276APending Publication Date: 2024-09-03BEIHANG UNIV +1
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410697101.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

Traditional numerical solution methods for partial differential equations have problems such as low efficiency in high-dimensional data processing and long-term simulations and difficulty in capturing the randomness and uncertainty of physical fields, which limits their application in industrial design and scientific research.

Method used

A turbulence simulation device based on the diffusion model is used, Gaussian noise is added and preprocessed through the data denoising module, and the data denoising module and physical embedding module are combined to use inverse stochastic differential equations and deep learning networks to predict the time evolution of the physical field to ensure The generated solution conforms to the physical system constraints.

Benefits of technology

It significantly improves the efficiency and accuracy of solving partial differential equations, can capture the randomness and uncertainty of physical processes, reduces computing resource consumption, alleviates the dimension explosion problem of turbulence simulation, and shortens the industrial design cycle.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118586276A
    Figure CN118586276A
Patent Text Reader

Abstract

The invention provides a turbulence simulation efficient partial differential equation solving device based on a diffusion model. Comprising a data noise adding module, a data noise reduction module and a physical embedding module, the data noise adding module is used for uniformly sampling from a dynamically changing turbulent flow physical field, taking physical field information at different moments as input data, carrying out data preprocessing, designing a forward diffusion process of a diffusion model, and creating a series of diffusion samples containing noise data; the diffusion sample is sent to a data noise reduction module, and the data noise reduction module receives physical prior information provided by a physical embedding module and embeds the physical prior information into a diffusion model to ensure that a solution of a generated physical field conforms to actual constraints of a physical system; on the basis, Gaussian noise estimation is carried out through a reverse stochastic differential equation method, a physical field state changing along with time is estimated, and finally an output turbulent flow field reconstruction prediction result is obtained. Therefore, the parameter quantity of the model is effectively reduced, the reasoning speed of the diffusion type solving device is greatly improved, and the accuracy and the stability of a prediction result of the diffusion type solving device are ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of artificial intelligence, and more specifically, to an efficient partial differential equation solving device for turbulence simulation based on a diffusion model. Background Art

[0002] A partial differential equation is a differential equation that describes a multivariable function. It involves the derivatives of multiple independent variables of an unknown function and is usually used to describe phenomena and processes in nature and engineering, such as heat conduction, wave phenomena, and electromagnetic fields. Traditional numerical methods, such as the finite element method (FEM) and the finite volume method (FVM), discretize the physical field by constructing a large number of grids, and further apply the CFD discrete calculation format to perform serial calculations on the entire flow field in the time dimension. This process consumes a huge amount of computing resources, which limits its development in industrial design, scientific research and other fields. In addition, traditional numerical solution methods can usually only give deterministic prediction results, and it is difficult to characterize the inherent randomness and uncertainty in physical processes.

[0003] In recent years, the application of generative models in video generation, natural language processing and multimodal tasks has demonstrated its strong ability to fit high-dimensional data distributions. As the most representative example, the diffusion model achieves high-precision generation of multiple data modalities by decomposing the mapping between data distribution and prior distribution into a Markov process with gradually added noise. However, due to the lack of efficient physical information embedding methods, diffusion models have rarely been used in the field of solving partial differential equations.

[0004] How to improve the efficiency of solving partial differential equations, reduce the solution time, and how to capture the randomness and uncertainty of the physical field during the solution process have become important research issues in the field of numerical solution of partial differential equations. Accelerating the solution of partial differential equations based on diffusion models not only has important theoretical research value and promotes the combination of generative models and physical modeling, but also, at the practical level, can speed up the iterative process of simulating complex physical processes in industry and scientific research, reduce the simulation and computational costs of complex physical systems represented by turbulence simulation, and thus shorten the industrial design cycle and optimize the performance of industrial products. It has significant social significance and practical application value. Summary of the invention

[0005] The purpose of the embodiments of the present disclosure is to provide an efficient partial differential equation solving device for turbulence simulation based on a diffusion model, so as to address the limitations of traditional PDE numerical solution methods in high-dimensional data processing and long-term simulation, and to improve the efficiency and accuracy of partial differential equation solving.

[0006] In a general aspect, there is provided an efficient partial differential equation solving device for turbulence simulation based on a diffusion model, comprising a data denoising module, a data denoising module, and a physical embedding module;

[0007] The data noise addition module uniformly samples from the dynamically changing turbulent physical field, takes the original data of the physical field information at different times as input data, designs the forward diffusion process of the diffusion model after data preprocessing, adds Gaussian noise to it, and creates a series of diffusion samples of noisy data through sampling; the diffusion samples are sent to the data noise reduction module, the data noise reduction module receives the physical prior information provided by the physical embedding module, and embeds the physical prior information into the diffusion model to ensure that the solution of the generated physical field meets the actual constraints of the physical system, and on this basis, performs Gaussian noise estimation through the inverse stochastic differential equation method to predict and remove noise, and at the same time performs time increment estimation to estimate the physical field state that changes with time, and finally obtains the output result.

[0008] The forward diffusion process of the diffusion model of the data noise module is specifically implemented as follows: first, define the physical field where x and t are time and space coordinates defined on a discrete grid: x∈Ω={x 1 , x 2 , ..., x M ]}, t∈I={t 1 , t 2 , ..., t T}, u represents the vector field composed of C physical quantities;

[0009] The control partial differential equation of the system is expressed as:

[0010]

[0011] Where S is the spatial differential of the physical field, and u is defined i =u(x, t i ), in the first-order upwind format, there is the following relationship: i +1 ≈(t i+1 -t i )S(u i ,x,t)+u i ,

[0012] The process of introducing Gaussian noise is to define the Markov noise adding forward process where α n , β n To satisfy β n =1-α n A predefined constant, starting from the real data u0, gradually adds noise until the standard Gaussian distribution is achieved

[0013] To avoid confusion, the diffusion time axis is recorded as n, and t is used to represent the PDE time axis. The noisy data of the physical field is expressed as where the noise term ∈ satisfies

[0014] The preprocessing methods are zero-meaning and standardization.

[0015] The inverse stochastic differential equation method of the data denoising module first constructs a unified general forward SDE formula:

[0016]

[0017] in Using a high-order solution such as WENO5 or MUSCL, a first-order upwind scheme is used to calculate the inverse SDE corresponding to the forward SDE:

[0018]

[0019] Furthermore, a diffusion time-dependent score diffusion model is introduced To estimate the noise and a PDE time-dependent score diffusion model To estimate the time increment Using the Euler-Marathon method, the loss function is defined as:

[0020]

[0021]

[0022] Among them, λ(n) and γ(t) are weight functions. During the training phase, the noisy data of adjacent time steps are and Input into the data denoising module, training To predict the noise term, train To predict the time increment In the reasoning stage, a grid reasoning model is adopted. Starting from this, the trained diffusion time-dependent score diffusion model and PDE time-dependent score diffusion model are continuously applied to obtain the final prediction result.

[0023] The physical embedding module is implemented as follows: the partial differential equation solution process is defined as a given initial condition u 0 and boundary conditions u B The time series prediction problem under B ∈R (2H+2W)×C ,u 0 ∈R H×W×C, C is the number of physical quantities, and the boundaries are extracted from the discrete spatial grid Ω of shape (H, W) , Redefine the reverse SDE process:

[0024]

[0025] The optimization goal is definition

[0026]

[0027] where Z is a normalization constant that ensures The integral of M is equal to 1. B is the boundary mask for filtering the boundary area, with a value of 1 at the boundary and a value of 0 elsewhere. ⊙ represents the Hadamard product operator, and μ is a constant. Definition During the sampling process, The output translation ∈ B Get the corrected conditional probability estimate.

[0028] The purpose of this invention is to develop a new type of diffusion PDE solver, which improves the solving efficiency, accuracy and reliability by efficiently combining the diffusion model and deep learning, while reducing resource consumption, and meets the needs of solving modern complex physical problems, that is, to achieve the following goals:

[0029] 1. Improve the efficiency of solving partial differential equations: By using the diffusion model to fit the mapping between physical field data and Gaussian distribution, and combining it with a deep learning network to predict the time evolution of the physical field, this device can significantly improve the speed of PDE solution. At the same time, by embedding physical information, it can enhance the accuracy and stability of the solution process.

[0030] 2. Capturing the randomness and uncertainty of physical processes: Compared with traditional numerical methods that can only provide deterministic results, the present invention can simulate and predict the random evolution process of the physical field through the probabilistic generation characteristics of the diffusion model, and provide richer uncertainty quantification information for chaotic system application scenarios represented by turbulence simulation.

[0031] 3. Alleviate the dimensionality explosion problem in turbulence simulation: By parallelizing the sampling of the turbulence physical field at future moments on a sparse grid, the present invention can greatly reduce the consumption of computing resources and alleviate the dimensionality explosion problem in the turbulence simulation calculation process. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The above and other objects and features of the present disclosure will become more apparent from the following description in conjunction with the accompanying drawings.

[0033] Figure 1is a flowchart schematic diagram showing an efficient partial differential equation solving device for turbulence simulation based on a diffusion model according to an embodiment of the present disclosure;

[0034] Figure 2 is a schematic diagram showing a data noise adding module according to an embodiment of the present disclosure;

[0035] Figure 3 is a schematic diagram showing a data denoising module in the inference mode according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0036] The following specific embodiments are provided to help the reader obtain a comprehensive understanding of the methods, devices and / or systems described herein. However, after understanding the disclosure of the present application, various changes, modifications and equivalents of the methods, devices and / or systems described herein will be clear. For example, the order of operations described herein is only an example and is not limited to those orders set forth herein, but can be changed as will be clear after understanding the disclosure of the present application, except for operations that must occur in a specific order. In addition, for greater clarity and simplicity, the description of features known in the art may be omitted.

[0037] The features described herein can be implemented in different forms and should not be construed as being limited to the examples described herein. Rather, the examples described herein have been provided to illustrate only some of the many possible ways to implement the methods, devices, and / or systems described herein, which will be clear after understanding the disclosure of the present application.

[0038] As used herein, the term "and / or" includes any one of the associated listed items and any combination of any two or more.

[0039] Although terms such as "first", "second", and "third" may be used herein to describe various members, components, regions, layers, or portions, these members, components, regions, layers, or portions should not be limited by these terms. Instead, these terms are only used to distinguish one member, component, region, layer, or portion from another member, component, region, layer, or portion. Therefore, without departing from the teachings of the examples described herein, the first member, first component, first region, first layer, or first portion referred to in the examples may also be referred to as the second member, second component, second region, second layer, or second portion.

[0040] In the specification, when an element (such as a layer, a region or a substrate) is described as being “on”, “connected to” or “coupled to” another element, the element may be directly “on”, “connected to” or “coupled to” another element, or one or more other elements may be present therebetween. Conversely, when an element is described as being “directly on”, “directly connected to” or “directly coupled to” another element, there may be no other elements present therebetween.

[0041] The terms used herein are only used to describe various examples and are not intended to limit the disclosure. Unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. The terms "comprise", "include" and "have" indicate the presence of the described features, quantities, operations, components, elements and / or combinations thereof, but do not exclude the presence or addition of one or more other features, quantities, operations, components, elements and / or combinations thereof.

[0042] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as those generally understood by a person of ordinary skill in the art to which the present disclosure belongs after understanding the present disclosure. Unless explicitly defined as such herein, terms (such as those defined in a general dictionary) should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and the present disclosure, and should not be interpreted in an idealized or overly formal manner.

[0043] Furthermore, in the description of examples, when it is considered that a detailed description of a well-known related structure or function would cause vague interpretation of the present disclosure, such a detailed description will be omitted.

[0044] Figure 1 Schematic diagram showing an efficient partial differential equation solving device for turbulence simulation based on a diffusion model according to an embodiment of the present disclosure.

[0045] A deep learning network is used to predict and optimize the time evolution process of the physical field. By introducing Gaussian noise and physical prior information, the mapping of the original data space to Gaussian distribution is effectively realized. Secondly, the Gaussian noise and time increment are estimated based on the deep neural network. Finally, physical priors such as boundary conditions and initial conditions are integrated to achieve efficient solution of partial differential equations.

[0046] Specifically, the architecture of the device is as follows Figure 1 As shown, it mainly includes the following key modules:

[0047] 1. Data Noise Addition Module: Uniformly sample from the dynamically changing turbulent physical field, take the physical field information at different times as input, and convert it into noisy data by adding Gaussian noise. This module not only simulates the diffusion process of data, but also provides the necessary input for the subsequent noise reduction process. The physical field is the distribution of the value of a physical quantity in time and space. For example, in a meteorological cloud map, the surface wind velocity can constitute a corresponding physical field. When the present application is applied to a meteorological environment, the turbulent physical field data in the meteorological environment is sampled as input.

[0048] 2. Data denoising module: Based on the inverse stochastic differential equation (SDE) to process noisy data, the noise is estimated and removed on a consumer-grade GPU computer, while calculating the time increment. The core design of this module is to gradually restore the evolution of the physical field in the future state from the noise data, and finally directly give the predicted value of the physical field at the future moment in a parallel way.

[0049] 3. Physical embedding module: Encoding the initial and boundary conditions of the PDE not only enhances the device’s solving ability, but also improves the interpretability of the prediction results. By integrating this physical information, the solving device can more accurately reflect the real behavior of the physical system, thereby improving the quality of the prediction results.

[0050] The interaction between the above modules is as follows:

[0051] First, the data denoising module collects the raw data of the turbulent physics field and gradually adds Gaussian noise to create a series of diffusion samples. These samples are then fed into the data denoising module, which uses inverse stochastic differential equations on consumer-grade GPU computers to predict and remove noise while estimating the time-varying physical field state. During this process, the physical embedding module provides important physical prior information, including boundary conditions and initial conditions, which are embedded in the diffusion model to ensure that the generated physical field solution meets the actual constraints of the physical system.

[0052] Data Noise Module:

[0053] In the present invention, the task of the data noise addition module is to simulate the process of introducing noise into the collected physical field data to achieve the mapping between the physical field data and the prior Gaussian distribution. The module is implemented using specially designed data acquisition and computing equipment, including physical sensors, solid-state hard drives, CPUs and other hardware devices.

[0054] First, we need to define the input and output format of the data: given a physical field where x and t are time and space coordinates defined on a discrete grid: x∈Ω={x 1 , x 2 , ..., xM ]}, t∈I={t 1 , t 2 , ..., t T}. u represents a vector field composed of C physical quantities (such as velocity, pressure, temperature, etc.). The control partial differential equation of the system can be expressed as:

[0055]

[0056] Where S is the spatial differential of the physical field. Define u i =u(x, t i ). In the first-order upwind format, there is the following relationship:

[0057] u i+1 ≈(t i+1 -t i )S(u i ,x,t)+u i

[0058] The data noise module is designed to establish the physical field data u and the prior Gaussian distribution The module details are as follows: Figure 2 As shown in the figure, the module first collects real data of the turbulent physical field through physical sensors, stores the obtained data on the solid-state drive, and simulates the diffusion process of the data by gradually introducing noise. Specifically, the Markov noise addition forward process is defined where α n , β n To satisfy β n =1-α n In this way, starting from the real data u0, noise is gradually added until the standard Gaussian distribution is achieved.

[0059] To avoid confusion, the diffusion time dimension is recorded as n, and t is used to represent the PDE time dimension. The physical field can be expressed as The noise term ∈ remains constant along the time axis For input data First, data preprocessing is applied to achieve zero mean and standardization, and then from Gaussian distribution The Gaussian noise ∈ is sampled and added to the input data gradually to finally obtain the noisy data.

[0060] Through the precise control of this module, it can provide noisy data samples for the subsequent data denoising module while maintaining the authenticity of the physical field data, laying the foundation for the efficient solution of partial differential equations.

[0061] Data denoising module:

[0062] The data denoising module in the present invention is responsible for reconstructing noise-free physical field data and mainly runs on the GPU server. The present invention innovatively proposes a unified general forward SDE formula:

[0063]

[0064] in It is possible to use high-order schemes such as WENO5 or MUSCL to calculate w n is a Brownian motion random variable, It is derived from the standard forward diffusion form of DDPM. For the sake of training efficiency, this device adopts the first-order upwind format. For this forward SDE, the corresponding inverse SDE can be calculated:

[0065]

[0066] in For sample This module introduces a diffusion time-dependent score diffusion model. To estimate the noise and a PDE time-dependent score diffusion model To estimate the time increment Using the Euler-Marathon method, the loss function can be defined as:

[0067]

[0068]

[0069] in represents the mathematical expectation, “||” represents the absolute value, and λ(n) and γ(t) are weight functions used to ensure that the model is effective in areas where data points are sparse. and low PDE increment region to obtain sufficient gradient, generally let in For Conditional The probability of and Separate training θ and φ Since there is no dependency between the two, they can be trained and optimized separately. Trained noise estimation module and time increment estimation module It can be used to provide accurate estimates of noise and derivative terms for the solution process.

[0070] During the training phase, the noisy data of adjacent time steps are and Input to the data denoising module, trained on a consumer-grade GPU computer To predict the noise term, train To predict the time increment In the reasoning stage, this module innovatively adopts the grid reasoning mode. Starting from, the two trained models are continuously applied to obtain the final prediction result. The specific process is as follows Figure 3 Shown

[0071] Physical embedding module:

[0072] In the present invention, the physical embedding module transforms the mathematical problem of solving partial differential equations into a time series prediction problem constrained by physical information. 0 and boundary conditions u B Efficient coding is performed and it is ensured that the intermediate output results of the solver are consistent with these constraints during the entire process of solving the inverse stochastic differential equation.

[0073] Similar to the autoregressive spatiotemporal prediction problem, the present invention regards the partial differential equation (PDE) solution process as a given initial condition u 0 and boundary conditions u B The time series prediction problem is as follows. The boundary is extracted from the discrete spatial grid Ω of shape (H, W) Therefore, there is u B ∈R (2H+2W)×C ,u 0 ∈R H×W×C , where C is the number of channels, that is, the number of physical quantities. Redefine the inverse SDE process:

[0074]

[0075] The optimization goal becomes There is no need to train additional classification models to calculate It can be defined directly as:

[0076]

[0077] where Z is a normalization constant that ensures The integral of M is equal to 1. B is the boundary mask for filtering the boundary area (value is 1 at the boundary and 0 elsewhere), ⊙ represents the Hadamard product operator, and μ is a constant. For simplicity, define In this way, during the sampling process, only The output translation ∈ B The corrected conditional probability estimate can be obtained.

[0078] This design allows the model to continuously update the embedding of boundary and initial conditions during the back-diffusion process, so that it can adapt to any dynamic changes in the physical system. In this way, the physical embedding module not only improves the accuracy of the device solution, but also enhances the interpretability and physical compliance of the entire PDE solution process.

[0079] Through the above scheme, the present invention can achieve the following effects:

[0080] A physically embedded diffusion model is used to solve partial differential equations. The inverse SDE process is fitted by sampling from Gaussian distribution and training the scored diffusion model to achieve efficient simulation of turbulence on sparse grids.

[0081] A forward stochastic differential equation form that integrates the time dimension of partial differential equations is proposed. Two score diffusion models are trained on consumer-grade GPU computers to predict Gaussian noise and time increment respectively, which effectively reduces the number of model parameters and greatly improves the inference speed of the diffusion solver.

[0082] The PDE solution process is regarded as a time series prediction problem under initial and boundary conditions. By embedding physical information in the reverse diffusion process, the accuracy and stability of the prediction results of the diffusion solver are ensured.

[0083] Although some embodiments of the present disclosure have been shown and described, it will be appreciated by those skilled in the art that modifications may be made to the embodiments without departing from the principles and spirit of the present disclosure, the scope of which is defined by the claims and their equivalents.

Claims

1. An efficient partial differential equation solving device for turbulence simulation based on diffusion model, It is characterized in that Including data noise addition module, data noise reduction module, and physical embedding module; The data noise addition module uniformly samples from the dynamically changing turbulent physical field, takes the physical field information at different times as input data, preprocesses the input data, designs the forward diffusion process of the diffusion model, adds Gaussian noise to it, and creates a series of diffusion samples of noisy data through sampling; the diffusion samples are sent to the data noise reduction module, the data noise reduction module receives the physical prior information provided by the physical embedding module, and embeds the physical prior information into the diffusion model to ensure that the solution of the generated physical field meets the actual constraints of the physical system, and on this basis, performs Gaussian noise estimation through the inverse stochastic differential equation method to predict and remove noise, and at the same time performs time increment estimation to estimate the physical field state that changes with time, and finally obtains the output result.

2. The device for solving turbulence simulation and efficient partial differential equations based on a diffusion model as claimed in claim 1, It is characterized in that The forward diffusion process of the diffusion model of the data noise module is specifically implemented as follows: first, define the physical field where x and t are time and space coordinates defined on a discrete grid: x∈Ω={x 1 ,x 2 ,…,x M ]},t∈I={t 1 ,t 2 ,…,t T }, u represents the vector field composed of C physical quantities; The control partial differential equation of the system is expressed as: Where S is the spatial differential of the physical field, and u is defined i =u(x,t i ), in the first-order upwind format, there is the following relationship: i+1 ≈(t i+1 -t i )S(u i ,x,t)+u i , The process of introducing Gaussian noise is to define the Markov noise adding forward process where α n ,β n To satisfy β n =1-α n The predefined constants are derived from the real data u 0 Starting from, gradually add noise until a standard Gaussian distribution is achieved To avoid confusion, the diffusion time axis is recorded as n, and t is used to represent the PDE time axis. The noisy data of the physical field is expressed as where the noise term ∈ satisfies 3. The device for solving the turbulence simulation and the partial differential equation efficiently based on the diffusion model as claimed in claim 2, It is characterized in that The preprocessing methods are zero-meaning and standardization.

4. The device for solving the turbulence simulation and the partial differential equation based on the diffusion model as claimed in claim 2, It is characterized in that The inverse stochastic differential equation method of the data denoising module first constructs a unified general forward SDE formula: in Using a high-order solution such as WENO5 or MUSCL, a first-order upwind scheme is used to calculate the inverse SDE corresponding to the forward SDE: Furthermore, a diffusion time-dependent score diffusion model is introduced To estimate the noise and a PDE time-dependent score diffusion model To estimate the time increment Using the Euler-Marathon method, the loss function is defined as: Among them, λ(n) and γ(t) are weight functions. During the training phase, the noisy data of adjacent time steps are and Input into the data denoising module, training To predict the noise term, train To predict the time increment In the reasoning stage, a grid reasoning model is adopted. Starting from this, the trained diffusion time-dependent score diffusion model and PDE time-dependent score diffusion model are continuously applied to obtain the final prediction result.

5. The device for solving the turbulence simulation and the partial differential equation efficiently based on the diffusion model as claimed in claim 4, It is characterized in that The physical embedding module is implemented as follows: the partial differential equation solution process is defined as a given initial condition u 0 and boundary conditions u B The time series prediction problem under B ∈R (2H+2W)×C ,u 0 ∈R H×W×C , C is the number of physical quantities, and the boundary is extracted from the discrete spatial grid Ω of shape (H, W) Redefine the reverse SDE process: The optimization goal is definition where Z is a normalization constant that ensures The integral of M is equal to 1. B is the boundary mask for filtering the boundary area, with a value of 1 at the boundary and a value of 0 elsewhere. ⊙ represents the Hadamard product operator, and μ is a constant. Definition During the sampling process, The output translation ∈ B Get the corrected conditional probability estimate.

Citation Information

Cited By

  • Channel simulation method and system based on de-noising diffusion probability model

    CN119727948A

  • Laser powder bed melting multi-physics field high-fidelity reconstruction method based on diffusion model

    CN122509034A

  • High-fidelity reconstruction method of multi-physics fields of laser powder bed fusion based on diffusion model

    CN122509034B