¿ªÔÆÌåÓý

Re: Initial conditions for inductor current in .TRAN UIC analysis - follow up


 

¿ªÔÆÌåÓý

I think it does look like a paradox. It one were doing a Laplace analysis with pencil and paper, I(L1)? = 10 A would definitely be an 'initial condition'. But I did conclude that it isn't in LTspice.

On 2025-02-24 14:30, Andy I via groups.io wrote:
On Mon, Feb 24, 2025 at 09:11 AM, John Woodgate wrote:

On the face of it, setting IC of L1 = 10, but also specifying UIC is paradoxical.

That is actually normal for SPICE syntax.? Specifying UIC tells SPICE to definitely use that IC setting.? No paradox.
?
There may be some difference in the details, between how different SPICE programs handle it.? But I think it is basically like this:? Specifying initial conditions (either IC= or .IC) works differently depending on whether UIC is also used.? Without UIC, SPICE applies the initial conditions, lets the circuit converge, then it might remove the enforcing conditions and lets it converge again.? Therefore, whether or not it does the second step, it starts with a self-consistent set of voltages and currents.? Whereas, when you add UIC, SPICE omits trying to converge.? It just accepts the initial conditions you specify (including 0 for any not specified), and accepts them as is.? ?No attempt to solve the network equations with those conditions.? Therefore it is almost guaranteed to "burp" when the transient simulation begins.? You got what you asked for, even if it is garbage.
?
I can't guarantee that what I described above happens in all SPICE programs, but this was my understanding, from decades ago.
?

I suppose IC = 10 doesn't count as an 'initial condition' despite the name.

It does count as an "initial condition".? But it needs to be taken with care.
?
Andy
?
--
OOO - Own Opinions only If something is true: * as far as we know - it's science *for certain - it's mathematics *unquestionably - it's religion

Join [email protected] to automatically receive all group messages.