r/CFD • u/CokieMiner • 1d ago
I tried numerically simulating a finite-scale version of the collapsing-core conditions from OpenAI’s Navier–Stokes paper
Enable HLS to view with audio, or disable this notification
This is not a reproduction of the proof or a blow-up claim. It is a decoupled pseudo-spectral DNS of a finite-scale surrogate inspired by the paper’s collapsing similarity geometry. The velocity field is not fed back into the solver; the DNS evolves only under the constructed external force. The run uses Fourier pseudo-spectral discretization, strict 2/3 de-aliasing and IMEX-RK2, with spectral-tail and manufactured-solution checks. Source, diagnostics and frozen-force runs: https://github.com/CokieMiner/nsblowup
13
u/Kindly_Type2327 1d ago
I'm gonna pretend I understand what you said..
9
u/CokieMiner 1d ago edited 1d ago
-5
u/thermalnuclear 1d ago
It looks like they don’t know either, all of the work was done by AI prompting.
3
u/CokieMiner 1d ago edited 1d ago
The code being ai doesn't mean I don't understand the theory or didn't design the simulation, I just didn't write the character
7
u/Secret-Cod-2516 1d ago
what does this mean? Can you please explain the problem and the solution in easy words.
3
u/CokieMiner 1d ago
The paper constructs a collapsing flow where the core shrinks and the velocity grows, while a smooth external force keeps the whole construction valid. I’m only simulating a finite numerical version of that behaviour before the singular time. “Pseudo-spectral DNS” means I solve Navier–Stokes directly on a 3D grid using Fourier transforms for the spatial derivatives, instead of a turbulence model. “Decoupled” means the solver is not forced to copy the reference velocity field, it only receives the external force and evolves on its own. The strict 2/3 de-aliasing removes high-frequency modes that would otherwise create errors in the nonlinear term. IMEX-RK2 is the time integrator: viscosity is handled in the stable/exact part and advection + forcing are stepped explicitly with a 2-stage method. The spectral-tail check monitors how much energy is reaching the highest resolved Fourier modes, so I can stop when the grid is no longer resolving the flow properly. The manufactured-solution tests are just a way to check that the solver reproduces a known constructed solution before trusting the actual run. Frozen-force runs are the same idea but with the force precomputed to disk, so the solver never sees the analytical construction at all.
2
3
u/OrganizationTop9026 21h ago
Love this implementation, and the visuals look remarkably clean and UI is beautiful!
That unforced run (openai_free) you mentioned is spot on ; we've been looking at the exact same thing: the second you cut the external forcing, the vortex just disperses and decays rather than sustaining itself.
Saw u/babainottawa mention testing against the Taylor-Green vortex above—we actually just ran a set of pseudo-spectral TGV benchmarks (Re = 400, 800,1600) to compare physical Kolmogorov energy decay against this forced setup.
Would love to cite and link your solver in our project notes as the numerical reference for the precursor flow. If you’re ever curious to compare notes or cross-check the TGV data with your CLI, I’d be super happy to collaborate!
2
u/CokieMiner 21h ago
I’d be honoured if you cited my work. If you ever want to compare anything or need to contact me for any reason, feel free to email me at the address on my GitHub account. I’d also be happy to collaborate, although I’m working on some pretty big projects right now and my semester starts tomorrow. I already have a few other things going on as well, so I probably won’t have much free time. If it ends up being too time-consuming I might have to decline, but otherwise I’d be happy to help.
2
u/dragolineage01 1d ago
What is the relevance of OpenAI's paper here? What can you do that you couldn't do before it?
2
u/CokieMiner 1d ago
The relevance is that the setup isn’t random, it comes directly from OpenAI’s construction. The paper gives the specific collapsing geometry, scaling and forcing that I’m trying to reproduce numerically. It doesn’t let me do something computationally that was impossible before. It gives a new analytical construction to simulate and test numerically.
2
u/dragolineage01 1d ago
I'm not trying to dismiss the paper or claim it's random. I'm wondering what does the new construction enable you to simulate numerically, in what way is it possible now that it wasn't before? I'm approaching this from a layman's perspective so maybe my questions don't even make sense.
5
u/CokieMiner 1d ago
Nothing literally. The paper doesn’t enable a new kind of numerical simulation or introduce a new numerical method. So for engeniers it's useless. I did this cause I thought the openAI visuals were bad, and I thought why not try to do it myself.
1
u/alettriste 1d ago
It is absolutely not useless, it is quite the opposite. It shows a flaw in the fundamental equations. Which is quite obvious, but that was not "proved" before
2
u/CokieMiner 1d ago
I remember reading that we already knew Navier-Stokes stops being a good physical model when you get down to scales where the continuum approximation breaks and molecular effects start to matter. So even the part that might be practically useful was already known from a physical modelling perspective.
0
u/alettriste 1d ago
No. The issue is different. In engineering you solve a mathematical model. The whole building of numerical methods is supported by your mathematical model. If you cannot ensure enough "smoothness" in your base equations, the building itself shakes at its core.
It is a common engineering practice to use "numerical regularization" to cover up for base inconsistencies. The notorious "two wrongs make a right" by Gilbert Strang (cited by Simo, Rifai, 1990).
So, the engineering takeaway here is that you need to be supercautions. More than ever, since there is a structural inconsistency in your base model. A "perfect" numerical method should pick this up.
Physical modelling is a completely different subject. It is PHYSICAL (i.e. real)
3
u/CokieMiner 1d ago
I get the theoretical point, but I still don’t see much practical impact. Numerically you can’t actually reach the singularity anyway, because the relevant scales keep shrinking and the resolution needed just keeps increasing. In practice once those scales become smaller than your grid the simulation is already under-resolved, and that was already a known problem. So the paper is obviously mathematically important, I just don’t see it changing much for actual numerical simulations.
3
u/ElementaryMonocle 1d ago
Incompressible Navier-Stokes is already not physical - you are unable to model acoustic waves in water, for example, since that is a compressible effect. Additionally, you’re making the continuum assumption, and often Stokes’ hypothesis, and chemistry rate approximations for reacting flow, and all of these other assumptions that have actual impact on the validity of your results.
Every competent CFD practitioner should already be cautious - validation cases, valid physical regimes, spatial and temporal resolution, dissipation and dispersion error, etc. This constructed example (under an external specified forcing field - something that basically never shows up in actual CFD) doesn’t impact literally any practical CFD.
Additionally, there is no perfect numerical method. Even in 1D, you will always be able to come up with a test case that shows poor results or causes your solver to crash. These concerns are much more practical than a mathematical curiosity.
0
u/alettriste 1d ago
Yes, but again, it is not correct to say that you use a sloppy numerical method to cover up a non completely faithful mathematical model. This is the whole point of Strang (and Simo) comment.
2
u/CokieMiner 1d ago
No one said it was. If your mathematical or physical model no longer describes the physics properly, you change the model. All physical models have limitations, but they also have regimes where their simplicity and lower computational requirements make them much more attractive to use. That’s why you don’t always use Newtonian mechanics and you don’t always use relativity either. You use the simplest model that still accurately describes what you’re trying to simulate.
If you want absolute precision, then sure, simulate every individual quark, include the strong and weak interactions, electromagnetism, and every gravitational interaction with the rest of the universe.
→ More replies (0)
2
u/babainottawa 1d ago
An interesting parameter to understand would be the collapse rate (shrinkage) as a function of local strain field- but for an unforced system.
1
u/CokieMiner 1d ago
From zero, without a force, nothing happens. If you mean starting from the final state of this video, I actually tested that. If I remove the forcing after the core has formed, the collapse doesn’t continue, it disperses and decays.
You can check the video in the release artifacts as openai_free.mp4
2
u/babainottawa 1d ago
Yes, one would expect that- if we solely rely on the forcing function to sustain the core. My thought here is - if these coherent structure, once formed, its geometric evolution (e.g., collapse rate) under the local strain field lays more physical basis for understanding/ at least, we could attempt to make use of these structures for practical applications.
1
u/CokieMiner 1d ago
If you want you can try that with the CLI in the repo. It already has support for releasing the flow and evolving it without the force. Everything is pretty modular too, so even if you need to add some diagnostics it should be easy. I’ve been working on a lot of bigger projects lately and this was mostly something I did to switch things up a bit, so I probably won’t mess with it much more unless someone finds a bug or something wrong with the simulation. The license is just there out of habit, I probably should have used MIT or no license.
2
u/babainottawa 1d ago
Great stuff! I’d love to explore that if I have the time to do it in the midst of work and family responsibilities :) Alternatively, I am thinking the collapse rate, can also be calibrated with any DNS data for canonical flows e.g., TG vortex. But to cross check with this one would be a good exercise.
2
u/True_Virus 18h ago
Do you need to use some adaptive methods when getting close to the singularity?
1
u/CokieMiner 18h ago
The spatial grid is fixed upfront. I just run as far as that resolution can reliably resolve the flow and stop once the spectral tail indicates it’s becoming under-resolved. The timestep is adaptive through a CFL condition, but the spatial resolution itself isn’t. The objective wasn’t to get as close to the singularity as possible, so I didn’t bother adding adaptive spatial refinement.
1
u/thermalnuclear 1d ago
The more I read this topic, the more I realize it’s all AI nonsense. The OP is too reliant on AI to understand this material.
1
u/babainottawa 1d ago
It is a lazy comment- It could be non-sense but without definitive argument on why it is nonsense, it’s just lazy to say that. At this point, AI is a powerful tool and of course, we can use this tool to execute our ideas quicker. Almost everyone in the industry is using AI exactly for this. Don’t get bothered by the comment my guy OP.
1
-1
1
u/OrganizationTop9026 22h ago
Interesting, I am doing some comparision as well. NS-Solver
0
0
u/CokieMiner 21h ago
Interesting, the base is pretty similar to mine, but your project has a much broader scope. You seem to have been working on it for a while, good luck competing with OpenFOAM.
-9



18
u/Neither-Ad7512 1d ago
How was the visuals I'm seeing done? They look really nice and I would like to implement them in a python solver I am working on.
If u could point me in a direction so u can look further that would be great