LTspice run slowly

MrAl

Joined Jun 17, 2014
13,708
Hi,
Thank you for replying!
My goal was to run that converter with a battery to depletion. In the file I've attached there's a Li-Ion_Batt model.
But this requires a simulation of seconds (if the battery is multiplied by 3600).
This will take a day!
So, is that the way it is?
This kind of time frame is usually more associated with numerical solutions for partial differential equations. For some solutions in the past I had to let run for more than 24 hours. I would go to sleep and hope it would be done the next day sometime.

However, if the equations are difficult to solve and require small time steps, then we have no choice but to wait. There are things you can do but this usually means making concessions about the precision and accuracy of the analysis. It means being satisfied with results that come from simpler models like behavioral models instead of full spice models. This requires knowing about how the typical operation of the different parts work, and even perhaps stepping back and using models that are more theoretical than real-worldly. This can give huge improvements in simulation times, and then the final analysis is made with a real world bench test with actual real world parts.

Making time constants longer can help because it tends to smooth the solution curves, but in this circuit you have a higher frequency clock going too, which will mean it has to calculate everything over and over again many times per real world second. If nothing else what I would try is I would lower the clock frequency, and possibly use a larger inductor (and maybe capacitor) just to get the circuit running faster. You can scale everything down to a lower frequency, then scale back up by considering what would change when you go back to the required values in the real circuit. This might help.

Another thing to think about is they do not make super computers for no good reason :)

Also as Eric pointed out, we have to have the entire circuit which means all the models you are using and everything like that so we can take a closer more in depth look at this. It could be something more simple going on.
 
Top