Skip to content

Many zones model

This tutorial demonstrates how to generate a Modelica model and open it with OpenModelica for the multizone BIM model displayed below.

Generated model

Generated model

The file can be found in the repository's tests folder.

from ifctrano.building import Building
building = Building.from_ifc(path_to_ifc_file)
building.save_model()

The code snippet above creates a Modelica model from the IFC file in the same folder. You can then open this model in OpenModelica.

Generated model

To display the generated space boundaries alongside the Modelica model and simulate simultaneously from the command line, use the following command:

ifctrano create path_to_ifc_file.ifc --show-space-boundaries --simulate-model

The generated space boundaries will be displayed as illustrated in the figure below.

Space boundaries

The simulation output will open automatically.

Space boundaries