Documentation Home Page HYPERSIM Home Page
Pour la documentation en FRANÇAIS, utilisez l'outil de traduction de votre navigateur Chrome, Edge ou Safari. Voir un exemple.

Battery Energy Storage System (BESS) - Average


Description

The battery energy storage system shown in Figure 1 features a battery connected to an inverter via a second order DC filter. The inverter is connected to the grid via a RL choke filter. The battery model was implemented from a Matlab/Simulink model , its parameters are described in Mask and Parameters. The DC filter must be designed to limit the battery current ripple and the DC Link voltage ripple. The inverter is responsible for controlling the active and reactive power at its point of connection, which is normally the secondary winding of a transformer. The control modes of the BESS are explained in the Modeling Details section. The inverter model used is an average converter. The choke filter must be designed to limit the total harmonic distortion of the BESS current injected into the grid at the point of common coupling (PCC).

The BESS must be connected to an external step up transformer to the grid. It is recommended to use a star-delta transformer with a base power of 1.2 times the nominal power of the BESS.

Figure 1 BESS components schematic 

Mask and Parameters

System Parameters

Name

Description

Unit

Name

Description

Unit

DC link Capacitor - Cdc

DC link capacitor

F

DC link Inductance - Ldc

DC link inductance.

H

Filter Inductance – Lgs

Filter inductance at the AC side

H

Filter Resistance – Rgs

Filter resistance at the AC side

Nominal DC Link Voltage - Vdc

Nominal DC voltage maintained at the DC link capacitor

V

Nominal Frequency - f

Nominal frequency of the BESS

Hz

Nominal Power - Sg

Nominal power of the BESS

VA

Nominal Voltage - Vp

Nominal AC voltage of the BESS

V

Switching frequency - Fsw

Switching frequency of the PWM that control the gating pulse signals of the inverter Switching frequency of the PWM that control the gating pulse signals of the inverter (for average inverter models, this number is only used to design the measurement filters in the control blocks).

Hz

Control Loop Parameters

Name

Description

Unit

Name

Description

Unit

Active Power Regulator

KpP

Proportional gain PI controller for active power regulator.

-

KiP

Integral gain PI controller for active power regulator.

-

Reactive Power Regulator

KpQ

Proportional gain PI controller for reactive power regulator.

-

KiQ

Integral gain PI controller for reactive power regulator.

-

Current Regulator

KpI

Proportional gain PI controller for current regulator.

-

KiI

Integral gain PI controller for current regulator.

-

Voltage Regulator - Grid Forming Mode

Kp_isV

Proportional gain PI controller for voltage regulator in grid forming mode.

-

Ki_isV

Integral gain PI controller for voltage regulator in grid forming mode.

-

Voltage Regulator - Grid Following Mode

KpV

Proportional gain PI controller for voltage regulator in grid following mode.

-

KiV

Integral gain PI controller for voltage regulator in grid following mode.

-

Qlim_dn

Reactive power lower limit for PI controller of voltage regulator in grid following mode

pu

Qlim_up

Reactive power upper limit for PI controller of voltage regulator in grid following mode.

pu

Current Limit

CL

Current Limit

pu

Battery Parameters

Name

Description

Unit

Name

Description

Unit

Type of Battery

1: Lead Acid, 2: Lithium-Ion, 3: Nickel-Cadmium, 4: Nickel-Metal-Hydride.

-

Initial SOC

Initial state of charge of the battery.

%

Rated capacity

Rated minimum capacity of the battery.

Ah

Response time

Response time of the voltage when the current has a step change.

s

Internal Resistance

Internal resistance of the battery

Ω

Discharge Current

Nominal discharge current.

A

Vnom

Nominal voltage of the battery.

V

Vfull

Voltage at maximum charge of the battery.

V

Vexp

Voltage at the end of the exponential zone in the discharge curve of the battery.

V

Qnom

Capacity of the battery before the voltage goes below its nominal value.

Ah

Qexp

Capacity at the end of the exponential zone in the discharge curve of the battery.

Ah

Qmax

Maximum capacity of the battery. 

Ah

Note: When populating the battery parameters please make sure you pay attention to the following:

  1. Please make sure you use realistic battery parameters for the model to perform correctly.

  2. If you don't know the battery parameters, you can use this excel tool to calculate typical battery parameters - Parameters_calculation.xlsx

  3. The battery power rating should be greater than or equal to the BESS power rating.  

Ports, Inputs, Outputs and Signals Available for Monitoring

Ports

Name

Description

Name

Description

PCC

Network connection; supports 3-phase connection

Inputs

Name

Description

Units

Name

Description

Units

ESS_mode

Mode of operation of BESS. 1- Grid following, 0- Grid forming.



GC_mode

Type of grid-connected mode. 0- PV mode, 1-PQ mode.



Qref

Reactive power reference. This parameter is ignored in grid forming mode.

pu

Pref

Active power reference. This parameter is ignored in grid forming mode.

pu

Vref

Voltage reference. This parameter sets the voltage reference for PCC when the BESS is in either PV mode or Grid forming mode.

pu

En

Block enabled. 1- Enable, 0- Disable.



Outputs

None.

Sensors

Name

Description

Units

Name

Description

Units

ESS_mode

Mode of operation of BESS. 1- Grid following, 0- Grid forming.



GC_mode

Type of grid-connected mode. 0- PV mode, 1-PQ mode.



Qref

Reactive power reference. This parameter is ignored in grid forming mode.

pu

Pref

Active power reference. This parameter is ignored in grid forming mode.

pu

Vref

Voltage reference. This parameter sets the voltage reference for PCC when the BESS is in either PV mode or Grid forming mode.

pu

En

Block enabled. 1- Enable, 0- Disable.



Iabc0, Iabc1, Iabc2

Three-phase current through the choke filter.

A

Vdc

DC link voltage measured at the terminals of the DC capacitor

V

Vmag

Voltage magnitude controlled at the AC side point of connection of BESS.

pu

P

Active power absorbed/delivered by the BESS

pu

Q

Reactive power absorbed/delivered by the BESS

pu

SOC

State-of-charge of the battery

%

Battery_Voltage

Voltage measured at the battery

V

Battery_Current

Current measured at the battery

A

Modeling Details

The BESS has several operating modes, as shown in Figure 2. The model operates in either the grid following (grid connected) mode, or grid forming mode (islanded). Within the grid following mode, it can operate in active and reactive power reference regulation or active power and voltage regulation mode. Each mode provides the current references to the current regulator. Each regulator and operation mode is explained in the following sections. 

Figure 2 BESS control diagram with mode selection

Current Regulators

The BESS performs the control of its output currents in the dq reference frame. The structure of current regulator is shown in Figure 3Idq  and Vdq  are the grid currents and voltages, respectively, in the dq reference frame at the PCC while Vdqi  are the inverter output voltages. The d axis current corresponds to the active power and the q axis current corresponds to the reactive power. 

Figure 3 Current regulator

The BESS has two modes of operation in terms of its synchronization: 1) the grid-following mode; and 2) the grid-forming mode. For the grid-following mode, the synchronization angle is obtained via a phase locked loop (PLL) on the PCC. Which means the converter follows the frequency set by the grid voltage at the PCC or secondary of the transformer, if externally added. In the grid-forming mode, the synchronization angle of the dq-reference frame is produced by an internal virtual oscillator of the converter. Which means the converter sets the frequency of the distribution grid and acts as a slack bus. The angle selection based on the BESS mode of operation is shown in Figure 4

Figure 4 Synchronization angle selection for the dq reference frame

Each mode is explained in the following subsections.

The Grid Following Mode(s)

In this mode of operation, the inverter synchronizes itself to the voltage at the PCC. The d axis current references are generated to follow the active power references provided to the inverter. The active power regulator is shown in Figure 5, where the regulator output is limited to respect the current limit defined. 

Figure 5 Active power regulator

The q axis current references are generated to follow the reactive power references provided to the inverter. The reactive power regulator is shown in Figure 6, where the regulator output is limited to respect the current limit defined.

Figure 6 Reactive power regulator

In Figure 6, the reference for reactive power, QGref , can be either directly provided, or can be provided by a voltage regulator as shown in Figure 7. In this figure, V ­ is the positive sequence voltage at the PCC. Qlim_up and Qlim_lo is the upper and lower limit on the reactive power of the converter. 

Figure 7 Positive sequence voltage regulator

The Grid Forming Mode

In this mode of operation, the inverter synchronizes itself to the virtually generated angle to form the frequency of the grid. The d and q current references are generated to control the voltage at the PCC to be equal to Vdqref , For the active and reactive powers at the transformer secondary to directly correspond to the d and q currents respectively, the references selected are Vd = Vref and Vq =0 pu. The voltage regulator in the grid forming mode is shown in Figure 8. The regulator is limited such that the current references respect the current limit defined.

Figure 8 Grid forming voltage regulator.

References

OPAL-RT TECHNOLOGIES, Inc. | 1751, rue Richardson, bureau 1060 | Montréal, Québec Canada H3K 1G6 | opal-rt.com | +1 514-935-2323