summaryrefslogtreecommitdiff
path: root/887/CH15/EX15.10/15_10.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /887/CH15/EX15.10/15_10.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '887/CH15/EX15.10/15_10.sce')
-rwxr-xr-x887/CH15/EX15.10/15_10.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/887/CH15/EX15.10/15_10.sce b/887/CH15/EX15.10/15_10.sce
new file mode 100755
index 000000000..25a3d7a56
--- /dev/null
+++ b/887/CH15/EX15.10/15_10.sce
@@ -0,0 +1,21 @@
+clc
+//ex15.10
+V_1_rms=110;
+R_L=10;
+tr=5; //turns ratio(N1/N2)
+V_2_rms=V_1_rms/tr; //primary and secondary voltage relation
+//a)open switch
+disp('OPEN switch')
+disp(V_1_rms,'Primary voltage in volts')
+disp(V_2_rms,'Secondary voltage in volts')
+//As switch is open, current in second winding is 0 which implies the current in primary coil to be 0 (ideal transformer condition)
+disp(0,'Current in primary winding in amperes')
+disp(0,'Current in secondary winding in amperes')
+//b)closed switch
+disp('CLOSED switch')
+I_2_rms=V_2_rms/R_L; //ohm's law
+I_1_rms=I_2_rms/tr; //ideal transformer condition
+disp(V_1_rms,'Primary voltage in volts')
+disp(V_2_rms,'Secondary voltage in volts')
+disp(I_1_rms,'Current in primary winding in amperes')
+disp(I_2_rms,'Current in secondary winding in amperes')