diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /1445/CH3/EX3.1/ch3_ex_1.sce | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '1445/CH3/EX3.1/ch3_ex_1.sce')
-rw-r--r-- | 1445/CH3/EX3.1/ch3_ex_1.sce | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/1445/CH3/EX3.1/ch3_ex_1.sce b/1445/CH3/EX3.1/ch3_ex_1.sce new file mode 100644 index 000000000..559b4579b --- /dev/null +++ b/1445/CH3/EX3.1/ch3_ex_1.sce @@ -0,0 +1,47 @@ +//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 resistance in Ohms + +//SOLUTION + +//solution (i) +v_ph=v_l/sqrt(3); +disp(sprintf("(i) The phase voltage is %f V",v_ph)); + +//solution (ii) +z_ph=sqrt((r^2)+(xc^2)); +I_l=v_ph/z_ph; +disp(sprintf("(ii) The line current is %f A",I_l)); + +//solution (iii) +//phase current = line current since connection is star +disp(sprintf("(iii) The phase current is %f A",I_l)); + +//solution (iv) +pow_fact=r/z_ph; +disp(sprintf("(iv) The power factor of the circuit is %f (leading)",pow_fact)); + +//solution (v) +p=sqrt(3)*v_l*I_l*pow_fact; +disp(sprintf("(v) The total power absorbed is %f W",p)); + +//solution (vi) +va=sqrt(3)*v_l*I_l; +disp(sprintf("(vi) The apparent power is %f VA",va)); +var=sqrt((va^2)-(p^2)); +disp(sprintf("The reactive power is %f VAR",var)); + +//Answers (v) and (vi) are different due to precision of floating point numbers + +//END + + + + |