diff --git a/src/build.js b/src/build.js
index 1888d7a..0361a7d 100644
--- a/src/build.js
+++ b/src/build.js
@@ -7,7 +7,8 @@
"../../node_modules/reveal.js/dist/theme/moon.css": "build/css/",
"../../node_modules/reveal.js/dist/reveal.js": "build/js/",
"../../src/static/css/style.css": "build/css/",
- "../../src/static/video/oscillator.mp4": "build/video"
+ "../../src/static/video/oscillator.mp4": "build/video",
+ "../../src/static/video/travelling.mp4": "build/video",
}
const buildFolder = "build"
diff --git a/src/build.js b/src/build.js
index 1888d7a..0361a7d 100644
--- a/src/build.js
+++ b/src/build.js
@@ -7,7 +7,8 @@
"../../node_modules/reveal.js/dist/theme/moon.css": "build/css/",
"../../node_modules/reveal.js/dist/reveal.js": "build/js/",
"../../src/static/css/style.css": "build/css/",
- "../../src/static/video/oscillator.mp4": "build/video"
+ "../../src/static/video/oscillator.mp4": "build/video",
+ "../../src/static/video/travelling.mp4": "build/video",
}
const buildFolder = "build"
diff --git a/src/presentation/main.md b/src/presentation/main.md
index 8a9fa17..e47a465 100644
--- a/src/presentation/main.md
+++ b/src/presentation/main.md
@@ -49,3 +49,11 @@
+
+----
+
+### Wanderwelle
+
+
diff --git a/src/build.js b/src/build.js
index 1888d7a..0361a7d 100644
--- a/src/build.js
+++ b/src/build.js
@@ -7,7 +7,8 @@
"../../node_modules/reveal.js/dist/theme/moon.css": "build/css/",
"../../node_modules/reveal.js/dist/reveal.js": "build/js/",
"../../src/static/css/style.css": "build/css/",
- "../../src/static/video/oscillator.mp4": "build/video"
+ "../../src/static/video/oscillator.mp4": "build/video",
+ "../../src/static/video/travelling.mp4": "build/video",
}
const buildFolder = "build"
diff --git a/src/presentation/main.md b/src/presentation/main.md
index 8a9fa17..e47a465 100644
--- a/src/presentation/main.md
+++ b/src/presentation/main.md
@@ -49,3 +49,11 @@
+
+----
+
+### Wanderwelle
+
+
diff --git a/src/python/travellingWave.py b/src/python/travellingWave.py
new file mode 100644
index 0000000..c8a7cc0
--- /dev/null
+++ b/src/python/travellingWave.py
@@ -0,0 +1,30 @@
+import numpy as np
+import matplotlib.pyplot as plt
+import matplotlib.animation as animation
+
+outputFolder = "src/static/video/"
+
+omega = 2*np.pi * .25
+k = 2*np.pi * .25
+A = 1
+
+totalTime = 12
+framerate = 20
+
+psi = lambda x,t: np.cos(k*x-omega*t)
+
+fig, ax = plt.subplots()
+
+x = np.linspace(0, 12, 100)
+line, = ax.plot(x, psi(x, 0))
+
+def animate(i):
+ t = i/framerate
+ line.set_ydata(psi(x, t))
+ return line,
+
+
+ani = animation.FuncAnimation(
+ fig, animate, interval=1000/framerate, blit=True, save_count = framerate * totalTime)
+ani.save(f"{outputFolder}travelling.mp4")
+plt.show()