summaryrefslogtreecommitdiff
path: root/3035/CH12/EX12.1/Ex12_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '3035/CH12/EX12.1/Ex12_1.sce')
-rwxr-xr-x3035/CH12/EX12.1/Ex12_1.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/3035/CH12/EX12.1/Ex12_1.sce b/3035/CH12/EX12.1/Ex12_1.sce
new file mode 100755
index 000000000..bba3bd9b8
--- /dev/null
+++ b/3035/CH12/EX12.1/Ex12_1.sce
@@ -0,0 +1,21 @@
+
+// Variable Declaration
+V_i = 100.0 //Incident voltage(kV)
+Z_1 = 400.0 //Surge impedance(ohm)
+Z_2 = 350.0 //Surge impedance(ohm)
+
+
+// Calculation Section
+beta = 2*Z_2/(Z_1+Z_2) //Refraction coeffeicient of voltage
+alpha = (Z_2-Z_1)/(Z_1+Z_2) //Reflection coeffeicient of voltage
+V_t = beta*V_i //Refracted voltage(kV)
+V_r = alpha*V_i //Reflected voltage(kV)
+I_t = V_t/Z_2*1000 //Refracted current(A)
+I_r = -(V_r/Z_1)*1000 //Reflected current(A)
+
+
+// Result Section
+printf('Reflected voltage , V_r = %.1f kV' ,V_r)
+printf('Refracted voltage , V_t = %.1f kV' ,V_t)
+printf('Reflected current , I_r = %.1f A' ,I_r)
+printf('Refracted current , I_t = %.1f A' ,I_t)