Code Monkey home page Code Monkey logo

bim2modelica's Introduction

BIM2Modelica

This Repository contains an open source toolchain which generates Modelica building models from BIM models based on the IFC format. It uses the GUI and the software infrastructure of CoTeTo for simplifying the code generation process.

License

The BIM2Modelica software package is available under the terms of the BSD 3-Clause License. A copy of the license is available at BIM2Modelica/LICENSE.md.

CoTeTo

The template based code generation tool CoTeTo is used as the software framework for the entire tool chain from the IFC file to the Modelica building model. All the intermediate steps from

  • reading and checking an IFC file,
  • storing the building data in a data structure up to
  • generating a building model based on a Mako template

is summarized in one CoTeTo code generator (a short introduction into the generator package concept of CoTeTo you can find under CoTeTo/Generators/README.md).

At the moment one code generator for Modelica multi-zone building models which can read the IFC 2X3 format and generates code for the Modelica BuildingSystems BuildingSystem library is realized.

IFC data reader and model analyser

This software module reads and analyses the IFC files for thermal simulation purposes. Therefore, features of the Python package IfcOpenShell and the Python package OCC are used.

Template for Modelica code generation

A flexible Mako template for Modelica multi-zone building models generates the Modelica code for thermal building models with a flexible geometry, number of zones, building constructions and boundary conditions (weather data, building use).

IFC test models

A set of IFC test models in the IFC2x3 format is part of the BIM2Modelica repository.

Generated Modelica building models

This folder includes the generated Modelica models correspondent to the IFC2X3 test models.

Usage

  1. Clone or download CoTeTo (https://github.com/UdK-VPT/CoTeTo.git)

  2. Install CoTeTo on your machine.

  3. Copy the folder with the respective code generator (https://github.com/UdK-VPT/BIM2Modelica/tree/master/CoTeTo_Generators/IFC_MultiZoneBuildings_Modelica) in the folder CoTeTo/Generators.

  4. Start the GUI of CoTeTo and select the generator of your interest, in this case IFC_MultiZoneBuildings_Modelica.

CoTeTo-GUI

  1. Select the IFC input file (e.g. BIM2Modelica/IFC/IFC2X3/UdKB_Test_Cases/OneZone.ifc)

  2. Name the output model name (e.g. OneZone) and press Generate.

  3. As a result three files (OneZone.mo, OneZone_StateVariables.cs and OneZone_BuildingModel.cs) are generated.

  4. Open the generated .mo-File in your Modelica simulation environment and simulate it.

For example, you can do this with the Open Source simulation tool JModelica (as explained here):

Simulation results

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.