summaryrefslogtreecommitdiff
path: root/132/CH4/EX4.2/Example4_2.sce
blob: ba533e3e0f3fdaa8a6674039543d0ccdafd7571a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//Example 4.2
//Program to determine DC Voltage across the load and PIV of the 
//Centre Tap Rectifier and Bridge Rectifier
clear;
clc ;
close ;
//Given Circuit Data
Vrms=220; //Volts
n2=1; //Assumption
n1=12*n2; //Turns Ratio
//Calculation
Vp=sqrt(2)*Vrms;//Maximum(Peak) Primary Voltage
Vm=n2*Vp/n1;//Maximum Secondary Voltage
Vdc=2*Vm/%pi;//DC load Voltage 
//Displaying The Results in Command Window
printf("\n\t The DC load Voltage is = %f V .",Vdc);
printf("\n\t The Peak Inverse Voltage(PIV) of Bridge Rectifier is = %f V .",Vm);
printf("\n\t The Peak Inverse Voltage(PIV) of Centre-tap Rectifier is = %f V .",2*Vm);