Keyboard Shortcuts
Likes
- LTspice
- Messages
Search
Square wave into a bridge rectifier (by member "FlightRisk")
Someone named "FlightRisk" attempted to send a message to the [LTspice] group an hour ago, wondering why there are "wild voltages and currents" with her/his rectifier circuit.? But they probably did not read the group's main webpage, and ignored the advice to NEVER USE ATTACHMENTS in messages.? So their message was rejected.
FlightRisk, if you have a schematic to show us, please upload it to the "Temp" folder in the group's?Files section.? Then tell us that you did it.? If you have pictures, we are not interested, so please don't upload them.? All we need is your schematic.? It's a *.ASC file.? By running the simulation, we can see the same thing you saw, making pictures unnecessary.? But if you absolutely need to show pictures, they should be uploaded to the group's Photos section.? However, the schematic (ASC file) is worth 1000 pictures. I'm guessing here, but there is a fair chance that you did not pay attention to your grounds.? The bridge rectifier should not be grounded on both sides of the rectifier, so you need to pay attention when plotting those voltages.? Plotting ground-referenced voltages on the side that doesn't have a ground, just messes up the plots.? If you did ground both sides of the rectifier, the short circuit you added probably messes it up.? Alternatively, if your source includes a transformer, the transformer's SPICE model might be ringing in response to the square waves.? Also transformers can be tricky to simulate because the source "turns on" instead of running continuously.? Best to see your schematic (*.asc file). We might not hear back from FlightRisk for a while, not because of their name but because they set their email delivery to the daily summary. Andy |
Re: Difference between finding DC point before AC, and pure DC simulation
Over the years I've noticed all versions of SPICE appear to use different algorithms to solve the DC bias point for .dc, .ac, and .tran analyses.
The use of the .savebias and .loadbias commands can be useful, especially for circuits that take a long time to converge to a DC solution. Often times the .tran command finds the DC solution faster than the .DC - in this case the .savebias time=xyz is useful. I seem to recall needing to make sure the options in the simulator are set to save all node voltages and currents if using subcircuits. |
Re: Transformer models WAS: New Simulator Written by Mike Engelhardt
#Transformer
I would separate this in two answers: 1) if you are getting from a manufacturer a standard transformer- ask your manufacturer for supporting you with measured data about the specifications given.And the simulation model parameter. Additional also on getting the coupling capacitance primary to secondary. As this is your pain point later on in EMI.... If they can?t support you- then you have to measure it on your own. How to do? Please see book "Trilogy of Inductors", 5th edition, section I.4.3 Transformer Parasitic parameter and equivalent circuit, pg. 121ff. 2) for a customized transformer ? Well, with same target specifcations, you will find different solutions by winding arrangement, insulation layer, core material, bobbin, etc etc. This all has an impact on the final specfcations. And so also on the parasitics incorporated in the individual design. The best way then is to measure the sample as described above. Everything else, is guessing... ? |
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:
|