Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
- LTspice
- Messages
Search
Re: Weird results DC operating point for Tube amplifier
On Thu, Feb 20, 2025 at 06:55 AM, Andy I wrote:
I apologize, it was just a mistake/misunderstanding from mine. ?
Yes, I can say that the output signal waveform looks pretty good (although its mean/average value changes slightly even after 60 seconds). Sorry, sometimes I'm in trouble with English :-( ? |
Re: Weird results DC operating point for Tube amplifier
On Thu, Feb 20, 2025 at 09:43 AM, Carlo wrote:
OK -- so the question still remains: ?
Does the output signal look "not good at all", as you claimed earlier?
?
Why do you say it doesn't look good?? What about it does not look good?
?
Admittedly it has more distortion, especially in the even harmonics.? But is it bad enough to not be acceptable?? The waveform looks good in a waveform plot, but human eyes are not good about spotting imperfections with our eyes.? Why do you say it is not good?
?
Andy
?
? |
Re: Weird results DC operating point for Tube amplifier
On Thu, Feb 20, 2025 at 06:30 AM, Andy I wrote:
My thought is that if the average voltages look about right, then probably what you simulated is reasonably accurate, and "what you get is what you get" - meaning that if it looks bad, it probably really is bad.? If it's bad, maybe the circuit design is the reason.Yes, sorry for the confusion, you are right. The averaged voltages & currents about 60 seconds from the beginning of both .TRAN 60 UIC and .TRAN 60 Startup analysis look right. As you highlighted "what I get is what I get", maybe just the circuit design is the reason ! ?
Thank you. |
Re: LTspice 24.1 Simulation Errors
¿ªÔÆÌåÓýOn 20/02/2025 15:19, Andy I via
groups.io wrote:
That implies that different code is executed after a certain depth. That doesn't sound like the right thing to do. That "recursive" thing has popped up again. Proper recursive sub-routines should, in principle, recurse to infinite depth, limited only by memory. I guess one might add a sanity check at some level of arbitrarily defined depth. But three sounds way too conservative. As a practical bloke, I might check your theory.? :-) -- Regards, Tony |
Re: Weird results DC operating point for Tube amplifier
Carlo,
?
I am still confused.? Earlier you wrote that your output signal "doesn't look good at all" with .TRAN 60 UIC.
?
Later you wrote that .TRAN 60 Startup "looks good either".? Huh?
?
To me, they look exactly the same.
?
You also wrote that the "DC" (average) voltages near 60 seconds look right.
?
I am trying to determine whether the signals look good, or not good.? Can you please explain?
?
My thought is that if the average voltages look about right, then probably what you simulated is reasonably accurate, and "what you get is what you get" - meaning that if it looks bad, it probably really is bad.? If it's bad, maybe the circuit design is the reason.
?
Andy
?
? |
Re: LTspice 24.1 Simulation Errors
Hello All:
?
I learned from experience.
24.1 flagged a slew of my user.xxx type .models as bad.
And they were; mostly missing spaces between parameters and parenthisis issues.
This never happened before.
I've had those user libraries for a long time and no previous version ever complained.
?
It's appearant that 24.0.x and backwards only parsed .models that were used in a design.
If any unused models in the same file were bad, one would never know.
Now I realize that 24.1.x parses all .models within the entire file, for example all transistors in user.bjt.
24.1 also found errors in my user.jft file and I had no junction FETs in my project.
It appears that 24.1 has changed to parsing every .model in every user.xxx file.
?
Perhaps this new syntax checking behavior now extends to .subckt libraries as well?
Broken .subckt models may have not been parsed in the past because they were unused.
?
Mathias probably knows the answer.
?
All for now ?
?
Sent:?Thursday, February 20, 2025 at 7:54 AM
From:?"Mathias Born via groups.io" <mathias.born@...> To:[email protected] Subject:?Re: [LTspice] LTspice 24.1 Simulation Errors On Thu, Feb 20, 2025 at 12:26 PM, Tony Casey wrote:
If a top level parameter is not re-defined beneath the top level, its value will cascade down the hierarchy. Perhaps, it is this behaviour that has changed in 24.1? I haven't had the chance to investigate this further yet. This would represent a significant change in the assumed architecture.That's exactly what happens. Nothing was changed. |
Re: Weird results DC operating point for Tube amplifier
On Thu, Feb 20, 2025 at 05:40 AM, Andy I wrote:
There is some feedback from the audio signal into the heater voltage. Was that intentional?? Or just an undesirable side-effect?? I don't expect it would have very much effect on the heater's temperature (and from there to the triode's characteristics), but it looks undesirable to me. Should there be filtering?Sorry, are you asking whether the audio signal feedback into the heater voltage comes from a design intentional choice ? Actually I don't know since I took it from the schematic of a commercial audio amplifier (Bravo Ocean). |
Re: LTspice 24.1 Simulation Errors
On Thu, Feb 20, 2025 at 08:57 AM, Tony Casey wrote:
I don't believe that LTspice 24.1 shouldn't have complained, if VCC was assigned in the top-level schematic. It is not re-defined anywhere in the 74LVC1G library. That being so, it is perfectly legal syntax to use it anywhere. Well, there may be one caveat.? If I remember correctly, Mike Engelhardt said that parameter values do not descend infinitely far down into their subcircuits, like you think they ought to.? I think he said it goes down only three(?) levels deep.
?
That was and is really disturbing.? I never took the time to verify it.
?
Andy
? |
Re: Weird results DC operating point for Tube amplifier
It's been discussed and argued, and stated by Analog Devices's experts with the LTspice code, that LTspice should be entirely deterministic, with no randomness in simulations unless the user actually adds it.? One of the tools sometimes used to solve systems of equations, is adding a little randomness into the mix.? The randomness can steer the solver one way or the other, thus potentially avoiding difficult solutions.? But we are assured that LTspice does not do that.? As far as I am aware, SPICE itself (from Berkeley) did not either.? As far as I know, "numerical noise" also does not exist in the sense that repeated runs through the same code should be exactly the same, down to the very last bit.? Even "round-off errors" are exactly predictable and repeatable.
?
If I remember correctly, ADI also said that LTspice code did have some unintended non-determinism, and that these have been (or are being) cleaned up in recent LTspice releases.
?
Over the years I have seen cases where LTspice simulated differently on repeated runs.? We know it should not have done that.? My guess is that I was witnessing some of those unintended bugs that ADI has been fixing.
?
Maybe they are not all fixed yet.? (And as they say, you can't get rid of ALL bugs.)
?
Or maybe you (Jerry Lee Marcel) had certain settings set, the first time you tried this simulation, which caused your simulation to converge correctly right "out of the box" the first time, but not a day later when you fired up LTspice again and it had reverted back to your default settings.? Who knows?
?
Andy
? |
Re: Weird results DC operating point for Tube amplifier
On Thu, Feb 20, 2025 at 05:40 AM, Andy I wrote:
What I mean is, what do the steady-state DC voltages look like, and are they correct or incorrect for your circuit?? I was not referring to the INITIAL voltages at the start of the transient simulation. When the simulation is near 60 seconds and reached steady-state, do the bias voltages look right, or wrong?Ok, by "bias voltages" you mean actually the mean value of the voltages averaged for instance over a time period of the source signal (e.g. averaged over a 1ms interval for a 1Khz source signal). Near 60 seconds from the beginning of .TRAN 60 UIC analysis, the heater's voltage and current looks good. ?
Ok yes, for instance the MOSFET's gate and source mean (DC bias) voltages (and current) near 60 seconds look good.
? |
Re: LTspice 24.1 Simulation Errors
¿ªÔÆÌåÓýOn 20/02/2025 14:57, Tony Casey wrote:
I don't believe that LTspice 24.1 shouldn't have complained, if VCC was assigned in the top-level schematic.It should be obvious, but due to a typo, it might not be - it should have been: I don't believe that LTspice 24.1 should have complained, if VCC was assigned in the top-level schematic. -- Regards, Tony |
Re: LTspice 24.1 Simulation Errors
¿ªÔÆÌåÓýOn 17/02/2025 09:22, herman.vos via
groups.io wrote:
I don't believe that LTspice 24.1 shouldn't have complained, if VCC was assigned in the top-level schematic. It is not re-defined anywhere in the 74LVC1G library. That being so, it is perfectly legal syntax to use it anywhere. It may well be that it was intended that the highlighted VCC should have been VCC3, but in actual fact, it makes no difference as VCC ¡ú VCC1 ¡ú VCC2 ¡ú VCC3 as you descend the hierarchy. This feature of the library was inherited from the 74HC and 74HCT libraries, originally written by Helmut Sennewald. I suspect this was deliberately done as an aid to debugging as the design of the library hierarchy evolved, and was never changed. So I saw no reason to change it either. The CD4000 libraries were similar, except that the base parameter used was VDD, instead of VCC. It can cause problems, particularly if users either deliberately, or by accident, don't use the accompanying symbol library with the VCC parameter named in each symbol, with users then trying to figure out what parameters should be specified in the top level schematic. If they would use the example schematic as a template, it would never arise. This is a fuss over nothing. -- Regards, Tony |
Re: Weird results DC operating point for Tube amplifier
On Thu, Feb 20, 2025 at 03:54 AM, Jerry Lee Marcel wrote:
Do you mean your .TRAN ITS solution (i.e. DC operating point) step returns 26V @ -166mA on the heater's pins ?
A different timestep employed by .TRAN card for transient analysis can't explain that weird (non physical/nonsensical) result for the ITS solution. |
Re: Weird results DC operating point for Tube amplifier
On Thu, Feb 20, 2025 at 05:22 AM, Carlo wrote:
(netlist code deleted for brevity) ?
Yes, that is the heater's model.? But there is also a "connection" from inside that netlist code, to the triode.? Presumably, that connection brings the heater's temperature to the triode, where it affects the triode's electrical characteristics.? I think many of the node voltages inside the heater model represent temperature, and there are thermal time-constants.
?
Andy
? |
Re: Weird results DC operating point for Tube amplifier
On Thu, Feb 20, 2025 at 05:22 AM, Carlo wrote:
What I mean is, what do the steady-state DC voltages look like, and are they correct or incorrect for your circuit?? I was not referring to the INITIAL voltages at the start of the transient simulation.? When the simulation is near 60 seconds and reached steady-state, do the bias voltages look right, or wrong? ?
I meant the voltages in your circuit, at some or any or all circuit nodes.? Were the FET's gate and source DC (bias) voltages about right, when near 60 seconds?? Or were they wrong? ?
There is some feedback from the audio signal into the heater voltage.? Was that intentional?? Or just an undesirable side-effect?? I don't expect it would have very much effect on the heater's temperature (and from there to the triode's characteristics), but it looks undesirable to me.? Should there be filtering?
?
So, if .TRAN 60 UIC looks bad, but .TRAN 60 Startup looks good, then it should be obvious which one to use and which one to avoid. ?
But you added the word "either"!? I don't understand.? Did I misunderstand you?
Yes, "Startup" applies only to the DC value of independent sources.? I believe "sources" means both voltage and current sources.? (You can try it and see what it does.)
?
Note that it does not apply to independent sources inside of subcircuits.? That's why it has the word "external".? I believe LTspice does that because sources inside subcircuits are likely parts of models and how they work, and not the sources that supply power to the circuit.? LTspice wants to start only the main power sources at 0 and then ramp them up, but not modify what's inside the models.
?
Andy
? |
Re: LTspice 24.1 Simulation Errors
On Thu, Feb 20, 2025 at 12:26 PM, Tony Casey wrote:
If a top level parameter is not re-defined beneath the top level, its value will cascade down the hierarchy. Perhaps, it is this behaviour that has changed in 24.1? I haven't had the chance to investigate this further yet. This would represent a significant change in the assumed architecture.That's exactly what happens. Nothing was changed. |
Re: Weird results DC operating point for Tube amplifier
¿ªÔÆÌåÓýWell, I have not much to tell. The simulation worked right from day one, with 5.8V on the heater. However, just right now, running the simulation gave the same erroneous results as mentioned by many, with 26V on the heaters (weird from a 24V source). BUT, running the sim for 60 seconds shows the voltage
oscillating, to more or less stabilize at about 5.8V. The peaks
never go above 15V. I'm no expert, but I suspect the different timesteps explain the
different results. Le 20/02/2025 ¨¤ 12:19, Carlo a ¨¦crit?:
|
Re: LTspice 24.1 Simulation Errors
¿ªÔÆÌåÓýOn 17/02/2025 17:28, Andy I via
groups.io wrote:
These are good questions.? I can't answer them without examining the models more closely.? But if it's true that there was no parameter named "VCC", then all versions of LTspice should have / would have complained bitterly about that and refused to run.? LTspice would not ever have substituted a different parameter, whether or not it had a similar name.This was never the case. "VCC" is the required top level parameter in 74LVC1G, just as with 74HC and 74HCT etc.. If it is not set, LTspice (all versions) will set an error. If a top level parameter is not re-defined beneath the top level, its value will cascade down the hierarchy. Perhaps, it is this behaviour that has changed in 24.1? I haven't had the chance to investigate this further yet. This would represent a significant change in the assumed architecture. -- Regards, Tony |
to navigate to use esc to dismiss