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 /608/CH26 | |
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 '608/CH26')
-rwxr-xr-x | 608/CH26/EX26.01/26_01.sce | 20 | ||||
-rwxr-xr-x | 608/CH26/EX26.02/26_02.sce | 15 | ||||
-rwxr-xr-x | 608/CH26/EX26.03/26_03.sce | 36 | ||||
-rwxr-xr-x | 608/CH26/EX26.04/26_04.sce | 35 | ||||
-rwxr-xr-x | 608/CH26/EX26.05/26_05.sce | 31 | ||||
-rwxr-xr-x | 608/CH26/EX26.06/26_06.sce | 22 | ||||
-rwxr-xr-x | 608/CH26/EX26.07/26_07.sce | 37 |
7 files changed, 196 insertions, 0 deletions
diff --git a/608/CH26/EX26.01/26_01.sce b/608/CH26/EX26.01/26_01.sce new file mode 100755 index 000000000..cecbf6111 --- /dev/null +++ b/608/CH26/EX26.01/26_01.sce @@ -0,0 +1,20 @@ +//Problem 26.01: A coil of resistance 5 ohm and inductive reactance 12 ohm is connected across a supply voltage of 526/_30volts. Determine the active power in the circuit.
+
+//initializing the variables:
+RL = %i*12; // in ohm
+R = 5; // in ohm
+rv = 52; // in volts
+thetav = 30; // in degree
+
+//calculation:
+//voltage
+V = rv*cos(thetav*%pi/180) + %i*rv*sin(thetav*%pi/180)
+//impedance, Z
+Z = R + RL
+//current
+I = V/Z
+//Active power, P
+Pa = real(V)*real(I) + imag(V)*imag(I)
+
+printf("\n\n Result \n\n")
+printf("\nthe active power in the circuit %.0f W\n",Pa)
\ No newline at end of file diff --git a/608/CH26/EX26.02/26_02.sce b/608/CH26/EX26.02/26_02.sce new file mode 100755 index 000000000..39e0249b9 --- /dev/null +++ b/608/CH26/EX26.02/26_02.sce @@ -0,0 +1,15 @@ +//Problem 26.02: A current of (15+i8)A flows in a circuit whose supply voltage is (120+i200)V.Determine (a) the active power, and (b) the reactive power.
+
+//initializing the variables:
+V = 120 + %i*200; // in volts
+I = 15 + %i*8; // in amperes
+
+//calculation:
+//Active power, P
+Pa = real(V)*real(I) + imag(V)*imag(I)
+//Reactive power, Q
+Q = imag(V)*real(I) - real(V)*imag(I)
+
+printf("\n\n Result \n\n")
+printf("\n (a) the active power in the circuit %.0f W",Pa)
+printf("\n (b) the reactive power in the circuit %.0f var ",Q)
\ No newline at end of file diff --git a/608/CH26/EX26.03/26_03.sce b/608/CH26/EX26.03/26_03.sce new file mode 100755 index 000000000..c01887201 --- /dev/null +++ b/608/CH26/EX26.03/26_03.sce @@ -0,0 +1,36 @@ +//Problem 26.03: A series circuit possesses resistance R and capacitance C. The circuit dissipates a power of 1.732 kW and has a power factor of 0.866 leading. If the applied voltage is given by v = 141.4*sin(10000t + pi/9) volts, determine (a) the current flowing and its phase, (b) the value of resistance R, and (c) the value of capacitance C.
+
+//initializing the variables:
+Vm = 141.4; // in volts
+w = 10000; // in rad/sec
+phiv = %pi/9; // in radian
+Pd = 1732; // in Watts
+pf = 0.866; // power fctr
+
+//calculation:
+//the rms voltage,
+Vrms = 0.707*Vm
+//Power P = V*I*cos(phi)
+//current magnitude, Irms
+Irms = Pd/(Vrms*pf)
+phid = acos(pf)
+//current phase angle
+phii = phiv + phid
+phiid = phii*180/%pi // in degrees
+//Voltage, V
+V = Vrms*cos(phiv) + %i*Vrms*sin(phiv)
+//current, I
+I = Irms*cos(phii) + %i*Irms*sin(phii)
+//Impedance, Z
+Z = V/I
+//resistance, R
+R = real(Z)
+//capacitive reactance, Xc
+Xc = abs(imag(Z))
+//capacitance, C
+C = 1/ (w*Xc)
+
+printf("\n\n Result \n\n")
+printf("\n (a)the current flowing and Circuit phase angle is %.0f/_%.2f° A ",Irms,phiid)
+printf("\n (b) the resistance is %.2f ohm ",R)
+printf("\n (c) the capacitance is %.2E farad ",C)
\ No newline at end of file diff --git a/608/CH26/EX26.04/26_04.sce b/608/CH26/EX26.04/26_04.sce new file mode 100755 index 000000000..c6295fe79 --- /dev/null +++ b/608/CH26/EX26.04/26_04.sce @@ -0,0 +1,35 @@ +//Problem 26.04:For the circuit shown in Figure 26.8, determine the active power developed between points (a) A and B, (b) C and D, (c) E and F.
+
+//initializing the variables:
+rv = 100; // in volts
+thetav = 0; // in degrees
+R = 5; // in ohm
+R1 = 3; // in ohms
+RL = %i*4; // in ohm
+Rc = -10*%i; // in ohms
+
+//calculation:
+//impedance, Z1
+Z1 = R1 + RL
+//impedance, Zc
+Zc = Rc
+//Circuit impedance, Z
+Z = R + (Z1*Zc/(Z1 + Zc))
+//voltage
+V = rv*cos(thetav*%pi/180) + %i*rv*sin(thetav*%pi/180)
+I = V/Z
+Imag = ((real(I))^2 + (imag(I))^2)^0.5
+//Active power developed between points A and B
+Pab = (Imag^2)*R
+//Active power developed between points C and D
+Pcd = (Imag^2)*real(Zc)
+//Current, I1
+I1 = I*Zc/(Zc + Z1)
+I1mag = ((real(I1))^2 + (imag(I1))^2)^0.5
+//active power developed between points E and F
+Pef = (I1mag^2)*real(Z1)
+
+printf("\n\n Result \n\n")
+printf("\n (a)Active power developed between points A and B is %.2f W ",Pab)
+printf("\n (b)Active power developed between points C and D is %.2f W ",Pcd)
+printf("\n (c)Active power developed between points E and F is %.2f W ",Pef)
\ No newline at end of file diff --git a/608/CH26/EX26.05/26_05.sce b/608/CH26/EX26.05/26_05.sce new file mode 100755 index 000000000..6b0268ef2 --- /dev/null +++ b/608/CH26/EX26.05/26_05.sce @@ -0,0 +1,31 @@ +//Problem 26.05:The circuit shown in Figure 26.9 dissipates an active power of 400 Wand has a power factor of 0.766 lagging. Determine (a) the apparent power, (b) the reactive power, (c) the value and phase of current I, and (d) the value of impedance Z.
+
+//initializing the variables:
+Pa = 400; // in Watts
+rv = 100; // in volts
+thetav = 30; // in degrees
+R = 4; // in ohm
+pf = 0.766; // power factor
+
+//calculation:
+V = rv*cos(thetav*%pi/180) + %i*rv*sin(thetav*%pi/180)
+//magnitude of apparent power,S = V*I
+S = Pa/pf
+phi = acos(pf)
+theta = phi*180/%pi // in degrees
+//Reactive power Q
+Q = S*sin(phi)
+//magnitude of current
+Imag = S/rv
+thetai = thetav - theta
+I = Imag*cos(thetai*%pi/180) + %i*Imag*sin(thetai*%pi/180)
+//Total circuit impedance ZT
+ZT = V/I
+//impedance Z
+Z = ZT - R
+
+printf("\n\n Result \n\n")
+printf("\n (a)apparent power is %.2f VA ",S)
+printf("\n (b)reactive power is %.2f var ",Q)
+printf("\n (c)the current flowing and Circuit phase angle is %.2f/_%.0f° A ",Imag,thetai)
+printf("\n (d)impedance, Z is %.2f + (%.2f)i ohm ",real(Z), imag(Z))
\ No newline at end of file diff --git a/608/CH26/EX26.06/26_06.sce b/608/CH26/EX26.06/26_06.sce new file mode 100755 index 000000000..1502ce9d7 --- /dev/null +++ b/608/CH26/EX26.06/26_06.sce @@ -0,0 +1,22 @@ +//Problem 26.06: A 300 kVA transformer is at full load with an overall power factor of 0.70 lagging. The power factor is improved by adding capacitors in parallel with the transformer until the overall power factor becomes 0.90 lagging. Determine the rating (in kilovars) of the capacitors required.
+
+//initializing the variables:
+S = 300000; // in VA
+pf1 = 0.70; // in power factor
+pf2 = 0.90; // in power factor
+
+//calculation:
+//active power, P
+Pa = S*pf1
+phi1 = acos(pf1)
+phi1d = phi1*180/%pi
+//Reactive power, Q
+Q = S*sin(phi1)
+phi2 = acos(pf2)
+phi2d = phi2*180/%pi
+//The capacitor rating needed to improve the power factor to 0.90
+//the capacitor rating,
+Pr = Q - (Pa*tan(phi2))
+
+printf("\n\n Result \n\n")
+printf("\n the rating (in kilovars) of the capacitors is %.1f kvar\n",(Pr/1E3))
\ No newline at end of file diff --git a/608/CH26/EX26.07/26_07.sce b/608/CH26/EX26.07/26_07.sce new file mode 100755 index 000000000..9b77a675d --- /dev/null +++ b/608/CH26/EX26.07/26_07.sce @@ -0,0 +1,37 @@ +//Problem 26.07: A circuit has an impedance Z = (3+i4)ohm and a source p.d. of 50/_30° V at a frequency of 1.5 kHz. Determine (a) the supply current, (b) the active, apparent and reactive power, (c) the rating of a capacitor to be connected in parallel with impedance Z to improve the power factor of the circuit to 0.966 lagging, and (d) the value of capacitance needed to improve the power factor to 0.966 lagging.
+
+//initializing the variables:
+Z = 3 + %i*4; // in ohms
+rv = 50; // in volts
+thetav = 30; // in Degrees
+f = 1500; // in Hz
+pf1 = 0.966; // in power factor
+
+//calculation:
+V = rv*cos(thetav*%pi/180) + %i*rv*sin(thetav*%pi/180)
+//Supply current, I
+I = V/Z
+Istr = real(I) - %i*imag(I)
+//Apparent power, S
+S = V*Istr
+//active power, Pa
+Pa = real(S)
+//reactive power, Q
+Q = abs(imag(S))
+//apparent power, S
+S = (real(S)^2 + imag(S)^2)^0.5
+phi1 = acos(pf1)
+phi1d = phi1*180/%pi
+//rating of the capacitor
+Pr = Q - Pa*tan(phi1)
+//Current in capacitor, Ic
+Ic = Pr/rv
+//Capacitive reactance, Xc
+Xc = rv/Ic
+C = 1/(2*%pi*f*Xc)
+
+printf("\n\n Result \n\n")
+printf("\n (a)supply current, I is %.2f + (%.2f)i A ",real(I), imag(I))
+printf("\n (b)active power is %.0f W, apparent power is %.0f W and reactive power is %.0f W ",Pa, S, Q)
+printf("\n (c)the rating of the capacitors is %.1f var\n",Pr)
+printf(" (d)value of capacitance needed to improve the power factor to 0.966 lagging is %.3E F\n", C)
\ No newline at end of file |