TrixiParticles.jl

TrixiParticles.jl is a high-performance numerical simulation framework for particle-based methods in complex multiphysics applications, written in Julia.
It combines an accessible user interface with an extensible architecture for developing new methods, while offering high performance on both CPU and GPU.
TrixiParticles.jl focuses on the following use cases:
- Accurate and efficient physics-based modeling of complex multiphysics problems.
- Development of new particle-based methods and models.
- Accessible simulation setup for educational purposes, including student projects, coursework, and thesis work.
It offers intuitive configuration, robust pre- and post-processing, and vendor-agnostic GPU support based on the Julia package KernelAbstractions.jl.
Conference Talks
JuliaCon 2024
|
JuliaCon 2026
|
Features
- Incompressible Navier-Stokes flows
- Methods: Weakly Compressible Smoothed Particle Hydrodynamics (WCSPH), Entropically Damped Artificial Compressibility (EDAC),
Implicit Incompressible Smoothed Particle Hydrodynamics (IISPH)
- Models: Surface Tension, Open Boundaries
- Structural mechanics
- Methods: Total Lagrangian SPH (TLSPH), Discrete Element Method (DEM), Rigid Body Dynamics (RBD)
- Fluid-Structure Interaction with elastic structures and rigid bodies
- Particle sampling of complex geometries from
.stl, .asc, and .dxf files.
- Output formats:
- GPU support for NVIDIA, AMD, and Apple devices
Examples
We provide several example simulation setups in the examples folder (which can be accessed from Julia via examples_dir()).
 2D Dam Break
|
 Moving Wall
|
 Oscillating Beam
|
 Dam Break with Elastic Plate
|
Installation
If you have not installed Julia yet, please follow the instructions for your
operating system. TrixiParticles.jl works
with Julia v1.10 and newer. We recommend using the latest stable release of Julia.
For users
TrixiParticles.jl is a registered Julia package.
You can install TrixiParticles.jl,
time integration sub-packages of OrdinaryDiffEq.jl
(for example OrdinaryDiffEqLowStorageRK), and Plots.jl
by executing the following commands
in the Julia REPL:
julia> using Pkg
julia> Pkg.add(["TrixiParticles", "OrdinaryDiffEqLowStorageRK", "OrdinaryDiffEqSymplecticRK", "Plots"])
For developers
If you plan on editing TrixiParticles.jl itself, you can download TrixiParticles.jl
to a local folder and use the code from the cloned directory:
git clone [email protected]:trixi-framework/TrixiParticles.jl.git
cd TrixiParticles.jl
mkdir run
julia --project=run -e 'using Pkg; Pkg.develop(PackageSpec(path="."))' # Add TrixiParticles.jl to `run` project
julia --project=run -e 'using Pkg; Pkg.add(["OrdinaryDiffEqLowStorageRK", "OrdinaryDiffEqSymplecticRK", "Plots"])' # Add additional packages
If you installed TrixiParticles.jl this way, you always have to start Julia with the
--project flag set to your run directory, e.g.,
julia --project=run
from the TrixiParticles.jl root directory.
Further details can be found in the documentation.
Usage
In the Julia REPL, first load the package TrixiParticles.jl.
julia> using TrixiParticles
Then start the simulation by executing
julia> trixi_include(joinpath(examples_dir(), "fluid", "hydrostatic_water_column_2d.jl"))
To visualize the result quickly, use Plots.jl:
julia> using Plots; plot(sol)
This opens a new window with a 2D visualization of the final solution:

Further details can be found in the documentation.
Documentation
You can find the documentation for the latest release
here.
Publications
- Neher, Faulhaber, Berger, Weißenfels, Gassner, Schlottke-Lakemper,
Robust and efficient pre-processing techniques for particle-based methods including dynamic boundary generation,
Computer Physics Communications (318) 109898, 2026.

Cite Us
If you use TrixiParticles.jl in your own research or write a paper using results obtained
with the help of TrixiParticles.jl, please cite it as
@misc{trixiparticles,
title={{T}rixi{P}articles.jl: {P}article-based multiphysics simulations in {J}ulia},
author={Erik Faulhaber and Niklas Neher and Sven Berger and
Michael Schlottke-Lakemper and Gregor Gassner},
year={2024},
howpublished={\url{https://github.com/trixi-framework/TrixiParticles.jl}},
doi={10.5281/zenodo.10797541}
}
and
@article{neher2025trixiparticles,
author = {Niklas S. Neher and Erik Faulhaber and Sven Berger and Gregor J. Gassner and Michael Schlottke-Lakemper},
title = {TrixiParticles.jl: Particle-based multiphysics simulation in Julia},
journal = {Journal of Open Source Software},
volume = {10},
number = {105},
pages = {7044},
year = {2025},
publisher = {Open Journals},
doi = {10.21105/joss.07044},
url = {https://joss.theoj.org/papers/10.21105/joss.07044},
issn = {2475-9066}
}
Authors
Erik Faulhaber (University of Cologne) and Niklas Neher (HLRS) implemented the foundations
for TrixiParticles.jl and are principal developers along with Sven Berger (Hereon).
The project was started by Michael Schlottke-Lakemper (University of Augsburg)
and Gregor Gassner (University of Cologne), who provide scientific direction and technical advice.
The full list of contributors can be found in AUTHORS.md.
License and contributing
TrixiParticles.jl is licensed under the MIT license (see LICENSE.md). Since TrixiParticles.jl is
an open-source project, we are very happy to accept contributions from the
community. Please refer to CONTRIBUTING.md for more details.
Note that we strive to be a friendly, inclusive open-source community and ask all members
of our community to adhere to our CODE_OF_CONDUCT.md.
To get in touch with the developers,
join us on Slack
or create an issue.
Acknowledgments
The project has benefited from funding from hereon,
HiRSE, and through
ScienceServe
for the MATRIX project.
Work on TrixiParticles.jl has also been supported by the Federal Ministry of
Research, Technology and Space (BMFTR) under funding code 01QE2614C as
part of the EUREKA project RESIST. The responsibility for the content of
this publication lies with the authors.
This project is co-funded by the European Union. Views and opinions expressed
are however those of the authors only and do not necessarily reflect those of
the European Union or the granting authorities.
评论