Digital twin of heat exchange station
Abstract
The article describes the identification of a heat exchanger system using PLC for measurement, followed by system model identification and reconstruction in Matlab Simulink and SIMIT. The root-mean-square error of the identified system was 2.49 % on training data and 5.33 % in the validation scenario. The system model is suitable for predicting and simulating errors and anomalies; it can be used for the optimisation of control processes or system parameters. Therefore, the model can serve as an educational tool, allowing training of students, operators and other experts. They can experiment without fear of damaging components and without having to wait for the long-time transients of a real system.
Full text
IFAC PapersOnLine 58-9 (2024) 311–316 ScienceDirect ScienceDirect Available online at www.sciencedirect.com 2405-8963 Copyright © 2024 The Authors. This is an open access article under the CC BY-NC-ND license . Peer review under responsibility of International Federation of Automatic Control. 10.1016/j.ifacol.2024.07.415 10.1016/j.ifacol.2024.07.415 2405-8963 Digital twin of heat exchange station Tom´aˇs Beneˇsl ∗Michal Hus´ak ∗Ondrej Mih´alik ∗ Radim Vancl ∗Zdenˇek Brad´aˇc ∗∗ ∗Brno University of Technology Faculty of Electrical Engineering and Communication (e-mail: [email protected]). ∗∗ Central European Institute of Technology, Brno University of Technology, Brno, Czechia (e-mail: [email protected]). Abstract: The article describes the identification of a heat exchanger system using PLC for measurement, followed by system model identification and reconstruction in Matlab Simulink and SIMIT. The root-mean-square error of the identified system was 2.49 % on training data and 5.33 % in the validation scenario. The system model is suitable for predicting and simulating errors and anomalies; it can be used for the optimisation of control processes or system parameters. Therefore, the model can serve as an educational tool, allowing training of students, operators and other experts. They can experiment without fear of damaging components and without having to wait for the long-time transients of a real system. Keywords: Heat Exchaner, SIMIT, Matlab, Digital Twin, Optimisation 1. INTRODUCTION In today’s era of rapid technological progress, digitalization has become a key element in optimizing industrial processes. The concept of a digital twin brings a revolutionary approach to monitoring and managing physical devices and processes. One specific application of this innovative technology is the creation of digital twins for thermal systems, a crucial component in heat transfer systems within industrial and energy sectors. The ”Digital twin of heat exchange station” represents a digital model of a thermal exchange station, precisely simulating the physical properties, behavior, and interactions with the environment of the actual equipment. This innovative technology enables engineers and operators to monitor the state of the thermal exchange station in realtime, providing comprehensive data on its performance, efficiency, and potential issues. The main advantages of creating a digital twin of heat exchangers lie in the ability to predict and prevent faults, optimize performance and energy efficiency, and reduce maintenance costs. Precise simulation and monitoring allow the identification of potential problems, facilitating preventive maintenance and reducing downtime. Jones et al. (2020) In this article, we focus on key aspects of creating digital twins for heat exchangers, including technical challenges, development trends, and specific examples of implementation. Furthermore, we discuss the impact of this innovative technology on the industrial sector and potential directions for further development in the field of thermal system management using digital twins. The combination of Siemens SIMATIC Process Simulation (SIMIT) and Matlab Simulink opens up wide possibilities for the development and optimization of digital twins for thermal systems. Siemens SIMIT specializes in industrial simulation and visualization, while Matlab Simulink brings powerful tools for modeling dynamic systems and simulations. SIEMENS (2023) SIMIT enables engineers to create detailed digital models of heat exchangers, taking into account their physical properties, geometry, and operational parameters. By integrating SIMIT with Matlab Simulink, these models can be connected to advanced algorithmic and control strategies developed in Matlab Simulink. SIEMENS (2023) Using Matlab Simulink, engineers can conduct extensive simulations of thermal exchangers with precision in modeling fluid dynamics, material thermal properties, and other critical parameters. This integration allows not only accurate modeling of the behavior of heat exchangers but also testing various scenarios, optimizing control algorithms, and developing sophisticated strategies to achieve maximum energy efficiency. In summary, the combination of Siemens SIMIT and Matlab Simulink provides comprehensive and powerful tools for the development, simulation, and optimization of digital twins for thermal exchangers, contributing to more efficient management of thermal systems in industrial and energy applications. Digital twins, including the utilization of Siemens SIMIT and Matlab Simulink, offer numerous potential applications for education in the fields of industrial engineering and energy. Below are some key areas of application: •Simulation and Modeling: Students can create digital twins and simulate their behavior under different conditions. Practical experience with model creation and simulations contributes to a better understanding of technology principles. •Optimization and Control: Studying control algorithms and optimization in Matlab Simulink enables Digital twin of heat exchange station Tom´aˇs Beneˇsl ∗Michal Hus´ak ∗Ondrej Mih´alik ∗ Radim Vancl ∗Zdenˇek Brad´aˇc ∗∗ ∗Brno University of Technology Faculty of Electrical Engineering and Communication (e-mail: [email protected]). ∗∗ Central European Institute of Technology, Brno University of Technology, Brno, Czechia (e-mail: [email protected]). Abstract: The article describes the identification of a heat exchanger system using PLC for measurement, followed by system model identification and reconstruction in Matlab Simulink and SIMIT. The root-mean-square error of the identified system was 2.49 % on training data and 5.33 % in the validation scenario. The system model is suitable for predicting and simulating errors and anomalies; it can be used for the optimisation of control processes or system parameters. Therefore, the model can serve as an educational tool, allowing training of students, operators and other experts. They can experiment without fear of damaging components and without having to wait for the long-time transients of a real system. Keywords: Heat Exchaner, SIMIT, Matlab, Digital Twin, Optimisation 1. INTRODUCTION In today’s era of rapid technological progress, digitalization has become a key element in optimizing industrial processes. The concept of a digital twin brings a revolutionary approach to monitoring and managing physical devices and processes. One specific application of this innovative technology is the creation of digital twins for thermal systems, a crucial component in heat transfer systems within industrial and energy sectors. The ”Digital twin of heat exchange station” represents a digital model of a thermal exchange station, precisely simulating the physical properties, behavior, and interactions with the environment of the actual equipment. This innovative technology enables engineers and operators to monitor the state of the thermal exchange station in realtime, providing comprehensive data on its performance, efficiency, and potential issues. The main advantages of creating a digital twin of heat exchangers lie in the ability to predict and prevent faults, optimize performance and energy efficiency, and reduce maintenance costs. Precise simulation and monitoring allow the identification of potential problems, facilitating preventive maintenance and reducing downtime. Jones et al. (2020) In this article, we focus on key aspects of creating digital twins for heat exchangers, including technical challenges, development trends, and specific examples of implementation. Furthermore, we discuss the impact of this innovative technology on the industrial sector and potential directions for further development in the field of thermal system management using digital twins. The combination of Siemens SIMATIC Process Simulation (SIMIT) and Matlab Simulink opens up wide possibilities for the development and optimization of digital twins for thermal systems. Siemens SIMIT specializes in industrial simulation and visualization, while Matlab Simulink brings powerful tools for modeling dynamic systems and simulations. SIEMENS (2023) SIMIT enables engineers to create detailed digital models of heat exchangers, taking into account their physical properties, geometry, and operational parameters. By integrating SIMIT with Matlab Simulink, these models can be connected to advanced algorithmic and control strategies developed in Matlab Simulink. SIEMENS (2023) Using Matlab Simulink, engineers can conduct extensive simulations of thermal exchangers with precision in modeling fluid dynamics, material thermal properties, and other critical parameters. This integration allows not only accurate modeling of the behavior of heat exchangers but also testing various scenarios, optimizing control algorithms, and developing sophisticated strategies to achieve maximum energy efficiency. In summary, the combination of Siemens SIMIT and Matlab Simulink provides comprehensive and powerful tools for the development, simulation, and optimization of digital twins for thermal exchangers, contributing to more efficient management of thermal systems in industrial and energy applications. Digital twins, including the utilization of Siemens SIMIT and Matlab Simulink, offer numerous potential applications for education in the fields of industrial engineering and energy. Below are some key areas of application: •Simulation and Modeling: Students can create digital twins and simulate their behavior under different conditions. Practical experience with model creation and simulations contributes to a better understanding of technology principles. •Optimization and Control: Studying control algorithms and optimization in Matlab Simulink enables Digital twin of heat exchange station Tom´aˇs Beneˇsl ∗Michal Hus´ak ∗Ondrej Mih´alik ∗ Radim Vancl ∗Zdenˇek Brad´aˇc ∗∗ ∗Brno University of Technology Faculty of Electrical Engineering and Communication (e-mail: [email protected]). ∗∗ Central European Institute of Technology, Brno University of Technology, Brno, Czechia (e-mail: [email protected]). Abstract: The article describes the identification of a heat exchanger system using PLC for measurement, followed by system model identification and reconstruction in Matlab Simulink and SIMIT. The root-mean-square error of the identified system was 2.49 % on training data and 5.33 % in the validation scenario. The system model is suitable for predicting and simulating errors and anomalies; it can be used for the optimisation of control processes or system parameters. Therefore, the model can serve as an educational tool, allowing training of students, operators and other experts. They can experiment without fear of damaging components and without having to wait for the long-time transients of a real system. Keywords: Heat Exchaner, SIMIT, Matlab, Digital Twin, Optimisation 1. INTRODUCTION In today’s era of rapid technological progress, digitalization has become a key element in optimizing industrial processes. The concept of a digital twin brings a revolutionary approach to monitoring and managing physical devices and processes. One specific application of this innovative technology is the creation of digital twins for thermal systems, a crucial component in heat transfer systems within industrial and energy sectors. The ”Digital twin of heat exchange station” represents a digital model of a thermal exchange station, precisely simulating the physical properties, behavior, and interactions with the environment of the actual equipment. This innovative technology enables engineers and operators to monitor the state of the thermal exchange station in realtime, providing comprehensive data on its performance, efficiency, and potential issues. The main advantages of creating a digital twin of heat exchangers lie in the ability to predict and prevent faults, optimize performance and energy efficiency, and reduce maintenance costs. Precise simulation and monitoring allow the identification of potential problems, facilitating preventive maintenance and reducing downtime. Jones et al. (2020) In this article, we focus on key aspects of creating digital twins for heat exchangers, including technical challenges, development trends, and specific examples of implementation. Furthermore, we discuss the impact of this innovative technology on the industrial sector and potential directions for further development in the field of thermal system management using digital twins. The combination of Siemens SIMATIC Process Simulation (SIMIT) and Matlab Simulink opens up wide possibilities for the development and optimization of digital twins for thermal systems. Siemens SIMIT specializes in industrial simulation and visualization, while Matlab Simulink brings powerful tools for modeling dynamic systems and simulations. SIEMENS (2023) SIMIT enables engineers to create detailed digital models of heat exchangers, taking into account their physical properties, geometry, and operational parameters. By integrating SIMIT with Matlab Simulink, these models can be connected to advanced algorithmic and control strategies developed in Matlab Simulink. SIEMENS (2023) Using Matlab Simulink, engineers can conduct extensive simulations of thermal exchangers with precision in modeling fluid dynamics, material thermal properties, and other critical parameters. This integration allows not only accurate modeling of the behavior of heat exchangers but also testing various scenarios, optimizing control algorithms, and developing sophisticated strategies to achieve maximum energy efficiency. In summary, the combination of Siemens SIMIT and Matlab Simulink provides comprehensive and powerful tools for the development, simulation, and optimization of digital twins for thermal exchangers, contributing to more efficient management of thermal systems in industrial and energy applications. Digital twins, including the utilization of Siemens SIMIT and Matlab Simulink, offer numerous potential applications for education in the fields of industrial engineering and energy. Below are some key areas of application: •Simulation and Modeling: Students can create digital twins and simulate their behavior under different conditions. Practical experience with model creation and simulations contributes to a better understanding of technology principles. •Optimization and Control: Studying control algorithms and optimization in Matlab Simulink enables Digital twin of heat exchange station Tom´aˇs Beneˇsl ∗Michal Hus´ak ∗Ondrej Mih´alik ∗ Radim Vancl ∗Zdenˇek Brad´aˇc ∗∗ ∗ Brno University of Technology Faculty of Electrical Engineering and Communication (e-mail: tomas.b[email protected]). ∗∗ Central European Institute of Technology, Brno University of Technology, Brno, Czechia (e-mail: zdenek.br[email protected]). Abstract: The article describes the identification of a heat exchanger system using PLC for measurement, followed by system model identification and reconstruction in Matlab Simulink and SIMIT. The root-mean-square error of the identified system was 2.49 % on training data and 5.33 % in the validation scenario. The system model is suitable for predicting and simulating errors and anomalies; it can be used for the optimisation of control processes or system parameters. Therefore, the model can serve as an educational tool, allowing training of students, operators and other experts. They can experiment without fear of damaging components and without having to wait for the long-time transients of a real system. Keywords: Heat Exchaner, SIMIT, Matlab, Digital Twin, Optimisation 1. INTRODUCTION In today’s era of rapid technological progress, digitalization has become a key element in optimizing industrial processes. The concept of a digital twin brings a revolutionary approach to monitoring and managing physical devices and processes. One specific application of this innovative technology is the creation of digital twins for thermal systems, a crucial component in heat transfer systems within industrial and energy sectors. The ”Digital twin of heat exchange station” represents a digital model of a thermal exchange station, precisely simulating the physical properties, behavior, and interactions with the environment of the actual equipment. This innovative technology enables engineers and operators to monitor the state of the thermal exchange station in realtime, providing comprehensive data on its performance, efficiency, and potential issues. The main advantages of creating a digital twin of heat exchangers lie in the ability to predict and prevent faults, optimize performance and energy efficiency, and reduce maintenance costs. Precise simulation and monitoring allow the identification of potential problems, facilitating preventive maintenance and reducing downtime. Jones et al. (2020) In this article, we focus on key aspects of creating digital twins for heat exchangers, including technical challenges, development trends, and specific examples of implementation. Furthermore, we discuss the impact of this innovative technology on the industrial sector and potential directions for further development in the field of thermal system management using digital twins. The combination of Siemens SIMATIC Process Simulation (SIMIT) and Matlab Simulink opens up wide possibilities for the development and optimization of digital twins for thermal systems. Siemens SIMIT specializes in industrial simulation and visualization, while Matlab Simulink brings powerful tools for modeling dynamic systems and simulations. SIEMENS (2023) SIMIT enables engineers to create detailed digital models of heat exchangers, taking into account their physical properties, geometry, and operational parameters. By integrating SIMIT with Matlab Simulink, these models can be connected to advanced algorithmic and control strategies developed in Matlab Simulink. SIEMENS (2023) Using Matlab Simulink, engineers can conduct extensive simulations of thermal exchangers with precision in modeling fluid dynamics, material thermal properties, and other critical parameters. This integration allows not only accurate modeling of the behavior of heat exchangers but also testing various scenarios, optimizing control algorithms, and developing sophisticated strategies to achieve maximum energy efficiency. In summary, the combination of Siemens SIMIT and Matlab Simulink provides comprehensive and powerful tools for the development, simulation, and optimization of digital twins for thermal exchangers, contributing to more efficient management of thermal systems in industrial and energy applications. Digital twins, including the utilization of Siemens SIMIT and Matlab Simulink, offer numerous potential applications for education in the fields of industrial engineering and energy. Below are some key areas of application: •Simulation and Modeling: Students can create digital twins and simulate their behavior under different conditions. Practical experience with model creation and simulations contributes to a better understanding of technology principles. •Optimization and Control: Studying control algorithms and optimization in Matlab Simulink enables Digital twin of heat exchange station Tom´aˇs Beneˇsl ∗Michal Hus´ak ∗Ondrej Mih´alik ∗ Radim Vancl ∗ Zdenˇek Brad´aˇc ∗∗ ∗Brno University of Technology Faculty of Electrical Engineering and Communication (e-mail: [email protected]). ∗∗ Central European Institute of Technology, Brno University of Technology, Brno, Czechia (e-mail: [email protected]). Abstract: The article describes the identification of a heat exchanger system using PLC for measurement, followed by system model identification and reconstruction in Matlab Simulink and SIMIT. The root-mean-square error of the identified system was 2.49 % on training data and 5.33 % in the validation scenario. The system model is suitable for predicting and simulating errors and anomalies; it can be used for the optimisation of control processes or system parameters. Therefore, the model can serve as an educational tool, allowing training of students, operators and other experts. They can experiment without fear of damaging components and without having to wait for the long-time transients of a real system. Keywords: Heat Exchaner, SIMIT, Matlab, Digital Twin, Optimisation 1. INTRODUCTION In today’s era of rapid technological progress, digitalization has become a key element in optimizing industrial processes. The concept of a digital twin brings a revolutionary approach to monitoring and managing physical devices and processes. One specific application of this innovative technology is the creation of digital twins for thermal systems, a crucial component in heat transfer systems within industrial and energy sectors. The ”Digital twin of heat exchange station” represents a digital model of a thermal exchange station, precisely simulating the physical properties, behavior, and interactions with the environment of the actual equipment. This innovative technology enables engineers and operators to monitor the state of the thermal exchange station in realtime, providing comprehensive data on its performance, efficiency, and potential issues. The main advantages of creating a digital twin of heat exchangers lie in the ability to predict and prevent faults, optimize performance and energy efficiency, and reduce maintenance costs. Precise simulation and monitoring allow the identification of potential problems, facilitating preventive maintenance and reducing downtime. Jones et al. (2020) In this article, we focus on key aspects of creating digital twins for heat exchangers, including technical challenges, development trends, and specific examples of implementation. Furthermore, we discuss the impact of this innovative technology on the industrial sector and potential directions for further development in the field of thermal system management using digital twins. The combination of Siemens SIMATIC Process Simulation (SIMIT) and Matlab Simulink opens up wide possibilities for the development and optimization of digital twins for thermal systems. Siemens SIMIT specializes in industrial simulation and visualization, while Matlab Simulink brings powerful tools for modeling dynamic systems and simulations. SIEMENS (2023) SIMIT enables engineers to create detailed digital models of heat exchangers, taking into account their physical properties, geometry, and operational parameters. By integrating SIMIT with Matlab Simulink, these models can be connected to advanced algorithmic and control strategies developed in Matlab Simulink. SIEMENS (2023) Using Matlab Simulink, engineers can conduct extensive simulations of thermal exchangers with precision in modeling fluid dynamics, material thermal properties, and other critical parameters. This integration allows not only accurate modeling of the behavior of heat exchangers but also testing various scenarios, optimizing control algorithms, and developing sophisticated strategies to achieve maximum energy efficiency. In summary, the combination of Siemens SIMIT and Matlab Simulink provides comprehensive and powerful tools for the development, simulation, and optimization of digital twins for thermal exchangers, contributing to more efficient management of thermal systems in industrial and energy applications. Digital twins, including the utilization of Siemens SIMIT and Matlab Simulink, offer numerous potential applications for education in the fields of industrial engineering and energy. Below are some key areas of application: •Simulation and Modeling: Students can create digital twins and simulate their behavior under different conditions. Practical experience with model creation and simulations contributes to a better understanding of technology principles. •Optimization and Control: Studying control algorithms and optimization in Matlab Simulink enables Digital twin of heat exchange station Tom´aˇs Beneˇsl ∗Michal Hus´ak ∗Ondrej Mih´alik ∗ Radim Vancl ∗Zdenˇek Brad´aˇc ∗∗ ∗Brno University of Technology Faculty of Electrical Engineering and Communication (e-mail: [email protected]). ∗∗ Central European Institute of Technology, Brno University of Technology, Brno, Czechia (e-mail: [email protected]). Abstract: The article describes the identification of a heat exchanger system using PLC for measurement, followed by system model identification and reconstruction in Matlab Simulink and SIMIT. The root-mean-square error of the identified system was 2.49 % on training data and 5.33 % in the validation scenario. The system model is suitable for predicting and simulating errors and anomalies; it can be used for the optimisation of control processes or system parameters. Therefore, the model can serve as an educational tool, allowing training of students, operators and other experts. They can experiment without fear of damaging components and without having to wait for the long-time transients of a real system. Keywords: Heat Exchaner, SIMIT, Matlab, Digital Twin, Optimisation 1. INTRODUCTION In today’s era of rapid technological progress, digitalization has become a key element in optimizing industrial processes. The concept of a digital twin brings a revolutionary approach to monitoring and managing physical devices and processes. One specific application of this innovative technology is the creation of digital twins for thermal systems, a crucial component in heat transfer systems within industrial and energy sectors. The ”Digital twin of heat exchange station” represents a digital model of a thermal exchange station, precisely simulating the physical properties, behavior, and interactions with the environment of the actual equipment. This innovative technology enables engineers and operators to monitor the state of the thermal exchange station in realtime, providing comprehensive data on its performance, efficiency, and potential issues. The main advantages of creating a digital twin of heat exchangers lie in the ability to predict and prevent faults, optimize performance and energy efficiency, and reduce maintenance costs. Precise simulation and monitoring allow the identification of potential problems, facilitating preventive maintenance and reducing downtime. Jones et al. (2020) In this article, we focus on key aspects of creating digital twins for heat exchangers, including technical challenges, development trends, and specific examples of implementation. Furthermore, we discuss the impact of this innovative technology on the industrial sector and potential directions for further development in the field of thermal system management using digital twins. The combination of Siemens SIMATIC Process Simulation (SIMIT) and Matlab Simulink opens up wide possibilities for the development and optimization of digital twins for thermal systems. Siemens SIMIT specializes in industrial simulation and visualization, while Matlab Simulink brings powerful tools for modeling dynamic systems and simulations. SIEMENS (2023) SIMIT enables engineers to create detailed digital models of heat exchangers, taking into account their physical properties, geometry, and operational parameters. By integrating SIMIT with Matlab Simulink, these models can be connected to advanced algorithmic and control strategies developed in Matlab Simulink. SIEMENS (2023) Using Matlab Simulink, engineers can conduct extensive simulations of thermal exchangers with precision in modeling fluid dynamics, material thermal properties, and other critical parameters. This integration allows not only accurate modeling of the behavior of heat exchangers but also testing various scenarios, optimizing control algorithms, and developing sophisticated strategies to achieve maximum energy efficiency. In summary, the combination of Siemens SIMIT and Matlab Simulink provides comprehensive and powerful tools for the development, simulation, and optimization of digital twins for thermal exchangers, contributing to more efficient management of thermal systems in industrial and energy applications. Digital twins, including the utilization of Siemens SIMIT and Matlab Simulink, offer numerous potential applications for education in the fields of industrial engineering and energy. Below are some key areas of application: •Simulation and Modeling: Students can create digital twins and simulate their behavior under different conditions. Practical experience with model creation and simulations contributes to a better understanding of technology principles. •Optimization and Control: Studying control algorithms and optimization in Matlab Simulink enables Copyright © 2024 The Authors. This is an open access article under the CC BY-NC-ND license ( https://creativecommons.org/licenses/by-nc-nd/4.0/ )
312 Tomáš Benešl et al. / IFAC PapersOnLine 58-9 (2024) 311–316 Fig. 1. Physical model of heat exchange station to explore strategies for improving the performance and energy efficiency of systems. •Diagnostics and Maintenance: Digital twins provide a realistic means for practicing diagnostics and maintenance planning in industrial environments. •Integration of Industrial Systems: Students, operators and other experts can explore how digital twins interact with real industrial systems, providing insights into the integration of technologies in practice. •Innovation in Problem Solving: Encouraging creativity in finding innovative solutions to improve thermal systems in a virtual environment. The use of digital twins in education equips students with practical skills that are increasingly important in industrial environments, where digitization and simulation play a crucial role in the design, control, and optimization of industrial processes. 2. PHYSICAL MODEL DESCRIPTION A small-scale model of a heat exchanger station incorporating a counterflow heat exchanger is depicted in Fig. 1. The primary side of the system simulates a heat source using a 2 kW electric boiler heater with 10 liters of accumulation. This primary loop is configured with mixing and forced circulation of the thermal medium, wherein standard water from the distribution line is used. The key components of the model include thermistors and PT100 thermometers strategically distributed close to the upstream connections of the heat exchanger. Disadvantage of the contact measurement type sensor has been described by Walendziuk et al. (2015), leads to compensate the additive error by long term observation. These measuring points serve as the output variables of the monitored dynamical system. For measurement and control purposes, the model is interconnected with a Siemens S7-1500 industrial Programmable Logic Controller (PLC). This PLC is equipped with the requisite instrumentation to monitor the sensors and manage actuators, ensuring the effective operation of the entire system. The second purpose of instrumentation is to run a testing scenario for system identification, during which the inputs of the physical system are altered and the dynamic response of the outputs is recorded. 2.1 Data acquisition scenario The TIA Portal V17 development environment from Siemens was used to collect data from the heat exchanger station, which also contains the TRACES function, which was used to record the measured data with a sampling period of 5 seconds. Higher sampling rates would not yield much more information because the temperature waveforms were very smooth. The system has two inputs to control 3-way mixing valves, V1and V2, and four temperature sensors which enable identification of the system’s dynamics, see Fig. 2. The measuring test scenario was performed to collect identification data. The schedule of the sequence is specified in Table 1. Before starting each measurement, it was important to specify the initial conditions of the experiment. The water pressure in the pipe was roughly 50 kPa at ambient temperature (primary and secondary circuits). The primary and secondary circuits have to be bleed out of air gases. The pre-start sequence consists of turning on all medium pumps and preheating the boiler tank to a working temperature. The working temperature was established experimentally as 80 ◦C. In this state, both mixing valves are closed, the control signal is set to value 0.0, see Fig. 2. Therefore, the heat exchanger is not supplied by heated water. After this pre-start sequence, the model is prepared to enter the measuring sequence. Validation scenario was generated by Matlab pseudo-random generator, with uniform distribution from 0.0 to 1.0. Table 1. Valve switching sequence used for identification and validation. State Time Identification Validation St[min] V1(t)V2(t)V1(t)V2(t) Start 0 0.0 1.0 0.00 1.00 1 10 1.0 1.0 0.65 0.20 2 130 0.0 1.0 0.38 0.30 3 250 1.0 1.0 0.81 0.47 4 370 1.0 0.0 0.53 0.23 5 490 1.0 1.0 0.35 0.85 6 550 0.0 1.0 0.94 0.19 7 610 1.0 1.0 0.22 0.88 8 670 1.0 0.0 0.31 0.12 Stop 730 0.0 0.0 0.00 0.00 3. MATHEMATICAL MODEL The mathematical model was developed and tested in the Matlab Simulink environment. The modeling task is divided into sub-blocks which adopt different modelling approaches. Systems without dynamics or with negligible dynamics, such as valves, are described with linear o non-linear
Tomáš Benešl et al. / IFAC PapersOnLine 58-9 (2024) 311–316 313 Fig. 1. Physical model of heat exchange station to explore strategies for improving the performance and energy efficiency of systems. •Diagnostics and Maintenance: Digital twins provide a realistic means for practicing diagnostics and maintenance planning in industrial environments. •Integration of Industrial Systems: Students, operators and other experts can explore how digital twins interact with real industrial systems, providing insights into the integration of technologies in practice. •Innovation in Problem Solving: Encouraging creativity in finding innovative solutions to improve thermal systems in a virtual environment. The use of digital twins in education equips students with practical skills that are increasingly important in industrial environments, where digitization and simulation play a crucial role in the design, control, and optimization of industrial processes. 2. PHYSICAL MODEL DESCRIPTION A small-scale model of a heat exchanger station incorporating a counterflow heat exchanger is depicted in Fig. 1. The primary side of the system simulates a heat source using a 2 kW electric boiler heater with 10 liters of accumulation. This primary loop is configured with mixing and forced circulation of the thermal medium, wherein standard water from the distribution line is used. The key components of the model include thermistors and PT100 thermometers strategically distributed close to the upstream connections of the heat exchanger. Disadvantage of the contact measurement type sensor has been described by Walendziuk et al. (2015), leads to compensate the additive error by long term observation. These measuring points serve as the output variables of the monitored dynamical system. For measurement and control purposes, the model is interconnected with a Siemens S7-1500 industrial Programmable Logic Controller (PLC). This PLC is equipped with the requisite instrumentation to monitor the sensors and manage actuators, ensuring the effective operation of the entire system. The second purpose of instrumentation is to run a testing scenario for system identification, during which the inputs of the physical system are altered and the dynamic response of the outputs is recorded. 2.1 Data acquisition scenario The TIA Portal V17 development environment from Siemens was used to collect data from the heat exchanger station, which also contains the TRACES function, which was used to record the measured data with a sampling period of 5 seconds. Higher sampling rates would not yield much more information because the temperature waveforms were very smooth. The system has two inputs to control 3-way mixing valves, V1and V2, and four temperature sensors which enable identification of the system’s dynamics, see Fig. 2. The measuring test scenario was performed to collect identification data. The schedule of the sequence is specified in Table 1. Before starting each measurement, it was important to specify the initial conditions of the experiment. The water pressure in the pipe was roughly 50 kPa at ambient temperature (primary and secondary circuits). The primary and secondary circuits have to be bleed out of air gases. The pre-start sequence consists of turning on all medium pumps and preheating the boiler tank to a working temperature. The working temperature was established experimentally as 80 ◦C. In this state, both mixing valves are closed, the control signal is set to value 0.0, see Fig. 2. Therefore, the heat exchanger is not supplied by heated water. After this pre-start sequence, the model is prepared to enter the measuring sequence. Validation scenario was generated by Matlab pseudo-random generator, with uniform distribution from 0.0 to 1.0. Table 1. Valve switching sequence used for identification and validation. State Time Identification Validation St[min] V1(t)V2(t)V1(t)V2(t) Start 0 0.0 1.0 0.00 1.00 1 10 1.0 1.0 0.65 0.20 2 130 0.0 1.0 0.38 0.30 3 250 1.0 1.0 0.81 0.47 4 370 1.0 0.0 0.53 0.23 5 490 1.0 1.0 0.35 0.85 6 550 0.0 1.0 0.94 0.19 7 610 1.0 1.0 0.22 0.88 8 670 1.0 0.0 0.31 0.12 Stop 730 0.0 0.0 0.00 0.00 3. MATHEMATICAL MODEL The mathematical model was developed and tested in the Matlab Simulink environment. The modeling task is divided into sub-blocks which adopt different modelling approaches. Systems without dynamics or with negligible dynamics, such as valves, are described with linear o non-linear Boiler M M Radiator V3 T1 T2 T3 T4 Heat Exchanger F2F1 P1 P2 ~2000 W V 1(t) V2(t) Q12 Q12 Q13 Q11 PRIMARY SECONDARY Q11 Q11 Q21 Q22 Q23 Q22 Q21 Q21 Q21 Q11 Fig. 2. Model of heat exchange station static models. In contrast, the thermal subsystems are characterised by linear dynamical models (e.g. the heating element, boiler, radiator). As a more sophisticated approach to modelling, we had to adopt the finite-difference method (FDM). FDM models are one of the simplest numerical solutions for partial differential equations. FDM models a distributed-parameter system by dividing it into sub-systems and modelling them as systems with lumped elements. More details are to be found in Shukla et al. (2011-12-31); Bergman (2011). The parameters of the lumped elements sub-models are identified from the measured data. However, this would entail the identification of roughly a hundred parameters (and with finer FEM division even more). In order not to complicate the search for the optimal parameters, the parameters of repeated FEM sub-models are shared. The shared-parameter approach is used for the model of the counter-flow heat exchanger and in the piping system. 3.1 Static models The three-way valves, V1and V2, are modelled as static systems with the ideal mixing of the output fluid. Furthermore, the sum of all flows equals zero. This assumption leads to the following two linear equations. Tout =Tin1Qin1 +Tin2Qin2 Qin1 +Qin2 [◦C] (1) Qout =Qin1 +Qin2 [l/s] (2) The valve represents a tank of infinitesimal volume in which two liquids of different temperatures are ideally mixed. The outlet temperature Tout of an ideal threeway valve is regarded as the weighted average of the inlet temperatures Tin1,T in2 weighted by inlet flow rates Qin1,Q in2. These flow rates depend on the valve control inputs V1(t) and V2(t). Because of having only two flow meters, we are able to get the static characteristics of the primary and secondary exchanger pipeline: Q11 and Q21, see Fig. 2. The flows in the other pipelines are estimated with the premise (2) and according to pump position in the flow circuit in Fig. 2. In particular, the flows through the primary and secondary inputs of the heat exchanger are Q11(t) = [0.0092 −0.004 V1(t)] l/s,(3a) Q21(t)=0.0061 V2(t)l/s.(3b) Q12(t)=0.0052 V1(t)l/s.(3c) Q22(t) = [0.0102 −0.004 V2(t)] l/s.(3d) These flows are schematically illustrated in Figs. 2 and 4. 3.2 State space model The task of modelling the thermodynamic system leads to three rates of heat flow (in watts): •Dissipation of heat into the environment pu(t); •Input power imparted to the water pb(t); •Heat supplied by the water due to temperature difference between the input and output water pipe pv(t). In general, the main equation of a thermal system reads pu(t)=−b[Tout(t)−Ta] (4) The ambient temperature, Ta, was controlled and the constant value of 24 ◦C was achieved. The physical model uses a boiler as a heat input. This boiler is controlled by its own non-linear two-state control loop in the form of bi-metal overheat regulation. This hidden state cannot be easily estimated, especially since the correct timing of the switching is hard to identify from temperature waveforms measured at the four monitoring points. Therefore, the power of the heater was measured and used as one of the boiler model’s inputs: pp(t)=Pwhen power is ON 0 when power is OFF (5) The power of the electrical heater was taken from its specifications as 2 kW. But the parameter Pshould be slightly different, due to neglecting the the dynamics of the heater element and its housing. Therefore, the power input was filtered by a first-order dynamical system: p′ b(t)= 1 Kh [pp(t)−pb(t)] (6) where ppis electrical input and pbis the equivalent of power dissipated into the water element. The time constant of heater element Khis sought using the identification process. Last but not least model contain the heat from water inlet. It depends on system temperature difference from inlet to outlet. pv(t)=cQ[Tin(t)−Tout(t)] (7) Here the cstands for the specific thermal capacity of the medium. In our case, the system is filled with H2O. For simplicity, we consider the constant value c= 4180 J kg−1K−1. The Qstands for mass flow of heated medium (in kg/s). The final state model of any element (the boiler, heater, radiator or FEM sub-model) is described using the calorimetric equation mcT′ out(t)=pu(t)+pp(t)+pv(t),(8) where the mstands for the mass of the water in the modelled element (in kg). After substitution into (8), we
314 Tomáš Benešl et al. / IFAC PapersOnLine 58-9 (2024) 311–316 T1T2 T1T2 T1T2 T1T2 [1] [1] [2] [2] [3] [3] [n] [n] FDE Fig. 3. FDM scheme of counter-flow heat exchanger are able to model any sub-models of our exchange station using the general equation mcT′ out(t)=−b[Tout(t)−Ta]+pp(t)+ +cQ[Tin(t)−Tout(t)] (9) Not all right-hand side terms are used simultaneously; some of them are removed, depending on the modelled element. E.g. the heat dissipation into the environment from the boiler should be negligibly small. Hence b= 0. Likewise, the radiator has a heat dissipated term on the right-hand side and no electrical power heat input, pp. 3.3 Two state model The main component of our thermodynamic physical model is the heat exchanger. A simple mathematical description of the general exchanger behaviour consists of two separate water elements, like elements of the pipe with a common wall. The interface between the two chambers is assumed with a constant heat-transfer coefficient. However, our heat exchanger is counter-flow. It means the temperature of output secondary water is heated by primary input and the temperature could be grater than the out-flowing primary water. This setup significantly increases the exchanger efficiency. The partial differential equations of the exchanger were discretised using FDM, as mentioned above. The elements resulting from this process are displayed in Fig. 6. The dashed rectangle outlines one discrete element. The primary temperature T1and secondary temperature T2affect each other according to the equations mcT′ 1(t)=cQ 1[T1in(t)−T1(t)] + +Bx[T2(t)−T1(t)] ,(10a) mcT′ 2(t)=cQ 2[T2in(t)−T2(t)] + +Bx[T1(t)−T2(t)] .(10b) 3.4 Identification process Due to the many parameters in our model topology, we had to solve a multi-parameter nonlinear optimization problem. As reported in the literature Lagarias et al. (1998), we adopted the Nelder-Mead simplex algorithm. The implementation of this method is used in Matlab enviroment as fminsearch function Nocedal (2006). It is a gradient-free optimization method, which uses the Nelder-Mead simplex algorithm for solving multidimensional nonlinear problems. This method is used to find the minimum of a scalar function of several variables. The minimum is searched by using an initial guess, which is in general called unconstrained nonlinear optimization. The convergence of the tfest may be hampered when the optimal parameters have significantly different magnitudes. On one hand, the mass mcould be initiated for the boiler model to value 10 kg. On the other hand, the thermal conductivity bof the pipeline casing is unknown. The initial parameter estimate leads to a smaller number of 0.01 W kg−1K−1. To normalise the parameter space and speed up the convergence, we transformed the vector of model parameters into a logarithmic scale; the simplex algorithm works with the vector x= ln θ, where θis the vector containing all model parameters. The transformation also ensures that all parameters remain positive real numbers. The Root Mean Squared Error (RMSE) for all measured states signals yiwhere i=1,2,3,4 in sample steps k collected by sensor T1,...,T 4. RMSE = 1 KN K k=1 N i=1 [yi(k)−ˆyi(k)]2, k=1,2,...,K, n=1,2,...,M. (11) 4. MODEL DEPLOYMENT 4.1 Matlab Simulink model Using Matlab Simulink, we were able to completely model the entire system according to the provided mathematical descriptions and measured data from the PLC. In Fig. 4, you can see the complete system diagram, composed of subsystems: •Valves: static model •Boiler: first-order dynamic •Heater: first-order dynamic •Heat exchanger (between water and water): 5×FDE •Pipeline: 13×FDE •Radiator (dominant losses into the ambient): first-order dynamic 4.2 SIMIT model To model the studied system in the SIMIT environment, we attempted to use the same approach as in the Matlab Simulink environment, though with indifferent success. In SIMIT, unlike Simulink, advanced instructions are missing, and it is necessary to assemble them from basic blocks, significantly worsening the clarity of the modeling scheme. In Fig. 6, one of the blocks (a part of the heat exchanger) can be seen. Initially, we attempted to create each component separately and then use it as a library element or template. With frequent changes and complex library block creation, the modelling scheme eventually became too large to fit on one screen, making it impractical to display the overall result as an image in the article. It was found that Siemens SIMIT computes at a lower precision than Matlab Simulink, so it was necessary to adjust all system parameters. This also resulted in the system modeled in SIMIT not matching the identified system.
Tomáš Benešl et al. / IFAC PapersOnLine 58-9 (2024) 311–316 315 T1T2 T1T2 T1T2 T1T2 [1] [1] [2] [2] [3] [3] [n] [n] FDE Fig. 3. FDM scheme of counter-flow heat exchanger are able to model any sub-models of our exchange station using the general equation mcT′ out(t)=−b[Tout(t)−Ta]+pp(t)+ +cQ[Tin(t)−Tout(t)] (9) Not all right-hand side terms are used simultaneously; some of them are removed, depending on the modelled element. E.g. the heat dissipation into the environment from the boiler should be negligibly small. Hence b= 0. Likewise, the radiator has a heat dissipated term on the right-hand side and no electrical power heat input, pp. 3.3 Two state model The main component of our thermodynamic physical model is the heat exchanger. A simple mathematical description of the general exchanger behaviour consists of two separate water elements, like elements of the pipe with a common wall. The interface between the two chambers is assumed with a constant heat-transfer coefficient. However, our heat exchanger is counter-flow. It means the temperature of output secondary water is heated by primary input and the temperature could be grater than the out-flowing primary water. This setup significantly increases the exchanger efficiency. The partial differential equations of the exchanger were discretised using FDM, as mentioned above. The elements resulting from this process are displayed in Fig. 6. The dashed rectangle outlines one discrete element. The primary temperature T1and secondary temperature T2affect each other according to the equations mcT′ 1(t)=cQ 1[T1in(t)−T1(t)] + +Bx[T2(t)−T1(t)] ,(10a) mcT′ 2(t)=cQ 2[T2in(t)−T2(t)] + +Bx[T1(t)−T2(t)] .(10b) 3.4 Identification process Due to the many parameters in our model topology, we had to solve a multi-parameter nonlinear optimization problem. As reported in the literature Lagarias et al. (1998), we adopted the Nelder-Mead simplex algorithm. The implementation of this method is used in Matlab enviroment as fminsearch function Nocedal (2006). It is a gradient-free optimization method, which uses the Nelder-Mead simplex algorithm for solving multidimensional nonlinear problems. This method is used to find the minimum of a scalar function of several variables. The minimum is searched by using an initial guess, which is in general called unconstrained nonlinear optimization. The convergence of the tfest may be hampered when the optimal parameters have significantly different magnitudes. On one hand, the mass mcould be initiated for the boiler model to value 10 kg. On the other hand, the thermal conductivity bof the pipeline casing is unknown. The initial parameter estimate leads to a smaller number of 0.01 W kg−1K−1. To normalise the parameter space and speed up the convergence, we transformed the vector of model parameters into a logarithmic scale; the simplex algorithm works with the vector x= ln θ, where θis the vector containing all model parameters. The transformation also ensures that all parameters remain positive real numbers. The Root Mean Squared Error (RMSE) for all measured states signals yiwhere i=1,2,3,4 in sample steps k collected by sensor T1,...,T 4. RMSE = 1 KN K k=1 N i=1 [yi(k)−ˆyi(k)]2, k=1,2,...,K, n=1,2,...,M. (11) 4. MODEL DEPLOYMENT 4.1 Matlab Simulink model Using Matlab Simulink, we were able to completely model the entire system according to the provided mathematical descriptions and measured data from the PLC. In Fig. 4, you can see the complete system diagram, composed of subsystems: •Valves: static model •Boiler: first-order dynamic •Heater: first-order dynamic •Heat exchanger (between water and water): 5×FDE •Pipeline: 13×FDE •Radiator (dominant losses into the ambient): first-order dynamic 4.2 SIMIT model To model the studied system in the SIMIT environment, we attempted to use the same approach as in the Matlab Simulink environment, though with indifferent success. In SIMIT, unlike Simulink, advanced instructions are missing, and it is necessary to assemble them from basic blocks, significantly worsening the clarity of the modeling scheme. In Fig. 6, one of the blocks (a part of the heat exchanger) can be seen. Initially, we attempted to create each component separately and then use it as a library element or template. With frequent changes and complex library block creation, the modelling scheme eventually became too large to fit on one screen, making it impractical to display the overall result as an image in the article. It was found that Siemens SIMIT computes at a lower precision than Matlab Simulink, so it was necessary to adjust all system parameters. This also resulted in the system modeled in SIMIT not matching the identified system. Fig. 4. SIMULINK over-all model design of heat exchanger station Fig. 5. Comparing the measured real signal and model
316 Tomáš Benešl et al. / IFAC PapersOnLine 58-9 (2024) 311–316 Fig. 6. Plate heat exchangers in SIMIT 4.3 Evaluation and future work We have found that using SIMIT as a replacement for Simulink is not suitable at all. For further research, we will choose to utilize SIMIT for the control of conveyor systems, inverters, or servo controllers, or for the use of predefined library elements. It is also planned to explore the integration of Matlab and SIMIT precisely due to the limited model creation capabilities. With thermometers T1,T2and T4the pipe temperature instead of water temperature is measured. In the future, it would be useful to extend the simulation model to include a water heat transfer model and a pipe heat transfer model. Because the water temperature is different from the pipe temperature, an error in the model is induced. If water is flowing only in the primary circuit and water is standing in the secondary circuit, the temperature in the secondary circuit should stabilise, but in reality, this is not the case as the heat transfer through the heat exchanger heats up the pipes in the secondary circuit. This causes heat to gradually spread through the pipes and the water in the secondary circuit slowly starts to heat up from the pipes. This phenomenon causes another source of errors in the model. Currently, we use only the linear flow model. Non-linear static characteristics of valve opening should improve the model accuracy. The latter alternative could afford a more precise flow measurement. 5. CONCLUSION The result of this experiment is that the representation and identification of the system is significantly easier to create in the Matlab Simulink environment. The SIMIT environment is not well optimized for graphical programming like Simulink. The RMSE deviation of the identified system was 2.49 % in the identification scenario and 5.33 % in the validation scenario. Fig. 5 shows the results of real measurement compared with the simulated system. The next step is to attempt to design the system in the SIMIT environment using integrated library elements for flow systems. Subsequently, create a visualization of the system both in the SIMIT and Matlab Simulink environments and connect it to real or simulated PLC. This way, we obtain an educational tool that closely resembles the real system in its parameters to the maximum extent possible. The result would then consist in the testing of a functional and verified code on a real system. The model of the heat exchanger station obtained in this study is a non-linear multi-input multi-output system. Control of such a system typically requires advanced control approaches, such as non-linear model predictive control (MPC). Our model can be used to design an optimal MPC, e.g. for power consumption optimisation. The model may be also used to detect deviations of the monitored system from its expected behaviour, thereby enabling anomaly detection. E.g. a clogged pipe or damaged insulation could be predicted before total failure. It will lead to optimal maintenance techniques for commonly used heat systems. These topics should be the subject of our further research. This experiment demonstrated that even with a minimal number of sensors, it is possible to simulate a complex system. ACKNOWLEDGEMENTS The completion of this paper was made possible by the grant No. FEKT-S-23-8451 - “Research on advanced methods and technologies in cybernetics, robotics, artificial intelligence, automation and measurement” financially supported by the Internal science fund of Brno University of Technology. REFERENCES Bergman, T. (2011). Fundamentals of Heat and Mass Transfer. Wiley. URL https://books.google.cz/books?id=vvyIoXEywMoC. Jones, D., Snider, C., Nassehi, A., Yon, J., and Hicks, B. (2020). Characterising the digital twin: A systematic literature review. CIRP Journal of Manufacturing Science and Technology, 29, 36–52. doi: https://doi.org/10.1016/j.cirpj.2020.02.002. Lagarias, J.C., Reeds, J.A., Wright, M.H., and Wright, P.E. (1998). Convergence properties of the nelder– mead simplex method in low dimensions. SIAM Journal on Optimization, 9(1), 112–147. doi: 10.1137/S1052623496303470. Nocedal, J. (2006). Numerical optimization. Springer series in operations research and financial engineering. Springer, New York, 2nd ed. edition. Shukla, A., Singh, A.K., and Singh, P. (2011- 12-31). A comparative study of finite volume method and finite difference method for convection-diffusion problem. American Journal of Computational and Applied Mathematics, 1(2), 67–73. doi:10.5923/j.ajcam.20110102.13. URL http://article.sapub.org/10.5923.j.ajcam.20110 102.13.html. SIEMENS (2023). Simit simulation platform (v11.1). Technical report, SIEMENS AG. URL https://cache.industry.siemens.com/dl/files/ 650/109823650/att 1152291/v1/SIMIT enUS en- US.pdf. Walendziuk, W., Idzkowski, A., Machacek, Z., and Slanina, Z. (2015). Evaluation of pt100 sensor deflection effect during strain measurements. Elektronika ir Elektrotechnika, 21(4), 23–26. doi: 10.5755/j01.eee.21.4.12776.