From Mesh Generation to Adaptive Simulation: A Journey in Julia

07/27/2022, 12:30 PM1:00 PM UTC


We present a Julia toolchain for the adaptive simulation of hyperbolic PDEs such as flow equations on complex domains. It begins with HOHQMesh.jl to create a curved, unstructured mesh. This mesh is then used in Trixi.jl, a numerical simulation framework for conservation laws. We visualize the results using Julia’s plotting packages. We highlight select features in Trixi.jl, like adaptive mesh refinement (AMR) or shock capturing, useful for practical applications with complex transient behavior.


Applications of interest in computational fluid mechanics typically occur on domains with curved boundaries. Further, the solution of a non-linear physical model can develop complex phenomena such as discontinuities, singularities, and turbulence.

Attacking such complex flow problems may seem daunting. In this talk, however, we present a toolchain with components entirely available in the Julia ecosystem to do just that. In broad strokes the workflow is:

  1. Use HOHQMesh.jl to interactively prototype and visualize a domain with curved boundaries.
  2. HOHQMesh.jl then generates an all quadrilateral mesh amenable for high-order numerical methods.
  3. The mesh file is passed to Trixi.jl, a numerical simulation framework for conservation laws.
  4. Solution-adaptive refinement of the mesh within Trixi.jl is handled by P4est.jl.
  5. After the simulation, a first visualization is made using either Plots.jl or Makie.jl.
  6. Solution data can also be exported with Trixi2Vtk.jl for visualization in external software like ParaView.

The strength and simplicity of this workflow is through the combination of several packages either originally written in Julia, like Trixi.jl, or wrappers, like P4est.jl or HOHQMesh.jl, that provide Julia users access to powerful, well-developed numerical libraries and tools written in other programming languages.

Platinum sponsors

Julia ComputingRelational AIJulius Technology

Gold sponsors


Silver sponsors

Invenia LabsBeacon BiosignalsMetalenzASMLG-ResearchConningPumas AIQuEra Computing Inc.Jeffrey Sarnoff

Media partners

Packt PublicationGather TownVercel

Community partners

Data UmbrellaWiMLDS

Fiscal Sponsor