testframework.clients.brain.tester.grid module

A sub object of the client for interaction with Grid Connection Point

class testframework.clients.brain.tester.grid.GridConnection(client: TestClient)

Bases: object

Grid connection to be used in Test Cases.

Provides methods for interacting with the Grid Connection Point. It’s possible to connect and disconnect to the grid with a circuit breaker. Also provides access to every single datapoint of testbench power meter at grid connection point

Usage:

Given a TestClient with TestClient(testbench, 30) you can use the Grid connection with testclient.grid.xx

The grid connection provides this functionality
  • connect()

  • disconnect()

  • get_power_total()

  • get_power_l1()

… - get_current_l1()

connect() None

turns on grid connection point enabling power flow to and from the grid.

disconnect() None

turns off grid connection point circuit breaker disabling power flow to and from the grid

get_current_l1() float

return current value measured from power meter at sampling point Grid where the grid connection point is measured

get_current_l2() float

return current value measured from power meter at sampling point Grid where the grid connection point is measured

get_current_l3() float

return current value measured from power meter at sampling point Grid where the grid connection point is measured

get_frequency() float

return frequency value measured from power meter at sampling point Grid where the grid connection point is measured

get_power_l1() float

Return power L1 value measured from power meter at sampling point Grid where the grid connection point is measured

Positive Values represent an power flow from the Testbench into the grid.

get_power_l2() float

return power L1 value measured from power meter at sampling point Grid where the grid connection point is measured Positive Values represent an power flow from the Testbench into the grid.

get_power_l3() float

return power L1 value measured from power meter at sampling point Grid where the grid connection point is measured

Positive Values represent an power flow from the Testbench into the grid.

get_power_total() float

Return power total value measured from power meter at sampling point Grid where the grid connection point is measured.

Positive Values represent an power flow from the Testbench into the grid.

get_total_energy_export() float

return total energy export towards grid measured from power meter at sampling point Grid where the grid connection point is measured

get_total_energy_import() float

return total energy import from grid measured from power meter at sampling point Grid where the grid connection point is measured

get_voltage_l1() float

return voltage value measured from power meter at sampling point Grid where the grid connection point is measured

get_voltage_l2() float

return voltage value measured from power meter at sampling point Grid where the grid connection point is measured

get_voltage_l3() float

return voltage value measured from power meter at sampling point Grid where the grid connection point is measured