Laplace transforms:Series RLC circuit: Difference between revisions

From Class Wiki
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 121: Line 121:
<math>\begin{bmatrix} i \\ \dfrac{di}{dt} \end{bmatrix}=\begin{bmatrix} 0 & 1 \\ 1000000 & 10 \end{bmatrix} \begin{bmatrix} \int{idt} \\ i \end{bmatrix} + \begin{bmatrix} 0 \\ 100cos(20t) \end{bmatrix}</math>
<math>\begin{bmatrix} i \\ \dfrac{di}{dt} \end{bmatrix}=\begin{bmatrix} 0 & 1 \\ 1000000 & 10 \end{bmatrix} \begin{bmatrix} \int{idt} \\ i \end{bmatrix} + \begin{bmatrix} 0 \\ 100cos(20t) \end{bmatrix}</math>


The initial conditions mean that
<math> i=\begin{bmatrix} 0 & 1 \end{bmatrix} \begin{bmatrix} \int{idt} \\ i \end{bmatrix} +0 </math>


<math> \int{idt}=\begin{bmatrix} 1 & 0 \end{bmatrix} \begin{bmatrix} \int{idt} \\ i \end{bmatrix} +0 </math>
Next, we solve the system using the matrix exponential method.
 
MATLAB tells us that <math>e^{At}</math> is
 
<math> \begin{bmatrix}
\dfrac{40001 e^{(5-5 \sqrt{40001}) t}+\sqrt{40001} e^{(5-5 \sqrt{40001}) t}+40001 e^{(5+5 \sqrt{40001}) t}-\sqrt{40001} e^{(5+5 \sqrt{40001}) t}}{80002} & -\dfrac{e^{(5-5 \sqrt{40001}) t}-e^{(5+5 \sqrt{40001}) t}}{10 \sqrt{40001}} \\
-\dfrac{100000 (e^{(5-5 \sqrt{40001}) t}-e^{(5+5 \sqrt{40001}) t})}{\sqrt{40001}} & \dfrac{40001 e^{(5-5 \sqrt{40001}) t}-\sqrt{40001} e^{(5-5 \sqrt{40001}) t}+40001 e^{(5+5 \sqrt{40001}) t}+\sqrt{40001} e^{(5+5 \sqrt{40001}) t}}{80002}
\end{bmatrix} </math>
 
The solution, then, is
 
<math>
x(t)=e^{At}x(0) + \int_{0}^{t} e^{A(t-\tau)}Bu(\tau) \, d\tau
</math>
 
Since x(0)=0,
 
<math>
x(t)=\int_{0}^{t} e^{A(t-\tau)}Bu(\tau) \, d\tau
</math>
 
This gives the same solution as we got above.
----
----


Written by Nathan Reeves ~ Checked by
Written by Nathan Reeves ~ Checked by

Latest revision as of 21:31, 14 December 2009

Laplace Transform Example: Series RLC Circuit

Problem

Given a series RLC circuit with R=10Ohms, L=0.1H, and C=105F, having power source v(t)=10cos(20t), find an expression for i(t) if i(0)=0A and vc(0)=0V.

Solution

We begin with the general formula for voltage drops around the circuit:

v(t)=Ri+Ldidt+1Cidt

Substituting numbers, we get

10cos(20t)=10i+0.1didt+105idt

cos(20t)=i+0.01didt+10000idt

Now, we take the Laplace Transform and get

ss2+202=I+0.01[sIi(0)]+10000Is

Using the fact that i(0)=0A, we get

ss2+400=I+0.01sI+10000Is

s2s2+400=sI+0.01s2I+10000I

s2s2+400=(0.01s2+s+10000)I

I(s)=s2(s2+400)(0.01s2+s+10000)

Using partial fraction decomposition, we find that

I(s)=1.00044.003*108s0.01s2+s+10000+4.003*106s0.04002s2+400

I(s)=100.044.003*106ss2+100s+1000000+4.003*106s0.04002s2+400

I(s)=100.044.003*106s(s+50)2+997500+4.003*106s0.04002s2+400

I(s)=100.038(s+50)2+(50399)24.003*106s+.002(s+50)2+(50399)2+4.003*106ss2+2020.04002s2+202

I(s)=10.0385039950399(s+50)2+(50399)24.003*106s+50(s+50)2+(50399)2+4.003*106ss2+2020.040022020s2+202

Finally, we take the inverse Laplace transform to obtain

i(t)=0.01e50tsin(998.8t)(4.003*106)e50tcos(998.8t)+(4.003*106)cos(20t)0.002sin(20t)

which is our answer.

Initial/Final Value Theorems

We now want to use the Initial and Final Value Theorems on this problem.

The Initial Value Theorem states that

limssF(s)=f(0+)

limss3(s2+400)(0.01s2+s+10000)=i(0)

i(0)=0

In addition, when we actually evaluate i(0) from our equation for i(t), we find it to be 0 as well. So, things check out there.

The Final Value Theorem states that

lims0sF(s)=f()

lims0s3(s2+400)(0.01s2+s+10000)=i()

i()=0

This time, when we actually evaluate i(∞) from the equation for i(t), we find it to be undefined. So here, the Final Value Theorem tells us something that is not necessarily true (in fact, because we have oscillating functions, we know that i(∞) will not be zero).

Bode Plot

To get a Bode plot, we use the transfer function:

H(s)=10.01s2+s+10000

We then use a program such as Octave or MATLAB to obtain the Bode plot, which looks like this:

Error creating thumbnail: File missing
Bode Plot




















Break Points

We can also use break points to approximate and/or validate the Bode plot.

The break points of our function are determined by the transfer function

H(s)=10.01s2+s+10000=100(s2+100s+1000000)

The break points are:

1000(40db/decade down)

Looking at the top part of the Bode plot, we see that the graph is indeed going down at roughly 40db/decade at 1000.

Convolution

We now want to show how convolution can achieve the same result as our Laplace Transform methods.

Convolution means that

i(t)=v(t)*h(t)=0tv(τ)h(tτ)dτ

where h(t) is the inverse Laplace transform of the transfer function.

Here,

h(t)=0.1e2500tsin(998.7t)

Thus,

i(t)=0t10cos(20τ)(.01e2500(tτ)sin(998.7(tτ))dτ

i(t)=.000014e2500tcos(998.7t).000034e2500tsin(998.7t)+.000014cos(20t)+.0000002sin(20t)

This doesn't look exactly like the answer we got above, but we expect this since convolution doesn't take initial conditions into account.

State Equations

To begin the demonstration of a new method (state space equations), we want to translate the system into a set of state equations:

[ididt]=[01100000010][idti]+[0100cos(20t)]

i=[01][idti]+0

Next, we solve the system using the matrix exponential method.

MATLAB tells us that eAt is

[40001e(5540001)t+40001e(5540001)t+40001e(5+540001)t40001e(5+540001)t80002e(5540001)te(5+540001)t1040001100000(e(5540001)te(5+540001)t)4000140001e(5540001)t40001e(5540001)t+40001e(5+540001)t+40001e(5+540001)t80002]

The solution, then, is

x(t)=eAtx(0)+0teA(tτ)Bu(τ)dτ

Since x(0)=0,

x(t)=0teA(tτ)Bu(τ)dτ

This gives the same solution as we got above.


Written by Nathan Reeves ~ Checked by