Circuit Theory/TF Examples/Example33

From testwiki
Revision as of 09:34, 25 September 2013 by imported>MarcGarver
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Series RLC circuit with two initial conditions Example 33 for wikibook circuit theory

Find io(t) if Vs(t) = 1 + cos(3t).

Choose Starting Point

Because of the initial conditions, going to start with Vc(t) and then work our way through the initial conditions to io.

Transfer Function

H(s)=VcVs=1sC1sC+11R1+1sL+R2

The MuPad commands are going to be:

L :=1; R1:=.5; R2:=1.5; C:=.5;
simplify((1/(s*C))/(1/(s*C) + 1/(1/R1 + 1/(s*L)) + R2))

Which results in:

H(s)=8s+48s2+11s+4

Homogeneous Solution

Set the denominator of the transfer function to 0 and solve for s:

solve(8*s^2 + 11*s + 4)

Imaginary roots:

s1,2=11±7i16

So the solution has the form:

Vch=e11t16(Acos7t16+Bsin7t16)+C

Particular Solution

After a very long time the capacitor opens, no current flows, so all the source drop is across the capacitor. The source is a unit step function thus:

Vcp=1

Initial Conditions

mupad screen shot leading up to computing constant B

Adding the particular and homogenous solutions, get:

Vc(t)=1+e11t16(Acos7t16+Bsin7t16)+C

Doing the final condition again, get:

Vc()=1=1+CC=0

Which implies that C is zero.

From the given initial conditions, know that Vc(0+) = 0.5 so can find A:

Vc(0+)=0.5=1+AA=0.5

Finding B is more difficult. From capacitor terminal relation:

VC := 1 + exp(-11*t/16)*(-.5*cos(7*t/16) + B*sin(7*t/16))
IT := diff(VC,t)

The total current is:

iT(t)=CdVcdt=11e11t1616(0.5cos7t16Bsin7t16)+7e11t1616(0.5sin7t16+Bcos7t16)

The loop equation can be solved for the voltage across the LR parallel combination:

VC+VLR+R2CdVcdtVs=0
VLR=VsVCR2it=1Vc1.5*it
VLR := 1 - VC - 1.5*IT

We know from the inductor terminal relation that:

iL=1LVLRdt+C1
IL := 1/.5 * int(VLR,t)

At this point mupad gave up and went numeric. In any case, it is clear from t = ∞ where the inductor current has to be zero that the integration constant is zero. This enables us to compute B from the inductor initial condition.

t :=0

Set the time to zero, set IL equal to the initial condition of .2 amps and solve for B:

solve(IL=0.2, B)

And get that B is -0.2008928571 ...

mupad screen shot finding the desired output io

The desired answer is io which is just VLR/R_1. To calculate need to start new mupad session because t is zero now. Start with:

B := -0.2008928571;
R1 :=0.5;

Repeat the above commands up to VLR and then add:

io = VLR/R1

io=3e11t16(0.0879cos7t160.219sin7t16)0.0625e11t16(0.5cos7t16+0.201sin7t16)

Template:BookCat