Cyber-Physical Systems (BIL-435), week 12 of 14
Prof. Dr. Utku Kose, Süleyman Demirel University
Two parts of this interactive lab are virtual laboratories in three dimensions (3D) with the hardware in the foreground. Part A calibrates the twin of the library in its reading room. Part C runs the twin in the operations room of the facility management through a week with an open window. Part B computes one step of the synchronised twin step by step, and Part D asks for the values of stage 12 by hand. Part E is a field task with the heater meter, the time server and the twin of the library. Part E is a field task with the heater meter, the time server and the twin of the library. In the calculator every intermediate value is rounded, and the next step continues with the rounded value. The results of Parts A and C can be copied into the Colab notebook. Each laboratory first shows its site. Start moves the view closer, and the view returns to the site at the end. The laboratories work best with a mouse or a touchpad on a computer.
The reading room of the library B2 is heated by the central heating of the building. A room sensor on the wall measures the indoor temperature, a pyranometer on the window sill measures the sun, and the weather link brings the outdoor temperature. The controller of the building management system logs all of them every 15 minutes, together with the power of the heating and the opening hours. The screen on the wall runs the twin of the room with the values that you set, fed with the logged inputs of one week.
Set the heat capacity C, the resistance R, the internal gains q of the visitors and the solar aperture g below the view. Then choose the week and press Run the twin. Your missions: First, run the library of Week 2 on week 1, with C = 30 kWh/K, R = 0.40 K/kW and no sun or visitors. Second, find a twin with a root mean square error (RMSE) below 0.40 K in week 1. Third, run a twin with an RMSE below 0.40 K in week 1 on week 2, which it has not seen, and keep it below 0.40 K there too.
| Run | Week | C (kWh/K) | R (K/kW) | q (kW) | g (kW per W/m²) | RMSE (K) |
|---|
Back to the lecture: Calibration: Fitting the twin to the library, where the text continues after the box of this part.
Continue in Colab, section 2: Paste your twins into MY_TWINS and compare them with the model.
The calculator follows the formulas of the lecture for one quarter of an hour of the library. It uses the calibrated values rounded: C = 30.41 kWh/K, R = 0.44 K/kW, g = 0.018 and q = 7.33 kW. It computes the heat flows, the prediction, the innovation and the correction. It ends with the standardised innovation and the first step of the cumulative sum (CUSUM).
Back to the lecture: Synchronisation: Keeping the twin in step, where the text continues after the box of this part.
Continue in Colab, section 3: Run the synchronised twin over the second week with six gains.
The operations room of the facility management runs the twin of the library on a server in its rack. Every 15 minutes the twin predicts the next reading of the room sensor and corrects itself with the gain L. A CUSUM watches the innovations, and every hour the server recalibrates the resistance R from a sliding window of the last hours. A time server with a receiver of the Global Positioning System (GPS) keeps the clocks of the building management system and the twin together. In week 3, a window of the reading room stays open from Wednesday 10:00 to Thursday 16:00, and nobody tells the twin.
Choose the gain of the synchronisation and the window of the recalibration below the view and press Run week 3. Your missions: First, run the twin open loop, with L = 0. Second, detect the open window within one hour, without a false alarm before it. Third, recalibrate R at Thursday 08:00 to within 5 percent of its true value with the window open, 0.285 K/kW.
| Run | Gain L | Window (h) | False alarms | First alarm after the opening (min) | R at Thu 08:00 (K/kW) | Twin against the true temperature (K) |
|---|
Back to the lecture: Drift and recalibration, where the text continues after the box of this part.
Continue in Colab, section 4: Paste your runs into MY_RUNS and compare them with the model.
At 2:00 at night the twin of the library stands at 18.00 °C. Outside it is 2.00 °C, the heating delivers 40 kW, there is no sun and the library is closed. With $C = 30.41$ kWh/K and $R = 0.44$ K/kW: Compute the prediction of the twin for 2:15. The sensor then reads 17.93 °C: Compute the twin after the correction with $L = 0.3$. The walls of a seminar room conduct heat with 0.48 K/kW and an open window with 0.90 K/kW: Compute the resistance $R$ of the room with the window open.
Back to the lecture: The campus microgrid, stage 12: A twin that follows, where the text continues after the box of this part.
Continue in Colab, section 5: Compute the results of stage 12 of the campus microgrid.
Since the calibration of stage 12, the twin misses the library more and more. The heater meter, a heat meter on the heating circuit, delivers the power of the heating to the twin and keeps its own clock. The time server in the rack of Part C takes the time from its GPS receiver and serves it with the Network Time Protocol (NTP) at the address 10.0.0.5. All logs of the campus carry their stamps in Coordinated Universal Time (UTC).
The keys work as on the real device. The keys ▲ and ▼ choose a line, OK opens it or starts and saves a change, and the escape key (ESC) goes back. A number changes digit by digit: ◀ and ▶ choose the digit, and ▲ and ▼ change it. On a computer, the arrow keys, Enter and Escape work as well, once the front panel has been clicked.
Back to the lecture: In the field: The clock of the heater meter, where the text continues after the box of this part.
Answer each question, rate your confidence and check the answer. The self-assessment is for your own practice and does not count towards the grade. Results stay in this browser.
Write a short answer to each question. The text is saved in this browser and is included when you export the learning log, together with the results of the practice parts.