KSE is a representative example of spatio-temporal chaos 1.
$$ \frac{\partial u}{\partial t} + u \frac{\partial u}{\partial x} + \frac{\partial^2 u}{\partial x^2} + \frac{\partial^4 u}{\partial x^4} = 0 $$
In [1]:
%matplotlib inline
import pandas as pd
import matplotlib.pyplot as plt
In [2]:
! cat examples/kse.rs
In [3]:
! cargo run --release --example kse > kse.csv
In [4]:
df = pd.read_csv("kse.csv", header=None).set_index(0)
In [5]:
plt.figure(figsize=(10, 10))
plt.imshow(df, interpolation="bilinear")
plt.ylabel("time", fontsize=20)
plt.savefig("kse.png")