Slow SEPIC sim

J

John Larkin

Guest
I'm simulating a pretty simple SEPIC dc/dc converter in LT Spice. Just
to hit the requested output voltage is taking maybe 10 minutes and
creating a 1.4 gbyte .RAW file.

Are there some settings that would speed this up?

The alternate solver does seem to be a bit faster.


--

John Larkin Highland Technology, Inc

lunatic fringe electronics
 
John Larkin <jjlarkin@highlandtechnology.com> wrote:

I'm simulating a pretty simple SEPIC dc/dc converter in LT Spice. Just
to hit the requested output voltage is taking maybe 10 minutes and
creating a 1.4 gbyte .RAW file.

Are there some settings that would speed this up?

The alternate solver does seem to be a bit faster.

Are you running Win7? Have you tried the speed up tricks I discussed in
April? Here's my post:

12 Tips to Speed up Windows 7

On Sunday, April 7, 2019 at 5:50:33 PM UTC-4, Steve Wilson wrote:
People using Win7 may find their computer is slow and sluggish.
Here are 12 tips that can dramatically speed up Win7:

https://www.pcmag.com/feature/251692/12-tips-to-speed-up-windows-7

I found two that had good effect:

6. Change Power Settings
12. Turn Off Aero Eeffects
 
We have a requirement to have our septic systems either cleaned or inspected every five years. I wonder if I could provide a certificate of inspection for a SEPIC system instead? Think that would get past the guards?

--

Rick C.

- Get a 1,000 miles of free Supercharging
- Tesla referral code - https://ts.la/richard11209
 
On Mon, 22 Jul 2019 21:47:08 -0700, John Larkin
<jjlarkin@highlandtechnology.com> wrote:

I'm simulating a pretty simple SEPIC dc/dc converter in LT Spice. Just
to hit the requested output voltage is taking maybe 10 minutes and
creating a 1.4 gbyte .RAW file.

Are there some settings that would speed this up?

The alternate solver does seem to be a bit faster.

I'm using an LTC3803 and a DRQ127 dual inductor to make my Sepic
converter, +24 to adjustable +5 to +75 out. It turns out that the
current limit works in constant power output fashion, which is exactly
what I want to power my pulse generator.

My PC does seem slow lately. I'll have my IT guy look at it.


--

John Larkin Highland Technology, Inc

lunatic fringe electronics
 
"John Larkin" wrote in message
news:au3djep73pmpkvahe2s1uctgrc66he55oq@4ax.com...

I'm simulating a pretty simple SEPIC dc/dc converter in LT Spice. Just
to hit the requested output voltage is taking maybe 10 minutes and
creating a 1.4 gbyte .RAW file.

Are there some settings that would speed this up?

The key spice settings are:

RELTOL
TRTOL
MAXSTEPSIZE (not sure of the name in LTSpice MAXT?)

Setting TRTOL from its LT default of 1 upwards to the Spice3 default of 7
can increase speed by a factor of maybe 3. However, SMPS can get too
inaccurate if this is set too hight.

Same argument for RELTOL. Try and have it relaxed at 1e-3 levels, but again
it might need to be tighter, even down to 10e-6 for some circuits.

MAXT only as small as required to get a good looking waveform. Again, if too
large can cause SMPS to output garbage.

The advice from Ken Kundurt, Cadence Spectre creator, is to try and use the
RELTOL value to get accuracy rather than going for a TRTOL=1.

Spice can only handle about 12 digits of span, so if its high current ABSTOL
might need to be set higher. Spice3 default is 1pa, in SuperSpice I set it
to 10pa, however, for SMPS setting it to 1na or larger might be required.


I have a SMPS example in SuperSpice with TRTOL=5, RELTOL=500u MAXSTEP=200ns
for a 200us run with a clock at 500kHz which runs in about 5 seconds.

Its possible that the model has problems causing convergence problems.
What's the schematic? One wants to make most bits behavioural.

-- Kevin Aylward
http://www.anasoft.co.uk - SuperSpice
http://www.kevinaylward.co.uk/ee/index.html
 
On Tue, 23 Jul 2019 19:55:13 +0100, "Kevin Aylward"
<kevinRemovAT@kevinaylward.co.uk> wrote:

"John Larkin" wrote in message
news:au3djep73pmpkvahe2s1uctgrc66he55oq@4ax.com...

I'm simulating a pretty simple SEPIC dc/dc converter in LT Spice. Just
to hit the requested output voltage is taking maybe 10 minutes and
creating a 1.4 gbyte .RAW file.

Are there some settings that would speed this up?

The key spice settings are:

RELTOL
TRTOL
MAXSTEPSIZE (not sure of the name in LTSpice MAXT?)

Setting TRTOL from its LT default of 1 upwards to the Spice3 default of 7
can increase speed by a factor of maybe 3. However, SMPS can get too
inaccurate if this is set too hight.

Same argument for RELTOL. Try and have it relaxed at 1e-3 levels, but again
it might need to be tighter, even down to 10e-6 for some circuits.

MAXT only as small as required to get a good looking waveform. Again, if too
large can cause SMPS to output garbage.

The advice from Ken Kundurt, Cadence Spectre creator, is to try and use the
RELTOL value to get accuracy rather than going for a TRTOL=1.

Spice can only handle about 12 digits of span, so if its high current ABSTOL
might need to be set higher. Spice3 default is 1pa, in SuperSpice I set it
to 10pa, however, for SMPS setting it to 1na or larger might be required.


I have a SMPS example in SuperSpice with TRTOL=5, RELTOL=500u MAXSTEP=200ns
for a 200us run with a clock at 500kHz which runs in about 5 seconds.

Its possible that the model has problems causing convergence problems.
What's the schematic? One wants to make most bits behavioural.

-- Kevin Aylward
http://www.anasoft.co.uk - SuperSpice
http://www.kevinaylward.co.uk/ee/index.html

Thanks. I'll play with those settings.

I don't (currently) have convergence problems, it's just annoyingly
slow. I guess I could check out Drudge or Youtube as it runs.

Here's what I have now:

https://www.dropbox.com/s/yod1dsqa2x5lwhx/T770_Sepic_1.asc?dl=0

https://www.dropbox.com/s/o9kpwe21osp2j8i/T770_Sepic.jpg?dl=0

It has a bit of sub-cycle effects, and a startup glitch (U2 can wind
up), so it needs tweaking.

It runs maybe 300 us/sec with the alternate solver, and I have a lot
of cases to test.

What's slick is that my flyback became a SEPIC by adding C5, but now
it doesn't need a snubber.


--

John Larkin Highland Technology, Inc
picosecond timing precision measurement

jlarkin att highlandtechnology dott com
http://www.highlandtechnology.com
 
On 2019-07-22 21:47, John Larkin wrote:
I'm simulating a pretty simple SEPIC dc/dc converter in LT Spice. Just
to hit the requested output voltage is taking maybe 10 minutes and
creating a 1.4 gbyte .RAW file.

Are there some settings that would speed this up?

The alternate solver does seem to be a bit faster.

If you have a coupled inductor in it set that to K=1 for longer sims,
when looking at loop stability, ring-out and stuff. Then back to K=0.98
or whatever it is in reality for cycle-to-cycle observations.

Coupled inductors with an coupling coefficient other than "1" can really
slows stuff down. Can turn a PC into a big space heater.

--
Regards, Joerg

http://www.analogconsultants.com/
 
On Tue, 23 Jul 2019 15:41:41 -0700, Joerg <news@analogconsultants.com>
wrote:

On 2019-07-22 21:47, John Larkin wrote:
I'm simulating a pretty simple SEPIC dc/dc converter in LT Spice. Just
to hit the requested output voltage is taking maybe 10 minutes and
creating a 1.4 gbyte .RAW file.

Are there some settings that would speed this up?

The alternate solver does seem to be a bit faster.


If you have a coupled inductor in it set that to K=1 for longer sims,
when looking at loop stability, ring-out and stuff. Then back to K=0.98
or whatever it is in reality for cycle-to-cycle observations.

Coupled inductors with an coupling coefficient other than "1" can really
slows stuff down. Can turn a PC into a big space heater.

I tried that, but it didn't seem to make much difference.

..options reltol=0.01

helps a lot, about 2:1.

Alternate solver is good too.


--

John Larkin Highland Technology, Inc

lunatic fringe electronics
 
On Mon, 22 Jul 2019 21:47:08 -0700, John Larkin
<jjlarkin@highlandtechnology.com> wrote:

I'm simulating a pretty simple SEPIC dc/dc converter in LT Spice. Just
to hit the requested output voltage is taking maybe 10 minutes and
creating a 1.4 gbyte .RAW file.

Are there some settings that would speed this up?

The alternate solver does seem to be a bit faster.

Here's a sweep of the Sepic converter, open loop with a swept output
clamp voltage from 0 to +100, showing the current and power limits. It
has features.

https://www.dropbox.com/s/ungglfg4ta0jd99/Sepic_Limits_3.jpg?raw=1


This takes about half an hour to run, and makes a roughly 6 gbyte .raw
file. After the sim is over, it takes about a minute to add another
node to the plot.

The main sim doesn't run much faster if I limit the saved variables.

My CPU utilization shows about 30% while this is running.


--

John Larkin Highland Technology, Inc

lunatic fringe electronics
 
On Fri, 26 Jul 2019 08:25:36 -0700, John Larkin
<jjlarkin@highlandtechnology.com> wrote:

On Mon, 22 Jul 2019 21:47:08 -0700, John Larkin
jjlarkin@highlandtechnology.com> wrote:

I'm simulating a pretty simple SEPIC dc/dc converter in LT Spice. Just
to hit the requested output voltage is taking maybe 10 minutes and
creating a 1.4 gbyte .RAW file.

Are there some settings that would speed this up?

The alternate solver does seem to be a bit faster.


Here's a sweep of the Sepic converter, open loop with a swept output
clamp voltage from 0 to +100, showing the current and power limits. It
has features.

https://www.dropbox.com/s/ungglfg4ta0jd99/Sepic_Limits_3.jpg?raw=1


This takes about half an hour to run, and makes a roughly 6 gbyte .raw
file. After the sim is over, it takes about a minute to add another
node to the plot.

The main sim doesn't run much faster if I limit the saved variables.

My CPU utilization shows about 30% while this is running.

CPU temp?

Just had to blow out my laptop (24 screws. . . in sequence!)

RL
 
On Friday, July 26, 2019 at 8:25:47 AM UTC-7, John Larkin wrote:
On Mon, 22 Jul 2019 21:47:08 -0700, John Larkin
jjlarkin@highlandtechnology.com> wrote:

I'm simulating a pretty simple SEPIC dc/dc converter in LT Spice. Just
to hit the requested output voltage is taking maybe 10 minutes and
creating a 1.4 gbyte .RAW file.

Are there some settings that would speed this up?

The alternate solver does seem to be a bit faster.


Here's a sweep of the Sepic converter, open loop with a swept output
clamp voltage from 0 to +100, showing the current and power limits. It
has features.

https://www.dropbox.com/s/ungglfg4ta0jd99/Sepic_Limits_3.jpg?raw=1


This takes about half an hour to run, and makes a roughly 6 gbyte .raw
file. After the sim is over, it takes about a minute to add another
node to the plot.

The main sim doesn't run much faster if I limit the saved variables.

My CPU utilization shows about 30% while this is running.


--

John Larkin Highland Technology, Inc

lunatic fringe electronics

R9 = 0.0 ohms, no feedback, open loop. It is a good idea to reduce all filter time constants in the initial test until all bugs are eliminated, then increase filtering to your needs. Increase the current sense resistor to about 0.50R for test and add a 100 PF cap at the sense IC input.
Do not let the smoke out!

Harry D.
 
On Fri, 26 Jul 2019 12:46:57 -0700 (PDT), Harry D <td2k99@gmail.com>
wrote:

On Friday, July 26, 2019 at 8:25:47 AM UTC-7, John Larkin wrote:
On Mon, 22 Jul 2019 21:47:08 -0700, John Larkin
jjlarkin@highlandtechnology.com> wrote:

I'm simulating a pretty simple SEPIC dc/dc converter in LT Spice. Just
to hit the requested output voltage is taking maybe 10 minutes and
creating a 1.4 gbyte .RAW file.

Are there some settings that would speed this up?

The alternate solver does seem to be a bit faster.


Here's a sweep of the Sepic converter, open loop with a swept output
clamp voltage from 0 to +100, showing the current and power limits. It
has features.

https://www.dropbox.com/s/ungglfg4ta0jd99/Sepic_Limits_3.jpg?raw=1


This takes about half an hour to run, and makes a roughly 6 gbyte .raw
file. After the sim is over, it takes about a minute to add another
node to the plot.

The main sim doesn't run much faster if I limit the saved variables.

My CPU utilization shows about 30% while this is running.


--

John Larkin Highland Technology, Inc

lunatic fringe electronics

R9 = 0.0 ohms, no feedback, open loop.

That's only for the current-limit test.


>It is a good idea to reduce all filter time constants in the initial test until all bugs are eliminated, then increase filtering to your needs. Increase the current sense resistor to about 0.50R for test and add a 100 PF cap at the sense IC input.

Bugs? I've used the LT3803 and the DRQ inductor combo before, and it
works great. I can always tweak resistor and cap values if needed,
after the board is built. The simulations seem to be pretty good.

I've been concerned about stray inductance in R1 spiking the switcher
sense circuit, but I think the IC is clever enough to ignore that.

For some reason, slope compensation (which would be about 5K on R7)
makes this one worse. It usually helps.


Do not let the smoke out!

We were just talking about whether we'll want to heat sink the dual
inductor, which I've done before. Probably not at this power level,
but the +24 and ground pins will sit over copper pours, so we may as
well dump some heat.


> Harry D.

--

John Larkin Highland Technology, Inc
picosecond timing precision measurement

jlarkin att highlandtechnology dott com
http://www.highlandtechnology.com
 

Welcome to EDABoard.com

Sponsor

Back
Top