NREL / resstock

Highly granular modeling of residential building stocks at national, regional, and local scales using OpenStudio/EnergyPlus.
https://resstock.nrel.gov
Other
104 stars 52 forks source link

Sync ServerDirectoryCleanup arguments w/OutputControlFiles fields #1278

Open joseph-robertson opened 1 month ago

joseph-robertson commented 1 month ago

When yml argument debug: true, the following is populated in in.idf:

OutputControl:Files,
  Yes,                                    !- Output CSV
  Yes,                                    !- Output MTR
  Yes,                                    !- Output ESO
  Yes,                                    !- Output EIO
  Yes,                                    !- Output Tabular
  Yes,                                    !- Output SQLite
  Yes,                                    !- Output JSON
  Yes,                                    !- Output AUDIT
  Yes,                                    !- Output Zone Sizing
  Yes,                                    !- Output System Sizing
  Yes,                                    !- Output DXF
  Yes,                                    !- Output BND
  Yes,                                    !- Output RDD
  Yes,                                    !- Output MDD
  Yes,                                    !- Output MTD
  Yes,                                    !- Output END
  Yes,                                    !- Output SHD
  Yes,                                    !- Output DFS
  Yes,                                    !- Output GLHE
  Yes,                                    !- Output DelightIn
  Yes,                                    !- Output DelightELdmp
  Yes,                                    !- Output DelightDFdmp
  Yes,                                    !- Output EDD
  Yes,                                    !- Output DBG
  Yes,                                    !- Output PerfLog
  Yes,                                    !- Output SLN
  Yes,                                    !- Output SCI
  Yes,                                    !- Output WRL
  Yes,                                    !- Output Screen
  Yes,                                    !- Output ExtShd
  Yes;                                    !- Output Tarcog

We control most (?) of these using ServerDirectoryCleanup's "retain" arguments (except, for example, eplusmtr.csv) by deleting them after they've already been requested and output.

Alternatively, could we replace ServerDirectoryCleanup with a model measure that modifies fields of OutputControl:Files?

shorowit commented 1 month ago

Alternatively, could we replace ServerDirectoryCleanup with a model measure that modifies fields of OutputControl:Files?

That would work for EnergyPlus output files, but not OS or OS-HPXML output files.

joseph-robertson commented 1 month ago

Right. We'd still have this new measure control (by optionally deleting) OS and OS-HPXML output files.

Edit: I think I see what you're saying. The measure would need to happen after simulation to work for OS/OS-HPXML output files.