¿ªÔÆÌåÓý

Re: Modeling Constant Power Load with AC Source in LTspice


 

On Tue, Apr 29, 2025 at 03:48 PM, <thunderboy.johnson86@...> wrote:
  • Where P is set dynamically using an if() function:

  • P = if(V(vout)<5,5,500)

I am not sure how that relates to the circuit elements and their equations that you used.? But note that the formula for P has a significant discontinuity at V(vout) = 5.? The discontinuity also means the derivative is not a continuous function, and that is (almost by definition) the recipe for instability.
?
SPICE wants all functions and their first derivatives to be continuous everywhere.
?
Andy
?

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