Magnetic field distributions by Biot-Savart’s law

These Matlab routines calculate the magnetic field generated by the combination of linear filaments using Biot-Savart’s law. The directions and intensities of linear filaments can be assigned to simulate current flow. Applications of these routines include simulating the B1 field distribution using quasi-static approximation and the spatial encoding magnetic field of an MRI system.

Codes and example

Download the package here.

b1sim_dc_core.m calculates the quasi-static magnetic field given the spatial distribution of linear current filaments and FOV using Biot-Savart’s law. Additional codes are drawing the coil geometry, reading head geometry, and scaling values.

b1sim_dc_array_circle32.m  simulates and displays the B1 field for an 32-channel head array coil. The geometry of a 32-channel head coil array is defined in array_circle32.txt.