Question-and-Answer Resource for the Building Energy Modeling Community
Get s tarted with the Help page

# [doe 2.1e] parametric setup

I'm trying to setup parametric for air change value as follows:

INPUT LOADS  ..
PARAMETER PAIR = 0.2 ..
....
AIR-CHANGES/HR       =PAIR TIMES 2.0
END ..
COMPUTE SYSTEMS ..
COMPUTE PLANT ..
PARAMETER AIR-CHANGES/HR    =1.0
END ..
COMPUTE SYSTEMS ..
COMPUTE PLANT ..
STOP ..


It runs two times but the second run is not updated with new air-change/hr value. What's wrong with my syntax?
Have any script/program to automatically export doe 2.1e report to BEPS ?

edit retag close merge delete

@Joe Huang, this one's for you!

( 2016-09-17 09:28:51 -0600 )edit

Sort by » oldest newest most voted

Done

PARAMETER PAIR =1.0
END ..
COMPUTE SYSTEMS ..
COMPUTE PLANT ..
STOP ..

I found out python script for parsing BEPS here: https://gist.github.com/hollywas/4757770. Modified to get all BEPS data - awesome.

more

Thanks to Amir for bringing this to my attention, as I haven't been paying much attention to Unmet Hours the past several months.

I actually stopped using PARAMETER in DOE-2 a long time ago, because I find that macros can do the same thing and are much more flexible.

In answer to your question above, I think that when DOEBDL interprets PARAMETRIC-INPUT, it will just do a sequential substitution for the items called out as PARAMETERs in the original base input file. Since you have defined PAIR as a PARAMETER, I think you should continue to operate on that keyword (PAIR) rather than to create a new PARAMETER in the PARAMETRIC-INPUT FOR LOADS, i.e., you should try:

PARAMETER PAIR = 0.5

By the way, macro inputs for doing the same thing would be:

##set1 PAIR 0.20 (first run)

##set1 PAIR 0.50 (second run)

later

AIR-CHANGES/HR = #[ PAIR[] * 2.0]

I don't think macros will work with PARAMETRIC-INPUT, but I've never liked that feature anyway, because I'd much rather create and make separate DOE-2 runs instead of making one large run with a series of parametric changes that I would then have to parse to get the results I want.

more

@Joe Huang Have any pathway to parse the BEPS report from many files to a csv or excel file ? Thank

( 2016-09-21 20:46:43 -0600 )edit

Sure, since DOE-2 output files are ASCII text files, I've been writing awk scripts for decades to parse the output for what I want and then direct that to a summary text file for which each DOE-2 run is represented by a single line with the run name, followed by the annual electricity usage by end-use, and then the gas usage by end-use. I use awk because that's what I learned in the early 80's,but I'm sure other scripts like Python can work as well. What my post-processing awk scripts do is to look for a unique pattern, ,like "BEPU - ", etc., and then start counting lines.

( 2016-09-21 21:21:58 -0600 )edit

Sorry. Ran out of space on the last comment. I will respond as an answer on your other question about how to do parametric runs in DOE-2, in which I'll show examples of the awk scripts I use to pre-process the input files and post-process the output files. I've promised to do that for a DOE-2 user group anyway. My main message would be *Learn awk and conquer the world ! :-):-)

( 2016-09-21 21:25:02 -0600 )edit

@Joe Huang: Thank you very much. Would you insert here or need a new question on unmethours for parsing doe2 result ? Hopefully, someone did it with Python or Ruby :))

( 2016-09-21 21:42:19 -0600 )edit

I'd like to jump in and add: I've been developing some similar stuff with Python, specifically with mind to extract select outputs from doe2.2/2.3 borne SIM files. I'm actually wrestling in the present with re-tooling (breaking & rebuilding) a previously working script to generate a CSV in a format compliant wtih dview for easy visualizations. Would be happy to compare notes sometime to see how others are accomplishing similar tasks - maybe we can learn from each other!

( 2016-10-02 23:18:45 -0600 )edit