Check out the links for each implementation to run this interactive code directly in the browser with Marimo!
Implementations based on the CFD Python: 12 Steps to Navier-Stokes course by Lorena Barba with Marimo
.
The code is rewritten in a vectorized approach (i.e no looping through spatial coordinates). I am also utilizing the interactivity provided by marimo
to aid to the exploration of the behaviour of the differential equations and integration schemes.
Check out the marimo interactive version of this code running entirely in the browser. For a more in depth discussion of the advection equation I highly recommend the video from the MIT course Introduction to Computational Thinking.
Check out the marimo interactive version of this code running entirely in the browser.