Imposing a timestep does not make it faster, and if you need speed and accuracy, I'm afraid that's not very possible.
There are some TVSs in series, quite a lot of them, which can be replaced by one TVS with n=X
(= the number of series elements). If we're at it, m=Y
will set the number of parallel devices. Note that only m
is valid for RLC
s, n
only for diodes. This can simply be added after the instance name. For example, two series and three parallel 4148s will look like 1N4148 n=2 m=3
. They will not count towards the final node count because they're expanded internally, but they will count towards the computation, since LTspice still has to compute the presence of 6 diodes.
For the floating V5
, if that is one offending element (which could be, since LTspice even specifies in its manual that current sources are recommended over their voltage counterparts and voltage sources should be tied to ground for best performance), the cure is simple: add Rser=1m
. This will transform, also internally, the voltage surce into its Norton equivalent, thus improving convergence.
You can also combine series RL
with L Rser=x
, same for caps, same for parallel and/or series combinations. Same explanation as for the TVS.
As for settings, you're better off making trtol=3..7
instead of the others. There will be a (minor, -ish) speedup, depending on your hardware and schematic, while the precision doesn't have tham much of an impact as gmin
, reltol
and abstol
have.
There is one more thing that puzzles me: in one of the comments, someone suggests using current sources instead of optocouplers, and you say you tried. This makes me think accuracy, or keeping to a quasi-real setup, is not that important to you, which means you could simplify theLC
filter after V5
into it's simple LC
lowpass (i.e. don't make it a symmetric filter), but the biggest simplification can be done to the whole bridge and its control circuitry: you can simply use some G
(or E
) sources driving the native switch SW
. The SW
may need some anti-parallel diodes. Speaking of which, you can also replace the diodes with the idealized version, having .model D D Vfwd=0.7 Vrev=1k Ron=0.1 Roff=10Meg epsilon=100m revepsilon=50m
, or Vfwd=0.5
for Shottky. I see two anti-parallel diodes, those could be replaced by only one diode with Vfwd=Vrev
. Zeners also with Vrev=X
. Of course, all these imply using an idealized, or a behavioural approach to all your schematic and, while it's very plausible and used for quick tests, you should not forget that the downside is the unrealistic results, even when modeled with great care. You could get good results, but they shouldn't be relied on, as even a schematic made with "real" elements is only a SPICE simulation using models that, themselves, are approximation of real-life cases. Of course, ultimately, it falls on you to choose your way.
Best Answer
In a typical multi data point analysis (e.g.
.ac
or.tran
), the waveform viewer pops up and you can do all sorts of waveform arithmetic using the various node voltages and branch currents which were calculated during the simulation. You can actually do the same thing with a single data point analysis, but it's not as intuitive.First, your method of doing a single DC data point is a little goofy. You're doing a DC sweep with one data point, and as mentioned in the comments the
.print
commands don't do anything. A typical single DC data point simulation is done using the.op
command:Now, there are a couple ways to get to the arithmetic/expression commands after the simulation runs. First is to right-click in a blank area on the sheet and select the
Draft --> .op Data Label
button.After doing so, you'll get a triple question mark thingy you can put somewhere on the schematic. If you put it on a node, it will display that node voltage's to ground. Instead of doing that we will put it off to the side in the middle of nowhere.
If we right-click that
???
label we can now edit the expression to say anything we want. If we replace the$
that's there with-V(1)
and hitOK
that label will now display the negative ofV(1)
.The alternative way to generate
.op
labels is to click on any non-ground node to automatically generate a label, and simply edit it...or even better to move it off to the side before editing it so it's not ambiguous. Either way of generating the label is equivalent. These methods are also used to display branch currents and power dissipation on the schematic during an.op
simulation, as shown below: