The Magnetic Vector Field Made By Six Rings of Current

This code generates the XY vector field of the magnetic field made by six rings of current in a box.
360 Downloads
Updated 7 Oct 2013

View License

This code generates the XY vector field of the magnetic field made by six rings of current in a box. Raising the number of cells increases the resolution of the vector field.

The size of the machine is the following. Mid-plane to mid-plane is 0.0285 meters. The diameter of the rings is 0.0433 meters. There are 60 amps of current in each ring, with 15 turns. The grid has a height and width of 0.1 meter each. This can be adjusted in the code. The user must give some input:

Number of Cells? (suggest 40):10
Rings To Turn On? (1-6, 0 for all)0

The output is a vector field.

Cite As

Matthew Moynihan (2024). The Magnetic Vector Field Made By Six Rings of Current (https://www.mathworks.com/matlabcentral/fileexchange/43779-the-magnetic-vector-field-made-by-six-rings-of-current), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on General Physics in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0