View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Magnetic Flux distribution

3.0 | 3 ratings Rate this file 13 Downloads (last 30 days) File Size: 4.24 KB File ID: #34785 Version: 1.1
image thumbnail

Magnetic Flux distribution


Praviraj PG (view profile)


25 Jan 2012 (Updated )

Magnetic Flux distribution

| Watch this File

File Information

These codes calculates & plots Magnetic Flux distribution for
1. Two parallel conductors,
2. Solenoid

Required Products MATLAB
MATLAB release MATLAB 7.10 (R2010a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (4)
25 Nov 2015 Jan Vogelsang

In solenoid.m it should be

ry = -yC(q); (with a minus sign)

Otherwise the fields are not calculated properly.

Comment only
27 May 2015 bitachi fujochyan

09 Jan 2014 ths1104 Stenkhiste

This is not FEM but Biot-Savart law. Good example anyway.

25 Jun 2012 Mathieu Gauvin

Dear Dr. Pravi (or any other interested users), I would appreciate your help.

I am an electrical engineer student at McGill University, and I am very happy that you posted very nice and working algorithms for FEM simulations. I am trying to use your matlab script solenoid.m to simulate a solenoid, but for my simulation I would need to add an iron core inside the loops, I found online (see sources) that mathematicly this change in permeability ends up scaling the field by a constant. Do you think this is applicable somewhere in your code? I fould this mathematical scaling being too easy to be true in my mind it's seem pretty clear that some border effect woul happen at the core extremety, because of the iron-air interface, what do you think?

There is other things I would like to know in order to understand my eventual results, does the length values (such as: d = 2; % Radius of the Loop...) are indcated in meter units ? Also the direction of the current is taken in consideration, but not its amplitude? I know that if I put -10 instead of -1 (as default) it scale B by 10, so can I consider this as being Ampere unit? Finally, At the end of the magnetic field computation, if I put as comment the normalization line at the end, the resulting unit of the fields B are suposed to be Tesla ?

Thanks for your time and help!


12 Mar 2014 1.1

Title updated.

Contact us