Create Your Own Constrained Transport Magnetohydrodynamics Simulation (With Python)
<p>In today’s recreational coding exercise, we will simulate the <strong>Orszag-Tang</strong> vortex — a demonstration of supersonic 2D magnetohydrodynamics (MHD) turbulence — using a constrained transport finite volume algorithm. This tutorial builds on our <a href="https://levelup.gitconnected.com/create-your-own-finite-volume-fluid-simulation-with-python-8f9eab0b8305" rel="noopener ugc nofollow" target="_blank">Finite Volume tutorial</a> for the compressible Euler equations. Here, we will add a <em>magnetic field</em> coupled to the fluid flow.</p>
<p>You may find the accompanying <a href="https://github.com/pmocz/constrainedtransport-python" rel="noopener ugc nofollow" target="_blank">Python code on github</a>.</p>
<p>Before we begin, below is a gif of what running our simulation looks like:</p>
<p><a href="https://levelup.gitconnected.com/create-your-own-constrained-transport-magnetohydrodynamics-simulation-with-python-276f787f537d"><strong>Click Here</strong></a></p>