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/CH36 | |
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/CH36')
-rwxr-xr-x | 608/CH36/EX36.03/36_03.sce | 13 | ||||
-rwxr-xr-x | 608/CH36/EX36.04/36_04.sce | 25 | ||||
-rwxr-xr-x | 608/CH36/EX36.06/36_06.sce | 17 | ||||
-rwxr-xr-x | 608/CH36/EX36.07/36_07.sce | 41 | ||||
-rwxr-xr-x | 608/CH36/EX36.09/36_09.sce | 52 | ||||
-rwxr-xr-x | 608/CH36/EX36.10/36_10.sce | 54 | ||||
-rwxr-xr-x | 608/CH36/EX36.11/36_11.sce | 56 | ||||
-rwxr-xr-x | 608/CH36/EX36.12/36_12.sce | 37 | ||||
-rwxr-xr-x | 608/CH36/EX36.13/36_13.sce | 40 | ||||
-rwxr-xr-x | 608/CH36/EX36.14/36_14.sce | 31 | ||||
-rwxr-xr-x | 608/CH36/EX36.15/36_15.sce | 40 |
11 files changed, 406 insertions, 0 deletions
diff --git a/608/CH36/EX36.03/36_03.sce b/608/CH36/EX36.03/36_03.sce new file mode 100755 index 000000000..a034401b5 --- /dev/null +++ b/608/CH36/EX36.03/36_03.sce @@ -0,0 +1,13 @@ +//Problem 36.03: Determine the rms value of the current waveform represented by i = 100sinwt + 20sin(3wt + pi/6) + 10sin(5wt + 2*pi/3) mA
+
+//initializing the variables:
+A1 = 0.100; // in amperes
+A3 = 0.020; // in amperes
+A5 = 0.010; // in amperes
+
+//calculation:
+//the rms value of current is given by
+Irms = ((A1^2 + A3^2 + A5^2)/2)^0.5
+
+printf("\n\n Result \n\n")
+printf("\n the rms value of current is %.5f A",Irms)
\ No newline at end of file diff --git a/608/CH36/EX36.04/36_04.sce b/608/CH36/EX36.04/36_04.sce new file mode 100755 index 000000000..77090619c --- /dev/null +++ b/608/CH36/EX36.04/36_04.sce @@ -0,0 +1,25 @@ +//Problem 36.04: A complex voltage is represented by
+// v = 10sinwt + 3sin(3wt) + 2sin(5wt) Volts
+//Determine for the voltage, (a) the rms value, (b) the mean value and (c) the form factor.
+
+//initializing the variables:
+A1 = 10; // in volts
+A3 = 3; // in volts
+A5 = 2; // in volts
+
+//calculation:
+//the rms value of voltage is given by
+Vrms = ((A1^2 + A3^2 + A5^2)/2)^0.5
+//the mean value of voltage is given by
+//x = wt
+function [Y]=f(x)
+ Y = (10*sin(x) + 3*sin(3*x) + 2*sin(5*x));
+endfunction
+Vav = (1/%pi)*(integrate('f', 'x', 0, %pi))
+//form factor is given by
+ff = Vrms/Vav
+
+printf("\n\n Result \n\n")
+printf("\n (a)the rms value of voltage is %.2f V",Vrms)
+printf("\n (b)the mean value of voltage is %.2f V",Vav)
+printf("\n (c)form factor is %.3f ",ff)
\ No newline at end of file diff --git a/608/CH36/EX36.06/36_06.sce b/608/CH36/EX36.06/36_06.sce new file mode 100755 index 000000000..3808cbfe6 --- /dev/null +++ b/608/CH36/EX36.06/36_06.sce @@ -0,0 +1,17 @@ +//Problem 36.06: Determine the average power in a 20 # resistance if the current i flowing through it is of the form
+// i = 12sinwt + 5sin(3wt) + 2sin(5wt) A
+
+//initializing the variables:
+A1 = 12; // in amperes
+A3 = 5; // in amperes
+A5 = 2; // in amperes
+R = 20; // in ohms
+
+//calculation:
+//rms current
+Irms = ((A1^2 + A3^2 + A5^2)/2)^0.5
+//average power
+P = R*Irms^2
+
+printf("\n\n Result \n\n")
+printf("\n average power %.0f W",P)
\ No newline at end of file diff --git a/608/CH36/EX36.07/36_07.sce b/608/CH36/EX36.07/36_07.sce new file mode 100755 index 000000000..f2c037672 --- /dev/null +++ b/608/CH36/EX36.07/36_07.sce @@ -0,0 +1,41 @@ +//Problem 36.07: A complex voltage v given by
+// v = 60sinwt + 15sin(3wt + pi/4) + 10sin(5wt - pi/2) Volts
+//is applied to a circuit and the resulting current i is given by
+// i = 2sin(wt - pi/6) + 0.30sin(3wt - pi/12) + 0.1sin(5wt - 8pi/9) A
+//Determine (a) the total active power supplied to the circuit, and (b) the overall power factor.
+
+//initializing the variables:
+Ia1 = 2; // in amperes
+Ia3 = 0.3; // in amperes
+Ia5 = 0.1; // in amperes
+Va1 = 60; // in volts
+Va3 = 15; // in volts
+Va5 = 10; // in volts
+Phii1 = -1*%pi/6; // in radians
+Phii3 = -1*%pi/12; // in radians
+Phii5 = -8*%pi/9; // in radians
+Phiv1 = 0; // in radians
+Phiv3 = %pi/4; // in radians
+Phiv5 = -1*%pi/2; // in radians
+
+
+//calculation:
+//rms values;
+I1 = Ia1/(2^0.5); // in amperes
+I3 = Ia3/(2^0.5); // in amperes
+I5 = Ia5/(2^0.5); // in amperes
+V1 = Va1/(2^0.5); // in volts
+V3 = Va3/(2^0.5); // in volts
+V5 = Va5/(2^0.5); // in volts
+//total power supplied,
+P = V1*I1*cos(Phiv1 - Phii1) + V3*I3*cos(Phiv3 - Phii3) + V5*I5*cos(Phiv5 - Phii5)
+//rms current
+Irms = ((I1^2 + I3^2 + I5^2))^0.5
+//rms voltage
+Vrms = ((V1^2 + V3^2 + V5^2))^0.5
+//overall power factor
+pf = P/(Vrms*Irms)
+
+printf("\n\n Result \n\n")
+printf("\n(a)the total active power supplied to the circuit %.2f W",P)
+printf("\n(b)overall power factor %.3f",pf)
\ No newline at end of file diff --git a/608/CH36/EX36.09/36_09.sce b/608/CH36/EX36.09/36_09.sce new file mode 100755 index 000000000..1eb397a7f --- /dev/null +++ b/608/CH36/EX36.09/36_09.sce @@ -0,0 +1,52 @@ +//Problem 36.09: A supply voltage v given by
+// v = 240sin314t + 40sin942t + 30sin1570t Volts
+//is applied to a circuit comprising a resistance of 12 ohm connected in series with a coil of inductance 9.55 mH. Determine (a) an expression to represent the instantaneous value of the current, (b) the rms voltage, (c) the rms current, (d) the power dissipated, and (e) the overall power factor.
+
+//initializing the variables:
+V1m = 240; // in volts
+V3m = 40; // in volts
+V5m = 30; // in volts
+w1 = 314; // fundamental
+R = 12; // in ohm
+L = 0.00955; // in Henry
+
+//calculation:
+//fundamental or first harmonic
+//inductive reactance,
+XL1 = w1*L
+//impedance at the fundamental frequency,
+Z1 = R + %i*XL1
+//Maximum current at fundamental frequency
+I1m = V1m/Z1
+I1mag = (real(I1m)^2 + imag(I1m)^2)^0.5
+phii1 = atan(imag(I1m)/real(I1m))
+//Third harmonic
+XL3 = 3*XL1
+//impedance at the third harmonic frequency,
+Z3 = R + %i*XL3
+//Maximum current at third harmonic frequency
+I3m = V3m/Z3
+I3mag = (real(I3m)^2 + imag(I3m)^2)^0.5
+phii3 = atan(imag(I3m)/real(I3m))
+//fifth harmonic
+XL5 = 5*XL1
+//impedance at the third harmonic frequency,
+Z5 = R + %i*XL5
+//Maximum current at third harmonic frequency
+I5m = V5m/Z5
+I5mag = (real(I5m)^2 + imag(I5m)^2)^0.5
+phii5 = atan(imag(I5m)/real(I5m))
+//rms voltage
+Vrms = ((V1m^2 + V3m^2 + V5m^2)/2)^0.5
+//rms current
+Irms = ((I1mag^2 + I3mag^2 + I5mag^2)/2)^0.5
+//power dissipated
+P = R*Irms^2
+//overall power factor
+pf = P/(Vrms*Irms)
+
+printf("\n\n Result \n\n")
+printf("\n(b)the rms value of current is %.2f A",Irms)
+printf("\n(c)the rms value of voltage is %.2f V",Vrms)
+printf("\n(d)the total power dissipated %.0f W",P)
+printf("\n(e)overall power factor %.3f",pf)
\ No newline at end of file diff --git a/608/CH36/EX36.10/36_10.sce b/608/CH36/EX36.10/36_10.sce new file mode 100755 index 000000000..d6b415379 --- /dev/null +++ b/608/CH36/EX36.10/36_10.sce @@ -0,0 +1,54 @@ +//Problem 36.10: An e.m.f. is represented by
+// e = 50 + 200sinwt + 40sin(2wt - pi/2) + 5sin(4wt + pi/4) Volts
+//the fundamental frequency being 50 Hz. The e.m.f. is applied across a circuit comprising a 100 μF capacitor connected in series with a 50 ohm resistor. Obtain an expression for the current flowing and hence determine the rms value of current.
+
+//initializing the variables:
+Vom = 50; // in volts
+V1m = 200; // in volts
+V2m = 40; // in volts
+V4m = 5; // in volts
+f = 50; // in Hz
+R = 50; // in ohm
+C = 100E-6; // in farad
+phiv1 = 0; // in rad
+phiv2 = -1*%pi/2; // in rad
+phiv4 = %pi/4; // in rad
+
+//calculation:
+//voltage
+V1 = V1m*cos(phiv1) + %i*V1m*sin(phiv1)
+V2 = V2m*cos(phiv2) + %i*V2m*sin(phiv2)
+V4 = V4m*cos(phiv4) + %i*V4m*sin(phiv4)
+//Inductance has no effect on a steady current. Hence the d.c. component of the current, i0, is given by
+Iom = 0
+//fundamental or first harmonic
+w1 = 2*%pi*f
+//inductive reactance,
+Xc1 = 1/(w1*C)
+//impedance at the fundamental frequency,
+Z1 = R + %i*Xc1
+//Maximum current at fundamental frequency
+I1m = V1/Z1
+I1mag = (real(I1m)^2 + imag(I1m)^2)^0.5
+phii1 = atan(imag(I1m)/real(I1m))
+//second harmonic
+Xc2 = Xc1/2
+//impedance at the third harmonic frequency,
+Z2 = R + %i*Xc2
+//Maximum current at third harmonic frequency
+I2m = V2/Z2
+I2mag = (real(I2m)^2 + imag(I2m)^2)^0.5
+phii2 = atan(imag(I2m)/real(I2m))
+//fourth harmonic
+Xc4 = Xc1/4
+//impedance at the third harmonic frequency,
+Z4 = R + %i*Xc4
+//Maximum current at third harmonic frequency
+I4m = V4/Z4
+I4mag = (real(I4m)^2 + imag(I4m)^2)^0.5
+phii4 = atan(imag(I4m)/real(I4m))
+//rms current
+Irms = (Iom^2 + (I1mag^2 + I2mag^2 + I4mag^2)/2)^0.5
+
+printf("\n\n Result \n\n")
+printf("\n(b)the rms value of current is %.2f A",Irms)
\ No newline at end of file diff --git a/608/CH36/EX36.11/36_11.sce b/608/CH36/EX36.11/36_11.sce new file mode 100755 index 000000000..dc09d93f1 --- /dev/null +++ b/608/CH36/EX36.11/36_11.sce @@ -0,0 +1,56 @@ +//Problem 36.11: A supply voltage v given by
+// v = 25 + 100sinwt + 40sin(3wt + pi/6) + 20sin(5wt + pi/12) Volts
+//where w = 10000 rad/s. The voltage is applied to a series circuit comprising a 5.0 ohm resistance and a 500 μH inductance. Determine (a) an expression to represent the current flowing in the circuit, (b) the rms value of current, correct to two decimal places, and (c) the power dissipated in the circuit, correct to three significant figures.
+
+//initializing the variables:
+Vom = 25; // in volts
+V1m = 100; // in volts
+V3m = 40; // in volts
+V5m = 20; // in volts
+w1 = 10000; // fundamental
+R = 5; // in ohm
+L = 500E-6; // in Henry
+phiv1 = 0; // in rad
+phiv3 = %pi/6; // in rad
+phiv5 = %pi/12; // in rad
+
+//calculation:
+//voltage
+V1 = V1m*cos(phiv1) + %i*V1m*sin(phiv1)
+V3 = V3m*cos(phiv3) + %i*V3m*sin(phiv3)
+V5 = V5m*cos(phiv5) + %i*V5m*sin(phiv5)
+//Inductance has no effect on a steady current. Hence the d.c. component of the current, i0, is given by
+Iom = Vom/R
+//fundamental or first harmonic
+//inductive reactance,
+XL1 = w1*L
+//impedance at the fundamental frequency,
+Z1 = R + %i*XL1
+//Maximum current at fundamental frequency
+I1m = V1/Z1
+I1mag = (real(I1m)^2 + imag(I1m)^2)^0.5
+phii1 = atan(imag(I1m)/real(I1m))
+//Third harmonic
+XL3 = 3*XL1
+//impedance at the third harmonic frequency,
+Z3 = R + %i*XL3
+//Maximum current at third harmonic frequency
+I3m = V3/Z3
+I3mag = (real(I3m)^2 + imag(I3m)^2)^0.5
+phii3 = atan(imag(I3m)/real(I3m))
+//fifth harmonic
+XL5 = 5*XL1
+//impedance at the third harmonic frequency,
+Z5 = R + %i*XL5
+//Maximum current at third harmonic frequency
+I5m = V5/Z5
+I5mag = (real(I5m)^2 + imag(I5m)^2)^0.5
+phii5 = atan(imag(I5m)/real(I5m))
+//rms current
+Irms = (Iom^2 + (I1mag^2 + I3mag^2 + I5mag^2)/2)^0.5
+//power dissipated
+P = R*Irms^2
+
+printf("\n\n Result \n\n")
+printf("\n(b)the rms value of current is %.2f A",Irms)
+printf("\n(c)the total power dissipated %.0f W",P)
\ No newline at end of file diff --git a/608/CH36/EX36.12/36_12.sce b/608/CH36/EX36.12/36_12.sce new file mode 100755 index 000000000..881823137 --- /dev/null +++ b/608/CH36/EX36.12/36_12.sce @@ -0,0 +1,37 @@ +//Problem 36.12: The voltage applied to a particular circuit comprising two components connected in series is given by
+// v = 30 + 40sinwt + 25sin(2wt) + 15sin(4wt) Volts
+//and the resulting current is given by
+// v = 0.743sin(wt + 1.19) + 0.78sin(2wt + 0.896) + 0.636sin(4wt + 0.559) A
+//Determine (a) the average power supplied, (b) the type of components present, and (c) the values of the components.
+
+//initializing the variables:
+Vom = 30; // in volts
+V1m = 40; // in volts
+V2m = 25; // in volts
+V4m = 15; // in volts
+Iom = 0; // in amperes
+I1m = 0.743; // in Amperes
+I2m = 0.781; // in Amperes
+I4m = 0.636; // in Amperes
+phii1 = 1.190; // in rad
+phii2 = 0.896; // in rad
+phii4 = 0.559; // in rad
+w = 1000; // in rad
+
+//calculation:
+//the average power P is given by
+P = Vom*Iom + (0.707*V1m)*(0.707*I1m)*cos(phii1) + + (0.707*V2m)*(0.707*I2m)*cos(phii2) + (0.707*V4m)*(0.707*I4m)*cos(phii4)
+//rms current
+Irms = (Iom^2 + (I1m^2 + I2m^2 + I4m^2)/2)^0.5
+//resistance R
+R = P/(Irms^2)
+//impedance
+Z1 = V1m/I1m
+//Xc1
+Xc1 = (Z1^2 - R^2)^0.5
+//capacitance
+C = 1/(w*Xc1)
+
+printf("\n\n Result \n\n")
+printf("\n(a)the average power P is %.2f W",P)
+printf("\n(c)the resistance R %.0f ohm and capacitance %.2E F",R,C)
\ No newline at end of file diff --git a/608/CH36/EX36.13/36_13.sce b/608/CH36/EX36.13/36_13.sce new file mode 100755 index 000000000..144c51540 --- /dev/null +++ b/608/CH36/EX36.13/36_13.sce @@ -0,0 +1,40 @@ +//Problem 36.13: In the circuit shown in Figure 36.17 the supply voltage v is given by v = 300sin314t + 120sin(942t + 0.698) Volts.Determine (a) an expression for the supply current, i, (b) the percentage harmonic content of the supply current, (c) the total power dissipated, (d) an expression for the p.d. shown as v1, and (e) an expression for current ic.
+
+//initializing the variables:
+V1m = 300; // in volts
+V3m = 120; // in volts
+phiv1 = 0; // in rad
+phiv2 = 0.698; // in rad
+w1 = 314; // in rad
+C = 2.123E-6; // in farads
+R1 = 560; // in ohms
+R2 = 2000; // in Ohm
+
+//calculation:
+//voltage
+V1 = V1m*cos(phiv1) + %i*V1m*sin(phiv1)
+V3 = V3m*cos(phiv3) + %i*V3m*sin(phiv3)
+//capacitive reactance,
+Xc1 = 1/(w1*C)
+//impedance at the fundamental frequency,
+Z1 = R1 + %i*Xc1*R2/(R2 + %i*Xc1)
+//Maximum current at fundamental frequency
+I1m = V1/Z1
+I1mag = (real(I1m)^2 + imag(I1m)^2)^0.5
+phii1 = atan(imag(I1m)/real(I1m))
+//Third harmonic
+Xc3 = Xc1/3
+//impedance at the third harmonic frequency,
+Z3 = R1 + %i*Xc3*R2/(R2 + %i*Xc3)
+//Maximum current at third harmonic frequency
+I3m = V3/Z3
+I3mag = (real(I3m)^2 + imag(I3m)^2)^0.5
+phii3 = atan(imag(I3m)/real(I3m))
+//Percentage harmonic content of the supply current is given by
+percent = I3mag*100/I1mag
+//total active power
+P = (0.707*V1m)*(0.707*I1mag)*cos(phiv1 - phii1) + (0.707*V3m)*(0.707*I3m)*cos(phiv3 - phii3)
+
+printf("\n\n Result \n\n")
+printf("\n(b)Percentage harmonic content of the supply current is %.0f percent",percent)
+printf("\n(c)total active power is %.2f W",P)
\ No newline at end of file diff --git a/608/CH36/EX36.14/36_14.sce b/608/CH36/EX36.14/36_14.sce new file mode 100755 index 000000000..9c6d0e828 --- /dev/null +++ b/608/CH36/EX36.14/36_14.sce @@ -0,0 +1,31 @@ +//Problem 36.14: A voltage waveform having a fundamental of maximum value 400 V and a third harmonic of maximum value 10 V is applied to the circuit shown in Figure 36.18. Determine (a) the fundamental frequency for resonance with the third harmonic, and (b) the maximum value of the fundamental and third harmonic components of current.
+
+//initializing the variables:
+V1m = 400; // in volts
+V3m = 10; // in volts
+C = 0.2E-6; // in farads
+R = 2; // in ohms
+L = 0.5; // in Henry
+
+//calculation:
+//Resonance with the third harmonic means that
+w = (1/(9*L*C))^0.5
+//fundamental frequency, f
+f = w/(2*%pi)
+//At the fundamental frequency,
+//impedance Z1
+Z1 = R + %i*(w*L - 1/(w*C))
+Z1mag = (real(Z1)^2 + imag(Z1)^2)^0.5
+phiZ1 = atan(imag(Z1)/real(Z1))
+//Maximum value of current at the fundamental frequency,
+I1m = V1m/Z1mag
+//At the third harmonic frequency,
+Z3 = R + %i*(3*w*L - 1/(3*w*C))
+Z3mag = (real(Z3)^2 + imag(Z3)^2)^0.5
+phiZ3 = atan(imag(Z3)/real(Z3))
+//Maximum value of current at the third harmonic frequency,
+I3m = V3m/Z3
+
+printf("\n\n Result \n\n")
+printf("\n(a)fundamental frequency for resonance with the third harmonic is %.2f Hz",f)
+printf("\n(b)Maximum value of current at the fundamental frequency is %.3f A and at the third harmonic frequency %.2f A",I1m, I3m)
\ No newline at end of file diff --git a/608/CH36/EX36.15/36_15.sce b/608/CH36/EX36.15/36_15.sce new file mode 100755 index 000000000..9be820846 --- /dev/null +++ b/608/CH36/EX36.15/36_15.sce @@ -0,0 +1,40 @@ +//Problem 36.15: A voltage wave has an amplitude of 800 V at the fundamental frequency of 50 Hz and its nth harmonic has an amplitude 1.5% of the fundamental. The voltage is applied to a series circuit containing resistance 5 ohm, inductance 0.369 H and capacitance 0.122 μF. Resonance occurs at the nth harmonic. Determine (a) the value of n, (b) the maximum value of current at the nth harmonic, (c) the p.d. across the capacitor at the nth harmonic and (d) the maximum value of the fundamental current.
+
+//initializing the variables:
+V1m = 800; // in volts
+f = 50; // in Hz
+x = 0.015;
+C = 0.122E-6; // in farads
+R = 5; // in ohms
+L = 0.369; // in Henry
+
+//calculation:
+//voltage at nth harmonic
+Vnm = x*V1m
+w = 2*%pi*f
+//For resonance at the nth harmonic nwL = 1/nwC
+n = 1/(w*(L*C)^0.5)
+//At resonance, impedance
+Zn = R
+//the maximum value of current at the nth harmonic
+Inm = Vnm/Zn
+//capacitive reactance, at nth harmonic
+Xcn = 1/(n*w*C)
+//the p.d. across the capacitor at the nth harmonic
+Vcn = Inm*Xcn
+//At the fundamental frequency, inductive reactance,
+XL1 = w*L
+//capacitive reactance
+Xc1 = 1/(w*C)
+//Impedance at the fundamental frequency,
+Z1 = R + %i*(XL1 - Xc1)
+Z1mag = (real(Z1)^2 + imag(Z1)^2)^0.5
+phiZ1 = atan(imag(Z1)/real(Z1))
+//Maximum value of current at the fundamental frequency,
+I1m = V1m/Z1mag
+
+printf("\n\n Result \n\n")
+printf("\n(a)n = %.0f",n)
+printf("\n(b)the maximum value of current at the nth harmonic %.2f A",Inm)
+printf("\n(c)the p.d. across the capacitor at the nth harmonic is %.2f",Vcn)
+printf("\n(d)the maximum value of the fundamental current. %.2f A",I1m)
\ No newline at end of file |