Battery

The com.powsybl.iidm.network.Battery interface is used to model a battery. A battery on the electric grid is an energy storage device that is either capable of capturing energy from the grid or of injecting it into the grid. The electric energy on the grid side is thus transformed into chemical energy on the battery side and vice versa. The power flow is bidirectional and it is controlled via a power electronic converter.

Characteristics

Attribute Type Unit Required Default value Description
p0 double MW yes - The Constant active power
q0 double MVar yes - The Constant reactive power
MinP double MW yes - The Minimal active power
MaxP double MW yes - The Maximum active power

Active Limits

The minimal active power is expected to be lower than the maximal active power.

Reactive Limits

A set of reactive limits can be associated to a battery. All the reactive limits modelings available in the library are described here.

Examples

This example shows how to create a new Battery in the network:

Battery battery = network.getVoltageLevel("VL").newBattery()
    .setId("BAT")
    .setNode(1)
    .setP0(10)
    .setQ0(0)
    .setMinP(-12.0)
    .setMaxP(12.0)
    .add();

Extensions

Active power control

This extension is used for both batteries and generators, see more on generators’ documentation page.