First time here? Check our help page!
2

Run a reporting measure twice

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?

antonszilasi's avatar
1.5k
antonszilasi
asked 2020-09-11 21:06:28 -0500
__AmirRoth__'s avatar
4.4k
__AmirRoth__
updated 2020-09-13 17:41:52 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

2

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.

David Goldwasser's avatar
20.4k
David Goldwasser
answered 2020-09-11 22:24:49 -0500
edit flag offensive 0 remove flag delete link

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 -0500) 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 -0500) edit
add a comment see more comments