@inproceedings{36224, keywords = {Modelica Buildings Library, template, class parameterization}, author = {Antoine Gautier and Michael Wetter and Jianjun Hu and Hubertus Tummescheit}, title = {HVAC and Control Templates for the Modelica Buildings Library}, abstract = {

This article reports on our experience in creating Modelica classes that serve as templates for modeling HVAC systems with thousands of configurations and closed-loop controls. Our motivation is to reduce model creation and parameterization time, provide access to state-of-the-art control sequences, while limiting the risk of error and enforcing modeling best practices. The development of such templates required exploration of class parameterization techniques and data structures for handling large sets of equipment parameters. By describing these issues and the approach taken, we show how the Modelica language can support advanced templating logic. The main limitation we encountered relates to parameter assignment and propagation. The interpretation of parameter attributes at user interface runtime, or the handling of non-trivial constructs involving record classes at compile time is not consistently supported by Modelica tools. This leads to choices that are difficult to make when looking for a generic implementation.

}, year = {2023}, journal = {15th International Modelica Conference 2023, Aachen, October 9-11Proceedings of the 15th International Modelica Conference 2023, Aachen, October 9-11}, volume = {204}, publisher = {Linköping University Electronic Press}, url = {https://ecp.ep.liu.se/index.php/modelica/issue/view/83}, doi = {10.3384/ecp204217}, language = {eng}, }