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

Same results for different IDF when simulated using EnergyPlus API

Hi,

I have 4500 different IDFs with different configuration.

I have to simulate it using API and cannot use traditional group simulation.

I use 'for' loop to go through 4500 IDFs and save the resulting CSV results file in a separate folder with different name.

However, all of those files have the same results. How can I solve this issue?

Thanks for your time!

Same results for different IDF when simulated using EnergyPlus API

Hi,

I have 4500 different IDFs with different configuration.

I have to simulate it using API and cannot use traditional group simulation.

I use 'for' loop to go through 4500 IDFs and save the resulting CSV results file in a separate folder with different name.

However, all of those files have the same results. How can I solve this issue?

Thanks for your time!

Same results for different IDF when simulated using EnergyPlus API

Hi,

I have 4500 different IDFs with different configuration.

I have to simulate it using API and cannot use traditional group simulation.

I use 'for' loop to go through 4500 IDFs and save the resulting CSV results file in a separate folder with different name.name (see code below).

for i in range(0,4499,1):
  api = EnergyPlusAPI()
  state = api.state_manager.new_state()
  api.state_manager.reset_state(state)

  api.runtime.run_energyplus(state,
    [
        '-d', 'C:/Users/4500_IDFs',
        '-w', 'C:/Users/4500_IDFs/Weather_File_SYR_Modified_with_Real_Data.epw',
        '-r',
        'C:/Users/4500_IDFs/' + building_list[i] + '.idf'

    ]
   )

  original_file = 'eplusout.csv'
  new_file = building_list[i] + '.csv'

  shutil.copy(original_file, new_file)

building_list is the list containing all the file names of 4500 IDFs.

However, all of those files have the same results. How can I solve this issue?

Thanks for your time!