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 /1430/CH8/EX8.1/exa8_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 '1430/CH8/EX8.1/exa8_1.sce')
-rw-r--r-- | 1430/CH8/EX8.1/exa8_1.sce | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/1430/CH8/EX8.1/exa8_1.sce b/1430/CH8/EX8.1/exa8_1.sce new file mode 100644 index 000000000..9b9c250aa --- /dev/null +++ b/1430/CH8/EX8.1/exa8_1.sce @@ -0,0 +1,23 @@ +// Example 8.1
+// Analysis of a Transformer Circuit
+// Form figure 8.4(a)
+N=3; // Ideal step-up transformer
+V=complex(60,0);
+omega=5000;// Radian frequency (rad/s)
+Z_R=90; // Ohms
+C=10*10^-6; // Farad
+Z_C=1/(%i*omega*C);
+// From frequency domain diagram 8.4(b)
+V_1=V;
+V_2=3*V;
+I_R=(3*V_1)/Z_R; // Ohm's law for AC circuits
+I_C=(V_1-V_2)/Z_C // Ohm's Law
+I_2=I_C-I_R; // KCL
+I=I_C-3*I_2;// KCL
+Z=V/I;
+P=0.5*real(Z)*abs(I)^2;
+P_R=0.5*Z_R*abs(I_R)^2;
+disp(P,"Average power supplied by the source(in Watts)=")
+disp(P_R,"Average power dissipated by 90-Ohm resistor(in Watts)=")
+disp("All the power from source is transferrd to the resistor")
+
|