Table of Contents
Geogebra Plugin
Geogebra is a graphing and geometry tool I've been using since my teaching days. I always found it to be very useful to display concepts that are hard to visualize on a static page. However, it is a lot more than a simple animation since people can interact with it and move things around.
In the past, I had to export Geogbra files to html5 to embed them, but the process was pretty clunky and time consuming. I searched the Dokuwiki plugins but all the ones listed are too old and don't work anymore. Finally, I created my own using some general instructions for embedding Geogebra files. This is my first plugin and a bit of a cheat: I basically took the existing Color plugin which is pretty simple, studied it to learn a bit of the syntax and modified it until it did what I needed. However, there's still a lot of code that I don't really understand and a few features that are missing.
Here's what I got so far. If anyone has experience writing Dokuwiki plugin, please reach out.
Here's how to installed it:
The syntax is:
{{ggb>/path/to/geogebrafile.ggb 740,300}}
Note that at the moment, if a path is used, it must use /
instead of :
. The default dimensions are 800×400 if they are omitted.
Here's an example from one of Ham Basics pages showing how different waves add and what SWR looks like:
Wave Addition
When two waves overlap, they add up together at every point. Here, the blue and green waves are generated and add up together to form the red wave. You can move the blue and green waves and see the result. To convince yourself that the red wave is really the sum of the blue and green waves, look at points A, B, and C. You can move the blue or green waves by sliding their phase (φ and Φ) around. You'll see that point C is always the sum of A and B.
Download waveaddition.ggb
Where do the blue and green waves need to be so that...
- the red wave is the biggest?
- the red wave is cancelled out?1)
If you press the play button on the bottom left corner, you'll see the blue wave travel to the right and the green wave travel to the left. The red wave, which is the sum of the forward and reflected waves, oscillates up and down but doesn't travel anywhere, which means it's not going into the antenna.
While the animation is running, slowly decrease the amplitude of the reflected wave (VB) and you'll see that the red wave will start moving to the right. As you do that, notice how the SWR (Standing Wave Ratio) decreases toward 1:1. At this point, there is no reflected wave and all of the energy is going to the antenna (assuming no loss in the feedline).