/ interactive_tutorials / hardening_softening
Sign in
interactive_tutorials / hardening_softening
hardening_softening / recipe.md
79 lines · 2.2 KBPreviewCodeBlameHistoryRaw
1Title of presentation: Hardening and Softening Dynamical Systems
3"---" means new slide
5If the block escapes (a softening spring pushed over its barrier), the motion stops; pressing start or changing any slider restarts it, animation and sound alike.
7---
9Title: Harmonic Oscillator
11Left panel:
13x: displacement from equilibrium
14k: stiffness
15m: mass of block
16f_0 = \sqrt{k / m} / (2\pi): natural frequency (Hz)
18\ddot{x} + (2\pi f_0)^2 x = 0
20Right panel
22Show a diagram of a harmonic oscillator with quantities labeled
24A slider lets the user select the initial displacement and frequency f_0.
26The default frequency is 220 Hz. The freq range is 0 to 2000 Hz
28The default initial displacement is 0.2 (fraction of spring length at rest)
30A start button starts the simulation.
32The simulation runs at 1/100x real time.
34There's an audio play button, which plays the waveform of x over time at the full playback speed. The playback volume is normalized.
36The user can optionally expand to see a spectrogram (linear frequency scale)
38There should be a simple subtle volume adjuster for the audio.
40---
42Title: Duffing Oscillator (Conservative)
44Same as previous slide except with a cubic stiffness term \alpha = \beta/m
46and the ability to adjust that, positive or negative (bounded below, based on the linear stiffness and the initial displacement, so the block cannot escape).
48The default initial displacement should be 0.4
50The linear stiffness k may also be negative (a double well): f_0 = \pm\sqrt{|k|/m}/(2\pi) takes the sign of k, its slider goes negative, and the equation's linear term is written (k/m) x.
52---
54Title: Duffing Oscillator (Damped)
56Same as previous slide but with an adjustable damping coefficient \delta = c / m giving another term in the equation:
58\delta \dot{x}
60---
62Title: Duffing Oscillator (Driven)
64Same as previous slide but driven by a righthand side
66F \cos(\Omega t)
68where \Omega is the driving frequency and F = F_0/m is the forcing amplitude per unit mass.
70The F and \Omega should be adjustable by the user.
72A dropdown of presets shows various phenomena, including some chaotic ones (chosen by exploring the parameters numerically).
74The defaults:
75initial displacement 0
76f_0: 220 Hz
77delta: 0
78alpha: 3
79Driving frequency: 220 Hz
↑↓ move↵openescclose