Cyber-Physical Systems (BIL-435), week 3 of 14

Discrete and Hybrid Dynamics: State Machines, Thermostats and Protection Relays

Prof. Dr. Utku Kose, Süleyman Demirel University

Discrete and hybrid dynamics lab

Two parts of this interactive lab are virtual laboratories in three dimensions (3D) with the hardware in the foreground. Part B tests the overcurrent relays of a feeder and of the incomer on a test bench. Part C puts you at the switchboard of the campus during an outage. Parts A and B compute the formulas of the lecture step by step, and Part D asks for the values of stage 3 by hand. Part E is a field task with the front panel of the feeder relay and a secondary test set, 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 B and C can be copied into the Colab notebook. Each laboratory first shows its room. Start moves the view to the bench or the switchboard, and the view returns to the room at the end. The laboratories work best with a mouse or a touchpad on a computer.

Part A: The thermostat, step by step

The calculator repeats the worked example of the thermostat one step at a time. Its sliders set the band of the hysteresis, the outdoor temperature and the power of the heater. The figure shows six hours of the cycle, with the heater on in the orange bars.

Back to the lecture: Hybrid automata: The thermostat of the library, where the text continues after the box of this part.
Continue in Colab, section 2: Simulate the thermostat and compare its cycle with the formulas.

Part B: The relay test bench

The relay test bench holds the two overcurrent relays that protect the library. The relay of its feeder has a pickup of 250 A and a time multiplier of 0.10. The relay of the incomer of the transformer has a pickup of 1600 A. Their current transformers turn the pickup current into 1 A, so the test set injects secondary currents of a few amperes. The timer of the test set starts with the injection and stops when the trip contact of a relay closes. The output contacts of these relays add a fixed delay of 20 ms.

Choose a test below the view and press Inject. Your missions: First, measure the feeder relay at four or more multiples of its pickup and compare the times with the formula of the lecture. Second, send the fault of 5 kA through both relays at once. Find the smallest time multiplier of the incomer that trips at least 0.3 s after the feeder relay.

TestRelayMultipleTMSTrip (s)Formula (s)

The calculator below repeats the formula of the standard inverse curve one step at a time. Its sliders set the fault current, the pickup current and the time multiplier.

Back to the lecture: Protection: The overcurrent relay, where the text continues after the box of this part.
Continue in Colab, section 3: Paste your tests into MY_TESTS and fit the setting of the relay.

Part C: The switchboard of the campus

The main switchboard of the campus stands in the substation beside the transformer. The breaker at the point of common coupling (PCC) joins the campus to the city grid, and a synchroscope shows the phase angle between the campus and the city grid. Six feeder breakers supply the car park and the buildings B1 to B5, and the inverter of the battery can form a grid of its own. The wall screen above the switchboard shows the mode of the controller, the state of charge and the loads.

In this laboratory you act as the controller. The evening starts at 20:58, and one minute passes in half a second. The city grid fails at 21:00 and returns at 23:00. To form the island, open feeder breakers until the load fits the inverter of 250 kW, then press Form the island. When the state of charge falls below 0.30, open every feeder except the library B2 and the laboratories B5. At 23:00, close the PCC breaker while the angle lies within 15 degrees of zero. Your missions: Run the evening once with the state of charge of 0.144 that the shaving of Week 2 leaves. Then run it with the reserve of 0.815 of stage 3.

RunTimeEventFromToSoC

Back to the lecture: The microgrid as a hybrid system, where the text continues after the box of this part.
Continue in Colab, section 4: Paste your event log into MY_LOG and check your transitions.

Part D: By hand: Stage 3 of the microgrid

The thermostat holds 21 °C with a band of 2 K at 5 °C outside: Compute the on time of the heater of 60 kW in minutes to one decimal. A relay with $TMS = 0.2$ sees a current of ten times its pickup: Compute its trip time in seconds to three decimals. Finally, the island runs 0.15 Hz apart from the returning grid at a phase difference of 300 degrees. Compute the time in seconds until the angle reaches 345 degrees, to two decimals.

Back to the lecture: The campus microgrid, stage 3: Operating modes and protection, where the text continues after the box of this part.
Continue in Colab, section 5: Compute the results of stage 3 of the campus microgrid.

Part E: Field task: Setting the feeder relay

The relay of the library feeder in Part B arrives from its maker with default settings. Before the injection tests, the protection engineer enters the protection study through the front panel, as on site. The current transformers (CT) of the feeder have the ratio 250/1 A. The study asks for the standard inverse (SI) curve of the International Electrotechnical Commission (IEC), which the relay calls IEC SI. It also asks for a pickup of 250 A and a time multiplier of 0.10.

The keys work as on the real relay. 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: Setting a relay through its front panel, where the text continues after the box of this part.