summaryrefslogtreecommitdiff
path: root/1541/CH2/EX2.3/Chapter2_Example3.sce
blob: be6cedf6397d02078a6b8af4fd11404397a10204 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//Chapter-2, Example 2.3, Page 2.6
//=============================================================================
clc
clear

//INPUT DATA
A=(40*10^-4);//Area of cross section of the core A in m^2
B=8;//Maximum flux density in the core B in Wb/m^2
V1=2000;//Primary voltage in V
V2=200;//Secondary voltage in V
f=50;//Frequency in Hz

//CALCULATIONS
N1=(V1/(4.44*B*A*f));//Number of turns in the primary
N2=(V2/(4.44*f*A*B));//Number of turns in the secondary

//OUTPUT
mprintf('Number of turns in the primary is %3.0f \nNumber of turns in the secondary is%3.0f',N1,N2)
 
//=================================END OF PROGRAM==============================