diff options
author | Siddharth Agarwal | 2019-09-03 18:27:40 +0530 |
---|---|---|
committer | Siddharth Agarwal | 2019-09-03 18:27:40 +0530 |
commit | 8ac15bc5efafa2afc053c293152605b0e6ae60ff (patch) | |
tree | e1bc17aae137922b1ee990f17aae4a6cb15b7d87 /Working_Examples/154/CH14 | |
parent | 52a477ec613900885e29c4a0b02806a415b4f83a (diff) | |
download | Xcos_block_examples-8ac15bc5efafa2afc053c293152605b0e6ae60ff.tar.gz Xcos_block_examples-8ac15bc5efafa2afc053c293152605b0e6ae60ff.tar.bz2 Xcos_block_examples-8ac15bc5efafa2afc053c293152605b0e6ae60ff.zip |
Diffstat (limited to 'Working_Examples/154/CH14')
-rwxr-xr-x | Working_Examples/154/CH14/EX14.1/ch14_1.sce | 29 | ||||
-rwxr-xr-x | Working_Examples/154/CH14/EX14.10/ch14_10.sce | 29 | ||||
-rwxr-xr-x | Working_Examples/154/CH14/EX14.2/ch14_2.sce | 27 | ||||
-rwxr-xr-x | Working_Examples/154/CH14/EX14.4/ch14_4.sce | 33 | ||||
-rwxr-xr-x | Working_Examples/154/CH14/EX14.6/ch14_6.sce | 23 | ||||
-rwxr-xr-x | Working_Examples/154/CH14/EX14.7/ch14_7.sce | 18 | ||||
-rwxr-xr-x | Working_Examples/154/CH14/EX14.8/ch14_8.sce | 25 |
7 files changed, 184 insertions, 0 deletions
diff --git a/Working_Examples/154/CH14/EX14.1/ch14_1.sce b/Working_Examples/154/CH14/EX14.1/ch14_1.sce new file mode 100755 index 0000000..4737b79 --- /dev/null +++ b/Working_Examples/154/CH14/EX14.1/ch14_1.sce @@ -0,0 +1,29 @@ +clc
+disp("Example 14.1")
+printf("\n")
+
+s=%s;
+//Applying KVL equation to the two loops we get
+//V1=2*I1+s*(I1+I2)
+//V2=3*I2+s*(I1+I2)
+
+//On solving we get
+disp("(s+2)*I1+s*I2=V1 (1)");
+disp("s*I1+(s+3)*I2=V2 (2)");
+
+//The equations which contain Z parameters are
+//V1=Z11*I1+Z12*I2
+//V2=Z21*I1+Z22*I2
+
+//On comparing (1) and (2) with above equations
+Z11=s+2;
+Z12=s;
+Z21=s;
+Z22=s+3;
+
+disp(Z11,"Z11=")
+disp(Z12,"Z12=")
+disp(Z21,"Z21=")
+disp(Z22,"Z22=")
+
+
diff --git a/Working_Examples/154/CH14/EX14.10/ch14_10.sce b/Working_Examples/154/CH14/EX14.10/ch14_10.sce new file mode 100755 index 0000000..965dc13 --- /dev/null +++ b/Working_Examples/154/CH14/EX14.10/ch14_10.sce @@ -0,0 +1,29 @@ +clc
+disp("Example 14.10")
+printf("\n")
+
+s=%s;
+//Applying KVL equation to the two loops we get
+//V1=3*I1+3*(I1+I2)
+//V2=7*I1+3*(I1+I2)+2*I2
+
+//On solving we get
+disp("6*I1+3*I2=V1 (1)");
+disp("10*I1+5*I2=V2 (2)");
+
+//The equations which contain Z parameters are
+//V1=Z11*I1+Z12*I2
+//V2=Z21*I1+Z22*I2
+
+//On comparing (1) and (2) with above equations
+Z11=6;
+Z12=3;
+Z21=10;
+Z22=5;
+
+disp(Z11,"Z11=")
+disp(Z12,"Z12=")
+disp(Z21,"Z21=")
+disp(Z22,"Z22=")
+
+disp("As DZZ results in zero(0) therefore Y parameters are not defined ")
diff --git a/Working_Examples/154/CH14/EX14.2/ch14_2.sce b/Working_Examples/154/CH14/EX14.2/ch14_2.sce new file mode 100755 index 0000000..bb23309 --- /dev/null +++ b/Working_Examples/154/CH14/EX14.2/ch14_2.sce @@ -0,0 +1,27 @@ +clc
+disp("Example 14.2")
+printf("\n")
+
+s=%s;
+//Applying KVL equation to the two loops we get
+//V1=2*I1+s*(I1+I2)-I2
+//V2=3*I2+s*(I1+I2)
+
+//On solving we get
+disp("(s+2)*I1+(s-1)*I2=V1 (1)");
+disp("s*I1+(s+3)*I2=V2 (2)");
+
+//The equations which contain Z parameters are
+//V1=Z11*I1+Z12*I2
+//V2=Z21*I1+Z22*I2
+
+//On comparing (1) and (2) with above equations
+Z11=s+2;
+Z12=s-1;
+Z21=s;
+Z22=s+3;
+
+disp(Z11,"Z11=")
+disp(Z12,"Z12=")
+disp(Z21,"Z21=")
+disp(Z22,"Z22=")
diff --git a/Working_Examples/154/CH14/EX14.4/ch14_4.sce b/Working_Examples/154/CH14/EX14.4/ch14_4.sce new file mode 100755 index 0000000..5e72eb0 --- /dev/null +++ b/Working_Examples/154/CH14/EX14.4/ch14_4.sce @@ -0,0 +1,33 @@ +clc
+disp("Example 14.4")
+printf("\n")
+
+s=%s;
+Ya=3/(5*s+6);
+Yb=2/(5*s+6);
+Yc=s/(5*s+6);
+
+//Writing KCL equations
+disp("I1=(Ya+Yc)*V1-Yc*V2 (1)")
+disp("I2=-Yc*V1+(Yb+Yc)*V2 (2)")
+
+//The equations which contain Y parameters are
+//I1=Y11*V1+Y12*V2
+//I2=Y21*V1+Y22*V2
+
+//On comparing (1) and (2) with above equations
+disp("Y11=Ya+Yc")
+disp("Y12=-Yc=Y21")
+disp("Y22=Yb+Yc")
+
+//Substituting Ya , Yb and Yc
+Y11=Ya+Yc
+Y12=-Yc
+Y21=-Yc
+Y22=Yb+Yc
+
+disp(Y11,"Y11=")
+disp(Y12,"Y12=")
+disp(Y21,"Y21=")
+disp(Y22,"Y22=")
+
diff --git a/Working_Examples/154/CH14/EX14.6/ch14_6.sce b/Working_Examples/154/CH14/EX14.6/ch14_6.sce new file mode 100755 index 0000000..6cef31e --- /dev/null +++ b/Working_Examples/154/CH14/EX14.6/ch14_6.sce @@ -0,0 +1,23 @@ +clc
+disp("Example 14.6")
+printf("\n")
+
+s=%s;
+//From example 14.4
+
+Y11=(3 + s)/(5*s+6)
+Y12=- s/(6 + 5*s)
+Y21=- s/(6 + 5*s)
+Y22=(2+s)/(6+5*s)
+
+DYY=Y11*Y22-Y12*Y21
+
+Z11=Y22/DYY;
+Z12=-Y12/DYY;
+Z21=-Y21/DYY;
+Z22=Y11/DYY;
+
+disp(Z11,"Z11=")
+disp(Z12,"Z12=")
+disp(Z21,"Z21=")
+disp(Z22,"Z22=")
diff --git a/Working_Examples/154/CH14/EX14.7/ch14_7.sce b/Working_Examples/154/CH14/EX14.7/ch14_7.sce new file mode 100755 index 0000000..ffb8c5c --- /dev/null +++ b/Working_Examples/154/CH14/EX14.7/ch14_7.sce @@ -0,0 +1,18 @@ +clc
+disp("Example 14.7")
+printf("\n")
+
+//From figure 14.9
+disp("V1=50*I1 (1)");
+disp("I2=300*I1 (2)");
+
+//The equations which contain h parameters are
+//V1=h11*I1+h12*V2
+//I2=h21*I1+h22*V2
+
+//On comparing (1) and (2) with above equations
+
+printf("\nh11=%d\n",50);
+printf("h12=%d\n",0);
+printf("h21=%d\n",300);
+printf("h22=%d\n",0);
diff --git a/Working_Examples/154/CH14/EX14.8/ch14_8.sce b/Working_Examples/154/CH14/EX14.8/ch14_8.sce new file mode 100755 index 0000000..059a397 --- /dev/null +++ b/Working_Examples/154/CH14/EX14.8/ch14_8.sce @@ -0,0 +1,25 @@ +clc
+disp("Example 14.8")
+printf("\n")
+
+//From figure 14.10
+//By inspection
+//V1=10^9*I1
+//V2=10(I2-10^-3*V1)
+
+
+//On solving we get
+disp("I1=10^-9*V1 (1)");
+disp("V2=10*I2-10^-2*V1 (2)");
+
+
+//The equations which contain g parameters are
+//I1=g11*V1+g12*I2
+//V2=g21*V1+g22*I2
+
+//On comparing (1) and (2) with above equations
+
+printf("\ng11=%2.1e\n",10^-9);
+printf("g12=%d\n",0);
+printf("g21=%2.1e\n",-10^-2);
+printf("g22=%d\n",10);
|