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.1/Ex3_1.sce | |
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.1/Ex3_1.sce')
-rw-r--r-- | 1445/CH3/EX3.1/Ex3_1.sce | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/1445/CH3/EX3.1/Ex3_1.sce b/1445/CH3/EX3.1/Ex3_1.sce new file mode 100644 index 000000000..f9883c955 --- /dev/null +++ b/1445/CH3/EX3.1/Ex3_1.sce @@ -0,0 +1,46 @@ +//CHAPTER 3- THREE-PHASE A.C. CIRCUITS +//Example 1 + +disp("CHAPTER 3"); +disp("EXAMPLE 1"); + +//VARIABLE INITIALIZATION +v_l=400; //line voltage in Volts +r=15; //resistance in Ohms +xc=10; //capacitive reactance in Ohms + +//SOLUTION + +//solution (i) +v_ph=v_l/sqrt(3); //phase voltage=(line voltage)/sqrt(3) for star connection +disp(sprintf("(i) The phase voltage is %.2f V",v_ph)); + +//solution (ii) +z_ph=sqrt((r^2)+(xc^2)); +I_l=v_ph/z_ph; //phase current = line current for star connection +disp(sprintf("(ii) The line current is %.2f A",I_l)); + +//solution (iii) +disp(sprintf("(iii) The phase current is %.2f A",I_l)); + +//solution (iv) +pow_fact=r/z_ph; +disp(sprintf("(iv) The power factor of the circuit is %.2f (leading)",pow_fact)); + +//solution (v) +p=sqrt(3)*v_l*I_l*pow_fact; +disp(sprintf("(v) The total power absorbed is %.0f W",p)); + +//solution (vi) +va=sqrt(3)*v_l*I_l; +disp(sprintf("(vi) The apparent power is %.0f VA",va)); +var=sqrt((va^2)-(p^2)); +disp(sprintf("The reactive power is %.0f VAR",var)); + +//Answers (v) and (vi) are different due to precision of floating point numbers + +//END + + + + |