This script provides a comprehensive analysis and visualization of the magnetic field around two parallel cylindrical conductors (ideal transmission line) using Python. The conductors are aligned along the z-axis with a constant current flowing through them.
The script addresses the following tasks related to the electromagnetic field analysis:
- Vector Potential Calculation: Compute the magnetic vector potential at any point in the Cartesian coordinate system considering the distances from the point to the conductors.
- Graphical Representation:
- Plot the vector potential in the xy-plane.
- Graph normalized vector potential and equipotential lines.
- Visualize the magnetic induction B field lines using streamlines.
To install the necessary dependencies.Pipenv
and tkinter
should be installed in your global python environment. Pipenv is used for virtual environment management.
Clone the repository.
git clone git@github.com:orestis42/transmission_line_visualization.git
Navigate to the project directory.
cd transmission_line_visualization
Install dependencies using pipenv.
pipenv install
pipenv run python ./src/transmission_line_visualization/transmission_line_visualization.py