AI for numerical simulation: learned solvers, closures and preconditioners
Updated · Scientifically reviewed by Priyank Srivastava, PhD on
Short answer
Inside numerical solvers, machine learning is most useful where classical methods rely on approximations or heuristics: subgrid and closure models in turbulence and kinetic theory, preconditioners and initial guesses for iterative solvers, coarse-grid corrections that let simulations run at lower resolution, learned time-steppers, mesh-adaptation indicators and error estimators. Hybrid approaches that keep the solver's conservation and stability structure, and learn only the missing piece, are the most robust.
Who this is for
Computational scientists and numerical-methods developers considering machine learning inside PDE solvers.
How it works
Classical numerical methods are built from components. ML can replace or assist individual components, while the rest of the solver keeps its guarantees:
| Component | ML role | Safety of the approach |
|---|---|---|
| Closure / subgrid model | Learn unknown terms from high-resolution data | Medium: stability must be tested a posteriori |
| Coarse-grid correction | Learn corrections so coarse grids behave like fine ones | Medium: generalisation to new flows is a concern |
| Preconditioner / initial guess | Speed up iterative linear or non-linear solves | High: the converged solution is unchanged |
| Time-stepper | Learn larger stable steps | Low to medium: long-time stability is hard |
| Mesh adaptation / error indicator | Predict where to refine | High: only affects efficiency, if refinement stays conservative |
| Full solver replacement | Neural operator or PINN | Depends on validation; see PINN vs FEM |
A practical path
- Profile the solver to find the component that dominates cost or error; see how to optimize HPC simulations.
- Choose the least intrusive ML role that addresses it. Preconditioners and refinement indicators are low risk; closures are higher reward and higher risk.
- Generate training data from verified high-fidelity runs.
- Embed physics: conservation, symmetries and realisability constraints; see physics-constrained machine learning.
- Test a posteriori: long runs, new parameters, and comparison with high-resolution reference solutions.
- Benchmark honestly: time to solution at equal accuracy, including the inference cost on the target hardware.
Plasma-specific opportunities
- Fluid closures for kinetic effects (heat flux, Landau damping), learned from kinetic simulations.
- Collision and atomic-physics operators that are expensive to evaluate.
- Accelerated field solves in implicit or electrostatic codes via learned preconditioners.
See ML-accelerated PIC for particle-code specifics.
Assumptions and limitations
- Published successes are mostly in fluid dynamics and specific test cases. Transfer to other physics needs fresh validation.
- Learned components can silently break conservation or stability, which is why a posteriori testing is mandatory.
- The safety ratings in the table are qualitative guidance, not guarantees.
Frequently asked questions
What is a learned closure?+
Many models average over unresolved scales (turbulence models, fluid closures of kinetic equations). The averaged equations contain unknown terms that must be modelled; a learned closure fits those terms to high-resolution data while the rest of the solver stays classical.
Can ML preconditioners break solver correctness?+
A preconditioner only changes how fast an iterative solver converges, not the solution it converges to, provided the outer method is correct. This makes learned preconditioners a relatively safe way to use ML inside solvers.
What does "a posteriori" testing mean here?+
Testing the learned component inside the running solver over long times, not only its accuracy on isolated snapshots (a priori). Many learned closures that look accurate a priori become unstable a posteriori.
Is differentiable programming required?+
For training components through the solver (end-to-end), yes: the solver must be differentiable, as with JAX-based solvers or adjoint methods. Simpler offline training on input–output pairs does not need it, but is more prone to a posteriori instability.
References
- Kochkov et al., Machine learning-accelerated computational fluid dynamics, PNAS 118, e2101784118 (2021) · Peer-reviewed article
- Duraisamy, Iaccarino & Xiao, Turbulence modeling in the age of data, Annu. Rev. Fluid Mech. 51, 357 (2019) · Review article
- Bar-Sinai et al., Learning data-driven discretizations for partial differential equations, PNAS 116, 15344 (2019) · Peer-reviewed article
- Vinuesa & Brunton, Enhancing computational fluid dynamics with machine learning, Nat. Comput. Sci. 2, 358 (2022) · Review article
Need help applying this?
Our physicists turn concepts into working, verified simulations for research groups and companies.
Services listed on this page are available today. Products marked “early access” or “in development” on our platform page are not yet generally available.
Spotted an error or an outdated command? Tell us. We correct verified issues promptly.