summaryrefslogtreecommitdiff
path: root/1319/CH6/EX6.5/6_5.sce
diff options
context:
space:
mode:
Diffstat (limited to '1319/CH6/EX6.5/6_5.sce')
-rw-r--r--1319/CH6/EX6.5/6_5.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/1319/CH6/EX6.5/6_5.sce b/1319/CH6/EX6.5/6_5.sce
new file mode 100644
index 000000000..5ce90b45d
--- /dev/null
+++ b/1319/CH6/EX6.5/6_5.sce
@@ -0,0 +1,17 @@
+// Calculate Load Current in a shunt generator
+
+clc;
+clear;
+
+E=127;
+V=120;
+Ra=0.02;
+Rf=15;// Field Resistance
+
+Ish=V/Rf;
+
+Ia=(E-V)/Ra;
+
+Il=Ia-Ish;
+
+printf('The load current = %g A \n',Il)