Skip to content

Humble implementation of the Biot-Savart's equation for solving the magnetic field produced by a current.

Notifications You must be signed in to change notification settings

FacundoAlvarado9/biot-savart-py

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

Originally from a group project for Physics II at uni.

$$\vec{B}(\vec{r}) = \frac{\mu_0 I}{4 \pi} \int_C \frac{d\vec{l} \times (\vec{r}-\vec{l})}{|\vec{r}-\vec{l}|^3}$$

Humble implementation of the Biot-Savart's equation for solving the magnetic field of an electrical current. This implementation can handle any current in the form of a parameterized line in 3D-space. Alongside the calculation, it displays graphs for both a 3D- and 2D-view.

Code from Mr. P. Solver's Youtube video was used as a starting point, so credits to him. Some changes were introduced like the possibility of working with more than one current simultaneously and being able to define these currents just once in the code.

In this repo you can find the implementation for a Helmholtz coil, which represents two circular cables close to each other which transport the same current in the same direction.

Be aware that our group was formed by Soft. Eng. students, with a very limited Physics background (that is, you may find mistakes or inconsistencies).

About

Humble implementation of the Biot-Savart's equation for solving the magnetic field produced by a current.

Resources

Stars

Watchers

Forks

Languages

  • Jupyter Notebook 100.0%