"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
" \n",
"\n",
"import scipy\n",
"from numpy import *\n",
"\n",
"#Variable Declaration\n",
"\n",
"m=400 #mass in kg\n",
"g=9.8 #acceleration due to gravity in m/s^2\n",
"Ur=3000 #relative permeability of the iron yoke\n",
"Uo=4*scipy.pi*10**-7 #permeability of free space\n",
"S=40*10**-4 #cross sectional area of iron yoke in m^2\n",
"la=1*10**-4 #air gaps in m\n",
"li=50*10**-2 #mean length of yoke in m\n",
"I=1 #excitation current in A \n",
"\n",
"#Calculations\n",
"\n",
"B=scipy.sqrt(m*g*Uo/S) #field in Wb/m^2\n",
"Ra=2*la/(Uo*S) \n",
"Ri=li/(Uo*Ur*S) \n",
"N=(Ra+Ri)/(Ra*Uo)*B*la #number of turns\n",
"\n",
"#Result\n",
"\n",
"print 'The nmber of turns in the coil when the excitation current is 1 A ='\n",
"print round(N,0)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"The nmber of turns in the coil when the excitation current is 1 A =\n",
"162.0\n"
]
}
],
"prompt_number": 5
}
],
"metadata": {}
}
]
}