Fluid
Maxwell, MHD, and multi-fluid systems using compatible finite elements.
Struphy is an open-source framework for solving fluid, kinetic, and hybrid plasma models with geometric finite elements and Lagrangian particles.

Many plasma physics PDEs carry exact invariants: energy, mass, and the divergence-free condition on magnetic fields among them. Standard discretizations can violate these invariants over long simulations, letting numerical error accumulate. Struphy instead builds its finite-element and particle discretizations from a discrete de Rham complex, so these structural properties hold exactly at the discrete level, not only in the limit of vanishing grid size.
A common numerical framework supports several descriptions of plasma dynamics while preserving their underlying geometric structure.
Maxwell, MHD, and multi-fluid systems using compatible finite elements.
Vlasov and drift-kinetic models represented by Lagrangian particles.
Coupled field-particle descriptions, including MHD-kinetic models.
Install Struphy and compile its performance-critical kernels.
Continue with the installation guide andtutorials.
$ pip install struphy
$ struphy compileA selection of papers describing the methods and algorithms behind Struphy. See thefull publication list for more.