summaryrefslogtreecommitdiff
path: root/1271/CH18/EX18.10/example18_10.sce
blob: a1a7ba2f2aed09697fe1bdd2d05d45f6cf4e70d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
clc 
// Given that 
l = 1 // length of iron rod in m
a = 4e-4 // area in m^2
mu = 50e-4 // permeability of iron in H/m
Phi = 4e-4 // magnetic flux in Weber
// Sample Problem 10 on page no. 18.24
printf("\n # PROBLEM 10 # \n")
printf("Standard formula used \n ")
printf("B = mu*N*I \n")
B = Phi / a
NI = B / mu
printf("\n Number of ampere turns is %d A/m. ",NI)