Exercises for Electromagnetic Fields B course, 5th Semester 2020 of the Electrical and Computer Engineering School at the National Technical University of Athens.
The aim of these exercises was the analysis and visualisation of various electromagnetic fields, as well as the estimation of current densities using the method of moments.
I used python with matplotlib and numpy.
Problem set 1, Exercise 7: Spherical conductor with cavity, with a line charge inside the cavity
Code: elefield.py
Problem set 1, Exercise 8: Charge loop
Code: fourrings.py
Problem set 2, Exercise 7: Line charge, dielectric plane
Code: dielrod.py, moments1.py
Problem set 2, Exercise 8: Pi-shaped conductor underground
Code: pirod.py
Problem set 3, Exercise 8: Current loop
Code: magnrings.py
Problem set 3, Exercise 9: Two parallel current loops
Code: magn2.py
Problem set 3, Exercise 10: Cylindrical magnet
Code: magndisk.py