Physics Algorithms

This is a book about physics algorithms, covering a wide range of different ways to simulate the universe.

My aim is to present the algorithms as simply as possible, to allow a technical, but non-physics audience to use the book. This would include engineers, computer scientists, mathematicians and others. This is a challenging goal because the field is difficult --- but hopefully the field is more accessible than it would otherwise have been.

Part of the reason to hope for a wider audience is that there are many people who love programming, and would want to explore what for them is exciting and new.

In this book, numerical physics is split into three parts: point-particle methods, waves and fluids. For each of these, a number of algorithms are presented, introducing new ideas and ways to program simulations.

As of June 2020, the book is about half complete: The point-particle part is perhaps 80% complete and waves is 60% complete.

I'm releasing it early to get feedback and interest, and partly to help with motivation.

The PDF is here: Physics Algorithms

To leave feedback, please leave a comment on the reddit post about this.


Other Articles:


A simple demo of a simulation of an atmosphere. It looks quite cool, but there's not a lot you can do with it yet, and the physics isn't yet all that accurate.

BodyWorks: Neuromuscular Activity / Muscle EMG

An interactive simulation showing how nerves travel to and down muscles, and how this gets picked up by EMG sensors.

Atomistic Simulation of Metals

This presents an interactive simulation of atoms making up a nanoscopic particle of metal.

© Hugo2015. Session @sessionNumber