# LTSpice: simulate transient voltage and current in RL-circuit

My goal is to calculate transient current and voltage in a following circuit: Also, immediately after the switch is closed, initial current is 0 and then it exponentially increases until the value reaches the value defined by the steady state. Mesh analysis gives 5mA for the mesh which contains an inductor and 1.75 mA for the other mesh. LTSpice transient analysis confirms these values.

Next step is to define the voltage and the time constant. For the simple circuit (voltage source - resistance - inductance in series) the voltage (immediately after closing the switch) is equal to the source voltage. Since this is the complex circuit, the Thévenin equivalent must be found. Here is the resulting circuit: Now the voltage across the inductor immediately after closing the switch is equal to 90 V. Time constant

tau = L/R = 0.36/18k (s).


However, LTSpice shows that the voltage across the inductor is something below 60 V: What is wrong with my assumptions and calculations?

## 1 Answer

You should not use the startup option.
Do measure the voltage source V1 with this "startup" option and plot/see what happens to the voltage of the voltage source.

Use initial conditions instead, like .ic i(L1)=0.

• Works perfect! Can you explain, please, what is the difference between "startup" and "initial conditions". This topic recommends to use "startup": electronics.stackexchange.com/questions/179671/… – tenghiz Jul 9 at 9:04
• @tenghiz I think the solution there is wrong, but not noticable. The "startup" option lets DC sources ramp to their final value in 20 usec. In your linked question, the time scale runs to about 60 msec, so the first 20usec are hardly noticable. – Huisman Jul 9 at 9:12
• I added a comment/suggestion to that question. – Huisman Jul 9 at 9:27