Code covered by the BSD License

### Highlights from Magnetic Flux distribution

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

# Magnetic Flux distribution

by

### PRAVI (view profile)

25 Jan 2012 (Updated )

Magnetic Flux distribution

File Information
Description

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

Required Products MATLAB
MATLAB release MATLAB 7.10 (R2010a)
27 May 2015 bitachi fujochyan

### bitachi fujochyan (view profile)

09 Jan 2014 ths1104 Stenkhiste

### ths1104 Stenkhiste (view profile)

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

25 Jun 2012 Mathieu Gauvin

### Mathieu Gauvin (view profile)

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!

Sources:

http://en.wikipedia.org/wiki/Solenoid
http://hyperphysics.phy-astr.gsu.edu/hbase/solids/ferro.html#c5