Damped oscillation: Difference between revisions
Max Peschke (talk | contribs) |
Max Peschke (talk | contribs) |
||
| Line 73: | Line 73: | ||
With these basic computing elements we are able to generate '''ẍ = -(d*ẋ + k*x) / m'''. | With these basic computing elements we are able to generate '''ẍ = -(d*ẋ + k*x) / m'''. | ||
The basic idea is to '''start with an integrator assuming ẍ as it´s input.''' | The basic idea is to '''start with an integrator assuming ẍ as it´s input.''' From there on you add computing elements do generate the input in the form of '''-(d*ẋ + k*x) / m'''. | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 82: | Line 82: | ||
|As mentioned above, start with an integrator and assume the highest derivative as input. | |As mentioned above, start with an integrator and assume the highest derivative as input. | ||
'''ẍ''' represents the deflection over time. If '''ẍ<sub>0</sub>''' is set to 1, the damped oscillation starts with maximum | '''ẍ''' represents the deflection over time. If '''ẍ<sub>0</sub>''' is set to 1, the damped oscillation starts with maximum velocity. | ||
||[[File:IntegratorSymbol.png|thumb|300px| | ||[[File:IntegratorSymbol.png|thumb|300px|Basic integrator]] | ||
|- | |- | ||
| When putting | | When putting another integrator behind the first, you can generate '''-ẋ''' and '''x''' || [[File:TwoIntegrators_v2.png|thumb|300px|Generating all derivatives]] | ||
|- | |- | ||
| | | To generate '''ẋ''' from '''-ẋ''', branch of the circuit behind the first integrator and put the second wire in an inverter.|| [[File:DO part01.png|thumb|300px|Generating all derivatives with correct sign]] | ||
|- | |- | ||
| | | Insert two coefficient potentiometers to give '''ẋ''' and '''x''' their coefficients. | ||
'''k = spring coefficient | |||
'''d = damper coefficient | |||
To generate '''d*ẋ''' and '''k*x''' | |||
||[[File:DO part02.png|thumb|300px|Using of coefficient potentiometers to multiply parameters with a constant value]] | |||
|- | |||
| Merge the outputs of the coefficient potentiometers in a summer. | |||
Note the sign change, which is rather useful for this case. | |||
Output: '''-(d*ẋ + k*x)''' | |||
|| [[File:DO part03.png|thumb|300px|Merging the potentiometer outputs in a summer]] | |||
|- | |||
| As last computing part add another coefficient potentiometer to divide the output of the summer with the mass coefficient. || [[File:DO part04.png|thumb|300px|Adding a potentiometer to add mass coefficient]] | |||
|- | |||
| Next to final step is to close the computing circuit by connecting the output of the last potentiometer with the input of the first integrator. | |||
Output: '''-(d*ẋ + k*x) / m''' | |||
The sign is already correct. | |||
|| [[File:DO part05.png|thumb|300px|Closing the circuit]] | |||
|- | |- | ||
| | | Lastly, branch of the circuit at a given point to use it later on with a given interface. | ||
In this case I branched just after the inverter to make the signal (in this case the velocity over time) visible on an oscilloscope later on. | |||
Usually, outputs are drawn as arrows. | |||
|| [[File:DO part06.png|thumb|300px|Closing the circuit]] | |||
|} | |} | ||
Revision as of 21:59, 7 December 2021

The modeling of a damped oscillation is a good starting point for analog programming beginners. This article shall give a detailed explanation how to implement a simulation on The Analog Thing using the full repatriation method to derive a computer circuit (originally developed by Lord Kelvin around 1875) and to get results on an oscilloscope.
There are four major steps, all of which are equally crucial:
- Describe the to be simulated system with differential equations
- Derive a computer circuit from these equations
- Wire the computer circuit on the analog computer and adjust parameters
- Choose viable visualization method (usually oscilloscopes) and connect the computer circuit
This article will focus on point 2. to 4. and requires a basic understanding of differential equations.
1. Mathematical description of a damped oscillation

The first and often hardest step of modeling a to be simulated system on an analog computer is to give an exact mathematical description of the system in the form of differential equations. For this example the description is rather short:
Find all acting forces, three in this case:
- Spring force Fs = k*x;
k = spring coefficient, x = deflection
- Inertia force Fm = m*a;
m = mass, a = acceleration
- Damper force Fd = d*v;
d = damper coefficient, v = velocity
Set the sum of all forces to zero (definition of an isolated system):
Fm + Fd + Fs = 0 m*a + d*v + k*x = 0
Replace the velocity v with ẋ and the acceleration a with ẍ
v = ẋ
(the velocity equals the first derivative of x)
a = ẍ
(the acceleration equals the second derivative of x)
m*a + d*v + k*x
= m*ẍ + d*ẋ + k*x = 0
Now we have an exact description the damped oscillation in the form of a differential equation.
Lastly, solve this equation for the highest derivative the finish the full repatriation:
-> ẍ = -(d*ẋ + k*x) / m
2. Derivation of a computer circuit
At first, we need three basic computing elements which can probably be found on every electrical analog computer:
With these basic computing elements we are able to generate ẍ = -(d*ẋ + k*x) / m.
The basic idea is to start with an integrator assuming ẍ as it´s input. From there on you add computing elements do generate the input in the form of -(d*ẋ + k*x) / m.










