Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Simulataneously run a number of independent energyplus simulations on multiple cores on Linux.

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/docs/8-4/tips-and-tricks-using-energyplus/run-energyplus-in-parallel.html

(2) "Script for multiple simulations" post on this forum: https://unmethours.com/question/4668/script-for-multiple-simulations/

(3) "How to run EnergyPlus in multi-core cluster(Linux)?" post on this forum https://unmethours.com/question/31609/how-to-run-energyplus-in-multi-core-clusterlinux/

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.

Simulataneously run a number of independent energyplus simulations on multiple cores on Linux.

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/docs/8-4/tips-and-tricks-using-energyplus/run-energyplus-in-parallel.html

(2) "Script for multiple simulations" post on this forum: https://unmethours.com/question/4668/script-for-multiple-simulations/

(3) "How to run EnergyPlus in multi-core cluster(Linux)?" post on this forum https://unmethours.com/question/31609/how-to-run-energyplus-in-multi-core-clusterlinux/

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.

Simulataneously run a number of independent energyplus simulations on multiple cores on Linux.

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/docs/8-4/tips-and-tricks-using-energyplus/run-energyplus-in-parallel.html

(2) "Script for multiple simulations" post on this forum: https://unmethours.com/question/4668/script-for-multiple-simulations/

(3) "How to run EnergyPlus in multi-core cluster(Linux)?" post on this forum https://unmethours.com/question/31609/how-to-run-energyplus-in-multi-core-clusterlinux/

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.

Simulataneously run a number of independent energyplus simulations on multiple cores on Linux.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/docs/8-4/tips-and-tricks-using-energyplus/run-energyplus-in-parallel.html

(2) "Script for multiple simulations" post on this forum: https://unmethours.com/question/4668/script-for-multiple-simulations/

(3) "How to run EnergyPlus in multi-core cluster(Linux)?" post on this forum https://unmethours.com/question/31609/how-to-run-energyplus-in-multi-core-clusterlinux/

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.