Magnetic Circuit Matlab Script: Difference between revisions

From Class Wiki
Jump to navigation Jump to search
(New page: <font face="Courier New"> % _-_,, ,, _-_- ,, % ( // || /, _ ; || ' % _...)
 
No edit summary
Line 1: Line 1:
<font face="Courier New">
<font face="Courier New">


%&nbsp &nbsp _-_,,&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp ,,&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp _-_-&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp ,,&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp
% _-_,, ,, _-_- ,,


%&nbsp (&nbsp &nbsp //&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp ||&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp /,&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp _&nbsp &nbsp &nbsp ;&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp ||&nbsp &nbsp &nbsp &nbsp '&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp
% ( // || /, _ ; || '


% _|| /'\\ ||/\\ \\/\\ || __ < \, \\/\/\ ||/\ \\ \\/\\ _-_,
%&nbsp &nbsp &nbsp _||&nbsp &nbsp &nbsp /'\\&nbsp ||/\\&nbsp \\/\\&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp ||&nbsp __&nbsp &nbsp &nbsp &nbsp <&nbsp \,&nbsp \\/\/\&nbsp ||/\&nbsp \\&nbsp \\/\\&nbsp _-_,&nbsp


% _|| || || || || || || ~||- - /-|| || | | ||_< || || || ||_.
%&nbsp &nbsp &nbsp _||&nbsp &nbsp ||&nbsp ||&nbsp ||&nbsp ||&nbsp ||&nbsp ||&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp ~||-&nbsp &nbsp -&nbsp &nbsp &nbsp /-||&nbsp ||&nbsp |&nbsp |&nbsp ||_<&nbsp ||&nbsp ||&nbsp ||&nbsp ||_.&nbsp &nbsp


% || || || || || || || ||===|| (( || || | | || | || || || ~ ||
%&nbsp &nbsp &nbsp &nbsp ||&nbsp &nbsp ||&nbsp ||&nbsp ||&nbsp ||&nbsp ||&nbsp ||&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp ||===||&nbsp ((&nbsp ||&nbsp ||&nbsp |&nbsp |&nbsp ||&nbsp |&nbsp ||&nbsp ||&nbsp ||&nbsp ~&nbsp ||&nbsp


% -__-, \\,/ \\ |/ \\ \\ ( \_, | \/\\ \\/\\/ \\,\ \\ \\ \\ ,-_-
%&nbsp -__-,&nbsp &nbsp \\,/&nbsp &nbsp \\&nbsp |/&nbsp \\&nbsp \\&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp (&nbsp \_,&nbsp |&nbsp &nbsp &nbsp \/\\&nbsp \\/\\/&nbsp \\,\&nbsp \\&nbsp \\&nbsp \\&nbsp ,-_-&nbsp &nbsp


%&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp _/&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp `&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp
% _/ `


%
%

Revision as of 23:38, 10 January 2010

%&nbsp &nbsp _-_,,&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp ,,&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp _-_-&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp ,,&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp

%&nbsp (&nbsp &nbsp //&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp ||&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp /,&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp _&nbsp &nbsp &nbsp ;&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp ||&nbsp &nbsp &nbsp &nbsp '&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp

%&nbsp &nbsp &nbsp _||&nbsp &nbsp &nbsp /'\\&nbsp ||/\\&nbsp \\/\\&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp ||&nbsp __&nbsp &nbsp &nbsp &nbsp <&nbsp \,&nbsp \\/\/\&nbsp ||/\&nbsp \\&nbsp \\/\\&nbsp _-_,&nbsp

%&nbsp &nbsp &nbsp _||&nbsp &nbsp ||&nbsp ||&nbsp ||&nbsp ||&nbsp ||&nbsp ||&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp ~||-&nbsp &nbsp -&nbsp &nbsp &nbsp /-||&nbsp ||&nbsp |&nbsp |&nbsp ||_<&nbsp ||&nbsp ||&nbsp ||&nbsp ||_.&nbsp &nbsp

%&nbsp &nbsp &nbsp &nbsp ||&nbsp &nbsp ||&nbsp ||&nbsp ||&nbsp ||&nbsp ||&nbsp ||&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp ||===||&nbsp ((&nbsp ||&nbsp ||&nbsp |&nbsp |&nbsp ||&nbsp |&nbsp ||&nbsp ||&nbsp ||&nbsp ~&nbsp ||&nbsp

%&nbsp -__-,&nbsp &nbsp \\,/&nbsp &nbsp \\&nbsp |/&nbsp \\&nbsp \\&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp (&nbsp \_,&nbsp |&nbsp &nbsp &nbsp \/\\&nbsp \\/\\/&nbsp \\,\&nbsp \\&nbsp \\&nbsp \\&nbsp ,-_-&nbsp &nbsp

%&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp _/&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp `&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp

%

% John Hawkins

% EMEC

% Magnetic Circuit Calculations

% Professor Rob Frohne

% January 10, 2009

% Problem Statement Constraints

N=1600;

Bfg=.1;

% Assumed relative permeability

mu0=4e-7*pi;

mur=500;

mu=mur*mu0

% Geometry

lfg=1e-2

ldef=31e-2+24.5e-2

lghc=ldef

ldc=48e-2

ldabc=46e-2+48e-2+46e-2

Afg=4e-2*8e-2

Adef=Afg

Aghc=Afg

Adc=8e-2*12e-2

Adabc=2e-2*4e-2

% Air gap

Rfg=lfg/(mu*Afg)

Ifg=Bfg*Afg

Ffg=Rfg*Ifg

% Right arms

Idef=Ifg

Rdef=ldef/(mu*Adef)

Fdef=Rdef*Idef

Ighc=Idef;

Rghc=Rdef;

Fghc=Fdef;

% Center Column

Fdc=Fdef+Ffg+Fghc

Rdc=ldc/(mu*Adc)

Idc=Fdc/Rdc

% Left arm

Idabc=Idc-Idef

Rdabc=ldabc/(mu*Adabc)

Fdabc=Rdabc*Idabc

% Results

Ftotal = Fdabc+Fdc+Fdef+Ffg+Fghc

i=Ftotal/N