summaryrefslogtreecommitdiff
path: root/317/CH3/EX3.6/example6.sce
blob: 845ef7b6e2abbc0a8eb43f44e187fdaa52d6eb79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

// Example 3-6, page 67`

clear;clc; close;

// Given data
// thevenize the circuit to the left of the diode.
// looking at the diode back toward the source,we see a voltage divider with 6 killo-ohms and 3 killo-ohms.
R=2000;// thevenin resistance in ohms 
V(1)=12;// thevenin voltage in volts

// Calculations
disp("Using Thevenin Thm")
V(2)=0.7;// diode voltage in volts
I=(V(1)-V(2))/3000// load current in amperes
P=V(2)*I // diode power in watts
V=I*1000// load voltage in volts
disp("Amperes",I,"Load Current=")
disp("Volts",V,"Load Voltage=")
disp("Watts",P,"Diode power=")