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/CH43 | |
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/CH43')
-rwxr-xr-x | 608/CH43/EX43.01/43_01.sce | 19 | ||||
-rwxr-xr-x | 608/CH43/EX43.02/43_02.sce | 16 | ||||
-rwxr-xr-x | 608/CH43/EX43.03/43_03.sce | 13 | ||||
-rwxr-xr-x | 608/CH43/EX43.04/43_04.sce | 19 | ||||
-rwxr-xr-x | 608/CH43/EX43.05/43_05.sce | 16 | ||||
-rwxr-xr-x | 608/CH43/EX43.06/43_06.sce | 22 | ||||
-rwxr-xr-x | 608/CH43/EX43.07/43_07.sce | 22 | ||||
-rwxr-xr-x | 608/CH43/EX43.08/43_08.sce | 22 | ||||
-rwxr-xr-x | 608/CH43/EX43.09/43_09.sce | 17 | ||||
-rwxr-xr-x | 608/CH43/EX43.10/43_10.sce | 32 | ||||
-rwxr-xr-x | 608/CH43/EX43.11/43_11.sce | 38 | ||||
-rwxr-xr-x | 608/CH43/EX43.12/43_12.sce | 41 | ||||
-rwxr-xr-x | 608/CH43/EX43.13/43_13.sce | 26 | ||||
-rwxr-xr-x | 608/CH43/EX43.14/43_14.sce | 35 | ||||
-rwxr-xr-x | 608/CH43/EX43.15/43_15.sce | 29 | ||||
-rwxr-xr-x | 608/CH43/EX43.16/43_16.sce | 41 |
16 files changed, 408 insertions, 0 deletions
diff --git a/608/CH43/EX43.01/43_01.sce b/608/CH43/EX43.01/43_01.sce new file mode 100755 index 000000000..f7d000731 --- /dev/null +++ b/608/CH43/EX43.01/43_01.sce @@ -0,0 +1,19 @@ +//Problem 43.01: A and B are two coils in close proximity. A has 1200 turns and B has 1000 turns. When a current of 0.8 A flows in coil A a flux of 100 μWb links with coil A and 75% of this flux links coil B. Determine (a) the self inductance of coil A, and (b) the mutual inductance.
+
+//initializing the variables:
+Na = 1200;
+Nb = 1000;
+Ia = 0.8; // in amperes
+Phia = 100E-6; // in Wb
+xb = 0.75;
+
+//calculation:
+//self inductance of coil A
+La = Na*Phia/Ia
+//mutual inductance, M
+Phib = xb*Phia
+M = Nb*Phib/Ia
+
+printf("\n\n Result \n\n")
+printf("\n self inductance of coil A is %.2f H",La)
+printf("\n mutual inductance, M is %.2E H",M)
\ No newline at end of file diff --git a/608/CH43/EX43.02/43_02.sce b/608/CH43/EX43.02/43_02.sce new file mode 100755 index 000000000..9c547f6f7 --- /dev/null +++ b/608/CH43/EX43.02/43_02.sce @@ -0,0 +1,16 @@ +//Problem 43.02: Two circuits have a mutual inductance of 600 mH. A current of 5 A in the primary is reversed in 200 ms. Determine the e.m.f. induced in the secondary, assuming the current changes at a uniform rate.
+
+//initializing the variables:
+M = 600E-3; // in Henry
+Ia = 5; // in amperes
+dt = 0.2; // in secs
+
+//calculation:
+//change of current
+dIa = 2*Ia
+dIadt = dIa/dt
+//secondary induced e.m.f., E2
+E2 = -1*M*dIadt
+
+printf("\n\n Result \n\n")
+printf("\n secondary induced e.m.f., E2 is %.0f V",E2)
\ No newline at end of file diff --git a/608/CH43/EX43.03/43_03.sce b/608/CH43/EX43.03/43_03.sce new file mode 100755 index 000000000..027857493 --- /dev/null +++ b/608/CH43/EX43.03/43_03.sce @@ -0,0 +1,13 @@ +//Problem 43.03: Two coils have self inductances of 250 mH and 400 mH respectively. Determine the magnetic coupling coefficient of the pair of coils if their mutual inductance is 80 mH.
+
+//initializing the variables:
+La = 250E-3; // in Henry
+Lb = 400E-3; // in Henry
+M = 80E-3; // in Henry
+
+//calculation:
+//coupling coefficient,
+k = M/(La*Lb)^0.5
+
+printf("\n\n Result \n\n")
+printf("\n coupling coefficient, is %.3f",k)
\ No newline at end of file diff --git a/608/CH43/EX43.04/43_04.sce b/608/CH43/EX43.04/43_04.sce new file mode 100755 index 000000000..790b8225f --- /dev/null +++ b/608/CH43/EX43.04/43_04.sce @@ -0,0 +1,19 @@ +//Problem 43.04: Two coils, X and Y, having self inductances of 80 mH and 60 mH respectively, are magnetically coupled. Coil X has 200 turns and coil Y has 100 turns. When a current of 4A flows in coil X the change of flux in coil Y is 5 mWb. Determine (a) the mutual inductance between the coils, and (b) the coefficient of coupling.
+
+//initializing the variables:
+Lx = 80E-3; // in Henry
+Ly = 60E-3; // in Henry
+Nx = 200; // turns
+Ny = 100; // turns
+Ix = 4; // in Amperes
+Phiy = 0.005; // in Wb
+
+//calculation:
+//mutual inductance, M
+M = Ny*Phiy/(2*Ix)
+//coupling coefficient,
+k = M/(Lx*Ly)^0.5
+
+printf("\n\n Result \n\n")
+printf("\n mutual inductance, M is %.2E H",M)
+printf("\n coupling coefficient, is %.3f",k)
\ No newline at end of file diff --git a/608/CH43/EX43.05/43_05.sce b/608/CH43/EX43.05/43_05.sce new file mode 100755 index 000000000..f02e3b25e --- /dev/null +++ b/608/CH43/EX43.05/43_05.sce @@ -0,0 +1,16 @@ +//Problem 43.05: Two coils connected in series have self inductance of 40 mH and 10 mH respectively. The total inductance of the circuit is found to be 60 mH. Determine (a) the mutual inductance between the two coils, and (b) the coefficient of coupling.
+
+//initializing the variables:
+La = 40E-3; // in Henry
+Lb = 10E-3; // in Henry
+L = 60E-3; // in Henry
+
+//calculation:
+//mutual inductance, M
+M = (L - La - Lb)/2
+//coupling coefficient,
+k = M/(La*Lb)^0.5
+
+printf("\n\n Result \n\n")
+printf("\n mutual inductance, M is %.2E H",M)
+printf("\n coupling coefficient, is %.3f",k)
\ No newline at end of file diff --git a/608/CH43/EX43.06/43_06.sce b/608/CH43/EX43.06/43_06.sce new file mode 100755 index 000000000..4ea859133 --- /dev/null +++ b/608/CH43/EX43.06/43_06.sce @@ -0,0 +1,22 @@ +//Problem 43.06: Two mutually coupled coils X and Y are connected in series to a 240 V d.c. supply. Coil X has a resistance of 5 ohm and an inductance of 1 H. Coil Y has a resistance of 10 ohm and an inductance of 5 H. At a certain instant after the circuit is connected, the current is 8 A and increasing at a rate of 15 A/s. Determine (a) the mutual inductance between the coils and (b) the coefficient of coupling.
+
+//initializing the variables:
+V = 240; // in Volts
+Ra = 5; // in Ohm
+La = 1; // in Henry
+Rb = 10; // in Ohm
+Lb = 5; // in Henry
+I = 8; // in amperes
+dIdt = 15; // in A/sec
+
+//calculation:
+//Kirchhoff’s voltage law
+L = (V - I*(Ra + Rb))/dIdt
+//mutual inductance, M
+M = (L - La - Lb)/2
+//coupling coefficient,
+k = M/(La*Lb)^0.5
+
+printf("\n\n Result \n\n")
+printf("\n mutual inductance, M is %.0f H",M)
+printf("\n coupling coefficient, is %.3f",k)
\ No newline at end of file diff --git a/608/CH43/EX43.07/43_07.sce b/608/CH43/EX43.07/43_07.sce new file mode 100755 index 000000000..9919eaa3c --- /dev/null +++ b/608/CH43/EX43.07/43_07.sce @@ -0,0 +1,22 @@ +//Problem 43.07: Two coils are connected in series and their effective inductance is found to be 15 mH. When the connection to one coil is reversed, the effective inductance is found to be 10 mH. If the coefficient of coupling is 0.7, determine (a) the self inductance of each coil, and (b) the mutual inductance.
+
+//initializing the variables:
+k = 0.7; // coefficient of coupling
+L1 = 15E-3; // in Henry
+L2 = 10E-3; // in Henry
+
+//calculation:
+//L1 = La + Lb + 2*k*(La*Lb)^0.5
+//L2 = La + Lb - 2*k*(La*Lb)^0.5
+//self inductance of coils
+a = ((L1 - (L1 + L2)/2)/(2*k))^2
+La1 =((L1 + L2)/2 + (((L1 + L2)/2)^2 - 4*a)^0.5)/2
+La2 =((L1 + L2)/2 - (((L1 + L2)/2)^2 - 4*a)^0.5)/2
+Lb1 = (L1 + L2)/2 - La1
+Lb2 = (L1 + L2)/2 - La2
+//mutual inductance, M
+M = (L1 - L2)/4
+
+printf("\n\n Result \n\n")
+printf("\nself inductance of coils are %.2E H and %.2E H",La1, Lb1)
+printf("\n mutual inductance, M is %.2E H",M)
diff --git a/608/CH43/EX43.08/43_08.sce b/608/CH43/EX43.08/43_08.sce new file mode 100755 index 000000000..7372dc26e --- /dev/null +++ b/608/CH43/EX43.08/43_08.sce @@ -0,0 +1,22 @@ +//Problem 43.08: For the circuit shown in Figure 43.7, determine the p.d. E2 which appears across the open-circuited secondary winding, given that E1 D 8 sin 2500t volts.
+
+//initializing the variables:
+E1 = 8; // in Volts
+thetae1 = 0; // in degrees
+w = 2500; // in rad/sec
+R = 15; // in ohm
+L = 5E-3; // in Henry
+M = 0.1E-3; // in Henry
+
+//calculation:
+//voltage
+E1 = E1*cos(thetae1*%pi/180) + %i*E1*sin(thetae1*%pi/180)
+//Impedance of primary
+Z1 = R + %i*w*L
+//Primary current I1
+I1 = E1/Z1
+//E2
+E2 = %i*w*M*I1
+
+printf("\n\n Result \n\n")
+printf("\nE2 is %.2f + (%.2f)i V",real(E2), imag(E2))
\ No newline at end of file diff --git a/608/CH43/EX43.09/43_09.sce b/608/CH43/EX43.09/43_09.sce new file mode 100755 index 000000000..7be58297a --- /dev/null +++ b/608/CH43/EX43.09/43_09.sce @@ -0,0 +1,17 @@ +//Problem 43.09: Two coils x and y, with negligible resistance, have self inductances of 20 mH and 80 mH respectively, and the coefficient of coupling between them is 0.75. If a sinusoidal alternating p.d. of 5 V is applied to x, determine the magnitude of the open circuit e.m.f. induced in y.
+
+//initializing the variables:
+Lx = 20E-3; // in Henry
+Ly = 80E-3; // in Henry
+k = 0.75; // coupling coeff.
+Ex = 5; // in Volts
+
+//calculation:
+//mutual inductance
+M = k*(Lx*Ly)^0.5
+//magnitude of the open circuit e.m.f. induced
+Ey = M*Ex/Lx
+
+printf("\n\n Result \n\n")
+printf("\n mutual inductance is %.2f H",M)
+printf("\n magnitude of the open circuit e.m.f. induced is %.2f V",Ey)
\ No newline at end of file diff --git a/608/CH43/EX43.10/43_10.sce b/608/CH43/EX43.10/43_10.sce new file mode 100755 index 000000000..dcc0bfa6b --- /dev/null +++ b/608/CH43/EX43.10/43_10.sce @@ -0,0 +1,32 @@ +//Problem 43.10: For the circuit shown in Figure 43.9, determine the value of the secondary current I2 if E1 = 2/_0° volts and the frequency is 1000/pi Hz.
+
+//initializing the variables:
+E1 = 2; // in Volts
+thetae1 = 0; // in degrees
+f = 1000/%pi; // in Hz
+R1 = 4; // in ohm
+R2 = 16; // in ohm
+R3 = 16; // in ohm
+R4 = 50; // in ohm
+L = 10E-3; // in Henry
+M = 2E-3; // in Henry
+
+//calculation:
+w = 2*%pi*f
+//voltage
+E1 = E1*cos(thetae1*%pi/180) + %i*E1*sin(thetae1*%pi/180)
+//R1e is the real part of Z1e
+R1e = R1 + R2 + ((R3 + R4)*(M^2)*(w^2))/((R3 + R4)^2 + (w*L)^2)
+//X1e is the imaginary part of Z1e
+X1e = w*L - (L*(M^2)*(w^3))/((R3 + R4)^2 + (w*L)^2)
+Z1e = R1e + %i*X1e
+Z2e = R3 + R4 + %i*w*L
+//primary current, I1
+I1 = E1/Z1e
+//E2
+E2 = %i*w*M*I1
+//secondary current I2
+I2 = E2/Z2e
+
+printf("\n\n Result \n\n")
+printf("\n secondary current I2 is %.2E +(%.2E)i A",real(I2), imag(I2))
\ No newline at end of file diff --git a/608/CH43/EX43.11/43_11.sce b/608/CH43/EX43.11/43_11.sce new file mode 100755 index 000000000..a9ce29fdc --- /dev/null +++ b/608/CH43/EX43.11/43_11.sce @@ -0,0 +1,38 @@ +//Problem 43.11: For the coupled circuit shown in Figure 43.10, calculate (a) the self impedance of the primary circuit, (b) the self impedance of the secondary circuit, (c) the impedance reflected into the primary circuit, (d) the effective primary impedance, (e) the primary current, and (f) the secondary current + +//initializing the variables: +E1 = 50; // in Volts +thetae1 = 0; // in degrees +w = 500; // in rad/sec +R1 = 300; // in ohm +L1 = 0.2; // in Henry +L2 = 0.5; // in Henry +L3 = 0.3; // in Henry +R2 = 500; // in ohm +C = 5E-6; // in farad +M = 0.2; // in Henry + +//calculation: +//voltage +E1 = E1*cos(thetae1*%pi/180) + %i*E1*sin(thetae1*%pi/180) +// Self impedance of primary circuit +Z1 = R1 + %i*w*(L1 + L2) +//Self impedance of secondary circuit, +Z2 = R2 + %i*(w*L3 - 1/(w*C)) +//reflected impedance, Zr +Zr = (w*M)^2/Z2 +//Effective primary impedance, +Z1e = Z1 + Zr +//Primary current I1 +I1 = E1/Z1e +//Secondary current I2 +E2 = %i*w*M*I1 +I2 = E2/Z2 + +printf("\n\n Result \n\n") +printf("\n Self impedance of primary circuit, Z1 is %.0f + (%.0f)i ohm",real(Z1), imag(Z1)) +printf("\n Self impedance of secondary circuit, Z2 is %.0f + (%.0f)i ohm",real(Z2), imag(Z2)) +printf("\n reflected impedance, Zr is %.0f +(%.0f)i ohm",real(Zr), imag(Zr)) +printf("\n Effective primary impedance Z1(eff) is %.0f +(%.0f)i ohm",real(Z1e), imag(Z1e)) +printf("\n primary current I1 is %.2f +(%.2f)i A",real(I1), imag(I1)) +printf("\n secondary current I2 is %.2f +(%.2f)i A",real(I2), imag(I2)) diff --git a/608/CH43/EX43.12/43_12.sce b/608/CH43/EX43.12/43_12.sce new file mode 100755 index 000000000..b51a00705 --- /dev/null +++ b/608/CH43/EX43.12/43_12.sce @@ -0,0 +1,41 @@ +//Problem 43.12:For the circuit shown in Figure 43.12 each winding is tuned to resonate at the same frequency. Determine (a) the reso-nant frequency, (b) the value of capacitor C2 , (c) the effective primary impedance, (d) the primary current, (e) the voltage across capacitor C2 and (f) the coefficient of coupling. + +//initializing the variables: +E1 = 20; // in Volts +thetae1 = 0; // in degrees +R1 = 15; // in ohm +C1 = 400E-12; // in farad +R2 = 30; // in ohm +L1 = 0.001; // in Henry +L2 = 0.0002; // in Henry +R3 = 50; // in ohm +M = 10E-6; // in Henry + +//calculation: +//voltage +E1 = E1*cos(thetae1*%pi/180) + %i*E1*sin(thetae1*%pi/180) +//the resonant frequency, fr +fr = 1/(2*%pi*(L1*C1)^0.5) +w = 2*%pi*fr +//The secondary is also tuned to a resonant frequency +//capacitance,C2 +C2 = 1/(L2*(2*%pi*fr)^2) +//the effective primary impedance Z1eff +Z1e = R1 + R2 + ((w*M)^2)/R3 +//Primary current I1 +I1 = E1/Z1e +//Secondary current I2 +E2 = %i*w*M*I1 +I2 = E2/R3 +//voltage across capacitor C2 +Vc2 = I2*-1*%i/(w*C2) +//coefficient of coupling, k +k = M/(L1*L2)^0.5 + +printf("\n\n Result \n\n") +printf("\n the resonant frequency,fr is %.0f Hz",fr) +printf("\n capacitance,C2 is %.2E F",C2) +printf("\n Effective primary impedance Z1(eff) is %.0f +(%.0f)i ohm",real(Z1e), imag(Z1e)) +printf("\n primary current I1 is %.2f +(%.2f)i A",real(I1), imag(I1)) +printf("\n voltage across capacitor C2 is %.0f +(%.0f)i V",real(Vc2), imag(Vc2)) +printf("\n coefficient of coupling, k is %.4f",k) diff --git a/608/CH43/EX43.13/43_13.sce b/608/CH43/EX43.13/43_13.sce new file mode 100755 index 000000000..3da123109 --- /dev/null +++ b/608/CH43/EX43.13/43_13.sce @@ -0,0 +1,26 @@ +//Problem 43.13:For the coupled circuit shown in Figure 43.16, determiine the values of currents I1 and I2. + +//initializing the variables: +E1 = 250; // in Volts +thetae1 = 0; // in degrees +R1 = %i*50; // in ohm +R2 = 10; // in ohm +R3 = 10; // in ohm +R4 = %i*50; // in ohm +R5 = 50; // in ohm +M = %i*10; // in ohm + +//calculation: +//voltage +E1 = E1*cos(thetae1*%pi/180) + %i*E1*sin(thetae1*%pi/180) +//Applying Kirchhoff’s voltage law to the primary circuit gives +//(R1 + R2)*I1 - M*I2 = E1 +//Applying Kirchhoff’s voltage law to the secondary circuit gives +//-1*M*I1 + ( R3 + R4 + R5)*I2 = 0 +//solving these two +I2 = E1/((R1 + R2)*(R3 + R4 + R5)/(M) + (-1*M)) +I1 = I2*(R3 + R4 + R5)/(M) + +printf("\n\n Result \n\n") +printf("\n primary current I1 is %.2f +(%.2f)i A",real(I1), imag(I1)) +printf("\n secondary current I2 is %.2f +(%.2f)i A",real(I2), imag(I2)) diff --git a/608/CH43/EX43.14/43_14.sce b/608/CH43/EX43.14/43_14.sce new file mode 100755 index 000000000..7c4e0ff70 --- /dev/null +++ b/608/CH43/EX43.14/43_14.sce @@ -0,0 +1,35 @@ +//Problem 43.14:The circuit diagram of an air-cored transformer winding is shown in Figure 43.17. The coefficient of coupling between primary and secondary windings is 0.70. Determine for the circuit (a) the mutual inductance M, (b) the primary current I1 and (c) the secondary terminal p.d.
+
+//initializing the variables:
+re = 40; // in Volts
+thetae1 = 0; // in degrees
+R1 = 5; // in ohm
+L1 = 0.001; // in Henry
+L2 = 0.006; // in Henry
+R2 = 40; // in ohm
+rzl = 200; // in ohm
+thetazl = -60; // in degrees
+k = 0.70
+f = 20000; // in Hz
+
+//calculation:
+w = 2*%pi*f
+//voltage
+E1 = re*cos(thetae1*%pi/180) + %i*re*sin(thetae1*%pi/180)
+//impedance
+ZL = rzl*cos(thetazl*%pi/180) + %i*rzl*sin(thetazl*%pi/180)
+//mutual inductance, M
+M = k*(L1*L2)^0.5
+//Applying Kirchhoff’s voltage law to the primary circuit gives
+//(R1 + %i*w*L1)*I1 - %i*w*M*I2 = E1
+//Applying Kirchhoff’s voltage law to the secondary circuit gives
+//-1*%i*w*M*I1 + ( R2 + ZL + %i*w*L2)*I2 = 0
+//solving these two
+I1 = E1/((R1 +%i*w*L1) - (%i*w*M)^2/(R2 + ZL + %i*w*L2))
+//secondary terminal p.d.
+pd = I2*ZL
+
+printf("\n\n Result \n\n")
+printf("\n mutual induction M is %.2E H",M)
+printf("\n primary current I1 is %.2f +(%.2f)i A",real(I1), imag(I1))
+printf("\n secondary terminal p.d. is %.2f +(%.2f)i V",real(pd), imag(pd))
diff --git a/608/CH43/EX43.15/43_15.sce b/608/CH43/EX43.15/43_15.sce new file mode 100755 index 000000000..0e17c8943 --- /dev/null +++ b/608/CH43/EX43.15/43_15.sce @@ -0,0 +1,29 @@ +//Problem 43.15:A mutual inductor is used to couple a 20 ohm resistive load to a 50/_0° V generator as shown in Figure 43.18. The generator has an internal resistance of 5 ohm and the mutual inductor parameters are R1 = 20 ohm , L1 = 0.2 H, R2 = 25 ohm , L2 = 0.4 H and M = 0.1 H. The supply frequency is 75/pi Hz. Determine (a) the generator current I1 and (b) the load current I2 . + +//initializing the variables: +E1 = 50; // in Volts +thetae1 = 0; // in degrees +r = 5; // in ohm +R1 = 20; // in ohm +L1 = 0.2; // in Henry +L2 = 0.4; // in Henry +R2 = 25; // in ohm +RL = 20; // in ohm +M = 0.1; // in Henry +f = 75/%pi; // in Hz + +//calculation: +w = 2*%pi*f +//voltage +E1 = E1*cos(thetae1*%pi/180) + %i*E1*sin(thetae1*%pi/180) +//Applying Kirchhoff’s voltage law to the primary circuit gives +//(r + R1 + %i*w*L1)*I1 - %i*w*M*I2 = E1 +//Applying Kirchhoff’s voltage law to the secondary circuit gives +//-1*%i*w*M*I1 + ( R2 + RL + %i*w*L2)*I2 = 0 +//solving these two +I2 = E1/((r + R1 + %i*w*L1)*(R2 + RL + %i*w*L2)/(%i*w*M) + (-1*%i*w*M)) +I1 = I2*(R2 + RL + %i*w*L2)/(%i*w*M) + +printf("\n\n Result \n\n") +printf("\n primary current I1 is %.2f +(%.2f)i A",real(I1), imag(I1)) +printf("\n load current I2 is %.2f +(%.2f)i A",real(I2), imag(I2)) diff --git a/608/CH43/EX43.16/43_16.sce b/608/CH43/EX43.16/43_16.sce new file mode 100755 index 000000000..b15ee2112 --- /dev/null +++ b/608/CH43/EX43.16/43_16.sce @@ -0,0 +1,41 @@ +//Problem 43.16:The mutual inductor of problem 43.15 is connected to the circuit of Figure 43.19. Determine the source and load currents for (a) the windings as shown (i.e. with the dots adjacent), and (b) with one winding reversed (i.e. with the dots at opposite ends). + +//initializing the variables: +E1 = 50; // in Volts +thetae1 = 0; // in degrees +r = 5; // in ohm +R1 = 20; // in ohm +L1 = 0.2; // in Henry +R = 8; // in ohm +L = 0.1; // in Henry +L2 = 0.4; // in Henry +R2 = 25; // in ohm +RL = 20; // in ohm +M = 0.1; // in Henry +f = 75/%pi; // in Hz + +//calculation: +w = 2*%pi*f +//voltage +E1 = E1*cos(thetae1*%pi/180) + %i*E1*sin(thetae1*%pi/180) +//Applying Kirchhoff’s voltage law to the primary circuit gives +//(r + R1 + %i*w*L1 + R + %i*w*L)*I1 - (%i*w*M + R + %i*w*L)*I2 = E1 +//Applying Kirchhoff’s voltage law to the secondary circuit gives +//-1*(%i*w*M + R + %i*w*L)*I1 + (R2 + RL + %i*w*L2 + R + %i*w*L)*I2 = 0 +//solving these two +I2 = E1/((r + R1 + %i*w*L1 + R + %i*w*L)*(R2 + RL + %i*w*L2 + R + %i*w*L)/((%i*w*M + R + %i*w*L)) + (-1*(%i*w*M + R + %i*w*L))) +I1 = I2*(R2 + RL + %i*w*L2 + R + %i*w*L)/(%i*w*M + R + %i*w*L) +//reversing +//Applying Kirchhoff’s voltage law to the primary circuit gives +//(r + R1 + %i*w*L1 + R + %i*w*L)*I1r - (-1*%i*w*M + R + %i*w*L)*I2r = E1 +//Applying Kirchhoff’s voltage law to the secondary circuit gives +//-1*(-1*%i*w*M + R + %i*w*L)*I1r + (R2 + RL + %i*w*L2 + R + %i*w*L)*I2r = 0 +//solving these two +I2r = E1/((r + R1 + %i*w*L1 + R + %i*w*L)*(R2 + RL + %i*w*L2 + R + %i*w*L)/((-1*%i*w*M + R + %i*w*L)) + (-1*(-1*%i*w*M + R + %i*w*L))) +I1r = I2r*(R2 + RL + %i*w*L2 + R + %i*w*L)/((-1*%i*w*M + R + %i*w*L)) + +printf("\n\n Result \n\n") +printf("\n primary current I1 is %.2f +(%.2f)i A",real(I1), imag(I1)) +printf("\n load current I2 is %.2f +(%.2f)i A",real(I2), imag(I2)) +printf("\n reversed primary current I1r is %.2f +(%.2f)i A",real(I1r), imag(I1r)) +printf("\n reversed load current I2r is %.2f +(%.2f)i A",real(I2r), imag(I2r)) |