diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /3041/CH8/EX8.7/Ex8_7.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '3041/CH8/EX8.7/Ex8_7.sce')
-rwxr-xr-x | 3041/CH8/EX8.7/Ex8_7.sce | 21 |
1 files changed, 21 insertions, 0 deletions
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) |