Doug,
My question to Mike relates to the effects of varying the Trtol
number. A low number (2) slows simulation but seems to give
better fidelity, it alters the convergence of my 3 term loop
filter, which never reaches an asymptotic value in 1 second
simulated time. with Tritol 5 all works OK and stabilises by
1 second. With Tritol 10 the oscillation never builds above
an initial value.
Which is correct?
They're probably all correct within some tolerance. Usually,
the lower the tolerance, the slower and more accurate the
solution. This sounds like the situation you're in from
your story.
There's limits to how well you can expect stability of simulation
to be meaningful. Real oscillators have some form of agc due if
for no other reason than limiting. One example that helps some
people get a grip on how accurate they can expect a simulation to
be that deals with oscillation is this deck:
*
L1 1 0 10u
C1 1 0 1000p
..ic V(1)=1
..tran 3m 3m skipbp
..probe
..end
The oscillation will die away in a hundred cycles or so(depending
on timestep size) with Gear integration. With trap, it can go
an quite a while. While I'm not a fan of Gear integration, it is
an accepted method and is "correct" to some level of tolerance.
BTW, in LTspice you have to make sure that the default damping
supplied for inductors is turned off for the oscillations to run forever,
though this damping is usually less of an error then you get with
an integration method like Gear.
When you simulate oscillators, one approach is to see the whole
thing oscillate in SPICE. You are then very sensitive to the
accuracy of the numerical methods used. While LTspice is the
most accurate that I know of, it's still might be a better approach
to break the loop and separately look at the transfer and agc
functions. Sometimes that can let you look directly at the
function of oscillator that you can design.
--Mike