Lid-driven cavity flow: Loss function converge really slow #1412
Unanswered
dang-trinh156
asked this question in
Q&A
Replies: 2 comments
-
Have you found a working architecture which compiles with the benchmark from ghiav et al? I started a thread on a similar issue... |
Beta Was this translation helpful? Give feedback.
0 replies
-
Using LFBGS over adam is recommended for navier stokes, as it better optimizes on the domain |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dear Prof. Lu Lu and DeepXDE users,
I'm trying to solve the classic lid-driven cavity flow benchmark (https://www.comsol.com/blogs/how-to-solve-a-classic-cfd-benchmark-the-lid-driven-cavity-problem/). It is a stationary problem where x,y is the input of PINN and outputs are u,v (velocity in x and y axis respectively), and p. In the boundary conditions, the top boundary, u = v = 1, and other boundaries are u = v = 0.
As this is a much simpler problem than other Navier Stokes examples in DeepXDE, I directly use the architecture of the Kovasznay flow example ([2] + 4*[50] + [3]) As far as I observe the loss terms, they converge relatively slowly, including the boundary conditions and Navier Stokes equations (momentum and continuity).
While taking a look at Kovasznay flow, all loss terms drop below 1e-4 values:
Given that I reuse the PDEs from the Kovaznay Flow example (https://github.com/lululxvi/deepxde/blob/master/examples/pinn_forward/Kovasznay_flow.py) and double-check my BCs.Have I defined boundary conditions incorrectly or it's just inherently my PINN is too simple to predict the flow?
Here is my code:
Here is the visualization between the predicted velocity from the code above and Finite Element results from COMSOL Multiphysics. This shows a complete difference between the predicted velocity and F.E results
PINN's prediction
F.E's prediction (COMSOL)
Thank you for your answer!
Beta Was this translation helpful? Give feedback.
All reactions