Integral for Current through an Inductor -- Not Working

4 replies · 2K views · last reply
Lapse
Messages
49
Reaction score
4

Homework Statement


[/B]
Calculate, and plot along with (on the same plot) the voltage seen below, the current flowing in the following circuit using the integral relationship between the voltage across an inductor and the current through the inductor. Verify your hand calculations and plot using LTspice.
Left: LTspice plot titled V(vout) showing a trapezoidal voltage rising from 0 V at 100µs to 1.0 V at 200µs, flat until 400µs, then falling to 0 V at 500µs, over 0 to 600µs. Right: schematic of voltage source V1 driving inductor L1 = 400µH, with a .ic I(L1)=0 and PWL(0 0 100u 0 200u 1 400u 1 500u 0) directive and .tran 600u.


Homework Equations


I = Io+1/L ⋅ ∫Vdτ

The Attempt at a Solution


LTspice screenshot of a 600 µs transient simulation: green V(vout) ramps from 0 to 1.0 V and back to 0, blue I(L1) rises from 0 to about 770 mA on a separate right axis, with a schematic of a PWL voltage source driving a 400 µH inductor below.


So I am obviously doing this incorrectly because the current I obtain from solving the integral doesn't match the graph. For example, If I want the current from time 100μs - 200μs:

I = 0 + 1/400μH∫1dτ = 250mA

250mA is too high according to the graph. Where am I going wrong here?
 
Attachments
  • Left: LTspice plot titled V(vout) showing a trapezoidal voltage rising from 0 V at 100µs to 1.0 V at 200µs, flat until 400µs, then falling to 0 V at 500µs, over 0 to 600µs. Right: schematic of voltage source V1 driving inductor L1 = 400µH, with a .ic I(L1)=0 and PWL(0 0 100u 0 200u 1 400u 1 500u 0) directive and .tran 600u.
    1OAfhV2VSUxy7Crjkpf0IEg9f5vMlkDbY_OBrxWF5zXBbFmRvDcS2_bzXBivVw6N4gesxoSPrVJlorNcbzWya3kcxrrO1J3o.png
    14.1 KB · Views: 470
  • LTspice screenshot of a 600 µs transient simulation: green V(vout) ramps from 0 to 1.0 V and back to 0, blue I(L1) rises from 0 to about 770 mA on a separate right axis, with a schematic of a PWL voltage source driving a 400 µH inductor below.
    QqJ31FPoIC8kuGiMRRIDq6VH4D-EH8cSxMVWrmdNJiIN1TvMJICJwzXoIyk1EmjnY1nMCg0WCL0hhXL74HYOn0zECdAkkm0F.png
    19.5 KB · Views: 438
Why are you integrating a constant when the voltage across the inductor isn't constant over that time interval?
 
Good question. So what equation do I use to figure the current through the inductor?
 
You need to break up the voltage vs time equation into piecewise continuous sections and integrate over each piece.
 
  • Like
Likes   Reactions: DaveE
You have the correct equation, you just need to do the integral correctly. It may help to think of finding the "area" (volts*sec) under the voltage curve.
 
  • Like
Likes   Reactions: gneill