Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.electronics.design > #552165 > unrolled thread

Slow SEPIC sim

Started byJohn Larkin <jjlarkin@highlandtechnology.com>
First post2019-07-22 21:47 -0700
Last post2019-07-26 14:19 -0700
Articles 12 — 8 participants

Back to article view | Back to sci.electronics.design


Contents

  Slow SEPIC sim John Larkin <jjlarkin@highlandtechnology.com> - 2019-07-22 21:47 -0700
    Re: Slow SEPIC sim Steve Wilson <no@spam.com> - 2019-07-23 09:47 +0000
    Re: Slow SEPIC sim Rick C <gnuarm.deletethisbit@gmail.com> - 2019-07-23 08:43 -0700
    Re: Slow SEPIC sim John Larkin <jjlarkin@highlandtechnology.com> - 2019-07-23 08:49 -0700
    Re: Slow SEPIC sim "Kevin Aylward" <kevinRemovAT@kevinaylward.co.uk> - 2019-07-23 19:55 +0100
      Re: Slow SEPIC sim John Larkin <jjlarkin@highland_snip_technology.com> - 2019-07-23 12:44 -0700
    Re: Slow SEPIC sim Joerg <news@analogconsultants.com> - 2019-07-23 15:41 -0700
      Re: Slow SEPIC sim John Larkin <jjlarkin@highlandtechnology.com> - 2019-07-23 22:52 -0700
    Re: Slow SEPIC sim John Larkin <jjlarkin@highlandtechnology.com> - 2019-07-26 08:25 -0700
      Re: Slow SEPIC sim legg <legg@nospam.magma.ca> - 2019-07-26 15:02 -0400
      Re: Slow SEPIC sim Harry D <td2k99@gmail.com> - 2019-07-26 12:46 -0700
        Re: Slow SEPIC sim John Larkin <jjlarkin@highland_snip_technology.com> - 2019-07-26 14:19 -0700

#552165 — Slow SEPIC sim

FromJohn Larkin <jjlarkin@highlandtechnology.com>
Date2019-07-22 21:47 -0700
SubjectSlow SEPIC sim
Message-ID<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 alternate solver does seem to be a bit faster.


-- 

John Larkin         Highland Technology, Inc

lunatic fringe electronics 

[toc] | [next] | [standalone]


#552190

FromSteve Wilson <no@spam.com>
Date2019-07-23 09:47 +0000
Message-ID<XnsAA953AFB0C3Aidtokenpost@69.16.179.22>
In reply to#552165
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

[toc] | [prev] | [next] | [standalone]


#552226

FromRick C <gnuarm.deletethisbit@gmail.com>
Date2019-07-23 08:43 -0700
Message-ID<9e3fb79e-965d-4111-925f-08e90f961fb5@googlegroups.com>
In reply to#552165
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

[toc] | [prev] | [next] | [standalone]


#552227

FromJohn Larkin <jjlarkin@highlandtechnology.com>
Date2019-07-23 08:49 -0700
Message-ID<dbaejehdup8tupfuegklqhoqd9tcf07g7v@4ax.com>
In reply to#552165
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 

[toc] | [prev] | [next] | [standalone]


#552239

From"Kevin Aylward" <kevinRemovAT@kevinaylward.co.uk>
Date2019-07-23 19:55 +0100
Message-ID<sZCdnWyfAdCMxarAnZ2dnUU78Y3NnZ2d@giganews.com>
In reply to#552165
>"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 

[toc] | [prev] | [next] | [standalone]


#552250

FromJohn Larkin <jjlarkin@highland_snip_technology.com>
Date2019-07-23 12:44 -0700
Message-ID<t0oeje5ifibcf47rsudslbg4r77rv93et8@4ax.com>
In reply to#552239
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

[toc] | [prev] | [next] | [standalone]


#552255

FromJoerg <news@analogconsultants.com>
Date2019-07-23 15:41 -0700
Message-ID<gppgp1Fl54iU1@mid.individual.net>
In reply to#552165
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/

[toc] | [prev] | [next] | [standalone]


#552300

FromJohn Larkin <jjlarkin@highlandtechnology.com>
Date2019-07-23 22:52 -0700
Message-ID<hbsfjel4fo7g66fofosbuptiptr9i3uesu@4ax.com>
In reply to#552255
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 

[toc] | [prev] | [next] | [standalone]


#552518

FromJohn Larkin <jjlarkin@highlandtechnology.com>
Date2019-07-26 08:25 -0700
Message-ID<j96mje92akmem6lp8nau0qfcpunk3ap9tp@4ax.com>
In reply to#552165
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 

[toc] | [prev] | [next] | [standalone]


#552542

Fromlegg <legg@nospam.magma.ca>
Date2019-07-26 15:02 -0400
Message-ID<qfjmjedu5tvrklot6i3va856mct2vitmib@4ax.com>
In reply to#552518
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

[toc] | [prev] | [next] | [standalone]


#552550

FromHarry D <td2k99@gmail.com>
Date2019-07-26 12:46 -0700
Message-ID<192be17a-189f-4159-8731-b09b5371e206@googlegroups.com>
In reply to#552518
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.

[toc] | [prev] | [next] | [standalone]


#552559

FromJohn Larkin <jjlarkin@highland_snip_technology.com>
Date2019-07-26 14:19 -0700
Message-ID<6uqmje96012gf0v58p7e6jshskt43mrftm@4ax.com>
In reply to#552550
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

[toc] | [prev] | [standalone]


Back to top | Article view | sci.electronics.design


csiph-web