Keyboard Shortcuts
Likes
- LTspice
- Messages
Search
Re: Difference between finding DC point before AC, and pure DC simulation
This is something that has puzzled me too, for years, but I did not figure out how.? Also there are cases where the initial operating point solution needed for .TRAN differs.??I think the algorithms are essentially the same, but with subtle difference in some settings.? (Maybe some of the .options, ITLn for example.)? Also, a .DC sweep likely starts from a different initial DC value, and then sweeps through the point that you're using for the .AC simulation, which gives .DC an advantage.? If your circuit has trouble converging on the operating point, it matters where it is coming from, and what were the initial guesses.
When SPICE finds the operating point, whether it's for .OP or .DC or .AC or .TRAN or .NOISE, I believe all the capacitors are removed and all inductors replaced by shorts (but accounting for their parasitics).? It's the "finds DC solution" step that you need to worry about. Andy |
Re: Ohms/volt? (was: Spark gap physics.)
Ohms per volt is a figure of merit for moving coil voltmeters. The number is dominated by the resistance of the moving coil; that is the input resistance on the most sensitive scale divided by the full scale voltage. Resistive dividers are then used for less sensitive scales, and the ohms per volt value is retained for higher voltage scales so long as the scaling is done with a simple series resistance.?
When basic electronic analog volt meters came along, the input resistance tended to be the same on all voltage scales and that figure of merit was no longer significant. That is also true of modern DVMs. Jim Wagner |
Difference between finding DC point before AC, and pure DC simulation
Hello!
Question is simple, I have a circuit (I can't upload it here due to company restrictions unfortunately), and it perfectly converges in DC analysis, even if I start it not from the zero voltages point, but AC analysis with .step command to get capacitance curve failed at DC solution. Transient analysis also works perfectly, so the point is - what is the difference between DC analysis and DC solution before AC analysis? As I understand, to simulate AC, program exclude capacitances and inductances, finds DC solution, and the does phasor analysis with C and L included, so I don't see any difference between conventional DC analysis and this step before AC. Thank you in advance. |
Re: Transformer models WAS: New Simulator Written by Mike Engelhardt
#Transformer
Jerry,
?
Thanks for your comment, I didn't know that the inductance decreases at higher frequencies.
The modification of the model to correctly reflect the decreases at higher frequencies is beyond my expertise. I leave that to someone else.
But I think my model is already a big step forward compared to using a bunch of coupled coils with odd values on the schematics.? ?
Ite |
Re: Ohms/volt? (was: Spark gap physics.)
开云体育Ohms being Volts per Ampere, Ohms per Volts would resolve as
1/Ampere. Le 20/07/2023 à 09:29, John Woodgate a
écrit?:
|
Re: Ohms/volt? (was: Spark gap physics.)
开云体育Equal to x peramps?? While
resistance, capacitance, reactance and impedance have inverse
units (conductance, elastance, susceptance and admittance), I
don't know of any for inductance, voltage or current. ======================================================================================
Best wishes John Woodgate OOO-Own Opinions Only Rayleigh, Essex UK I hear, and I forget. I see, and I remember. I do, and I understand. Xunzi (340 - 245 BC) On 2023-07-20 05:15, Richard Andrews
via groups.io wrote:
Is there such a thing as x ohms/volt? |
Re: Ohms/volt? (was: Spark gap physics.)
开云体育Well, it’s the reciprocal of current, which is a rather obscure unit. It used to be common as a figure of merit for (analog, moving coil!) milli- or micro-ammeters. The higher the number, the greater the sensitivity of the movement, and the lower the load a voltmeter using that microammeter places on a measurement. A decent analog multimeter like a Fluke would be rated 20,000 Ohms per Volt. ? From: [email protected] <[email protected]> On Behalf Of
Richard Andrews via groups.io
Sent: Wednesday, July 19, 2023 9:16 PM To: [email protected] Subject: EXTERNAL: Re: [LTspice] Spark gap physics. ? Is there such a thing as x ohms/volt? |
Re: Transformer models WAS: New Simulator Written by Mike Engelhardt
#Transformer
开云体育To be clear, I am not talking
about the sort of 'design' posted by ik.weide. I mean choosing
the core size and material, and the number of turns of the
gauge of wire that will fit on the bobbin. ======================================================================================
Best wishes John Woodgate OOO-Own Opinions Only Rayleigh, Essex UK I hear, and I forget. I see, and I remember. I do, and I understand. Xunzi (340 - 245 BC) On 2023-07-18 15:06, John Woodgate
wrote:
|
Re: Is there a way to make node numbers appear on LTSpice schematics?
开云体育On 19/07/2023 15:16, Tony Casey wrote:Functions defined in the schematic cannot be used in the waveform viewer. Similarly, parameters cannot be used either, unless they are stepped, then they can be accessed through the same syntax as in the schematic, by wrapping them in braces.Although wrapping parameters in braces works, it's actually not necessary - NF(Rsrc) works as well as NF({Rsrc}), in my example. I guess this is because Rsrc appears in the list of waveforms available to plot. --
Regards, Tony |
Re: Is there a way to make node numbers appear on LTSpice schematics?
开云体育On 19/07/2023 12:25, Andy I wrote:marcel asked, "Is it possible to use parameters and functions defined on the schematic (not in plot.defs) in the waveform viewer?"Functions defined in the schematic cannot be used in the waveform viewer. Similarly, parameters cannot be used either, unless they are stepped, then they can be accessed through the same syntax as in the schematic, by wrapping them in braces. In addition, special parameters and constants that the waveform viewer understands, like Freq(uency), Omega, Q and K are not understood in the schematic. Pi is an exception, but not E (Euler's number). LTspice definitely used to only read plot.defs when it was started, and changes were not active until LTspice was restarted. This is also true for library folders. If you add a folder (outside of LTspice) in LTspice's library tree while LTspice is running, it is also not available until after a restart. I just checked again with 17.1.9, and found that you still have restart LTspice for changes in plot.defs to be available. I could have sworn that you now didn't, so my earlier comment doesn't stand. The other thing I have found is that if you edit plot.defs within LTspice when the waveform viewer contains a trace that uses one of its function, LTspice reliably crashes. If you delete the offending trace before editing, it doesn't crash. This is while using Wine. It might be different in Windows. The behaviour is the same for 17.0.36 and 17.1.9. Perhaps someone can check this behaviour in Windows, before I submit a bug report? --
Regards, Tony |
Re: Transformer models WAS: New Simulator Written by Mike Engelhardt
#Transformer
开云体育Actually inductance also varies with level. These are the "magic"
properties of iron cores. Basically, shaking the magnetic domains
is more difficult at the start of the magnetization curve (until
it reaches saturation), and more difficult as frequency increases.
There are models for simulation of the inductance vs. level (see
Chan modle), but I'm not aware of models for simulation of
inductance vs. frequency. Le 19/07/2023 à 13:04,
grassrake@... a écrit?:
|
Re: Is there a way to make node numbers appear on LTSpice schematics?
On Tue, Jul 18, 2023 at 11:25 PM, Andy I wrote:
You have the mind of an ADI engineer. Indeed, it does not work when using an external editor :--) -marcel |
Re: Transformer models WAS: New Simulator Written by Mike Engelhardt
#Transformer
开云体育It depends how you measure
inductance. A real inductor has series resistance (copper
loss) and parallel resistance (iron loss).? You can measure in
two ways? - as a series RL network and as a parallel RL
network.? Neither gives you the true behaviour over a large
frequency range. You can model this in LTspice to see what
happens. ======================================================================================
Best wishes John Woodgate OOO-Own Opinions Only Rayleigh, Essex UK I hear, and I forget. I see, and I remember. I do, and I understand. Xunzi (340 - 245 BC) On 2023-07-19 12:04,
grassrake@... wrote:
|
Re: Transformer models WAS: New Simulator Written by Mike Engelhardt
#Transformer
Jerry, What causes a transformers inductance to decrease with increasing frequency? It sounds like my model of how audio transformers work is too simple. ? --? Gavrik On Wed, Jul 19, 2023 at 2:31?AM Jerry Lee Marcel <jerryleemarcel@...> wrote:
|
Re: Is there a way to make node numbers appear on LTSpice schematics?
marcel asked, "Is it possible to use parameters and functions defined on the schematic (not in plot.defs) in the waveform viewer?"
I do not believe you can.? If there is some ability to do that, it is limited. I almost never use a plot.defs file.? At some point I had one, but then I realized that the whole point of plot.defs is to make one's LTspice work differently than everyone else's, which is something I did not want to do.? But that's me. If they (ADI?) changed how or when the plot.defs file was read (e.g., when making a plot vs. only when starting LTspice, or reading it again when saving it), it might have been an inadvertent change that they thought didn't need an announcement.? That is, if it changed at all.? It's also possible that it always behaved this way, and nobody noticed or cared since so few people use a plot.defs file.? Since you guys have more experience with plot.defs files, I guess you would know if it changed. Also I think it would make sense that LTspice knows immediately about changes that you make to the plot.defs file, if you made them from within LTspice's plot.defs editor (via the "Edit Plot.Defs File" tool).? But if you edit your plot.defs with an external editor, LTspice would not know about it unless it opens the file again.? That is consistent with editing the standard.xxx files -- LTspice knows the changes if you made them from within LTspice's editor and you don't need to restart LTspice.? But if edited in an external editor, LTspice doesn't know until it is restarted. Andy |
Re: Transformer models WAS: New Simulator Written by Mike Engelhardt
#Transformer
开云体育The only issue I see with that is that it doesn't take into
account the fact taht inductance decreases as frequency increases. Le 18/07/2023 à 18:31,
ik.weide@... a écrit?:
For those who are interested in modelling tube amplifiers and the output transformers used:?I have a thread on DIYaudio? with easy to use LTspice transformer models. |
Re: Is there a way to make node numbers appear on LTSpice schematics?
开云体育You're right. Changes to plot.defs are now immediately effective in 17.1.9. When this happened - I don't know, either.The lack of a mention in the ChangeLog is maybe because hardly anyone even knows about plot.defs, let alone uses it. I guess they have a threshold for whether things are documented there, or not. Thanks for spotting this! --
Regards, Tony On 19/07/2023 09:06, mhx@... wrote:
I can answer my own question: editing the plot.defs file *immediately* has effect. (I reran the simulation before trying but did not restart LTspice.) Why don't they document these useful enhancements? Is it in any of the LTspice books or tutorials? I'm almost certain I tried this before with LTspiceIV and it didn't work. |