diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1445/CH3/EX3.7 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '1445/CH3/EX3.7')
-rw-r--r-- | 1445/CH3/EX3.7/Ex3_7.sce | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/1445/CH3/EX3.7/Ex3_7.sce b/1445/CH3/EX3.7/Ex3_7.sce new file mode 100644 index 000000000..3371d0fe9 --- /dev/null +++ b/1445/CH3/EX3.7/Ex3_7.sce @@ -0,0 +1,33 @@ +//CHAPTER 3- THREE-PHASE A.C. CIRCUITS +//Example 7 + +disp("CHAPTER 3"); +disp("EXAMPLE 7"); + +//VARIABLE INITIALIZATION +v_ph=200; //phase voltage in Volts +r1=5; //in Ohms +r2=8; //in Ohms +r3=10; //in Ohms + +//SOLUTION +I1=v_ph/r1; +I2=v_ph/r2; +I3=v_ph/r3; +disp(sprintf("The current in the three phases are %d A, %d A and %d A",I1,I2,I3)); + +I_x=0+I2*(sqrt(3)/2)-I3*(sqrt(3)/2); //x-component of the three currents =>I_x = I1*cos(90) + I2*cos(30) + I3*cos(30) +I_y=I1-(I2*0.5)-(I3*0.5); //y-component of the three currents =>I_y = I1*sin(90) + I2*sin(30) + I3*sin(30) +I=sqrt((I_x^2)+(I_y^2)); +disp(sprintf("The neutral current is %.2f A",I)); + +p1=v_ph*I1; //power consumed in 1st phase +p2=v_ph*I2; //power consumed in 2nd phase +p3=v_ph*I3; //power consumed in 3rd phase +disp(sprintf("The power consumed in the three phases are %d W, %d W and %d W",p1,p2,p3)); + +p=p1+p2+p3; +disp(sprintf("The total power is %d W",p)); + +//END + |