betaFeedback

WorksPhysics and Astronomy

Data-free continuous-time physics-informed neural networks for vortex shedding: a consistent pressure across time windows

Abstract

Without data, physics-informed neural networks (PINNs) in continuous time have so far failed to develop vortex shedding past a circular cylinder in a domain symmetric about the wake centerline: the training converges to the steady symmetric solution. We obtain shedding at Re=100 with a continuous-time PINN trained over successive time windows, without any reference data and without temporal discretization, the symmetry being broken by an analytical, divergence-free initial condition. The Strouhal number and the mean drag coefficient agree with an OpenFOAM solution computed on the same domain to within 0.5%. The pressure, however, is discontinuous at the junctions between windows, and the lift coefficient is a staircase. We relate this discontinuity to the differential-algebraic structure of the incompressible Navier-Stokes equations, of index 2 after spatial discretization: a consistent initial condition of each window must satisfy the constraint ∇⋅v=0\nabla\cdot\mathbf{v}=0 for the velocity, and the hidden constraint ∇⋅∂tv=0\nabla\cdot\partial_t\mathbf{v}=0, with ∂tv\partial_t\mathbf{v} given by the momentum equation, then determines the pressure. Imposing the pressure alone makes the solution continuous but not consistent; our remedy imposes the pressure at the junctions and adds this hidden constraint to the loss. Over five shedding periods, the jumps of the lift coefficient become 20 times smaller.

Introduction

Since the work of Raissi et al. [1], physics-informed neural networks (PINNs) have been considered as an alternative to classical computational fluid dynamics (CFD) solvers [2, 3]. A PINN approximates the solution of a partial differential equation by a neural network whose parameters minimize the residuals of the governing equations at collocation points, the derivatives being computed by automatic differentiation [4]. The method requires no mesh, and the solver reduces to the evaluation of these residuals within a standard training loop, so that the code is short and easy to maintain. Much effort has been devoted to bringing PINNs to the accuracy of CFD solvers: changes of the network architecture, such as periodic activation functions [5] or Fourier-feature embeddings of the inputs, which counter the difficulty of standard networks in learning high frequencies [6], the balancing of the terms of the loss [7], the enforcement of temporal causality [8], and the combination of such techniques into a training procedure [9]. Problems that have long served as standard benchmarks in CFD nevertheless remain difficult for PINNs. The two-dimensional flow past a circular cylinder [10, 11], the subject of this work, is an example.

Without data, i.e., for the forward problem, in which the flow is determined by the governing equations and by initial and boundary conditions given in closed form, continuous-time PINNs have so far failed to develop vortex shedding past a circular cylinder in a domain symmetric about the wake centerline. Chuang and Barba [12, 13] report that the PINN behaves as a steady-flow solver at Re=200Re = 200, and Rohrhofer et al. [14] observe the same behavior at Re=100Re = 100, even when DNS data are supplied over the first half shedding period. Without data, continuous-time PINNs also fail [15, 16] on the Schäfer–Turek benchmark [10], even though the cylinder is placed off the channel centerline [16]. Çıbık [17] trains a single space-time network with an artificial-compressibility formulation and adds a small antisymmetric transverse perturbation to the initial condition to break the symmetry; the solution nevertheless relaxes to a steady, nearly symmetric wake. The steady symmetric solution cancels the residuals and satisfies the boundary conditions at every instant, so that only the initial-condition term of the loss penalizes it.

Successful simulations of shedding by PINNs therefore supply additional information: reference data in the loss, inside the domain [16, 17] or as boundary and initial conditions on a subdomain of the wake [18], an initial condition taken from a numerical simulation [9, 19], or a cylinder placed off the channel centerline [9, 20].

Other formulations obtain shedding without data by discretizing time. Hu and Senocak [21] do so in a symmetric domain at Re=100Re = 100: the time derivative is discretized by a second-order backward differentiation formula with Δt=0.25\Delta t = 0.25, a separate network representing the flow at each time level, and they motivate this choice by the accumulation of errors observed with space-time formulations. Neural solvers trained without data on a grid also advance the flow from one time step to the next: a recurrent convolutional network on a staggered grid, with a discretized time derivative [22], and Spline-PINN [15], in which a convolutional network advances the coefficients of Hermite splines in space and time from t^\hat{t} to t^+dt\hat{t} + \mathrm{d}t, on the Schäfer–Turek benchmark. Within a time step, the Spline-PINN solution is continuous in time. The approach of the present work uses neither a grid nor a recurrent network: each time window is represented by a network continuous in (x,y,t)(x,y,t), trained at collocation points.

Successive time windows [23, 24, 9] keep time as a continuous input of the network: the time interval is divided into windows trained one after the other, the initial condition of each window being the prediction of the previous network at the end of its window. Within a window no temporal discretization is introduced. The junctions between windows are, however, a known weak point. For a rotating cylinder, Khan et al. [19] impose as initial condition of each window the velocity predicted by the previous network, but not the pressure; we call this junction the vv-junction. They observe a jump of the forces at the boundary between two windows, which they attribute to the time marching not fully enforcing the continuity of the pressure. Their PINN starts from a CFD velocity field in the periodic regime and covers less than one shedding period, two windows in total. Roy and Castonguay [25] enforce the continuity between windows exactly, through a solution ansatz, the required order of continuity being one less than the highest order of the time derivatives in the problem; their examples do not include the incompressible Navier–Stokes equations.

In this work, we make two contributions. First, we show that a continuous-time PINN trained over successive time windows develops vortex shedding at Re=100Re = 100 in a domain symmetric about the wake centerline, without any reference data. The symmetry is broken by an analytical, divergence-free initial condition, two uniform streams of velocities 3/23/2 and 1/21/2 on either side of the wake centerline, adapted from the initial condition used to trigger shedding with the LS-STAG cut-cell method [26]. Over 145 windows, the Strouhal number and the mean drag coefficient agree with an OpenFOAM solution computed on the same domain. Second, we show that the force jumps at the junctions come from the pressure, and we relate them to the differential-algebraic structure of the incompressible Navier–Stokes equations, whose spatial discretizations are differential-algebraic systems of index 2 [27, 28]. A consistent initial condition of such a system must satisfy the constraint ∇⋅v=0\nabla\cdot\boldsymbol{v} = 0 for the velocity, and the hidden constraint ∇⋅∂tv=0\nabla\cdot\partial_t\boldsymbol{v} = 0, with ∂tv\partial_t\boldsymbol{v} given by the momentum equation, then determines the pressure. For such systems, time integrators lose accuracy on the algebraic variable, the pressure [27, 28]. By analogy with this loss of accuracy, we interpret the jumps as follows: with the v\boldsymbol{v}-junction, the initial condition of each window fixes the velocity only, and the loss, which controls ∇⋅v\nabla\cdot\boldsymbol{v} in mean square over a short window, determines the pressure at the junction only weakly. The continuity of the velocity, which is the order of continuity prescribed for problems of first order in time [25], is therefore not sufficient for this differential-algebraic structure. We propose a remedy, the consistent junction, which imposes the pressure in the initial condition of each window and adds this hidden constraint to the loss. Two controls, each with one ingredient only, show that neither suffices alone: the (v,p)(\boldsymbol{v},p)-junction, which adds the pressure to the initial condition of the v\boldsymbol{v}-junction but not the hidden constraint to the loss, makes the solution continuous but not consistent, and the v\boldsymbol{v}-junction with the hidden constraint in the loss reduces the jumps without removing them. The argument does not depend on the geometry and applies to any continuous-time PINN trained over successive windows on the incompressible Navier–Stokes equations; it is tested here on the cylinder only. Section 2 describes the problem and the method, and Section 3 presents the results.

Problem and method

Governing equations, domain and initial condition

With the cylinder diameter DD and the free-stream velocity U∞U_\infty as scales, the incompressible Navier–Stokes equations read

∂tv+(v⋅∇)v+∇p−1Re∇2v=0,(1)\partial_t\boldsymbol{v}+(\boldsymbol{v}\cdot\nabla)\boldsymbol{v}+\nabla p-\frac{1}{Re}\nabla^2\boldsymbol{v}=0, \tag*{(1)}
∇⋅v=0,(2)\nabla\cdot\boldsymbol{v}=0, \tag*{(2)}

with v=(u,v)T\boldsymbol{v}=(u,v)^{\mathsf{T}}, pp the pressure scaled by ρU∞2\rho U_\infty^2, and Re=U∞D/ν=100Re=U_\infty D/\nu=100. The cylinder of unit diameter is centered at the origin of the rectangle [−5,9.3]×[−5,5][-5,9.3]\times[-5,5], which gives a blockage ratio of 0.1 (Figure 1). The boundary conditions are u=1u=1, v=0v=0 at the inlet, no slip on the cylinder, and v=0\boldsymbol{v}=0, ∂u/∂y=0\partial u/\partial y=0 on the lateral boundaries y=±5y=\pm5. No condition is imposed at the outlet; the influence of this choice is left for future work. The domain and the boundary conditions are symmetric about y=0y=0, so that a symmetric initial condition would lead to a symmetric solution. The symmetry is broken by the initial condition

Computational domain, boundary conditions and initial condition

Figure 1. Computational domain Ω\Omega, to scale, boundary conditions and initial condition (2). The cylinder of unit diameter is centered at the origin, on the wake centerline y=0y=0 (dashed). Γin\Gamma_{\mathrm{in}}, Γout\Gamma_{\mathrm{out}}, Γlat\Gamma_{\mathrm{lat}} and Γc\Gamma_{\mathrm{c}} denote the inlet, the outlet, the lateral boundaries and the cylinder wall.

u(0,x,y)={3/2if y≥0,1/2if y<0,v(0,x,y)=0,(3)u(0,x,y)= \begin{cases} 3/2 & \text{if } y\geq0,\\ 1/2 & \text{if } y<0, \end{cases} \qquad v(0,x,y)=0, \tag*{(3)}

two uniform streams separated by a shear at y=0y=0. It is divergence-free and given in closed form, and its flow rate through any section x=const.x=\mathrm{const.} equals that imposed at the inlet. It is obtained by adding 1/21/2 to the initial condition used to trigger shedding with the LS-STAG cut-cell method [26]. It satisfies neither the no-slip condition on the cylinder nor the inlet condition. No other information on the flow is given to the network.

PINN over successive time windows

The time interval is divided into windows [tk,tk+1][t_k,t_{k+1}] of length Tw=0.4T_w=0.4, about 7% of the shedding period, with tk=kTwt_k=kT_w. A network Nk:(x,y,t)↦(u,v,p)\mathcal{N}_k:(x,y,t)\mapsto(u,v,p) is trained on each window, the windows being treated one after the other, and Nk+1\mathcal{N}_{k+1} is initialized with the parameters of Nk\mathcal{N}_k. Within a window, time is a continuous input of the network and ∂tv\partial_t v is computed by automatic differentiation: no temporal discretization is introduced. The loss of Nk+1\mathcal{N}_{k+1} reads

L=Lres+Lbc+ωicLic,(4)\mathcal{L}=\mathcal{L}_{\mathrm{res}}+\mathcal{L}_{\mathrm{bc}}+\omega_{\mathrm{ic}}\mathcal{L}_{\mathrm{ic}}, \tag*{(4)}

where Lres\mathcal{L}_{\mathrm{res}} is the mean square of the residuals of (1) at collocation points drawn at random from the uniform distribution on [tk,tk+1]×Ω[t_k,t_{k+1}]\times\Omega and redrawn at each iteration (random sampling with resampling [29]), Lbc\mathcal{L}_{\mathrm{bc}} that of the boundary conditions, and Lic\mathcal{L}_{\mathrm{ic}} the mean square of vNk+1(tk)−vNk(tk)v_{\mathcal{N}_{k+1}}(t_k)-v_{\mathcal{N}_k}(t_k) at points drawn in Ω\Omega, with ωic=10\omega_{\mathrm{ic}}=10, the initial condition of the first window being (2). This is the vv-junction. The (v,p)(v,p)-junction adds the pressure to Lic\mathcal{L}_{\mathrm{ic}}, and the consistent junction of § 3.3 adds, in addition, a term Ldiv,t\mathcal{L}_{\mathrm{div},t} to (3). A control adds this term to the vv-junction without the pressure. The four configurations use the same network and training parameters, summarized in Table 1. Other techniques improve the accuracy of PINNs, such as the adaptive refinement of the collocation points [29] or the dynamic weighting of the terms of the loss [7]. None of them is used here: the four configurations differ only by the initial condition of each window and by the term Ldiv,t\mathcal{L}_{\mathrm{div},t}, so as to isolate the effect of the junction.

JunctionInitial condition of Nk+1\mathcal{N}_{k+1}Hidden constraint Ldiv,t\mathcal{L}_{\mathrm{div},t}
vv-junctionvvno
vv-junction + Ldiv,t\mathcal{L}_{\mathrm{div},t} (control)vvyes, weight 1
(v,p)(v,p)-junctionvv and ppno
Consistent junctionvv and ppyes, weight 1
Hidden layers3×1933 \times193
Spatial Fourier features128128, σ=2.5\sigma=2.5
Time Fourier features128128, σt=0.25\sigma_t=0.25
OptimizerAdam, learning rate 10−410^{-4}
Iterations per window10410^4
Collocation points per iter.1024, uniform random, redrawn

Table 1. Junctions between windows and common parameters. All runs use Tw=0.4T_w=0.4, GELU activations, Fourier features of the spatial coordinates and of time [6, 9], and the parameters of Nk\mathcal{N}_k to initialize Nk+1\mathcal{N}_{k+1}.

Quantities of interest

The drag and lift coefficients CDC_D and CLC_L are obtained by integrating the pressure and the viscous stress given by the network on the cylinder, with the composite midpoint rule on 200 arcs. The Strouhal number StSt is obtained from the upward zero crossings of CL−CL‾C_L-\overline{C_L}, located by linear interpolation. Each network is evaluated at 21 equally spaced instants of its window, both ends included, so that at a junction tkt_k both Nk\mathcal{N}_k and Nk+1\mathcal{N}_{k+1} are evaluated; the statistics use the value of Nk\mathcal{N}_k. The pressure is defined up to an additive constant, which may differ from one window to the next; at a probe we therefore report p−prefp-p_{\mathrm{ref}}, with prefp_{\mathrm{ref}} the pressure at (−4.49,0.01)(-4.49, 0.01), upstream of the cylinder. The probes A, B and C are located at (0,0.8)(0, 0.8), above the cylinder, (1,0)(1, 0), in the recirculation region, and (4,0)(4, 0), on the wake centerline, to within 0.015: each probe is the node of the reference mesh nearest to these points, and both solutions are evaluated there. With [q]k=qNk+1(tk)−qNk(tk)[q]_k=q_{\mathcal{N}_{k+1}}(t_k)-q_{\mathcal{N}_k}(t_k) the jump of a quantity qq at tkt_k, we define the jump ratio and the slope-jump ratio

τk(q)=∣[q]k∣Δqref,κk(q)=∣[∂tq]k∣max⁡t∣∂tqref∣,(5)\tau_k(q)=\frac{\lvert[q]_k\rvert}{\Delta q_{\mathrm{ref}}}, \qquad\kappa_k(q)=\frac{\lvert[\partial_tq]_k\rvert}{\max_t\lvert\partial_tq_{\mathrm{ref}}\rvert}, \tag*{(5)}

where Δqref\Delta q_{\mathrm{ref}} is the half peak-to-peak amplitude of qq and max⁡t∣∂tqref∣\max_t\lvert\partial_tq_{\mathrm{ref}}\rvert the maximum magnitude of its time derivative, both taken from the periodic regime of the reference solution described below, and [∂tq]k[\partial_tq]_k is computed by automatic differentiation of Nk\mathcal{N}_k and Nk+1\mathcal{N}_{k+1} at tkt_k. The jump ratio τk\tau_k is the jump as a fraction of the reference amplitude, and the slope-jump ratio κk\kappa_k is the jump of the slope as a fraction of the maximum reference slope; it is only meaningful where qq is continuous. Both scales are taken from the reference solution rather than from the PINN signal, so that they are the same for the four configurations and are not affected by the errors of each run on the amplitude or on the slope of qq. We report the medians of τk\tau_k and κk\kappa_k over the junctions. All the networks are evaluated in double precision.

The reference solution is computed with OpenFOAM (icoFoam, second order in space and time) on the same domain, from rest, on a mesh of 139056 cells; the statistics are taken over t∈[130,200]t\in[130,200]. On a mesh refined by a factor 1.5, CD‾\overline{C_D} and StSt change by 0.2% and 0.1%, and CL′C'_L by 1.2%. This solution uses a fixed pressure and a zero velocity gradient at the outlet.

Results

Onset of shedding

Figure 2 shows the force coefficients obtained with the consistent junction (§ 3.3) over t∈[0,58]t \in[0,58], i.e., 145 windows, and the vorticity at four instants. The network replaces the discontinuity of (2) at y=0y = 0 by a thin shear layer. At t=2t = 2, the wake behind the cylinder is already asymmetric, at t=5t = 5 a vortex rolls up in the near wake, and at t=10t = 10 vortices of opposite sign are shed alternately into the wake. No steady symmetric recirculation region forms before the shedding. From t≈8t \approx8, the half peak-to-peak amplitude of CLC_L over each period lies between 0.37 and 0.41. The four configurations of Table 1 develop shedding from the same initial condition, and their Strouhal numbers differ from the reference value by less than 1.5% (Table 2). All the statistics and junction ratios below are computed over t∈[24.8,58]t \in[24.8,58], i.e., about five shedding periods and 83 junctions. The interval stops at t=58t = 58 because, beyond it, the mean drag coefficient of the consistent junction drifts (§ 4).

Referencevvv+Ldiv,tv + \mathcal{L}_{\mathrm{div},t}(v,p)(v,p)Consistent
IC of Nk+1\mathcal{N}_{k+1}–vvvvv,pv,pv,pv,p
Ldiv,t\mathcal{L}_{\mathrm{div},t}–noyesnoyes
StSt0.1780.1790.1780.1760.178
CD‾\overline{C_D}1.4921.4871.4781.4991.495
CL‾\overline{C_L}0.2610.2730.2600.2880.284
ΔCL\Delta C_L0.3700.4150.3870.4910.412
SlatS_{\mathrm{lat}}–0.040.030.260.07
τk(CL)\tau_k(C_L)–0.190.110.0070.009
τk(CD)\tau_k(C_D)–0.930.810.300.16
τk(p−pref)\tau_k(p-p_{\mathrm{ref}}), A/B/C–0.27/0.16/0.210.10/0.13/0.080.01/0.03/0.010.006/0.020/0.009
τk(u)\tau_k(u), τk(v)\tau_k(v), A, B, C–0.001–0.030.001–0.030.002–0.050.002–0.04
κk(CL)\kappa_k(C_L)–––1.20.24
κk(p−pref)\kappa_k(p-p_{\mathrm{ref}}), A/B/C–––14/17/9.20.28/0.28/0.18

Table 2. Statistics of the periodic regime, and medians of the jump ratio τk\tau_k and of the slope-jump ratio κk\kappa_k (4) at the junctions, both normalized by the reference solution, for t∈[24.8,58]t \in[24.8,58] (83 junctions); reference solution: t∈[130,200]t \in[130,200]. SlatS_{\mathrm{lat}}: maximum of ∣∬∇⋅v dxdy∣\lvert\iint\nabla\cdot\mathbf{v}\,\mathrm{d}x\mathrm{d}y \rvert over the bands ∣y∣>3\lvert y\rvert> 3. The probes are those of Figure 3. κk\kappa_k is not given for the vv-junction and its control, whose CLC_L and pressure are discontinuous.

Figure 2. Onset of vortex shedding computed by the PINN with the consistent junction, from the initial condition (2). (a) Lift and (b) drag coefficients; the dotted lines mark the instants shown below and the shaded interval is that of the statistics. (c)–(f) Vorticity of the PINN at t=0t = 0, 22, 55 and 1010. The reference solution, computed from rest, has a different transient and is not shown.

A staircase lift coefficient

With the vv-junction, the statistics agree with the reference solution: StSt and CD‾\overline{C_D} are within 0.5% of the reference values (Table 2). This agreement hides a defect, visible when each window is plotted separately (Figure 3a): CLC_L jumps at every junction, and 53% of its total variation over t∈[24.8,58]t \in[24.8,58] takes place through these jumps. The lift coefficient is a staircase. The rms value of the jumps [CL]k[C_L]_k is 0.074, i.e., 27% of CL′C'_L, and the median jump is 19% of the reference amplitude ΔCL\Delta C_L (τk=0.19\tau_k = 0.19). The amplitude ΔCL\Delta C_L is overestimated by 12%. The drag coefficient jumps as well, by 0.016 in rms value (τk=0.93\tau_k = 0.93). Khan et al. [19] observe the same kind of jump of the forces at the junction between two windows.

Figure 3. PINN with the vv-junction (solid lines) and reference solution (OpenFOAM, dashed lines): (a) lift coefficient and (b)–(d) pressure p−prefp-p_{\mathrm{ref}} at the probes A, B and C, over t∈[30,36]t \in[30,36]. Each window of the PINN is plotted separately, its first instant being marked by a dot. The reference solution is shifted in time to match the phase of CLC_L.

To identify the discontinuous field, Figure 3b–Figure 3d shows p−prefp - p_{\mathrm{ref}} at the three probes A, B and C (§ 2.3). The pressure is discontinuous at every junction, the median jump being 27%, 16% and 21% of the reference amplitude at A, B and C. Between two junctions, the pressure follows the variation of the reference solution. The velocity components at the same probes are continuous, with jump ratios between 0.001 and 0.03.

This discontinuity follows from the structure of (1). The pressure has no evolution equation: it is an algebraic variable, determined at each instant by the velocity through the constraint (2), once this constraint is differentiated in time. This is the structure of a differential-algebraic system of index 2, which the spatial discretizations of (1) are [27, 28]; the PINN solves (1) without spatial discretization, and the argument below is made on the continuous equations. The initial condition of Nk+1\mathcal{N}_{k+1} imposes its velocity at tkt_k, but not its pressure. In the exact solution, the pressure is fixed, up to a constant, by the constraint

∇⋅∂tv=0,(6)\nabla\cdot\partial_t \boldsymbol{v} = 0, \tag*{(6)}

obtained by differentiating (2) in time, which we call the hidden constraint; through (1), it is, for a divergence-free velocity, a Poisson equation for the pressure. As for an index-2 system [27, 28], an initial condition is consistent only if it satisfies this hidden constraint. In the limit of a vanishing loss, the constraint (2), enforced over the whole window, would imply (6). For index-2 systems, time integrators lose accuracy on the algebraic variable, here the pressure: its order of convergence is lower than that of the differential variable, here the velocity [27, 28]. By analogy with this loss of accuracy, we interpret the pressure jumps at the junctions as follows: the loss controls ∇⋅v\nabla\cdot\boldsymbol{v} only in mean square over a short window, and therefore determines the pressure at the junction only weakly.

Remedy: the consistent junction

The remedy, the consistent junction, has two ingredients, which we separate with two controls that contain only one of them: the (v,p)(\boldsymbol{v},p)-junction and the v\boldsymbol{v}-junction with Ldiv,t\mathcal{L}_{\mathrm{div},t}. First, the initial condition of Nk+1\mathcal{N}_{k+1} imposes both the velocity and the pressure of Nk\mathcal{N}_k at tkt_k. Second, the hidden constraint (6) is added to the loss (4) through the term

Ldiv,t=1Nr∑i=1Nr∣∂t(∇⋅v)(ti,xi,yi)∣2,(7)\mathcal{L}_{\mathrm{div},t} = \frac{1}{N_r}\sum_{i=1}^{N_r}\left|\partial_t(\nabla\cdot\boldsymbol{v})(t_i,x_i,y_i)\right|^2, \tag*{(7)}

evaluated at the NrN_r collocation points of the residuals, with a weight of 1. The constraint (2) and its time derivative (6) are thus both enforced; replacing the former by the latter would only preserve ∇⋅v=0\nabla\cdot\boldsymbol{v}=0 if the initial condition satisfied it exactly [28]. When the residuals of (1) and (2) vanish, Ldiv,t=0\mathcal{L}_{\mathrm{div},t}=0 is equivalent to the pressure Poisson equation ∇2p+∇v:(∇v)T=0\nabla^2p+\nabla\boldsymbol{v}:(\nabla\boldsymbol{v})^\mathsf{T}=0, whose residual Hu\mathcal{H}_u and

Senocak [21] minimize, in discrete time. The term itself is therefore not new; its role at the junctions between windows is. The (v,p)(v,p)-junction uses the pressure in the initial condition but not Ldiv,t\mathcal{L}_{\mathrm{div},t}, and the control v+Ldiv,tv+\mathcal{L}_{\mathrm{div},t} uses Ldiv,t\mathcal{L}_{\mathrm{div},t} but not the pressure (Table 1).

Imposing the pressure makes the solution continuous (Figure 4): with the (v,p)(\boldsymbol{v},p)-junction, the median jump ratio of CLC_L falls from 0.19 to 0.007, and those of p−prefp-p_{\mathrm{ref}} at the three probes lie between 0.01 and 0.03 (Table 2). Continuity is, however, not sufficient. The slope of the signals jumps at each junction: the median jump of the slope is 1.2 times the maximum slope of the reference solution for CLC_L, and between 9 and 17 times for the pressure at the probes. Between two junctions, the pressure at the probes departs from the reference solution, with an amplitude several times larger (Figure 4b–Figure 4d). The lift amplitude ΔCL\Delta C_L is 33% too large, and the Strouhal number, 0.176, is 1.4% below the reference value. Without (5), the time derivative of the velocity associated with the transmitted pressure through (1a) need not be divergence-free, and we observe spurious sources and sinks of mass: the integral of ∇⋅v\nabla\cdot\boldsymbol{v} over the bands ∣y∣>3|y| > 3 reaches 0.26, i.e., 2.6% of the flow rate through the domain, against 0.04 with the v\boldsymbol{v}-junction.

Figure 4. PINN with the (v,p)(v,p)-junction, i.e., with the pressure in the initial condition of each window but without Ldiv,t\mathcal{L}_{\mathrm{div},t} (solid lines), and reference solution (OpenFOAM, dashed lines): same quantities, probes and time interval as in Figure 3.

The hidden constraint alone does not remove the jumps either. With the control v+Ldiv,t\boldsymbol{v}+\mathcal{L}_{\mathrm{div},t}, the median jump ratio of CLC_L falls from 0.19 to 0.11, and those of p−prefp-p_{\mathrm{ref}} at A, B and C from 0.27, 0.16 and 0.21 to 0.10, 0.13 and 0.08 (Table 2), i.e., by factors between 1.3 and 2.7: CLC_L and the pressure remain discontinuous. The Strouhal number is within 0.5% of the reference value, CD‾=1.478\overline{C_D}=1.478 is 0.9% below it, and the mass source is 0.03. Neither ingredient is thus sufficient alone: the pressure makes the solution continuous but not consistent, and the hidden constraint reduces the jumps without removing them.

The consistent junction, which adds Ldiv,t\mathcal{L}_{\mathrm{div},t}, removes these defects (Figure 5). The lift coefficient and the pressure remain continuous, with a median jump ratio of 0.009 for CLC_L, 20 times smaller than with the v\boldsymbol{v}-junction, and between 0.006 and 0.02 for the pressure. The slope-jump ratios fall to 0.24 for CLC_L and between 0.18 and 0.28 for the pressure, i.e., 5 times smaller for CLC_L and 50 to 60 times smaller for the pressure than with the (v,p)(\boldsymbol{v},p)-junction, and the mass source falls to 0.07. Between two junctions, the pressure at the probes follows the reference solution. The mean drag coefficient and the Strouhal number are within 0.5% of the reference values. The lift amplitude is less accurate: CL‾=0.284\overline{C_L}=0.284 and ΔCL=0.412\Delta C_L=0.412 exceed the reference values by 9% and 11%. The mean drag coefficient increases slowly over the interval, from 1.472 over its first period to 1.509 over its last one. The pressure imposed at the junctions thus ensures the continuity of the solution, and the hidden constraint ensures that this pressure is consistent with the velocity.

Figure 5. PINN with the consistent junction, i.e., with the pressure in the initial condition of each window and Ldiv,t\mathcal{L}_{\mathrm{div},t} in the loss (solid lines), and reference solution (OpenFOAM, dashed lines): same quantities, probes and time interval as in Figure 3.

At the same phase of the shedding cycle, the instantaneous fields of the consistent junction are close to those of the reference solution (Figure 6): over the region shown, the relative L2L^2 differences are 1.5% for uu, 7% for p−prefp-p_{\mathrm{ref}}, and 12% and 10% for vv and ωz\omega_z.

Figure 6. Instantaneous fields uu, vv, p−prefp-p_{\mathrm{ref}} and ωz=∂xv−∂yu\omega_z=\partial_xv-\partial_yu at the same phase of the shedding cycle: reference solution (OpenFOAM, left) and PINN with the consistent junction (right). The reference solution is shifted in time so that its lift coefficient matches that of the PINN (least squares over t∈[44,50]t \in[44,50]); t=175.8t=175.8 for the reference corresponds to t=50.03t=50.03 for the PINN. The vorticity of the reference solution is computed by finite differences and is not shown within 0.03 of the wall.

Conclusion

A continuous-time PINN trained over successive time windows develops vortex shedding past a circular cylinder at Re=100Re = 100, in a domain symmetric about the wake centerline, without reference data and without temporal discretization.

The symmetry is broken by an analytical, divergence-free initial condition, and the Strouhal number and the mean drag coefficient agree with an OpenFOAM solution on the same domain. With the vv-junction, the lift coefficient is a staircase, because the pressure jumps at the junctions between windows while the velocity is continuous. The spatial discretizations of the incompressible Navier–Stokes equations are differential-algebraic systems of index 2 [27, 28]: a consistent initial condition must satisfy ∇⋅v=0\nabla\cdot\mathbf{v} = 0 for the velocity, and the hidden constraint ∇⋅∂tv=0\nabla\cdot\partial_t\mathbf{v} = 0, with ∂tv\partial_t\mathbf{v} given by the momentum equation, then determines the pressure. The v\mathbf{v}-junction fixes the velocity only, and, by analogy with the loss of accuracy of time integrators on the algebraic variable of index-2 systems, we interpret the jumps as a weak determination of the pressure at the junction by the loss; the continuity of the velocity is not sufficient. Imposing the pressure in the initial condition of each window makes the solution continuous, but not consistent: without the hidden constraint in the loss, the slope of the signals jumps at the junctions, and spurious mass sources appear. The hidden constraint without the pressure reduces the jumps by factors between 1.3 and 2.7 only. With both the pressure and the hidden constraint, i.e., with the consistent junction, the lift and the pressure are continuous, the median jump of the lift is 20 times smaller than with the v\mathbf{v}-junction, and the mean drag coefficient and the Strouhal number agree with the reference solution over five shedding periods.

The main open question is the long-time behavior of the consistent junction. Beyond t≈58t \approx58, its mean drag coefficient increases, from 1.51 to about 1.6 within two shedding periods. Over t∈[25,200]t \in[25,200], C‾D\overline{C}_D is 1.500 with the v\mathbf{v}-junction, 1.486 with the control v+Ldiv,t\mathbf{v} + \mathcal{L}_{\mathrm{div},t} and 1.587 with the consistent junction, for a reference value of 1.492; with 4×1934 \times193 hidden layers, these values are 1.496, 1.490 and 1.575. The (v,p)(\mathbf{v},p)-junction keeps C‾D=1.486\overline{C}_D = 1.486, but its lift amplitude ΔCL\Delta C_L reaches 1.70, against 0.370 for the reference solution. The degradation beyond t≈58t \approx58 thus appears only with the junctions that impose the pressure. The pressure transmitted at each junction carries the error of the previous window. The observed degradation is consistent with an accumulation of this error from one window to the next, but does not prove it. The onset of shedding from rest, i.e., without the asymmetry of the initial condition, also remains to be studied. These questions, together with the influence of the amplitude of the initial asymmetry and of the window length, are the subject of a parametric study in progress.

Acknowledgments

This work benefited from the support of engineers in artificial intelligence within a program funded by the French government through the France 2030 investment plan managed by the National Research Agency (ANR), under reference ANR-24-RIΙA-0001.

References

  1. [1]M. Raissi, P. Perdikaris, G. E. Karniadakis, Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations, Journal of Computational Physics 378 (2019) 686–707.DOI
  2. [2]S. Cai, Z. Mao, Z. Wang, M. Yin, G. E. Karniadakis, Physics-informed neural networks (PINNs) for fluid mechanics: A review, Acta Mechanica Sinica 37 (12) (2021) 1727–1738. doi:10.1007/s10409-021-01148-1.DOI
  3. [3]S. Cuomo, V. S. Di Cola, F. Giampaolo, G. Rozza, M. Raissi, F. Piccialli, Scientific machine learning through physics-informed neural networks: Where we are and what’s next, Journal of Scientific Computing 92 (88) (2022).arxiv.org/abs/2201.05624
  4. [4]A. G. Baydin, B. A. Pearlmutter, A. A. Radul, J. M. Siskind, Automatic differentiation in machine learning: a survey, Journal of Machine Learning Research 18 (2018) 1–43.
  5. [5]V. Sitzmann, J. N. P. Martel, A. W. Bergman, D. B. Lindell, G. Wetzstein, Implicit neural representations with periodic activation functions, in: Advances in Neural Information Processing Systems, Vol. 33, 2020.arxiv.org/abs/2006.09661
  6. [6]M. Tancik, P. P. Srinivasan, B. Mildenhall, S. Fridovich-Keil, N. Raghavan, U. Singhal, R. Ramamoorthi, J. T. Barron, R. Ng, Fourier features let networks learn high frequency functions in low dimensional domains, arXiv preprint arXiv:2006.10739 (2020).arxiv.org/abs/2006.10739
  7. [7]Z. Xiang, W. Peng, X. Zheng, X. Zhao, W. Yao, Self-adaptive loss balanced physics-informed neural networks for the incompressible Navier–Stokes equations, Acta Mechanica Sinica 37 (1) (2021) 47–52.DOI
  8. [8]S. Wang, S. Sankaran, P. Perdikaris, Respecting causality for training physics-informed neural networks, Computer Methods in Applied Mechanics and Engineering 421 (2024) 116813.DOI
  9. [9]S. Wang, S. Sankaran, H. Wang, P. Perdikaris, An expert’s guide to training physics-informed neural networks, arXiv preprint arXiv:2308.08468 (2023).arxiv.org/abs/2308.08468
  10. [10]M. Schäfer, S. Turek, F. Durst, E. Krause, R. Rannacher, Benchmark computations of laminar flow around a cylinder, in: E. H. Hirschel (Ed.), Flow Simulation with High-Performance Computers II, Vol. 48 of Notes on Numerical Fluid Mechanics (NNFM), Vieweg+Teubner Verlag, 1996, pp. 547–566. doi:10.1007/978-3-322-89849-4_39.DOI
  11. [11]C. H. K. Williamson, Vortex dynamics in the cylinder wake, Annual Review of Fluid Mechanics 28 (1996) 477–539.
  12. [12]P.-Y. Chuang, L. A. Barba, Experience report of physics-informed neural networks in fluid simulations: pitfalls and frustration, in: Proceedings of the 21st Python in Science Conference (SciPy 2022), 2022, pp. 28–36. doi: 10.25080/majora-212e5952-005.DOI
  13. [13]P.-Y. Chuang, L. A. Barba, Predictive limitations of physics-informed neural networks in vortex shedding, arXiv preprint arXiv:2306.00230 (2023).arxiv.org/abs/2306.00230
  14. [14]F. M. Rohrhofer, S. Posch, C. Göbnitzer, B. C. Geiger, On the role of fixed points of dynamical systems in training physics-informed neural networks, Transactions on Machine Learning ResearchArXiv:2203.13648 (2023).arxiv.org/abs/2203.13648
  15. [15]N. Wandel, M. Weinmann, M. Neidlin, R. Klein, Spline-PINN: Approaching PDEs without data using fast, physics-informed Hermite-spline CNNs, in: Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 36, 2022, pp. 8529–8538. doi:10.1609/aaai.v36i8.20830.DOI
  16. [16]D. Shah, Complementary, not cumulative: Interaction effects in physics-informed neural networks for Navier–Stokes vortex shedding, arXiv preprint arXiv:2608.19632 (2026).arxiv.org/abs/2608.19632
  17. [17]A. B. Çıbık, An artificial-compressibility physics-informed neural network for the unsteady incompressible Navier–Stokes equations, arXiv preprint arXiv:2608.04191 (2026).arxiv.org/abs/2608.04191
  18. [18]X. Jin, S. Cai, H. Li, G. E. Karniadakis, NSFnets (Navier–Stokes flow nets): Physics-informed neural networks for the incompressible Navier–Stokes equations, Journal of Computational Physics 426 (2021) 109951.DOI
  19. [19]M. I. Khan, X. Hao, R. Jia, Physics-informed neural networks for time-dependent moderate Reynolds flow around a rotating cylinder: A study of lift, drag, and wake dynamics, Applied Sciences 16 (21) (2026) 10969. doi:10.3390/app162110969.DOI
  20. [20]C. Wei, Y. Fan, C. C. Ooi, J. C. Wong, H. Wang, P.-H. Chiu, Bridging computational fluid dynamics algorithm and physics-informed learning: SIMPLE-PINN for incompressible Navier–Stokes equations, arXiv preprint arXiv:2603.24013 (2026).arxiv.org/abs/2603.24013
  21. [21]Q. Hu, I. Senocak, Unsupervised simulation of incompressible flows with physics- and equality-constrained artificial neural networks, arXiv preprint arXiv:2511.18820v2 (2026).
  22. [22]N. Wandel, M. Weinmann, R. Klein, Learning incompressible fluid dynamics from scratch – Towards fast, differentiable fluid models that generalize, in: International Conference on Learning Representations (ICLR), 2021, arXiv:2006.08762.arxiv.org/abs/2006.08762
  23. [23]C. L. Wight, J. Zhao, Solving Allen–Cahn and Cahn–Hilliard equations using the adaptive physics informed neural networks, arXiv preprint arXiv:2007.04542 (2020).arxiv.org/abs/2007.04542
  24. [24]A. Krishnapriyan, A. Gholami, S. Zhe, R. Kirby, M. W. Mahoney, Characterizing possible failure modes in physics-informed neural networks, in: Advances in Neural Information Processing Systems, Vol. 34, 2021, pp. 26548–26560.arxiv.org/abs/2109.01050
  25. [25]P. Roy, S. T. Castonguay, Exact enforcement of temporal continuity in sequential physics-informed neural networks, Computer Methods in Applied Mechanics and Engineering 430 (2024) 117197. doi:10.1016/j.cma.2024.117197.DOI
  26. [26]Y. Cheny, O. Botella, The LS-STAG method: A new immersed boundary/level-set method for the computation of incompressible viscous flows in complex moving geometries with good conservation properties, Journal of Computational Physics 229 (4) (2010) 1043–1076. doi:10.1016/j.jcp.2009.10.007.DOI
  27. [27]E. Hairer, C. Lubich, M. Roche, The Numerical Solution of Differential-Algebraic Systems by Runge–Kutta Methods, Vol. 1409 of Lecture Notes in Mathematics, Springer, Berlin, Heidelberg, 1989. doi:10.1007/BFb0093947.DOI
  28. [28]J. Wan, A. Kareem, H. Liao, Y. Cai, On the accuracy of stiff-accurate diagonal implicit Runge–Kutta methods for finite volume based Navier–Stokes equations, arXiv:1906.03993v1 (2019). arXiv:1906.03993.arxiv.org/abs/1906.03993
  29. [29]C. Wu, M. Zhu, Q. Tan, Y. Kartha, L. Lu, A comprehensive study of non-adaptive and residual-based adaptive sampling for physics-informed neural networks, Computer Methods in Applied Mechanics and Engineering 403 (2023) 115671. doi:10.1016/j.cma.2022.115671.DOI

Paper details

vlnc:W_kngvw6fd
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 1

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Physics and Astronomy

Not recorded for this paper

View statement
Looking for related papers…
Contents