This folder includes examples for automatic Modelica code generation of building and plant simulation models.
For this purpose the template based code generation tool CoTeTo is used.
A short introduction into the generator package concept of CoTeTo you can find under CoTeTo/Generators/README.md.
-
Clone or download CoTeTo (https://github.com/UdK-VPT/CoTeTo.git)
-
Install CoTeTo on your machine.
-
Copy the folder with the respective code generator (e.g. https://github.com/UdK-VPT/BuildingSystems/blob/master/BuildingSystems/Resources/CodeGeneration/CoTeTo/Generators/SolarThermalSystem) in the folder CoTeTo/Generators.
-
Start the GUI of CoTeTo and select the generator of your interest, in this case
SolarThermalSystem.
-
Name the output file (e.g. SolarThermalSystem.mo) and press Generate.
-
Open the generated .mo-File in your Modelica simulation environment and simulate it.
