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


Groups > sci.electronics.design > #535402

Re: SPICE tarnsient analysis of oscillators - sampling time

From Allan Herriman <allanherriman@hotmail.com>
Subject Re: SPICE tarnsient analysis of oscillators - sampling time
Newsgroups sci.electronics.design
References (7 earlier) <mvdf8ep4osga2a3q94ca6ho3rvj0o260o5@4ax.com> <q698lt$u3t$3@gonzo.revmaps.no-ip.org> <jqdg8elg65gj38ldil96e3fkmgmgocsbrl@4ax.com> <q6akko$p8f$1@gonzo.revmaps.no-ip.org> <m74i8e5prl5drt84vaavuhes4dfl8gnlem@4ax.com>
Message-ID <a4mdnW9g05m1uhfBnZ2dnUU7-RudnZ2d@westnet.com.au> (permalink)
Date 2019-03-14 05:04 -0500

Show all headers | View raw


On Wed, 13 Mar 2019 07:22:58 -0700, John Larkin wrote:

> On Wed, 13 Mar 2019 10:05:12 -0000 (UTC), Jasen Betts <jasen@xnet.co.nz>
> wrote:
> 
>>On 2019-03-12, John Larkin <jjlarkin@highland_snip_technology.com>
>>wrote:
>>> On Tue, 12 Mar 2019 21:34:53 -0000 (UTC), Jasen Betts
>>><jasen@xnet.co.nz> wrote:
>>>
>>>>On 2019-03-12, John Larkin <jjlarkin@highlandtechnology.com> wrote:
>>>>> On Tue, 12 Mar 2019 06:44:15 -0000 (UTC), Jasen Betts
>>>>><jasen@xnet.co.nz> wrote:
>>>>>
>>>>>>On 2019-03-11, John Larkin <jjlarkin@highlandtechnology.com> wrote:
>>>>>>> On Mon, 11 Mar 2019 07:06:59 -0000 (UTC), Jasen Betts
>>>>>>><jasen@xnet.co.nz> wrote:
>>>>>>>
>>>>>>>>On 2019-03-10, John Larkin <jjlarkin@highland_snip_technology.com>
>>>>>>>>wrote:
>>>>>>>>> On Sun, 10 Mar 2019 14:33:41 -0700, John Larkin
>>>>>>>>><jjlarkin@highland_snip_technology.com> wrote:
>>>>>>>>>
>>>>>>>>>>On Sat, 9 Mar 2019 02:41:08 -0000 (UTC), Jasen Betts
>>>>>>>>>><jasen@xnet.co.nz> wrote:
>>>>>>>>>>
>>>>>>>>>>>On 2019-03-08, John Larkin
>>>>>>>>>>><jjlarkin@highland_snip_technology.com> wrote:
>>>>>>>>>>>> On Fri, 8 Mar 2019 19:25:28 -0000, "Kevin Aylward"
>>>>>>>>>>>><kevinRemovAT@kevinaylward.co.uk> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>>"John Larkin"  wrote in message
>>>>>>>>>>>>>news:an658epspab4p9b433lbtca3uno7a2ku8h@4ax.com...
>>>>>>>>>>>>>
>>>>>>>>>>>>>On Fri, 8 Mar 2019 16:13:29 -0000, "Kevin Aylward"
>>>>>>>>>>>>><kevinRemovAT@kevinaylward.co.uk> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>>"John Larkin"  wrote in message
>>>>>>>>>>>>>>news:jkvt7e1mu51gueopgk7lodptq5imp5vjru@4ax.com...
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>I have attached a simple sim showing the frequency error
>>>>>>>>>>>>>>>>is unmeasurable when you set the tank ESR to zero. Let it
>>>>>>>>>>>>>>>>run for 1,000 cycles. After 1,000 cycles, the tank voltage
>>>>>>>>>>>>>>>>and sine wave overlap exactly. The frequency difference is
>>>>>>>>>>>>>>>>too small to measure.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>Maybe so, but I often have to force the time step down to
>>>>>>>>>>>>>>>>get a useful simulation. And that sometimes makes
>>>>>>>>>>>>>>>>simulation times silly. There is a reason that the max
>>>>>>>>>>>>>>>>time step can be set. When precision matters, I reduce it
>>>>>>>>>>>>>>>>until the sim doesn't change.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>Make a pure, 1 volt, 1 Hz sine wave V source. Run that for
>>>>>>>>>>>>>>>>5 seconds and zoom the top of the sine. It's chunky line
>>>>>>>>>>>>>>>>segments. Change the time step to 1 us and it looks a lot
>>>>>>>>>>>>>>>>better.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>I am going to guess that you must be using LTSpice with
>>>>>>>>>>>>>>>compression on.
>>>>>>>>>>>>>
>>>>>>>>>>>>>>Right, that is the default.
>>>>>>>>>>>>>
>>>>>>>>>>>>>My advice is to never use compression. Its a solution looking
>>>>>>>>>>>>>for a problem.
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>-- Kevin Aylward http://www.anasoft.co.uk - SuperSpice
>>>>>>>>>>>>>http://www.kevinaylward.co.uk/ee/index.html
>>>>>>>>>>>>
>>>>>>>>>>>> The point I was making, somewhere far above, is that the LT
>>>>>>>>>>>> Spice defaults seem to go for speed. That usually works fine
>>>>>>>>>>>> for things like opamp circuits, but sometimes doesn't.
>>>>>>>>>>>>
>>>>>>>>>>>> Things with a huge range of time constants are nasty.
>>>>>>>>>>>>
>>>>>>>>>>>> I wonder how it handles time steps when I specify a pulse
>>>>>>>>>>>> generator with fast rise and fall times, maybe driving a slow
>>>>>>>>>>>> RC or something.
>>>>>>>>>>>>
>>>>>>>>>>>> Or transmission lines? How many time buckets inside a
>>>>>>>>>>>> transmission line? One txline can theoretically store an
>>>>>>>>>>>> unlimited amount of information.
>>>>>>>>>>>
>>>>>>>>>>>Ltspice probably just looks at the simulated signal at the
>>>>>>>>>>>other end of the lines at the apropriate time in the past. it
>>>>>>>>>>>doesn't need separate storage for the line.
>>>>>>>>>>
>>>>>>>>>>That works for the lossless line, but data is only saved at
>>>>>>>>>>time-step times of the overall circuit.
>>>>>>>>>>
>>>>>>>>>>The lossy line model has stuff happening all along the line, so
>>>>>>>>>>can't just look back in time at the input. I wonder how many
>>>>>>>>>>effective segments Spice chops up a line into, and whether the
>>>>>>>>>>time step matters there.
>>>>>>>>>>
>>>>>>>>>>I might do some experiments.
>>>>>>>>>
>>>>>>>>> More fun: seriously mis-terminate a line and poke a pulse into
>>>>>>>>> one end. After a while there will be a mess of reflections,
>>>>>>>>> maybe of various polarities, things sloshing back and forth.
>>>>>>>>> There's no "black box" way to simulate that; you'd need a lot of
>>>>>>>>> internal nodes.
>>>>>>>>
>>>>>>>>Sure there is, the current pulse that was not conducted out of the
>>>>>>>>line at the unterminated end is the history of that end node as an
>>>>>>>>input at that end of the line, that gets replayed back to the
>>>>>>>>source end.
>>>>>>>
>>>>>>> You could do that; Spice can't. Spice simulates circuits; it
>>>>>>> doesn't understand them.
>>>>>>
>>>>>>It doesn't need to understand it.
>>>>>>
>>>>>>The current (and voltage) into the first end appears at the second
>>>>>>end after the line's delay any of that current that doesn't flow
>>>>>>into the attached circuit will be as current input to the second end
>>>>>>and eventualy appear at the first end.
>>>>>
>>>>> Multiple reflections complicate that endlessly.
>>>>
>>>>they only complicate the signal. not the algorithm
>>>>
>>>>>>> There's still the issue of the lossy line. It needs internal
>>>>>>> nodes.
>>>>>>
>>>>>>why? is it dispersive?
>>>>>
>>>>> Lossy and dispersive.
>>>>
>>>>how do I do a lossy line in ltspice?
>>>
>>> ltline is a component.
>>>
>>>
>>It wants some stuff that I don't know how to write before I can run a
>>simulation.
> 
> Look up "telegraphers equation" to get the general idea. You've got to
> build the txline out of Rs and Ls and Cs. I used to do that myself; I
> wrote a Basic program to make a netlist for a lossy line for ECA. The
> number of sections explodes as the square of Td/Tr or something nasty
> like that. Sim times were bad for 1000 sections running on an 8086.

Sometime last century I made a physical one with 120 sections for testing
HDSL modems I was working on.  It modelled 3.7km of 0.4mm twisted pair,
and was good to about 500kHz.

I actually posted about it in s.e.d:
https://groups.google.com/d/msg/sci.electronics.design/uvkEtEJgDwM/
8LuNcWHCm6MJ

Regards,
Allan

Back to sci.electronics.design | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

SPICE tarnsient analysis of oscillators - sampling time dakupoto@gmail.com - 2019-03-05 02:54 -0800
  Re: SPICE tarnsient analysis of oscillators - sampling time Martin Brown <'''newspam'''@nezumi.demon.co.uk> - 2019-03-05 11:08 +0000
  Re: SPICE tarnsient analysis of oscillators - sampling time John Larkin <jjlarkin@highlandtechnology.com> - 2019-03-05 08:51 -0800
    Re: SPICE tarnsient analysis of oscillators - sampling time Winfield Hill <hill@rowland.harvard.edu> - 2019-03-05 12:30 -0800
    Re: SPICE tarnsient analysis of oscillators - sampling time Steve Wilson <no@spam.com> - 2019-03-05 22:45 +0000
      Re: SPICE tarnsient analysis of oscillators - sampling time John Larkin <jjlarkin@highland_snip_technology.com> - 2019-03-05 15:11 -0800
        Re: SPICE tarnsient analysis of oscillators - sampling time Steve Wilson <no@spam.com> - 2019-03-06 00:34 +0000
          Re: SPICE tarnsient analysis of oscillators - sampling time John Larkin <jjlarkin@highlandtechnology.com> - 2019-03-05 17:19 -0800
            Re: SPICE tarnsient analysis of oscillators - sampling time Steve Wilson <no@spam.com> - 2019-03-06 02:22 +0000
              Re: SPICE tarnsient analysis of oscillators - sampling time John Larkin <jjlarkin@highlandtechnology.com> - 2019-03-05 22:47 -0800
                Re: SPICE tarnsient analysis of oscillators - sampling time Steve Wilson <no@spam.com> - 2019-03-06 09:35 +0000
                Re: SPICE tarnsient analysis of oscillators - sampling time John Larkin <jjlarkin@highlandtechnology.com> - 2019-03-06 07:27 -0800
                Re: SPICE tarnsient analysis of oscillators - sampling time Steve Wilson <no@spam.com> - 2019-03-06 19:51 +0000
                Re: SPICE tarnsient analysis of oscillators - sampling time John Larkin <jjlarkin@highland_snip_technology.com> - 2019-03-06 12:50 -0800
                Re: SPICE tarnsient analysis of oscillators - sampling time Steve Wilson <no@spam.com> - 2019-03-06 22:56 +0000
                Re: SPICE tarnsient analysis of oscillators - sampling time John Larkin <jjlarkin@highlandtechnology.com> - 2019-03-06 20:25 -0800
                Re: SPICE tarnsient analysis of oscillators - sampling time "Kevin Aylward" <kevinRemovAT@kevinaylward.co.uk> - 2019-03-07 18:56 +0000
                Re: SPICE tarnsient analysis of oscillators - sampling time John Larkin <jjlarkin@highland_snip_technology.com> - 2019-03-07 12:05 -0800
                Re: SPICE tarnsient analysis of oscillators - sampling time "Kevin Aylward" <kevinRemovAT@kevinaylward.co.uk> - 2019-03-08 16:12 +0000
                Re: SPICE tarnsient analysis of oscillators - sampling time John Larkin <jjlarkin@highlandtechnology.com> - 2019-03-08 08:37 -0800
                Re: SPICE tarnsient analysis of oscillators - sampling time "Kevin Aylward" <kevinRemovAT@kevinaylward.co.uk> - 2019-03-08 19:25 +0000
          Re: SPICE tarnsient analysis of oscillators - sampling time "Kevin Aylward" <kevinRemovAT@kevinaylward.co.uk> - 2019-03-07 18:55 +0000
        Re: SPICE tarnsient analysis of oscillators - sampling time "Kevin Aylward" <kevinRemovAT@kevinaylward.co.uk> - 2019-03-08 16:13 +0000
          Re: SPICE tarnsient analysis of oscillators - sampling time John Larkin <jjlarkin@highlandtechnology.com> - 2019-03-08 08:40 -0800
            Re: SPICE tarnsient analysis of oscillators - sampling time "Kevin Aylward" <kevinRemovAT@kevinaylward.co.uk> - 2019-03-08 19:25 +0000
              Re: SPICE tarnsient analysis of oscillators - sampling time John Larkin <jjlarkin@highland_snip_technology.com> - 2019-03-08 11:48 -0800
                Re: SPICE tarnsient analysis of oscillators - sampling time Jasen Betts <jasen@xnet.co.nz> - 2019-03-09 02:41 +0000
                Re: SPICE tarnsient analysis of oscillators - sampling time John Larkin <jjlarkin@highland_snip_technology.com> - 2019-03-10 14:33 -0700
                Re: SPICE tarnsient analysis of oscillators - sampling time John Larkin <jjlarkin@highland_snip_technology.com> - 2019-03-10 14:40 -0700
                Re: SPICE tarnsient analysis of oscillators - sampling time Jasen Betts <jasen@xnet.co.nz> - 2019-03-11 07:06 +0000
                Re: SPICE tarnsient analysis of oscillators - sampling time John Larkin <jjlarkin@highlandtechnology.com> - 2019-03-11 07:02 -0700
                Re: SPICE tarnsient analysis of oscillators - sampling time Jasen Betts <jasen@xnet.co.nz> - 2019-03-12 06:44 +0000
                Re: SPICE tarnsient analysis of oscillators - sampling time John Larkin <jjlarkin@highlandtechnology.com> - 2019-03-12 06:47 -0700
                Re: SPICE tarnsient analysis of oscillators - sampling time Jasen Betts <jasen@xnet.co.nz> - 2019-03-12 21:34 +0000
                Re: SPICE tarnsient analysis of oscillators - sampling time John Larkin <jjlarkin@highland_snip_technology.com> - 2019-03-12 15:51 -0700
                Re: SPICE tarnsient analysis of oscillators - sampling time Jasen Betts <jasen@xnet.co.nz> - 2019-03-13 10:05 +0000
                Re: SPICE tarnsient analysis of oscillators - sampling time John Larkin <jjlarkin@highlandtechnology.com> - 2019-03-13 07:22 -0700
                Re: SPICE tarnsient analysis of oscillators - sampling time Jasen Betts <jasen@xnet.co.nz> - 2019-03-14 05:09 +0000
                Re: SPICE tarnsient analysis of oscillators - sampling time John Larkin <jjlarkin@highlandtechnology.com> - 2019-03-14 08:13 -0700
                Re: SPICE tarnsient analysis of oscillators - sampling time Allan Herriman <allanherriman@hotmail.com> - 2019-03-14 05:04 -0500
                RE: Re: SPICE tarnsient analysis of oscillators - sampling time A_george <jcustom@heliost.org> - 2019-03-16 13:13 +0000
                Re: SPICE tarnsient analysis of oscillators - sampling time Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2019-03-16 09:32 -0400
                Re: SPICE tarnsient analysis of oscillators - sampling time Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2019-03-16 09:30 -0400
      Re: SPICE tarnsient analysis of oscillators - sampling time Steve Wilson <no@spam.com> - 2019-03-05 23:14 +0000
  Re: SPICE tarnsient analysis of oscillators - sampling time bloggs.fredbloggs.fred@gmail.com - 2019-03-05 09:56 -0800

csiph-web