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/DEPENDENCIES/ch15_7.sce | |
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/DEPENDENCIES/ch15_7.sce')
-rwxr-xr-x | Working_Examples/154/DEPENDENCIES/ch15_7.sce | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Working_Examples/154/DEPENDENCIES/ch15_7.sce b/Working_Examples/154/DEPENDENCIES/ch15_7.sce new file mode 100755 index 0000000..86d9339 --- /dev/null +++ b/Working_Examples/154/DEPENDENCIES/ch15_7.sce @@ -0,0 +1,29 @@ +clc
+disp("Example 15.7")
+printf("\n")
+
+printf("Given")
+disp("N1=20 N2=N3=10")
+disp("I2=10(-53.13 deg) I3=10(-45 deg)")
+N1=20;N2=10;N3=10;
+I2mag=10;I2ph=-53.13;
+I3mag=10;I3ph=-45;
+//From figure 15.14
+disp("N1*I1-N2*I2-N3*I3=0")
+//Solving for I1
+Xmag=N2*I2mag
+Xph=I2ph
+x=Xmag*cos((Xph*%pi)/180);
+y=Xmag*sin((Xph*%pi)/180);
+z=complex(x,y)
+
+Ymag=N3*I3mag
+Yph=I3ph
+x1=Ymag*cos((Yph*%pi)/180);
+y1=Ymag*sin((Yph*%pi)/180);
+z1=complex(x1,y1)
+
+I1=(z+z1)/N1
+[R,Theta]=polar(I1);
+printf("I1=%3.2f(%3.2f deg) A\n",R,(Theta*180)/%pi);
+
|