Validating Lid-driven cavity with High RE number
OpenLB – Open Source Lattice Boltzmann Code › Forums › on OpenLB › General Topics › Validating Lid-driven cavity with High RE number
- This topic has 17 replies, 3 voices, and was last updated 1 week, 3 days ago by thanhphatvt.
-
AuthorPosts
-
August 21, 2024 at 9:15 am #9126thanhphatvtParticipant
Hi all,
I’m trying to compare the result of open LB with DNS result of lid-driven cavity problem with Re number = 18000. The LES was applied to open LB code and the resolution is 100x100x100. I found the result has some discrepancy with DNS results. I’m trying to fix it by changing the resolution, time-relaxation, u_max in the code but it can no be fixed. Do you have any suggestion for me to fixing this problem? Thank you so much and have a nice day!
https://drive.google.com/drive/folders/1vbL-bn5Z3uZ2nScnCMS3pZPKCeDKEukQ?usp=drive_linkAugust 21, 2024 at 9:19 am #9127AdrianKeymasterDid you try higher resolutions and/or other collision models (which LES)?
What is “some discrepancy”, what is your error expectation?
(Your folder is not shared publicly)
August 21, 2024 at 11:49 am #9129thanhphatvtParticipantHi Adrian,
I tried with higher resolution, but the result is the same. As you can see in my result, I think at the peak, the error is quite high, I want to reduce the discrepancy at that peak.
I’ll try other collision model.
Thank you!August 21, 2024 at 12:29 pm #9130thanhphatvtParticipantI’m sorry, I just fixed the link
August 22, 2024 at 10:06 am #9135mathiasKeymasterFor 18,000, I guess you need much higher resulutions to map the boundray layer.
August 22, 2024 at 10:12 am #9136thanhphatvtParticipantDear Mathias,
I tried with resolution 200x200x200 but the result is quite the same. Should I increase the resolution?
Thank you so much!August 22, 2024 at 10:27 am #9137mathiasKeymasterYes, 200 means 8 million cells, thats nothing and can be done on my laptop in minutes! You need to do a convergence study.. and plot all the resultions, you should see convergence
August 22, 2024 at 12:09 pm #9138thanhphatvtParticipantDear Mathias,
Got it! I’ll do the mesh independence test. It runs quite slow on my desktop. I use K80 card.
ThanksAugust 22, 2024 at 12:17 pm #9139AdrianKeymasterThe performance of the default
laminar/cavity3d
example case can be significantly improved for your usecase, e.g. you should reduce the VTK output to only what you need, remove the (slow) image output using the heatmap writer and so on. You can compare the optimizedlaminar/cavity3dBenchmark
to get an upper bound on what you can expect using OpenLB on this GPU.What execution mode do you use? (just to make sure that you are not e.g. using MPI+CUDA on a single GPU)
August 22, 2024 at 12:26 pm #9140thanhphatvtParticipantDear Adrian,
I used gpu_openmpi.mk config. I will reduce the VTK output.
I’m running the case. I will update it after finishing.
Thanks for your help!
Have a nice day!August 22, 2024 at 12:32 pm #9141AdrianKeymasterOk, compiling with MPI support is fine as long as you don’t create multiple MPI processes sharing the same GPU (this will still work but degrade de performance due to unnecessary communication and smaller work units on the GPU). If you use a single K80 you can start the case without MPI just using
./cavity3d
(you of course may already do this exactly this way, just making sure)August 22, 2024 at 12:35 pm #9142thanhphatvtParticipantDear Adrian,
Yes, I’m using ./cavity3d for run this case.
ThanksAugust 24, 2024 at 3:49 pm #9146thanhphatvtParticipantDear Mathias and Adrian,
I already reduced the VTK export. I’m running the lid-driven cavity with Smagorinski model at Re = 18000 with resolution 300 in 1000 second. I think my simulation is too slow. It’s about 1 days for 20% of sim.
Do you have any suggestions for me to improve the computation speed?
Thank you so much!August 24, 2024 at 11:04 pm #9149AdrianKeymasterWhat is your throughput in MLUPs? Which GPU? Did you disable the gnuplot output? Did you relate the throughput to the theoretical maximum GPU bandwidth? If so, what is the gap?
August 26, 2024 at 6:24 am #9151thanhphatvtParticipantDear Adrian,
I used K80, the MLUPs is 250. I disabled the GNUplot. I don’t know how to check the GPU bandwidth.
Thank you! -
AuthorPosts
- You must be logged in to reply to this topic.