Skip to main content

Antenna simulation driver showcase

I provide a Python package antenna_simulation_driver. When you are here, I assume that you already knew that and have a notion what that is about. If you don’t, I recommend you head over to that project’s git repo and read its README.md.

hwg and short dipoles

This is about a Jupyter Notebook that showcases the use of the driver to run parameter studies.

The studies done here rely on nec2++’s impedance and efficiency values. (Nothing in here already uses the radiation pattern. I simply have no showcase for that yet.)

The notebook is available in a rendered version, which has fun graphs and a bit of antenna theory. Unfortunately, the Python code is formatted in a rather shitty way: This is simply Nikola’s out-of-the-box formatting, where Nikola is the static site generator I’m using for this web site / blog.

I want to improve on that formatting eventually with a helping of custom CSS sprinkling.

Workaround for bad Python code formatting

But some people are wanting to get their hands dirty and play themselves with my code. Of course, all such are warmly invited! So I decided to rather publish with shitty formatting now than let those wait.

Fortunately, for now, there is a workaround: Run jupyter notebook on your own computer.

Scroll down to the end of the above rendered version. There is an explanation which tells you how to install everything you need to run that notebook yourself. You can then download the same notebook as source, start jupyter notebook and in the browser window that opens, navigate to the file you just downloaded (assuming you were in the same directory where that file sits when starting jupyter notebook).

The installation steps hopefully enable you to rerun the entire notebook. But they’re quite a mouthful. For just nicer Python code formatting while reading, a simple pip install notebook followed by jupyter notebook should already do the trick.