summaryrefslogtreecommitdiff
path: root/Working_Examples/83/CH5/EX5.3
diff options
context:
space:
mode:
authorSiddharth Agarwal2019-09-03 18:27:40 +0530
committerSiddharth Agarwal2019-09-03 18:27:40 +0530
commit8ac15bc5efafa2afc053c293152605b0e6ae60ff (patch)
treee1bc17aae137922b1ee990f17aae4a6cb15b7d87 /Working_Examples/83/CH5/EX5.3
parent52a477ec613900885e29c4a0b02806a415b4f83a (diff)
downloadXcos_block_examples-master.tar.gz
Xcos_block_examples-master.tar.bz2
Xcos_block_examples-master.zip
Xcos examples from textbooks and for blocksHEADmaster
Diffstat (limited to 'Working_Examples/83/CH5/EX5.3')
-rwxr-xr-xWorking_Examples/83/CH5/EX5.3/example_5_3.sce24
-rwxr-xr-xWorking_Examples/83/CH5/EX5.3/result_example_5_3.txt6
2 files changed, 30 insertions, 0 deletions
diff --git a/Working_Examples/83/CH5/EX5.3/example_5_3.sce b/Working_Examples/83/CH5/EX5.3/example_5_3.sce
new file mode 100755
index 0000000..195c0b5
--- /dev/null
+++ b/Working_Examples/83/CH5/EX5.3/example_5_3.sce
@@ -0,0 +1,24 @@
+//Chapter 5
+//Example 5.3
+//page 135
+//problem with mixed end condition
+clc;clear;
+Vr=3000; //receiving end voltage
+pfs=0.8; //sending end power factor
+Ps=2000*10^3; //sending end active power
+z=0.4+%i*0.4; //series impedance
+Ss=Ps/pfs; //sending end VA
+Qs=Ss*sqrt(1-pfs^2); //sending end reacive power
+
+//by substituting all the values to the equation (iii)
+deff('[y]=fx(I)',"y=(Vr^2)*(I^2)+2*Vr*(I^2)*(real(z)*((Ps-real(z)*(I^2))/Vr)+imag(z)*((Qs-imag(z)*(I^2))/Vr))+(abs(z))^2*(I^4)-(Ss^2)");
+I=fsolve(100,fx);
+
+pfR=(Ps-real(z)*(I^2))/(Vr*I); //Cos(phi_r)
+Pr=Vr*I*pfR;
+Vs=(Ps/(I*pfs));
+
+printf('\nLoad Current |I|= %0.2f A',I);
+printf('\nLoad Pr=%d W',Pr);
+printf('\nReceiving end power factor=%0.2f',pfR);
+printf('\nSupply Voltage=%0.2fV',Vs);
diff --git a/Working_Examples/83/CH5/EX5.3/result_example_5_3.txt b/Working_Examples/83/CH5/EX5.3/result_example_5_3.txt
new file mode 100755
index 0000000..537ce19
--- /dev/null
+++ b/Working_Examples/83/CH5/EX5.3/result_example_5_3.txt
@@ -0,0 +1,6 @@
+
+Load Current |I|= 733.14 A
+Load Pr=1785001 W
+Receiving end power factor=0.81
+Supply Voltage=3409.99V
+