summaryrefslogtreecommitdiff
path: root/1430/CH4/EX4.6
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /1430/CH4/EX4.6
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '1430/CH4/EX4.6')
-rw-r--r--1430/CH4/EX4.6/exa4_6.sce24
-rw-r--r--1430/CH4/EX4.6/exa4_6.txt23
2 files changed, 47 insertions, 0 deletions
diff --git a/1430/CH4/EX4.6/exa4_6.sce b/1430/CH4/EX4.6/exa4_6.sce
new file mode 100644
index 000000000..3dd315c1a
--- /dev/null
+++ b/1430/CH4/EX4.6/exa4_6.sce
@@ -0,0 +1,24 @@
+// Example 4.6
+// Matrix Mesh Analysis with Two Unknowns
+// From Figure 4.22(a)
+R_11=6+15; // Sum of Resistance around the mesh 1
+R_12=15;// Equivalent Resistance shared by mesh 1 & 2
+R_21=R_12; // Symmetry Property of Resistance Matrix
+R_22=15+5+(60*12)/(60+12); // Sum of Resistance around the mesh 2
+R=[R_11,-R_12;-R_21,R_22]; // Resistance Matrix
+v_s_11=30; // Net Equivalent source Voltage that drives i_1 in mesh 1.
+v_s_21=-50-(60*12)/(60+12); // Net Equivalent source Voltage that drives i_2 in mesh 2
+v_s=[v_s_11;v_s_21]; // Voltage Vector
+// Form Matrix Mesh Equation R*i=v
+i=R\v_s; // Current Vector
+i_1=i(1,1);
+i_2=i(2,1);
+p_50=50*(-i_2);// Power supplied by 50V source
+p_30=30*i_1;// Power supplied by 30V source
+v_a=(60*12*(1+i_2))/(60+12); // Voltage across 1A current source
+disp(i_1,"Current in Mesh 1(in Amps)=")
+disp(i_2,"Current in mesh 2(in Amps)=")
+disp(p_50,"Power supplied by 50V source(in Watt)=")
+disp(p_30,"Power supplied by 30V source(in Watt)=")
+disp(v_a,"Voltage across Current source(in Volts=")
+
diff --git a/1430/CH4/EX4.6/exa4_6.txt b/1430/CH4/EX4.6/exa4_6.txt
new file mode 100644
index 000000000..17b6d6637
--- /dev/null
+++ b/1430/CH4/EX4.6/exa4_6.txt
@@ -0,0 +1,23 @@
+
+-->exec('C:\Users\sangeet\Documents\Scilab\Circuits\Chapter 4\exa4.6.sce', -1)
+
+ Current in Mesh 1(in Amps)=
+
+ 0.
+
+ Current in mesh 2(in Amps)=
+
+ - 2.
+
+ Power supplied by 50V source(in Watt)=
+
+ 100.
+
+ Power supplied by 30V source(in Watt)=
+
+ 0.
+
+ Voltage across Current source(in Volts=
+
+ - 10.
+