[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [EnergyPlus_Support] Generating multiple weather files for SA&UA





Hi Marko,

 

You can use jEPlus to run an IDF with multiple weather files, by either selecting all the weather files you want to include on the GUI, or putting the list in a text file (like the one below) and including it in the project.

 

C:/EnergyPlusV8-2-0/WeatherData/USA_CA_San.Francisco.Intl.AP.724940_TMY3.epw

C:/EnergyPlusV8-2-0/WeatherData/USA_CO_Golden-NREL.724666_TMY3.epw

C:/EnergyPlusV8-2-0/WeatherData/USA_FL_Tampa.Intl.AP.722110_TMY3.epw

C:/EnergyPlusV8-2-0/WeatherData/USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.epw

C:/EnergyPlusV8-2-0/WeatherData/USA_VA_Sterling-Washington.Dulles.Intl.AP.724030_TMY3.epw

 

The benefit of using jEPlus is that it will create index for each case and extract results after simulation. To create those .def files, I used the following Python script before:

 

import os

import shutil

for file in os.listdir("D:\\ DSY\\ WeatherData\\London"):

    if file.endswith(".csv"):

        fn = os.path.splitext(file)[0]

        print("procedssing " + fn)

        # shutil.copyfile("D:\\ DSY\\ WeatherData \\HEB1976.def", " D:\\ DSY\\ WeatherData\\London\\" + fn + ".def")

        f1 = open("D:\\ DSY\\ WeatherData\\HEB1976.def", "r")

        f2 = open("D:\\ DSY\\ WeatherData\\London\\" + fn + ".def", "w")

        for line in f1:

            f2.write(line.replace("data record 1976", fn))

        f1.close()

        f2.close()       

 

It basically just copy from a template and write it to a new .def with the same name as the .csv. Also it changes the comment line in the .def, so that the resultant .epw will contain the correct information. This is probably not the smartest Python code you can find; but it does the job.

 

Cheers,

 

Yi

 

From: EnergyPlus_Support@xxxxxxxxxxxxxxx [mailto:EnergyPlus_Support@xxxxxxxxxxxxxxx]
Sent: 14 July 2015 12:08
To: EnergyPlus_Support@xxxxxxxxxxxxxxx
Subject: Re: [EnergyPlus_Support] Generating multiple weather files for SA&UA

 

 


--
Julien Marrec, EBCP, BPI MFBA
Energy&Sustainability Engineer
T: +33 6 95 14 42 13

LinkedIn (en) : www.linkedin.com/in/julienmarrec
LinkedIn (fr) : www.linkedin.com/in/julienmarrec/fr

 

2015-07-14 9:23 GMT+02:00 marko.ignjatovic1980@xxxxxxxxx [EnergyPlus_Support] <EnergyPlus_Support@xxxxxxxxxxxxxxx>:

 

Hi all,

 

i am trying out to create hundreds of weather files where only temperatures for 1 (max 2) day will be perturbed. I know that every csv weather file requires a def file (all of them will have the same structure, only the names will defer) and this can be done from outsource, but my concern is how to run simulations for the same idf file with various weather files. Is there some kind of parametric processor like jEplus or similar that can do the job?

 

Marko

 



__._,_.___

Posted by: "Dr Yi Zhang" <yi@xxxxxxxxxx>


Primary EnergyPlus support is found at:
http://energyplus.helpserve.com or send a message to energyplus-support@xxxxxxxx

The primary EnergyPlus web site is found at:
http://www.energyplus.gov

The group web site is:
http://groups.yahoo.com/group/EnergyPlus_Support/

Attachments are currently allowed but be mindful that not everyone has a high speed connection.  Limit attachments to small files.

EnergyPlus Documentation is searchable.  Open EPlusMainMenu.pdf under the Documentation link and press the "search" button.





__,_._,___
Attachment not found:
C:\Users\lklawrie\Downloads\Embedded\image001241.jpg
Attachment not found:
C:\Users\lklawrie\Downloads\Embedded\image002147.jpg