Skip to content
VLASIFY™
GuideScientific AI & machine learning

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:

ComponentML roleSafety of the approach
Closure / subgrid modelLearn unknown terms from high-resolution dataMedium: stability must be tested a posteriori
Coarse-grid correctionLearn corrections so coarse grids behave like fine onesMedium: generalisation to new flows is a concern
Preconditioner / initial guessSpeed up iterative linear or non-linear solvesHigh: the converged solution is unchanged
Time-stepperLearn larger stable stepsLow to medium: long-time stability is hard
Mesh adaptation / error indicatorPredict where to refineHigh: only affects efficiency, if refinement stays conservative
Full solver replacementNeural operator or PINNDepends on validation; see PINN vs FEM

A practical path

  1. Profile the solver to find the component that dominates cost or error; see how to optimize HPC simulations.
  2. Choose the least intrusive ML role that addresses it. Preconditioners and refinement indicators are low risk; closures are higher reward and higher risk.
  3. Generate training data from verified high-fidelity runs.
  4. Embed physics: conservation, symmetries and realisability constraints; see physics-constrained machine learning.
  5. Test a posteriori: long runs, new parameters, and comparison with high-resolution reference solutions.
  6. 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

  1. Kochkov et al., Machine learning-accelerated computational fluid dynamics, PNAS 118, e2101784118 (2021) · Peer-reviewed article
  2. Duraisamy, Iaccarino & Xiao, Turbulence modeling in the age of data, Annu. Rev. Fluid Mech. 51, 357 (2019) · Review article
  3. Bar-Sinai et al., Learning data-driven discretizations for partial differential equations, PNAS 116, 15344 (2019) · Peer-reviewed article
  4. 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.

Related guides

How Vlasify can help

Get a Quote