Harmonic oscilator

This board is to show, discuss and archive useful combinator- and logic-creations.
Smart triggering, counters and sensors, useful circuitry, switching as an art :), computers.
Please provide if possible always a blueprint of your creation.
Post Reply
User avatar
MBas
Long Handed Inserter
Long Handed Inserter
Posts: 63
Joined: Fri Jan 06, 2017 12:57 pm
Contact:

Harmonic oscilator

Post by MBas »

Hello.

This is just fur fun tool :).

1) Set an amplitude as "A signal" and a period (in number of ticks, so 60 is equal to 1 sec) as "T signal" into constant combinator
2) "R signal" must be set into value 1 when you manipulate with constant combinator
3) Set "R singal" to value 0 (just release it by right click) to start simulation
4) Observe "X signal" at the pole

Note: Higher amplitudes has more precision. I recommend to set amplitude into most possible value (2G). There is a sharp condition A > T and T > 10 (or some similar value). Value of T/A term should be proportional to error in period length. All green network is used for some consant calculations and red network is used for simulation.

Note2: There is also a "U signal" in a bottom red network. Its a signal shifted by T/4. There is an equality U^2 + X^2 = const during all simulation (not perfectly equal due to some error, however the value do not fluctuate over period. (The error is coused by fact that U is calculated after X and X after U etc. Equality Uold*Unew + X^2 = const should be satisfied almost perfectly)
oscilator.png
oscilator.png (629.39 KiB) Viewed 1438 times

Code: Select all

H4sIAAAAAAAA/71Y3W6bMBh9lYrLzWwYkixV5Yu+wJRWi1SpmhAFp7UENjKmaoR49xnSJvzEYJOwXCWB74dzfL7vJBG7iVkYxDc+KjAVRBCcoaKgQYKRFXAi
3hIsSGiHLHkhNBCMWyBlmbyPUVR8INv9sQR7ZHsliAjHYf29C0JGBWex/4LfgnfCOCpOuXx5MaoTyEo7wjPhZ+SVBjEqxD6VZd8JF3kQW+DQxeGi/WCVVdpM
BFQgDy7gCrAU86CuaP20AMtFmuvl2lhlWWejh45lI88WtP6i4pVjLB/sgMXeJ1H1MISHORHVB1jFPVuuxq1uWb2AOZTu7FD+aULpLh2nieQ3IyQfDJCEbSRB
45KnDzJsg6zMMhl/ODv+myb+NpyO/m8D9D01bgZH3FNz6KoL3La4SHBE8sTGsWyaS0JSFuMOFQtJhHOKiHBIIszV1Dk1dc4Yc595JtL22KTNkW+TNOBVM8hC
RrQ91YnSvewjp8LfcZb4hMpoJHiOFYxyHLWYWKnhhh2lleCMjLr3HEkfLARNVQX1mLlYU09tchqS+m7KjSYBy+60UQG4VGvmV5u3gQUyLhrvgPOEs9OsMyo1
ryZ0dEldUWrwAqndT5FaXy23bZ4WKurP6Gyhls/XEw6ALaEe3Uc7EgvMK9umj0he4ep8vQChEf6oz6a+f6hSrI6xrmbs46n8Z6R3lR22VousP+rMfIGjd+Iv
HmHbK42wrfYIgz3HpJphcMB2wZ57m4Lv/LarWhEZrmJ1zdX0Xxj6HCzHd3V7+gysE6h0cj0+nQE+e1kmbPz56dya0bm5hE59V9AVio73GhaTli8zW+Lwv+/w
S+zy9hp2uXvgz/IyUT7mI+9goub/0+R+dlfcR3Gtb47WfRRLQMI6f8dNEIGTr6bOI1weXUxZ3nEsck5v/DtMo39TLVuW5BIAAA==

Post Reply

Return to “Combinator Creations”