summaryrefslogtreecommitdiff
path: root/132/CH4/EX4.1/Example4_1.sce
blob: bbfb5d3df4936ced78ee24c504310772333a0d6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//Example 4.1
//Program to determine DC Voltage across the load and PIV of the Diode
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=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) is = %f V .",Vm);