summaryrefslogtreecommitdiff
path: root/1430/CH5
diff options
context:
space:
mode:
Diffstat (limited to '1430/CH5')
-rw-r--r--1430/CH5/EX5.1/exa5_1.jpgbin0 -> 59868 bytes
-rw-r--r--1430/CH5/EX5.1/exa5_1.sce41
-rw-r--r--1430/CH5/EX5.12/exa5_12.jpgbin0 -> 101780 bytes
-rw-r--r--1430/CH5/EX5.12/exa5_12.sce16
-rw-r--r--1430/CH5/EX5.2/exa5_2.jpgbin0 -> 26902 bytes
-rw-r--r--1430/CH5/EX5.2/exa5_2.sce30
-rw-r--r--1430/CH5/EX5.2/exa5_2.txt6
-rw-r--r--1430/CH5/EX5.4/exa5_4.sce21
-rw-r--r--1430/CH5/EX5.4/exa5_4.txt20
-rw-r--r--1430/CH5/EX5.5/exa5_5.jpgbin0 -> 115940 bytes
-rw-r--r--1430/CH5/EX5.5/exa5_5.sce24
-rw-r--r--1430/CH5/EX5.6/exa5_6.sce17
-rw-r--r--1430/CH5/EX5.6/exa5_6.txt20
-rw-r--r--1430/CH5/EX5.9/exa5_9.jpgbin0 -> 56563 bytes
-rw-r--r--1430/CH5/EX5.9/exa5_9.sce16
15 files changed, 211 insertions, 0 deletions
diff --git a/1430/CH5/EX5.1/exa5_1.jpg b/1430/CH5/EX5.1/exa5_1.jpg
new file mode 100644
index 000000000..f6a667b17
--- /dev/null
+++ b/1430/CH5/EX5.1/exa5_1.jpg
Binary files differ
diff --git a/1430/CH5/EX5.1/exa5_1.sce b/1430/CH5/EX5.1/exa5_1.sce
new file mode 100644
index 000000000..0c28f64d0
--- /dev/null
+++ b/1430/CH5/EX5.1/exa5_1.sce
@@ -0,0 +1,41 @@
+// Example 5.1
+// Capacitor Waveforms
+t_1= 0:0.001:0.01;
+t_2= 0.01:0.001:0.03;
+t_3= 0.03:0.001:0.06;
+v_1= 20*sin(50*%pi*t_1);
+v_2=20;
+v_3=-20*sin(50*%pi*t_3);
+// Current Equations Can be obtained by using the relation i = C(dv/dt)
+i_1=3*%pi*cos(50*%pi*t_1)*10^-3;
+i_2=0;
+i_3=-3*%pi*cos(50*%pi*t_3)*10^-3;
+// Power Equations can be obtained by using the relation p=v*i
+p_1=v_1.*i_1;
+p_2=20*0;
+p_3=v_3.*i_3;
+// Energy stored can be obtained by using the relation w=0.5*C*v^2
+C=60*10^-6;
+w_1=0.5*C*[20*sin(50*%pi*t_1)]^2;
+w_2=0.5*C*400;
+w_3=0.5*C*[20*sin(50*%pi*t_3)]^2;
+subplot(2,2,1)
+plot(t_1,v_1,'-r',t_2,v_2,'-r',t_3,v_3,'-r')
+xlabel('t(ms)');
+ylabel('V');
+title("Voltage");
+subplot(2,2,2)
+plot(t_1,i_1,'-g',t_2,i_2,'-g',t_3,i_3,'-g')
+xlabel('t(ms)');
+ylabel('i(mA)');
+title("Current");
+subplot(2,2,3)
+plot(t_1,p_1,'-y',t_2,p_2,'-y',t_3,p_3,'-y')
+xlabel('t(ms)');
+ylabel('P(mW)');
+title("Power");
+subplot(2,2,4)
+plot(t_1,w_1,'-m',t_2,w_2,'-m',t_3,w_3,'-m')
+xlabel('t(ms)');
+ylabel('w(mJ)');
+title("Stored Energy");
diff --git a/1430/CH5/EX5.12/exa5_12.jpg b/1430/CH5/EX5.12/exa5_12.jpg
new file mode 100644
index 000000000..83197380b
--- /dev/null
+++ b/1430/CH5/EX5.12/exa5_12.jpg
Binary files differ
diff --git a/1430/CH5/EX5.12/exa5_12.sce b/1430/CH5/EX5.12/exa5_12.sce
new file mode 100644
index 000000000..62e047825
--- /dev/null
+++ b/1430/CH5/EX5.12/exa5_12.sce
@@ -0,0 +1,16 @@
+// Example 5.12
+// Complete response calculations
+// From figure 5.21(b)
+R=4;
+L=0.1;
+function i_dot= fun(t,i)
+ i_dot= 4000*sin(280*t)-40*i;
+endfunction
+i_0=0;
+t_0=0;
+t=0:0.001:0.225;
+i=ode(i_0,t_0,t,fun);
+plot(t,i);
+xlabel('t');
+ylabel('i(t)')
+title("Complete response i(t)")
diff --git a/1430/CH5/EX5.2/exa5_2.jpg b/1430/CH5/EX5.2/exa5_2.jpg
new file mode 100644
index 000000000..243e97aad
--- /dev/null
+++ b/1430/CH5/EX5.2/exa5_2.jpg
Binary files differ
diff --git a/1430/CH5/EX5.2/exa5_2.sce b/1430/CH5/EX5.2/exa5_2.sce
new file mode 100644
index 000000000..d380e3be2
--- /dev/null
+++ b/1430/CH5/EX5.2/exa5_2.sce
@@ -0,0 +1,30 @@
+// Example 5.2
+// Waveform Generation in a Hazard Blinker
+// From figure 5.7(a) and(b)
+// Lamp will remain OFF initially and draws no current as long as v < 80V
+t_1=poly(0,'t_1');
+v_1=(1*10^-3)/(50*10^-6)*(t_1);// Using Current-Voltage relation
+// When v_1 becomes 80 V The lamp then goes ON.
+p_1=-80+v_1;
+t_1=roots(p_1);
+t_2=poly(0,'t_2');
+// This dischrge continues till v_2=40
+v_2=80-80*(t_2-t_1);
+p_2=-40+80-80*(t_2-t_1);
+t_2=roots(p_2);
+//With the lamp OFF,the capacitor is again charged by current source but starting form 40V
+t_3=poly(0,'t_3');
+v_3=40+((1*10^-3)/(50*10^-6))*(t_3-t_2);
+p_3=-80+v_3;
+t_3=roots(p_3);
+t_11=0:0.10:t_1;
+v_11=horner(v_1,t_11);
+t_22=t_1:0.10:t_2;
+v_22=horner(v_2,t_22);
+t_33=t_2:0.10:t_3;
+v_33=horner(v_3,t_33);
+plot(t_11,v_11,'-g',t_22,v_22,'-g',t_33,v_33,'-g')
+xlabel('t');
+ylabel('v(t)')
+title('Waveform of Hazard blinker')
+disp("This Waveform will continues periodically thereafter")
diff --git a/1430/CH5/EX5.2/exa5_2.txt b/1430/CH5/EX5.2/exa5_2.txt
new file mode 100644
index 000000000..8087a3227
--- /dev/null
+++ b/1430/CH5/EX5.2/exa5_2.txt
@@ -0,0 +1,6 @@
+
+
+-->exec('C:\Users\sangeet\Documents\Scilab\Circuits\Chapter 5\exa5.2.sce', -1)
+
+ This Waveform will continues periodically thereafter
+
diff --git a/1430/CH5/EX5.4/exa5_4.sce b/1430/CH5/EX5.4/exa5_4.sce
new file mode 100644
index 000000000..a217a2949
--- /dev/null
+++ b/1430/CH5/EX5.4/exa5_4.sce
@@ -0,0 +1,21 @@
+//Example 5.4
+// Calculation for Series Capacitors
+// Following Conditions at t=0
+C_1=3*10^-6;
+C_2=6*10^-6;
+v_1=10;
+q_1=C_1*v_1;
+v_2=-10;
+q_2=C_2*v_2;
+v=v_1+v_2;
+// We will calculate the new conditions at t1 > 0 When a source is connected to
+// the terminals establishes v(t1)=30V
+C_ser=(3*6)/(3+6)*(10^-6);
+v_1_t1= 10 +(C_ser/C_1)*(30-0); // Voltage Divider Relation
+q_1_t1=C_1*v_1_t1;// Charge voltage relationship
+v_2_t1=-10+(C_ser/C_2)*(30-0);
+q_2_t1=C_2*v_2_t1;
+disp(v_1_t1,"Voltage across 3-micro farad capacitor(in Volts)=");
+disp(q_1_t1,"Charge on 3-micro farad capacitor(in Coulomb)=");
+disp(v_2_t1,"Voltage across 6-micro farad capacitor(in Volts)=");
+disp(q_2_t1,"Charge across 6-micro farad capacitor(in Coulomb)=");
diff --git a/1430/CH5/EX5.4/exa5_4.txt b/1430/CH5/EX5.4/exa5_4.txt
new file mode 100644
index 000000000..09a0b8999
--- /dev/null
+++ b/1430/CH5/EX5.4/exa5_4.txt
@@ -0,0 +1,20 @@
+
+
+-->exec('C:\Users\sangeet\Documents\Scilab\Circuits\Chapter 5\exa5.4.sce', -1)
+
+ Voltage across 3-micro farad capacitor(in Volts)=
+
+ 30.
+
+ Charge on 3-micro farad capacitor(in Coulomb)=
+
+ 0.00009
+
+ Voltage across 6-micro farad capacitor(in Volts)=
+
+ 0.
+
+ Charge across 6-micro farad capacitor(in Coulomb)=
+
+ 0.
+ \ No newline at end of file
diff --git a/1430/CH5/EX5.5/exa5_5.jpg b/1430/CH5/EX5.5/exa5_5.jpg
new file mode 100644
index 000000000..4e5b08ab3
--- /dev/null
+++ b/1430/CH5/EX5.5/exa5_5.jpg
Binary files differ
diff --git a/1430/CH5/EX5.5/exa5_5.sce b/1430/CH5/EX5.5/exa5_5.sce
new file mode 100644
index 000000000..cbdcfcdb4
--- /dev/null
+++ b/1430/CH5/EX5.5/exa5_5.sce
@@ -0,0 +1,24 @@
+// Example 5.5
+// Inductor Waveform
+t=poly(0,'t');
+i=-(2*10^4)*t+2;
+t_1=0:10^-7:10^-6;
+i_1=horner(i,t_1);
+// Form the current voltage relation of inductor
+v=(50*10^-3)*(-2/10^-4);
+p=v*i_1; // Instantaneous power delivered to the load
+subplot(3,1,1)
+plot(t_1,i_1,'-r')
+xlabel('t(sec)')
+ylabel('i(Amps)')
+title('Current Wavefrom')
+subplot(3,1,2)
+plot(t_1,v,'-r')
+xlabel('t(sec)')
+ylabel('v(volts)')
+title('Voltage Wavefrom')
+subplot(3,1,3)
+plot(t_1,p,'-r')
+xlabel('t(sec)')
+ylabel('P(Watts)')
+title('Power Wavefrom')
diff --git a/1430/CH5/EX5.6/exa5_6.sce b/1430/CH5/EX5.6/exa5_6.sce
new file mode 100644
index 000000000..ca6526fe2
--- /dev/null
+++ b/1430/CH5/EX5.6/exa5_6.sce
@@ -0,0 +1,17 @@
+//Example 5.6
+// DC Steady-state Analysis
+// Under DC steady-state means inductor acts as a short circuit while the
+// Capacitor acts as an open circuit
+//Form figure 5.17(b)
+i_l=30/(20+40);// Ohm's Law
+v_c= (40*30)/(20+40); // Voltage divider relationship
+//Energy stored in capacitor
+w_c=0.5*(5*10^-6)*400;
+//Energy stored in Inductor
+w_l=0.5*(16*10^-3)*(0.5)^2;
+// total energy stored in the circuit is
+w=w_l+w_c;
+disp(i_l,"Current through the inductor(in Amps)=");
+disp(v_c,"Voltage across the capacitor(in Volts)=");
+disp(w_l,"Energy stored in inductor(Joules)=");
+disp(w_c,"Energy stored in Capacitor(Joules)=");
diff --git a/1430/CH5/EX5.6/exa5_6.txt b/1430/CH5/EX5.6/exa5_6.txt
new file mode 100644
index 000000000..9ebe8f713
--- /dev/null
+++ b/1430/CH5/EX5.6/exa5_6.txt
@@ -0,0 +1,20 @@
+
+
+-->exec('C:\Users\sangeet\Documents\Scilab\Circuits\Chapter 5\exa5.6.sce', -1)
+
+ Current through the inductor(in Amps)=
+
+ 0.5
+
+ Voltage across the capacitor(in Volts)=
+
+ 20.
+
+ Energy stored in inductor(Joules)=
+
+ 0.002
+
+ Energy stored in Capacitor(Joules)=
+
+ 0.001
+
diff --git a/1430/CH5/EX5.9/exa5_9.jpg b/1430/CH5/EX5.9/exa5_9.jpg
new file mode 100644
index 000000000..64c508e56
--- /dev/null
+++ b/1430/CH5/EX5.9/exa5_9.jpg
Binary files differ
diff --git a/1430/CH5/EX5.9/exa5_9.sce b/1430/CH5/EX5.9/exa5_9.sce
new file mode 100644
index 000000000..9090fb256
--- /dev/null
+++ b/1430/CH5/EX5.9/exa5_9.sce
@@ -0,0 +1,16 @@
+// Example 5.9
+// Capacitor discharge
+// From Figure 5.25
+R=2*10^6;
+C=300*10^-6;
+v_0=1000; // Initial condition
+i_0=0; // Initial condition
+function v_n_dot=f(t,v_n)
+ v_n_dot= -v_n/(C*R);
+endfunction
+t=0:5000;
+v_n=ode(v_0,i_0,t,f);
+plot(t,v_n);
+xlabel('t');
+ylabel('v_n(t)')
+title('Decaying Exponential waveform v_n(t)=1000*exp(-t/600)');