First time here? Check out the Help page!

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

OpenStudio CLI Design Days

asked 2 years ago

mattkoch's avatar

updated 2 years ago

I am trying to make more use of the openstudio cli. In this context, I am using the workflow file .osw. In it, there is a line for the weather file, such as:

"weather_file": "E:/WeatherData/USA_TX_College.Station-Easterwood.Field.722445_TMY3/USA_TX_College.Station-Easterwood.Field.722445_TMY3.epw"

However, I have not seen the equivalent for the design day file, for example, does something like the following exist for the workflow file .osw:

"designday_file": "E:/WeatherData/USA_TX_College.Station-Easterwood.Field.722445_TMY3/USA_TX_College.Station-Easterwood.Field.722445_TMY3.ddy"

If not, what are the alternatives? Thanks.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 2 years ago

If you want to use an existing measure in your workflow, the ChangeBuildingLocation measure expects the .ddy file to have same name as the .epw file. The .epw file name with extension is taken as a measure argument.

If you are writing your own measure, this line inspects the .ddy file

ddy_model = OpenStudio::EnergyPlus.loadAndTranslateIdf(ddy_file).get

And this line adds a design day object into the OpenStudio model. If you look at code above this we are importing a subset of design days from the file.

model.addObject(d.clone)

Preview: (hide)
link

Comments

Yeah, I just noticed the JSON Workflow documentation knows no such thing as ddy, so I suppose a measure it has to be. The ChangeBuildingLocation will get me what I need, though, thanks.

mattkoch's avatar mattkoch  ( 2 years ago )

@mattkoch, I forgot to mention more straight forward approach. I'm always sweeping across climate zones so I forgot this. While the OpenStudio model links to EPW data, the design days are ingested into the model, so the source .ddy isn't needed as run time. So you can choose a seed model to define in the OSW that already has design day objects. Then you don't need the ChangeBuildingLocation measure.

ChangeBuildingLocation also uses that .stat file to set water main temperatures, and sets the ASHRAE climate zone, useful if you plan to use OpenStudio Standards to assign construction

David Goldwasser's avatar David Goldwasser  ( 2 years ago )

Brilliant, than you David Goldwasser. Very helpful!

mattkoch's avatar mattkoch  ( 2 years ago )

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Careers

Question Tools

1 follower

Stats

Asked: 2 years ago

Seen: 120 times

Last updated: Aug 30 '22