r/CFD • • Nov 21 '24

Largest CFD simulation ever on a single computer: NASA X-59 at 117 Billion grid cells in 6TB RAM - FluidX3D v3.0 on 2x Intel Xeon 6980P

725 Upvotes

57 comments sorted by

28

u/ProjectPhysX Nov 21 '24

Video in 4K on YouTube: https://youtu.be/K5eKxzklXDA

This is the largest computational fluid dynamics (#CFD) simulation ever on a single computer, the #NASA X-59 jet at 117 Billion grid cells, fitting in 6TB RAM. This video visualizes 7.6 PetaByte (7.6 Million GB) of volumetric data.

As a little gift to you all: FluidX3D v3.0 is out now, enabling 31% larger grid resolution when running on CPUs or iGPUs, by fusing #OpenCL host+device buffers as zero-copy buffers. This optimization reduces memory footprint on CPUs/iGPUs from 72 to 55 Bytes/cell: https://github.com/ProjectPhysX/FluidX3D/releases/tag/v3.0

Intel Xeon 6 with 8800MT/s MRDIMMs brings a new era of HPC, where the memory capacity of a computer is measured in TeraByte, not GigaByte, with the massive 1.7TB/s memory bandwidth to back that up. Now such super large simulations are feasible on a single compact, energy-efficient CPU server, without having to change a single line of code thanks to OpenCL. No GPU​s required!

Simulation Stats:

  • FluidX3D CFD software: https://github.com/ProjectPhysX/FluidX3D

  • Lattice Boltzmann (LBM), D3Q19 SRT, FP32 arithmetic, FP16C memory compression

  • 4062×12185×2369 = 117 Billion grid cells, 1 cell = (3.228 mm)³

  • 6.15 TB memory footprint (55 Bytes/cell, or 19M cells per 1GB)

  • 51627 time steps = 0.2 seconds real time

  • 5400 4k images rendered, velocity-colored Q-criterion isosurfaces visualized

  • 300 km/h airspeed, 10° angle of attack

  • Reynolds number = 51M

  • Runtime = 30d23h23m (total) = 18d06h23m (LBM compute) + 12d16h59m (rendering)

  • Average LBM performance = 3836 MLUPs/s

Hardware Specs:

NASA X-59 model: https://nasa3d.arc.nasa.gov/detail/X-59

3

u/Chronozoa2 Nov 21 '24

How does the Xeon 6 architecture compare with AMD Epyc? Looks like both are 12 channels.

3

u/ProjectPhysX Nov 21 '24

Xeon 6 supports MRDIMMs at 8800MT/s, for almost double the memory bandwidth as Epyc. Which is nice for memory-bound CFD :)

23

u/Particular-Basket-59 Nov 21 '24

something like 6 years with a normal i9 + 64 gb of ram, astonishing stuff

0

u/[deleted] Nov 21 '24

[deleted]

1

u/ProjectPhysX Nov 21 '24

It's not as simple as just "considering" adaptive mesh refinement. Implementing dynamic AMR in vectorized, GPU-suitable manner is many years of software engineering work. So far noone has even figured out how to do that. Unfortunately my days are just 24h, I do what I can to write great software but I can't do everything all at once.

Any higher precision than FP32 for LBM is pointless, as the extra decimals are just numerical noise not containing any physical information. FP32 arithmetic because it's universally supported and performant on all GPUs and CPUs. For memory storage I can even use FP16S/C to cut memory footprint in half and make it twice as fast. You can read my LBM precision study here: https://www.researchgate.net/publication/362275548_Accuracy_and_performance_of_the_lattice_Boltzmann_method_with_64-bit_32-bit_and_customized_16-bit_number_formats

10

u/tlmbot Nov 22 '24

I'm a little confused by the statement that nobody has figured out how to do cfd AMR on the gpu. A quick search reveals

First some public facing, non-authoritative but fun stuff:
spacex working on this a decade ago: https://www.youtube.com/watch?v=vYA0f6R5KAI

people looking at it way back in gpu gems days (not fluids specific but anyway): https://developer.nvidia.com/gpugems/gpugems3/part-i-geometry/chapter-5-generic-adaptive-mesh-refinement

research:

Lattice Boltzman AMR on the gpu:

https://arxiv.org/pdf/2308.08085

compressible flow, immersed boundary:

https://www.sciencedirect.com/science/article/pii/S0045793023002657

etc..

Everything else makes sense though.

Developer $time >> computer $time sometimes

caveat: I am not a specialist. I have no idea what it's like trying to get turn key amr from a vendor either.

1

u/ProjectPhysX Nov 26 '24

Thanks for the links. That LBM preprint is very new, from 5 months ago, and looks promising. I'll have a look. The implementation doesn't fall from the sky though.

SpaceX did AMR in 2D only, and that GPUgems adaptive mesh refinement is for triangle meshes, something entirely different.

4

u/Noerrs Nov 21 '24

What was the wall time duration for this simulation?

1

u/ProjectPhysX Nov 22 '24

31 days for combined simulation+rendering

184

u/gyoenastaader Nov 21 '24

And I bet it’s still wrong 😂

16

u/granoladeer Nov 22 '24

It's wrong, but it's useful

6

u/ProfHansGruber Nov 24 '24

What use do you reckon can be made from this? From a computer science perspective it’s fantastic, from a fluid dynamics perspective not so much.

10

u/granoladeer Nov 24 '24

You can definitely make a cool reddit post about it

2

u/findlefas Dec 01 '24

I mean with that many cells your sub-grid scale model doesn’t have to model much of these small scale turbulence eddies so I’d imagine it’s fairly accurate. DNS results demonstrate they are analogous to experiments. What I’m wondering is how long this took with only 2cpus

0

u/Tocksz Nov 23 '24

How wrong though?

22

u/Elementary_drWattson Nov 21 '24

I wish LBM could do compressible flows. At least low speed stuff makes pretty images. Very cool.

6

u/ustary Nov 22 '24

Comercial LBM codes very much can do compressible flows. Up to transonic speeds, results can be very good, with very low numerical dissipation, and going into super-sonic speeds, it is still possible to get good aerodynamics, but numeric dissipation creeps in a bit.

3

u/Elementary_drWattson Nov 22 '24

More interested in aerothermodynamics. I’ll have to look into the entropic formulation that u/NoobInToto brought up.

24

u/[deleted] Nov 21 '24

LBM = Large Bussy Model

5

u/NoobInToto Nov 21 '24

It can. However, and this is a dealbreaker, freely available AND validated solvers are far and few between. For the theory, look up entropic LBM and cumulant LBM.

0

u/[deleted] Nov 22 '24

[deleted]

2

u/NoobInToto Nov 22 '24

Interesting. I was looking at compressible but low subsonic methods for my research. Do you know any freely available and validated solvers? 

→ More replies (2)

23

u/RoRoRoub Nov 21 '24

To put that into perspective, Elon musk has ~twice the money than the number of cells here.

14

u/alettriste Nov 21 '24

I think I did not want to know this...

1

u/artist55 Nov 13 '25

4x now and potentially 15x

0

u/[deleted] Nov 21 '24

[deleted]

2

u/abirizky Nov 21 '24

DID YOU SAY DONG???

8

u/Elkesito36482 Nov 21 '24

Can you estimate lift and drag coefficient with and LBM simulation?

15

u/Less-Term-4320 Nov 21 '24

With LMB you can estimate everything and nothing in the same time (hope it helps (sorry))

11

u/IComeAnon19 Nov 21 '24

In this case, yea, if you're okay with being ruinously wrong.

6

u/Navier-gives-strokes Nov 21 '24

Could you elaborate on this? A lot of people throwing shit at LBM over here.

17

u/IComeAnon19 Nov 21 '24

His specific method uses uniform cartesian grids. As a result he has really bad stair-stepping artifacts and it takes an obscene number of grid points to get a useful solution. As large as his cases are, looking at his y+ of 512 (apparently according to other commenters) he needs approximately 100M times more nodes to get a decent y+. Suffice it to say this grid is not sufficient.

3

u/Navier-gives-strokes Nov 21 '24

This is an awesome explanation! Thanks!

4

u/IComeAnon19 Nov 22 '24

Yea, happy to explain after I get the snark out.

8

u/ncc81701 Nov 22 '24

LBM aside his simulation stopped before the starting vortex haveeven cleared the tails. Ideally you want the starting vortex to have completely converted out of the computational domain before you can claim you have a valid solution. Sometimes having it just a few chord length or a span length is sufficient.

But in this case the starting vortex is smack in mid chord of the tail plane when the simulation stops. He probably needs to have run his simulation for 5x longer before you’d have even reasonable data.

1

u/AutoModerator Nov 21 '24

Somebody used a no-no word, red alert /u/overunderrated

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

7

u/04BluSTi Nov 21 '24

That is a very long snoot

6

u/OhIforgotmynameagain Nov 21 '24

blender works wonders nowadays, right ?

9

u/hotcheetosandtakis Nov 21 '24

With all those cells, what was the y+ range and cell Reynolds number range? What turbulence model is used and is it valid within your y+ ranges?  

 What is the smallest mesh that could be used to obtain adequate resolution in measured design variables?  

 What type of license is this code under to enable aerospace and automotive industry to use this code for commercial purposes?

0

u/[deleted] Nov 21 '24

[deleted]

11

u/hotcheetosandtakis Nov 21 '24 edited Nov 21 '24

I can read the repo and in another post there was a y+ stated of 512. So extreme overall resolution but still lacking near the wall.  

I wanted the OP response because why look at this if it can't be used outside of pretty pictures? 

0

u/[deleted] Nov 21 '24

[deleted]

9

u/Keldan_Zonal Nov 21 '24

It is still relevant if you are doing turbulence stuff. So DNS (if turbulence) and LES still should respect some criteria in respect to y+

0

u/[deleted] Nov 21 '24

[deleted]

3

u/[deleted] Nov 23 '24

~80% of the cells need to be near (by near I mean so close you can't even see the near wall region without zooming in) the wall for DNS where everywhere meets the local grid requirements. This is why the wall is generally the focus.

3

u/Keldan_Zonal Nov 21 '24

It's not really a question of wall distance but a criterion to ensure that you have enough point in the viscous sublayer of your turbulent boundary layer. It's only a criterion to ensure that your wall condition is sufficiently refined to be accurate.

If you use any RANS model this is definitely not DNS. Even if you refine until the finest scales that does not make sense since this scales are already model by your turbulence model

And effectively the y+ is absolutely not a criterion for the size of the cells to resolve the different scales. Most of the case there is criterion for Deltax+ Deltay+ and Deltaz+ to respect for both LES and DNS

1

u/hotcheetosandtakis Nov 21 '24 edited Nov 21 '24

This is why I was also asking about cell Reynolds number and if/how well the local turbulence is resolved.    

6

u/IComeAnon19 Nov 21 '24

CFD = Colors for Degenerates

4

u/lilpopjim0 Nov 22 '24

Concorde flew in the 70s without this.

Not that it isn't helpful, but it still amazes me.

2

u/Dankas12 Nov 21 '24

Is there a way to see the mesh and conditions this was run at? What’s the point eg what’s the y+ and skewness and how large does the mesh go out from the body and how did the residuals look?

2

u/theholyraptor Nov 22 '24

It's sad how many granite rapids I've seen but I don't get any for my own pc.

1

u/PG67AW Nov 23 '24

Define "single computer" lol. What the hell kind of title is that?

2

u/ELS Nov 23 '24

To distinguish it from an application scaled to multiple nodes using something like MPI

1

u/BriefCollar4 Nov 21 '24

That matches wind tunnel data or?

-8

u/singlecell00 Nov 21 '24

well, I was thinking if they use AI to learn from real world data, they could essentially make this very accurate and then designs of aircraft for all conditions would be done in days by a super computer.

7

u/IComeAnon19 Nov 21 '24

Were you thinking or were you just typing?

5

u/the-johnnadina Nov 21 '24

What? Hows AI gonna do any better than LES or even RANS?

→ More replies (1)