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

Run a reporting measure twice

asked 2020-09-11 21:06:28 -0600

antonszilasi's avatar

updated 2020-09-13 17:41:52 -0600

I'd like to run a reporting measure twice, once on the seed model (at the beginning of the workflow) and once at the end of the workflow.

Is this possible? I suppose I will have to write my own analysis json to do so?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
2

answered 2020-09-11 22:24:49 -0600

A straight forward approach would be to just run two standard data points each with their own OSW, a baseline and an improved (or at least altered in some way). If you really want to do it In a single OSW, you can create a custom OpenStudio model measure that takes a copy of the seed model and runs a simulation and reporting measure. This would be done by running an OSW within the measure “Inception Style” This isn’t that crazy, it is how we do sizing runs in measures, but it does seem like a complex solution where there may be a more direct approach. After this measure the rest of the “improved” workflow would run and then the reporting measure. You would have two full annual simulations and two HTML files.

An alternate approach is to run a more typical workflow for the model and energy plus measures but put in a special reporting measure. This reporting measure would contain run an OSW on a copy of the seed model, which you should have access to, without any extra measures and runs the simulation. Then you can generate an HTML file that uses SQL results from both the seed simulation and the improved simulation.

To step back a bit, what is the reason that you need to run the measure twice in a single workflow. That might help to determine if it really is necessary to run it in a single workflow and what the solution might look like.

edit flag offensive delete link more

Comments

@David Goldwasser thanks your reply, Im asking this question because I suspect a measure in a long workflow is altering ventilation values in the model sometimes which I dont want altered. What you have written above seems somewhat complex for now I may just track this down manually

antonszilasi's avatar antonszilasi  ( 2020-09-13 20:33:47 -0600 )edit

@antonszilasi If you run the simulations with the OpenStudio CLI there is an approach to turn disable measures without deleting them. I would first run the full OSW file with all the measures. Then add in an argument named __SKIP__ with the leading and trailing underscores, and set the value to true And then re-run the same OSW again, first copying the results from the first run to a new location, as they will get overwritten. Here is an example of this argument that can be applied to any measure.

David Goldwasser's avatar David Goldwasser  ( 2020-09-13 21:19:06 -0600 )edit

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: 2020-09-11 21:06:28 -0600

Seen: 538 times

Last updated: Sep 11 '20