How natlabrockies/openstudio-hpxml works
OpenStudio-HPXML turns residential building descriptions in HPXML into EnergyPlus simulations, with measures for generating HPXML and detailed schedules and for reporting simulation results and utility bills. The main workflow is building input → HPXML → OpenStudio model → EnergyPlus simulation → reports. The graph also preserves documented modeling, sizing, validation, schedule, and billing capabilities. Some subsystem links rely on the README because their source was not sampled; those relationships are cited as documented rather than inferred from filenames.
Main entry points: HPXMLtoOpenStudio/measure.rb HPXML translator · run_simulation.rb Simulation workflow · BuildResidentialHPXML/measure.rb Build HPXML · meta_measure.rb Measure orchestration
Components 23
Input generation
- Build HPXML
BuildResidentialHPXML/measure.rb - Geometry inputs
BuildResidentialHPXML/resources/geometry.rb - Build schedules
BuildResidentialScheduleFile/measure.rb - Schedule generation
BuildResidentialScheduleFile/resources/schedules.rb
Model translation
- HPXML description
HPXMLtoOpenStudio/resources/hpxml.rb - Schema validation
HPXMLtoOpenStudio/resources/xmlvalidator.rb - HPXML translator
HPXMLtoOpenStudio/measure.rb - Input defaults
HPXMLtoOpenStudio/resources/defaults.rb - OpenStudio model
HPXMLtoOpenStudio/resources/model.rb
Simulation
- Simulation workflow
workflow/run_simulation.rb - Measure orchestration
HPXMLtoOpenStudio/resources/meta_measure.rb - EnergyPlus execution
HPXMLtoOpenStudio/resources/energyplus.rb
Reporting
- Utility bill calculations
ReportUtilityBills/resources/util.rb - Simulation reporting
ReportSimulationOutput/measure.rb - Output processing
HPXMLtoOpenStudio/resources/output.rb - Utility bill reporting
ReportUtilityBills/measure.rb
Modeling capabilities
- Building systems
HPXMLtoOpenStudio/resources/hvac.rb - Envelope construction
HPXMLtoOpenStudio/resources/constructions.rb - HVAC sizing
HPXMLtoOpenStudio/resources/hvac_sizing.rb - Model schedules
HPXMLtoOpenStudio/resources/schedules.rb - Weather and location
HPXMLtoOpenStudio/resources/location.rb
Other components
- Workflow user
- EnergyPlus
Connections 26
- Workflow user → Build HPXML: provides inputs
- Build HPXML → Geometry inputs: uses geometry
- Build HPXML → HPXML description: generates HPXML
- Workflow user → Build schedules: requests schedules
- Build schedules → Schedule generation: generates schedules
- Schedule generation → Simulation workflow: supplies schedules
- Workflow user → Simulation workflow: runs simulation
- Simulation workflow → HPXML description: reads input
workflow/run_simulation.rb - Simulation workflow → Measure orchestration: runs measures
HPXMLtoOpenStudio/resources/meta_measure.rb - Measure orchestration → HPXML translator: runs measure
HPXMLtoOpenStudio/resources/meta_measure.rb - HPXML description → Schema validation: validates input
- HPXML translator → OpenStudio model: creates model
- HPXML translator → Input defaults: applies defaults
- HPXML translator → Building systems: models systems
- HPXML translator → Envelope construction: models envelope
- HPXML translator → HVAC sizing: sizes equipment
- HPXML translator → Model schedules: uses schedules
- HPXML translator → Weather and location: sets location
- Measure orchestration → EnergyPlus execution: executes simulation
HPXMLtoOpenStudio/resources/meta_measure.rb - EnergyPlus execution → EnergyPlus: runs model
- EnergyPlus → Simulation reporting: provides results
- Simulation reporting → Output processing: writes outputs
ReportSimulationOutput/measure.rb - Workflow user → Simulation reporting: requests reports
- EnergyPlus → Utility bill reporting: provides meter data
- Utility bill reporting → Utility bill calculations: calculates bills
ReportUtilityBills/measure.rb - Workflow user → Utility bill reporting: requests bills