SlideShare a Scribd company logo
2
Most read
6
Most read
7
Most read
Abstract:
• To simulate fluid dynamics problems we use mostly experimental methods and
numerical simulating software.
• Numerical simulation methods are sensitive to mesh size, therefore , the cost
involved is also very high.
• Physics-Informed Neural Networks (PINNs) is used to solve any supervised
machine learning problems.
• PINNs is used to solve any PDEs/ODEs which may be of either a linear or
nonlinear form.
• There are two categories of problems that we encounter in practice:
a) Data-driven solution of PDEs
b) Data-driven discovery of PDEs
• Based on the availability of the data, there are mainly two types of models, which
are continuous-time models and discrete-time models.
Introduction:
• Recent advancements in machine learning algorithms and data sciences have produced
significant results for various scientific fields such as image recognition.
• Computational fluid dynamics (CFD) approaches like finite element methods (FEM), finite
volume methods (FVM), and finite difference methods (FDM) are used to solve any fluid
flow simulation problems.
• The above discretization schemes usually computes the values of a PDE at a set of grid
points which are distributed over spatial and temporal domain.
• PINNs together with automatic differentiation (autodiff) do not require mesh generation to
solve fluid dynamics problems.
• PINNs incorporate the governing equation loss, initial condition loss, and boundary
condition loss into the Loss function.
• Different optimization schemes like ADAM or SGD is used to optimize the loss function.
• Training of PINNs is time-consuming and prone to errors because we have to tune the
weights and biases.
• It is possible to obtain a locally optimal solution if we use Gradient Descent to optimize
the loss function.
Problem Set Up:
We model the fluid dynamics by the three-dimensional NS equations with the Newtonian
assumption:
𝜕 𝒖
𝜕 𝑡
+(𝒖· 𝛻 ) 𝒖=− 𝛻 𝑝 +
1
𝑅𝑒
𝛻
2
𝒖,∈Ω ,
, Continuity equation ,
where x = [x,y, z] Ω and t [0,T] denote space and time coordinates. The scalar
∈ ∈
h(x) is the initial constraints. u(x,y, z,t), v(x,y, z,t), and w(x,y, z,t) represent the x,y, and
z component of the velocity field. p(x,y, z,t) represents the pressure.
• The solution of Navier-Stokes equations could be approximated by neural network
û(x,t;θ). We consider the feed-forward fully connected neural network of depth M,
which takes the input x,y, z,t and denote the output of the m−th layer as û[m]
. The neural
network can be defined as:
where σ is the activation function including sigmoid, relu, and tanh. W[m]
and
b[m]
represent the weights and biases at m−th layer.
• The residual is defined as :
• We use automatic differentiation to find the partial derivatives.
• Different types of loss term are calculated as follows:
• Then the total loss term is calculated as follows:
where ω = {ωf ,ωb ,ωi ,ωd
} are the hyperparameters which is tuned during training of neural
network.
LPDE penalizes the residual for the loss in the governing equations.
Ldata penalizes the loss in the data.
and LIC and LBC implies the loss in the initial condition and boundary condition
respectively.
The parameters Nf ,Nb ,Ni ,Ndata are the total number of points.
• The best parameter collection θ∗
is identified by minimizing multiple loss functions as
given above.
• PINNs for the incompressible Navier-Stokes equations algorithm is summarized as follows:
Fig. 1 A schematic diagram of PINNs for solving N-S equation
Example:
I have used following conditions to solve N-S
equation using PINNs:
Viscosity of fluid: µ = 0.02kg · (m · sec)-1;
Density if
fluid: ρ = 1kg /m3
; At Inlet u(0,y) = u(inlet) = y(H −
y)*( 4/H2) and v(0, y) = 0 ; No slip Condition @
wall and cylinder surface ; Pressure of outlet equals to
zero i.e. p(1,y) = 0
Continuity Equation (for incompressible flow): · V
∇
= 0
Steady N-S equation : ρ. (V · )V = − p + µ
∇ ∇ ∇2
V
Or it can be expressed as Cauchy momentum equation
ρ(V · )V = · σ ; where σ = −p*I+ µ( V+ ( V)
∇ ∇ ∇ ∇ T
)
Fig. 2 A Schematic Diagram of Flow over a Cylinder
• After solving the Navier- Stokes equation, for the given case, using PINNs we have found the variation of
u(x,y) , v(x,y) and p(x,y) as follows:
Model 1:
Fig. 3 Variation of
velocity and pressure
with x direction for
model 1.
• After solving the Navier- Stokes equation, for the given case, using PINNs we have found the variation of
u(x,y) , v(x,y) and p(x,y) as follows:
Model 2:
Fig. 4 Variation of
velocity and pressure
with x direction for
model 2.
• After solving the Navier- Stokes equation, for the given case, using PINNs we have found the variation of
u(x,y) , v(x,y) and p(x,y) as follows:
Model 3:
Fig. 5 Variation of
velocity and pressure
with x direction for
model 3.
• After solving the Navier- Stokes equation, for the given case, using PINNs we have found the variation of
u(x,y) , v(x,y) and p(x,y) as follows:
Model 4:
Fig. 6 Variation of
velocity and pressure
with x direction for
model 4
References:
 Jin, X., Cai, S., Li, H., Karniadakis, G.E.: NSFnets (Navier-Stokes flow nets): Physics-
informed neural networks for the incompressible Navier-Stokes equations. Journal of
Computational Physics 426, 109951 (2021)
 Raissi, M., Perdikaris, P., Karniadakis, G.E.: Physics informed learning machine (2021).
US Patent 10,963,540
 Raissi, M., Perdikaris, P., Karniadakis, G.E.: Machine learning of linear differential
equations using Gaussian processes. Journal of Computational Physics 348, 683–693
(2017)
 Raissi, M., Perdikaris, P., Karniadakis, G.E.: Numerical Gaussian processes for time-
dependent and nonlinear partial differential equations. SIAM Journal on Scientific
Computing 40(1), A172– A198 (2018)
THANKYOU

More Related Content

PPT
Numerical Methods
PPTX
Strain Energy and Modulus Of Resilience
PDF
Higher Order Differential Equation
PPT
Introduction to mechanical vibration
PPT
6 7 irrotational flow
PPT
Hausdorff and Non-Hausdorff Spaces
PPTX
Introduction to Genetic Algorithms
PPTX
Fuzzy Logic ppt
Numerical Methods
Strain Energy and Modulus Of Resilience
Higher Order Differential Equation
Introduction to mechanical vibration
6 7 irrotational flow
Hausdorff and Non-Hausdorff Spaces
Introduction to Genetic Algorithms
Fuzzy Logic ppt

What's hot (20)

PPTX
Feed forward ,back propagation,gradient descent
PPTX
Compatibility equation and Airy's stress function of theory of elasticity
PPT
Fuzzy Set Theory
PPTX
Ch 12 (4) Curvilinear Motion X-Y Coordinate.pptx
PPTX
Fuzzy logic member functions
DOC
Gamma beta functions-1
PDF
Multi degree of freedom systems
PPT
Fuzzy logic control
PPTX
Theories of failure
PPT
maths
PPTX
Partial differentiation B tech
PDF
Eigenvalues and Eigenvectors (Tacoma Narrows Bridge video included)
PPT
Eigen value , eigen vectors, caley hamilton theorem
PPTX
Eigen value and eigen vector
PDF
Thesis defense
PDF
Boruta
 
PPT
Finite Element Analysis - UNIT-1
PDF
PPT SolidWorks Simulation Training.PDF
PPTX
Analysis of Thin Plates
PDF
Design of Machine Elements - Unit 3 Procedures
Feed forward ,back propagation,gradient descent
Compatibility equation and Airy's stress function of theory of elasticity
Fuzzy Set Theory
Ch 12 (4) Curvilinear Motion X-Y Coordinate.pptx
Fuzzy logic member functions
Gamma beta functions-1
Multi degree of freedom systems
Fuzzy logic control
Theories of failure
maths
Partial differentiation B tech
Eigenvalues and Eigenvectors (Tacoma Narrows Bridge video included)
Eigen value , eigen vectors, caley hamilton theorem
Eigen value and eigen vector
Thesis defense
Boruta
 
Finite Element Analysis - UNIT-1
PPT SolidWorks Simulation Training.PDF
Analysis of Thin Plates
Design of Machine Elements - Unit 3 Procedures
Ad

Similar to deep learning for fluid mechanics using PINNs (20)

PPTX
H_10_Shoemajhjhmathbcghjkkkhfghuker.pptx
PDF
A study-to-understand-differential-equations-applied-to-aerodynamics-using-cf...
PDF
pof
PDF
master_thesis_presentation_Sreenjay_Sen.pdf
PPTX
compuatational fluid dynamics information
PDF
A deep learning framework for solving forward and inverse problems involving ...
PPTX
Neural ODE
PDF
Manuscript
PDF
Scilab Finite element solver for stationary and incompressible navier-stokes ...
PDF
CFD Course
PDF
lec_slides.pdf
PDF
Lagrangian Fluid Simulation with Continuous Convolutions
PPT
CFD_Lecture_Engineering(Introduction_to_CFD).ppt
PDF
Mathematical behaviour of pde's
PPTX
PDF
Towards Scientific Foundation Models (Invited Talk)
PDF
CFD_notes.pdf
PPT
CFD_Lecture_(Introduction_to_CFD).ppt
PPTX
Turbulence numerical modelling
PDF
cemracs_vivabrain_slides
H_10_Shoemajhjhmathbcghjkkkhfghuker.pptx
A study-to-understand-differential-equations-applied-to-aerodynamics-using-cf...
pof
master_thesis_presentation_Sreenjay_Sen.pdf
compuatational fluid dynamics information
A deep learning framework for solving forward and inverse problems involving ...
Neural ODE
Manuscript
Scilab Finite element solver for stationary and incompressible navier-stokes ...
CFD Course
lec_slides.pdf
Lagrangian Fluid Simulation with Continuous Convolutions
CFD_Lecture_Engineering(Introduction_to_CFD).ppt
Mathematical behaviour of pde's
Towards Scientific Foundation Models (Invited Talk)
CFD_notes.pdf
CFD_Lecture_(Introduction_to_CFD).ppt
Turbulence numerical modelling
cemracs_vivabrain_slides
Ad

Recently uploaded (20)

PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Computing-Curriculum for Schools in Ghana
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
master seminar digital applications in india
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
Presentation on HIE in infants and its manifestations
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Computing-Curriculum for Schools in Ghana
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Final Presentation General Medicine 03-08-2024.pptx
Chinmaya Tiranga quiz Grand Finale.pdf
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
O5-L3 Freight Transport Ops (International) V1.pdf
master seminar digital applications in india
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
2.FourierTransform-ShortQuestionswithAnswers.pdf
Presentation on HIE in infants and its manifestations
FourierSeries-QuestionsWithAnswers(Part-A).pdf
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
Anesthesia in Laparoscopic Surgery in India
Microbial diseases, their pathogenesis and prophylaxis
Module 4: Burden of Disease Tutorial Slides S2 2025
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx

deep learning for fluid mechanics using PINNs

  • 1. Abstract: • To simulate fluid dynamics problems we use mostly experimental methods and numerical simulating software. • Numerical simulation methods are sensitive to mesh size, therefore , the cost involved is also very high. • Physics-Informed Neural Networks (PINNs) is used to solve any supervised machine learning problems. • PINNs is used to solve any PDEs/ODEs which may be of either a linear or nonlinear form. • There are two categories of problems that we encounter in practice: a) Data-driven solution of PDEs b) Data-driven discovery of PDEs • Based on the availability of the data, there are mainly two types of models, which are continuous-time models and discrete-time models.
  • 2. Introduction: • Recent advancements in machine learning algorithms and data sciences have produced significant results for various scientific fields such as image recognition. • Computational fluid dynamics (CFD) approaches like finite element methods (FEM), finite volume methods (FVM), and finite difference methods (FDM) are used to solve any fluid flow simulation problems. • The above discretization schemes usually computes the values of a PDE at a set of grid points which are distributed over spatial and temporal domain. • PINNs together with automatic differentiation (autodiff) do not require mesh generation to solve fluid dynamics problems. • PINNs incorporate the governing equation loss, initial condition loss, and boundary condition loss into the Loss function. • Different optimization schemes like ADAM or SGD is used to optimize the loss function. • Training of PINNs is time-consuming and prone to errors because we have to tune the weights and biases. • It is possible to obtain a locally optimal solution if we use Gradient Descent to optimize the loss function.
  • 3. Problem Set Up: We model the fluid dynamics by the three-dimensional NS equations with the Newtonian assumption: 𝜕 𝒖 𝜕 𝑡 +(𝒖· 𝛻 ) 𝒖=− 𝛻 𝑝 + 1 𝑅𝑒 𝛻 2 𝒖,∈Ω , , Continuity equation , where x = [x,y, z] Ω and t [0,T] denote space and time coordinates. The scalar ∈ ∈ h(x) is the initial constraints. u(x,y, z,t), v(x,y, z,t), and w(x,y, z,t) represent the x,y, and z component of the velocity field. p(x,y, z,t) represents the pressure.
  • 4. • The solution of Navier-Stokes equations could be approximated by neural network û(x,t;θ). We consider the feed-forward fully connected neural network of depth M, which takes the input x,y, z,t and denote the output of the m−th layer as û[m] . The neural network can be defined as: where σ is the activation function including sigmoid, relu, and tanh. W[m] and b[m] represent the weights and biases at m−th layer.
  • 5. • The residual is defined as : • We use automatic differentiation to find the partial derivatives. • Different types of loss term are calculated as follows:
  • 6. • Then the total loss term is calculated as follows: where ω = {ωf ,ωb ,ωi ,ωd } are the hyperparameters which is tuned during training of neural network. LPDE penalizes the residual for the loss in the governing equations. Ldata penalizes the loss in the data. and LIC and LBC implies the loss in the initial condition and boundary condition respectively. The parameters Nf ,Nb ,Ni ,Ndata are the total number of points. • The best parameter collection θ∗ is identified by minimizing multiple loss functions as given above.
  • 7. • PINNs for the incompressible Navier-Stokes equations algorithm is summarized as follows: Fig. 1 A schematic diagram of PINNs for solving N-S equation
  • 8. Example: I have used following conditions to solve N-S equation using PINNs: Viscosity of fluid: µ = 0.02kg · (m · sec)-1; Density if fluid: ρ = 1kg /m3 ; At Inlet u(0,y) = u(inlet) = y(H − y)*( 4/H2) and v(0, y) = 0 ; No slip Condition @ wall and cylinder surface ; Pressure of outlet equals to zero i.e. p(1,y) = 0 Continuity Equation (for incompressible flow): · V ∇ = 0 Steady N-S equation : ρ. (V · )V = − p + µ ∇ ∇ ∇2 V Or it can be expressed as Cauchy momentum equation ρ(V · )V = · σ ; where σ = −p*I+ µ( V+ ( V) ∇ ∇ ∇ ∇ T ) Fig. 2 A Schematic Diagram of Flow over a Cylinder
  • 9. • After solving the Navier- Stokes equation, for the given case, using PINNs we have found the variation of u(x,y) , v(x,y) and p(x,y) as follows: Model 1: Fig. 3 Variation of velocity and pressure with x direction for model 1.
  • 10. • After solving the Navier- Stokes equation, for the given case, using PINNs we have found the variation of u(x,y) , v(x,y) and p(x,y) as follows: Model 2: Fig. 4 Variation of velocity and pressure with x direction for model 2.
  • 11. • After solving the Navier- Stokes equation, for the given case, using PINNs we have found the variation of u(x,y) , v(x,y) and p(x,y) as follows: Model 3: Fig. 5 Variation of velocity and pressure with x direction for model 3.
  • 12. • After solving the Navier- Stokes equation, for the given case, using PINNs we have found the variation of u(x,y) , v(x,y) and p(x,y) as follows: Model 4: Fig. 6 Variation of velocity and pressure with x direction for model 4
  • 13. References:  Jin, X., Cai, S., Li, H., Karniadakis, G.E.: NSFnets (Navier-Stokes flow nets): Physics- informed neural networks for the incompressible Navier-Stokes equations. Journal of Computational Physics 426, 109951 (2021)  Raissi, M., Perdikaris, P., Karniadakis, G.E.: Physics informed learning machine (2021). US Patent 10,963,540  Raissi, M., Perdikaris, P., Karniadakis, G.E.: Machine learning of linear differential equations using Gaussian processes. Journal of Computational Physics 348, 683–693 (2017)  Raissi, M., Perdikaris, P., Karniadakis, G.E.: Numerical Gaussian processes for time- dependent and nonlinear partial differential equations. SIAM Journal on Scientific Computing 40(1), A172– A198 (2018)