/emorph

OpenStudio workflow for building energy model prototyping, gbXML import, floorplan extrusion

Primary LanguageRuby

emorph 🛖

OpenStudio wakatime

emorph
├ *.py                - scripts demo
├ /cases	      
â”” /openstudio
  ├ /gbxmls           - gbXML resource
  ├ /seeds            - blank/template .osm
  ├ /weather          - weather resource
  ├ /measures         - openstudio measures
  │ └ /*        
  │   ├ measure.rb
  │   └ measure.xml       
  â”” /workflow
    ├ /run            - Utility functions
    â”” *.osw           - openstudio workflows

Prototype workflow

This openstudio workflow will create a prototype building with perimeter-core zoning, set its space type and construction by ASHRAE default, run ideal loads system and get the time series of cooling load in .csv output. Make sure you have 3.X version OpenStudio SDK installed

# replace the installation path in run_osw.py
# which is 'C:\openstudio-3.X.0\bin\openstudio.exe' by default
> python run_osw.py
# the script writes a .osw file under ./openstudio/workflow/
# then execute it by calling openstudio

or test the workflow by command line

> openstudio.exe run -w prototype.osw

The best practice to standardize your workflow may be:

  • Serialize your typical configurations in the template .osm file, the Schedule:Compact, SimulationControl, Output:Variables...
  • Create a standard .osw template with placeholders so that you can render it by user inputs, with engines like Jinja2

IFC2XML example

Anaconda environment is required to install all dependencies

> conda env create -f env.yaml
> conda activate ifc2xml
(ifc2xml) > python IFC_gbXML_Convert.py

Reference

MGVisschers / IFC-to-gbXML-converter

Building Component Library