Physics-Informed Neural Networks (PINNs) solve forward and inverse partial differential equation (PDE) problems in fluid mechanics by approximating the unknown field variables using a fully-connected deep neural network and embedding governing physical laws directly into the optimization loss function.
For a general parametrized PDE system defined on spatial domain Ω⊂Rd and time domain [0,T]:
f(x,t,u^,∂xu^,∂tu^,…;λ)=0,x∈Ω,t∈[0,T]
subject to initial conditions u^(x,t0)=g0(x) and boundary conditions u^(x,t)=gΓ(t) on ∂Ω, where λ=[λ1,λ2,…] are PDE parameters and f represents the PDE residual.
A feed-forward neural network maps space-time coordinates (x,t) to predicted state variables u^(x,t) through L layers:
z0=(x,t)
zk=σ(Wkzk−1+bk),1≤k≤L−1
u^≈zL=WLzL−1+bL
where Wk and bk denote the weight matrices and bias vectors collectively parameterized by θ, and σ(⋅) is a nonlinear activation function. Partial derivatives of u^ with respect to input coordinates (x,t) are computed via exact automatic differentiation (AD) using the chain rule on the computational graph, eliminating spatial discretization grids and truncation errors.
The composite loss function L(θ,λ) is minimized over the parameters θ (and unknown physics parameters λ in inverse problems):
L=ω1LPDE+ω2Ldata+ω3LIC+ω4LBC
where ω1−4 are user-defined or adaptive weighting coefficients, and each loss term is typically evaluated as a mean squared error (L2-norm) over sampling collocation points:
LPDE=Nf1∑i=1Nf∥f(xif,tif;θ,λ)∥2
Ldata=Ndata1∑i=1Ndata∥u^(xid,tid)−uid∥2
LIC=NIC1∑i=1NIC∥u^(xiIC,t0)−g0(xiIC)∥2
LBC=NBC1∑i=1NBC∥u^(xiBC,tiBC)−gΓ(tiBC)∥2