summaryrefslogtreecommitdiff
path: root/1964/CH12/EX12.3/ex12_3.sce
blob: fda2159f5589e8940a085faa481b16cb2ef63b21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//Chapter-12, Example 12.3, Page 342
//=============================================================================
clc
clear
//INPUT DATA
Vac=230;//AC supply voltage
turnsratio=5;//turns ratio
Rl=300;//resistance in ohms
//CALCULATIONS
Vs=(Vac)/(turnsratio);//transformer sceondary voltage in V
Vm=sqrt(2)*(Vs);//maximum value of secondary voltage in V
Vdc=Vm/(%pi);//DC output voltage in V 
PIV=Vm;//PIV of a diode in V
Im=(Vm/Rl);//maximum value of load current in A
Pm=(Im)^2*(Rl);//Maximum value of power delivered
Idc=Vdc/(Rl);//average value of load current in A
Pdc=(Idc)^2*(Rl);//average value of power delivered to load
mprintf("Thus DC output voltage,PIV,Maximum value of power delivered,average value of power delivered to load are %2.1f V,%d V,%2.1f W,%1.2f W respectively",Vdc,PIV,Pm,Pdc);
//=================================END OF PROGRAM======================================================================================================