pyKO hydrocode#

pyKO is a one-dimensional Lagrangian elastic-plastic hydrocode written in python. This python version of the KO code was developed from the book Computer Simulation of Dynamic Phenomena by Mark Wilkins (Springer-Verlag, 1999) and the fortran KO code v11 by John Borg.

This resource is available as part of the Impacts Community Wiki Project under the GNU General Public License v3.0. This code is an easily modifiable and expandable teaching/learning tool that can be run in a Jupyter notebook or python interpreter.

pyKO is currently in a beta public release for testing and feedback at ImpactsWiki/pyko.

Help and Mailing List#

If you use this code (in any programming language), join the user mailing list and post questions there:

To subscribe

  • Send email to from the email address you want to subscribe

  • Subject line: subscribe ko-code-users

  • Body of email: leave empty

  • You will receive an email providing a link to confirm your subscription

To unsubscribe

  • Send email to from the email address to unsubscribe

  • Subject: unsubscribe ko-code-users

  • Body of email: leave empty

Report bugs in the python code on GitHub at ImpactsWiki/pyko#issues

Versions of the KO hydrocode#

The KO code is available in multiple programming languages, with different features implemented in each version:


John Borg has posted a video tutorial for the fortran version of the code at

Citing the KO hydrocode#


Stewart, S. T. pyKO code v0.6.1, doi:10.5281/zenodo.8092348, 2023.