Skip to content

An FEM simulator for the electromagnetic spectrum implemented in python and c++ Opencl

License

Notifications You must be signed in to change notification settings

Thoroniul/py_antenna

Repository files navigation

PY_ANTENNA


by Mikhail Kravchenko [email protected]

A library in c++ and python that deals with RF computation.

This file project the classes that define the EM fields.

This is me consolidating (or attempting to consoldiate) and documenting various code and notes I have lazily accreted in the last few years. I am historically very bad at showing my work perhaps because I am too self concious about my implmentation. I will tend to publish work that I feel is 'good enough' to be showable. I would rather code I push to be readable and usuable by other people. The code I keep for myself needs to be better documented, optimized, and in some cases moved from paper to computer.

This code is not particularly valuable feel free to take and use my examples if it helps you. If you want to give credit, feel free.

Included files:

README.md      (this file)

LICENSE      (MIT License)

T_junction.bmp      Input coordinates defined by a raster.

Output3.webm      The pretty output. I'm honestly doing this for the aestetic.

T_junction.py      This code extracts the relevant coordinates from the BMP image. The black pixels are the wall and are detected by finding pixels with B=0 The 'pink' pixels are the source coordinates and are for pixels with G=127. The BMP has BGR pixel orientation.

fullfigure.py      Figure wrapper function that contains all the relevent figure, axes, and gui handles.

tm_T_junction.py      Main function, does all execution.

Dependencies

Python3.9

numpy

matplotlib

PIL

FFMPEG https://ffmpeg.org/download.html

About

An FEM simulator for the electromagnetic spectrum implemented in python and c++ Opencl

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages