Simultaneously run a number of independent EnergyPlus simulations on multiple cores on Linux via a script.
Dear all,
I would like to run simultaneously a number of independent energyplus simulations on multiple cores on Linux.
There are several sources of information that explain how to do this (1-3 below)
Ref (1) explains that the energyplus executable, a number of files and windows libraries are copied in the directory where energyplus is to be executed using default idf and weather files (in.idf, in.epw).
Ref (2), for example @__AmirRoth__'s reply suggest the following script in order to run multiple energyplus simulations:
for i in glob('*.idf'):
for w in glob('*.epw'):
subprocess.call(["EnergyPlus -p %s -w %s %s" % (i[:-len('.idf')] + '_' + w[:-len('.epw')], w, i)])
My understanding is that the subprocess.call() spawns a new process, which should run independently and in parallel of the previosly spawned similar processes.
Since this solution appears be exactly what I need, but at the same time does not explicitly copy the files and libraries requested in (1), a doubt arises:
can we execute parallel and independent energyplus simulations in this way (without copying any libraries and files as in (1)) under Linux?
if it is possible, any experiences shared would be greatly appreciated;
if not possible, what would be the required files and libraries to be copied under Linux and again, any experiences shared would be greatly appreciated
Thank you.
(1) "Run EnergyPlus in Parallel" on BigLadder or energyplus documentaion: https://bigladdersoftware.com/epx/doc...
(2) "Script for multiple simulations" post on this forum: https://unmethours.com/question/4668/...
(3) "How to run EnergyPlus in multi-core cluster(Linux)?" post on this forum https://unmethours.com/question/31609...
P.S. I have asked a more concise question with similar content below Amir Roth's comment in (1), but thought that a separate discussion might be a better idea.