Two Square Wave Vibration Examples
- April 20, 2021
- 2 replies
- 9268 views
Hi,
Given the recent posts on the forum, I was curious to try and drive a mass, spring, damper system using a square wave. Luc posted an interesting solution for creating a square wave. There are decent quick sheets for mass, spring, damper systems in Mathcad 15. So I just combined the two things. I did have to modify the square wave definition some. The state space solver is faster and more robust. However, using odesolve provides a check. Working with each solver is different. The examples help show how to work with each solver.
The examples allow you to see what happens when you use a square wave instead of a cosine wave. Also, what happens when the square wave duty cycle changes. You can see that traditional ode solutions don't match reality. I've seen this before as well. The classic text book solutions are limited in a number of ways.
Also, thanks to the other forum members who helped me create these examples. I couldn't have did it without their help.
Anthony
Update; Added additional information and fixed some bugs. Also added pdf files of the examples.

