From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 3041/CH8/EX8.7/Ex8_7.sce | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 3041/CH8/EX8.7/Ex8_7.sce (limited to '3041/CH8/EX8.7/Ex8_7.sce') diff --git a/3041/CH8/EX8.7/Ex8_7.sce b/3041/CH8/EX8.7/Ex8_7.sce new file mode 100755 index 000000000..8f4909ff8 --- /dev/null +++ b/3041/CH8/EX8.7/Ex8_7.sce @@ -0,0 +1,21 @@ +//Variable declaration +VL=12 //load voltage(V) +I=2. //current at 12 V +V=240 //dc source(V) +d=17/50. //duty cycle +d1=0.6 //duty cycle +eta1=0.8 //efficiency + +//Calculations +P=VL*I //average load power(W) +Isav=(1*d)/2 //average supply current(A) +Pav=V*Isav //average supply power(W) +eta=(P/Pav)*100 //regulator efficiency +Isav1=(1*d1)/2 //average supply current(A) +Il=(eta1*V*Isav1)/Vdc //load current(A) +Po=Il*Vdc //power output(W) + +//Results +printf ("regulator efficiency is %.1f %%",eta) +printf ("average supply current is %.1f A",Il) +printf ("power output is %.1f W",Po) -- cgit