Cyber-Physical Systems (BIL-435), week 1 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 runs days on a model of the campus with a rule for the battery. Part C puts the battery controller with its gain knob on a test bench, between a meter simulator and an inverter simulator. Parts B and C compute the formulas of the lecture step by step, and Part D asks for the values of stage 1 by hand. Part E is a field task with the battery controller and the real meter, operated as on site. In the calculators 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 room. Start moves the view to the bench, and the view returns to the room at the end. The laboratories work best with a mouse or a touchpad on a computer.
The model of the campus stands on a table in the laboratory, with its power flows running along the cables. The screen on the wall draws the import from the city grid and the state of charge of the battery hour by hour. The battery follows the rule of the lecture. It discharges whenever the import would exceed the threshold and charges whenever the net load falls below 330 kW. Its charge stays within 10 and 90 percent. It starts each day half full.
Choose the weather and the threshold below the view and press Run the day: The day of 24 hours passes in about twelve seconds. Your missions are to find the lowest threshold that still holds the peak at the threshold, first on the sunny day and then on the cloudy day. Type both values into the fields below. The thresholds move in steps of 5 kW.
| Day | Weather | Threshold (kW) | Peak import (kW) | Import (kWh) | Charge at midnight | Peak held |
|---|
Back to the lecture: Energy and power: The balance of the microgrid, where the text continues after the box of this part.
Continue in Colab, section 1: Paste your days into MY_DAYS and compare them with the rule of the battery.
The calculator repeats both worked examples of the models one step at a time. Its sliders set the irradiance, the air temperature and the wind speed. The figure shows the power curve of the wind turbine with the chosen speed.
Back to the lecture: Models of the sources: Sun and wind, where the text continues after the box of this part.
Continue in Colab, section 2: Evaluate both models and repeat the worked examples.
The bench is a test set-up for the controller of the battery, as engineers use it before the controller goes into the container. The real controller with its gain knob sits on a mounting rail between two simulators. A meter simulator replays the import at the grid connection, and an inverter simulator answers the set points like the inverter of 250 kW. The screen next to them draws the import after every step of the loop. The net load is 530 kW and the target 400 kW, as in the worked example of the lecture.
Set a gain below the view and press Run ten steps. Watch the import on the screen, then classify what you saw with one of the five buttons: Slow, fast, one step, oscillating or unstable. The mission is complete when you have shown and named all five behaviours.
| Trial | Gain | Your class | Factor |1 - K| | Result |
|---|
The calculator below repeats the worked example of the loop one step at a time. Its sliders set the net load, the target and the gain.
Back to the lecture: Closing the loop: Peak shaving with the battery, where the text continues after the box of this part.
Continue in Colab, section 3: Paste your trials into MY_GAINS and compare them with the formula.
At noon, the buildings use 575 kW and the chargers 22 kW, the solar plant delivers 348.9 kW and the wind turbine 14.4 kW. Compute the import from the city grid to one decimal. Over the day, the demand is 11,197 kWh and the import 7,570 kWh: Compute the self-sufficiency to three decimals. Finally, the battery rule lowers the peak import from 585.7 kW to 450.0 kW: Compute the cut in kW to one decimal.
Back to the lecture: The campus microgrid, stage 1: The power balance of the campus, where the text continues after the box of this part.
Continue in Colab, section 4: Compute the results of stage 1 of the campus microgrid.
On site, the controller of Part C no longer reads a simulator but the real meter at the grid connection. Another company installed the meter and its current transformers, and nobody has checked the sign of its power yet. It is 21:00, the solar plant gives nothing, and the campus imports about 530 kW from the city grid.
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: Checking the sign of the 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.