summaryrefslogtreecommitdiff
path: root/2780/CH10/EX10.5/Ex10_5.sce
blob: 0d5a6fe82d152d5e0fd82b579fc84fa4406a7c65 (plain)
1
2
3
4
5
6
7
8
9
clc
//to calculate number of ampere turns
l=0.5 //length in m
mu=6.5*10^-3 //permeability of iron in henry/m
A=2*10^-4 //area of cross-section in m^-4
R=l/(mu*A) //reluctance in A-turns/weber
flux=4*10^-4 //in weber
mmf=flux*R
disp("the number of ampere turns is mmf="+string(mmf)+"ampere-turns")