Skip to content

Latest commit

 

History

History
47 lines (34 loc) · 2.4 KB

File metadata and controls

47 lines (34 loc) · 2.4 KB

Example 10: Standards-Based Typical Building

Apply ASHRAE 90.1-2019 constructions, loads, HVAC, schedules, and service water heating to any model that already has geometry — using the ComStock create_typical_building tool.

Scenario

An engineer has a small office model with geometry and space types but no HVAC, constructions, or internal loads. They want to apply the full 90.1-2019 template for climate zone 2A (Houston) in a single step, then inspect what was added.

Prompt

Load my small office model and apply the 90.1-2019 typical building template for climate zone 2A. Show me what was added.

Tool Call Sequence

1. list_comstock_measures(category="setup")    -- browse available templates
2. load_osm_model(osm_path="SmallOffice.osm")
3. set_weather_file(epw_path="Houston.epw")
4. create_typical_building(template="90.1-2019",
     climate_zone="ASHRAE 169-2013-2A")        -- adds everything
5. get_model_summary()                         -- verify HVAC + constructions
6. list_air_loops()                            -- inspect HVAC system
7. list_model_objects(object_type="Construction")                        -- inspect envelope
8. save_osm_model(save_path="/runs/typical_office.osm")

Key Tools Used

Tool Purpose
list_comstock_measures Discover available measures and templates
create_typical_building Apply full standards template (constructions, loads, HVAC, SWH)
get_model_summary Verify objects were added to the model
list_air_loops Inspect the HVAC system created by the template
list_model_objects Inspect envelope constructions assigned to surfaces

Tips

  • Model prep: The model must have geometry (spaces with surfaces) before applying the template. Use create_space_from_floor_print or load an existing model.
  • Climate zone: Pass explicitly (e.g. "ASHRAE 169-2013-2A") or use "Lookup From Model" if the model already has it set.
  • Building type: Defaults to "SmallOffice". The tool auto-sets standardsBuildingType on the building and space types if missing.
  • Selective application: Use boolean flags (add_hvac, add_constructions, add_space_type_loads, etc.) to apply only specific components.
  • Remove existing: remove_objects=True (default) clears existing HVAC/loads before adding new ones.

Integration Test

See tests/test_example_workflows.py::test_workflow_comstock_typical_building