Electronics > Projects, Designs, and Technical Stuff
Running simulations in parallel with LTSpice
Palmitoxico:
Hi!
I've been using LTSpice to optimize a switching voltage regulator design and I need to obtain performance caracteristics like ripple voltage, efficiency, etc, for different loads. I've been using the .step param command to sweep between diferent loads. The simulation takes arround 15 minutes to complete and uses up to 4 CPU cores. I have a 8 core 16 thread machine and I'm wondering if LTSpice has a command or option to run the simulations in parallel since these are completely independent from each order. I could open different LTSpice instances but it is a little cumbersome to do so.
Any tips?
SiliconWizard:
Not that I know of.
LTSpice will run step'ed simulations in sequence.
langwadt:
--- Quote from: Palmitoxico on May 17, 2020, 03:33:39 pm ---Hi!
I've been using LTSpice to optimize a switching voltage regulator design and I need to obtain performance caracteristics like ripple voltage, efficiency, etc, for different loads. I've been using the .step param command to sweep between diferent loads. The simulation takes arround 15 minutes to complete and uses up to 4 CPU cores. I have a 8 core 16 thread machine and I'm wondering if LTSpice has a command or option to run the simulations in parallel since these are completely independent from each order. I could open different LTSpice instances but it is a little cumbersome to do so.
Any tips?
--- End quote ---
run a multiple instance of LTspice with copies of the design each with parts of the different sims ?
SiliconWizard:
--- Quote from: langwadt on May 17, 2020, 04:11:44 pm ---run a multiple instance of LTspice with copies of the design each with parts of the different sims ?
--- End quote ---
I think the OP mentioned that and said it was cumbersome, which it definitely is.
To make this a little less cumbersome, you could launch LTSpice in batch mode through the command line:
http://ltwiki.org/LTspiceHelpXVII/LTspiceHelp/html/Command_Line_Switches.htm
and put that in some script/batch file.
Note that to make all sims run in parallel, on something like Linux, you'd add a "&" at the end of the command line. I don't remember how to do this on Windows in a batch file (otherwise, it will just run consecutive commands in sequence, which is not what you want.)
Palmitoxico:
--- Quote from: SiliconWizard on May 17, 2020, 03:54:21 pm ---Not that I know of.
LTSpice will run step'ed simulations in sequence.
--- End quote ---
:(
--- Quote from: langwadt on May 17, 2020, 04:11:44 pm ---run a multiple instance of LTspice with copies of the design each with parts of the different sims ?
--- End quote ---
I mentined it in my original post. I was hopping that maybe someone known a better solution.
--- Quote from: SiliconWizard on May 17, 2020, 04:17:59 pm ---To make this a little less cumbersome, you could launch LTSpice in batch mode through the command line:
http://ltwiki.org/LTspiceHelpXVII/LTspiceHelp/html/Command_Line_Switches.htm
and put that in some script/batch file.
Note that to make all sims run in parallel, on something like Linux, you'd add a "&" at the end of the command line. I don't remember how to do this on Windows in a batch file (otherwise, it will just run consecutive commands in sequence, which is not what you want.)
--- End quote ---
I'm running LTSpice though wine. I'll try using it in batch mode as you mentioned + some bash magic. It is not ideal (I will need to create one schematic variant for each instance), but at least I get my simulation results quicker.
Thanks!
Navigation
[0] Message Index
[#] Next page
Go to full version