Integration and control of lithium-ion BESSs for active network management in smart grids: Sundom smart grid backup feeding case

Lithium-ion battery energy storage systems (Li-ion BESS), due to their capability in providing both active and reactive power services, act as a bridging technology for efficient implementation of active network management (ANM) schemes for land-based grid applications. Due to higher integration of intermittent renewable energy sources in the distribution system, transient instability may induce power quality issues, mainly in terms of voltage fluctuations. In such situations, ANM schemes in the power network are a possible solution to maintain operation limits defined by grid codes. However, to implement ANM schemes effectively, integration and control of highly flexible Li-ion BESS play an important role, considering their performance characteristics and economics. Hence, in this paper, an energy management system (EMS) has been developed for implementing the ANM scheme, particularly focusing on the integration design of Li-ion BESS and the controllers managing them. Developed ANM scheme has been utilized to mitigate MV network issues (i.e. voltage stability and adherence to reactive power window). The efficiency of Li-ion BESS integration methodology, performance of the EMS controllers to implement ANM scheme and the effect of such ANM schemes on integration of Li-ion BESS, i.e. control of its grid-side converter (considering operation states and characteristics of the Li-ion BESS) and their coordination with the grid side controllers have been validated by means of simulation studies in the Sundom smart grid network, Vaasa, Finland.


Introduction
Stochastic and unpredictable nature of the renewable energy sources (RES) and their geographic distribution, often in remote areas with weak electricity distribution network, induce various grid-related challenges. In such situations, managing power balance and grid stability is nonetheless a challenging task, as these factors depend on a number of variables depending on the network topology [1][2][3]. Challenge of supply reliability and quality with higher integration of RESs has been tried to address by setting stricter grid code requirements and innovative grid control architectures such as active network management (ANM) schemes [4,5].
Therefore, ANM schemes are utilized to improve the penetration of RESs by managing available flexibilities in the distribution grids and keeping their power quality within the acceptable limits defined by the grid codes [6,7].
In order to implement ANM schemes, distributed energy resources (DERs) in the distribution network (i.e. MV and LV systems) play an important role in providing flexibility in the power system for local and system wide grid resiliency, along with maximizing network DER hosting capacity [8,9]. These flexibilities consist of active power (P-) control and reactive power (Q-) control of flexible resources like controllable DER units, battery energy storage systems (BESS), controllable loads and electric vehicles (EVs) which are connected in distribution networks, thereby providing different local and system-wide technical services as part of future ANM schemes [4,10,11].
BESSs play a major role as flexible energy source (FES) in ANM schemes by bridging gaps between non-concurrent renewable energy sources (RES)-based power generation and demand in the MV and low-voltage (LV) distribution 1 3 networks. Ability of the BESS to provide both active power and reactive power flexibility services makes them a multipurpose FES for ANM needs [12][13][14]. With current technological maturity, Li-ion BESSs are capable of acting as a cost-efficient FESs and provide multiple technical ancillary/flexibility services like frequency control by controlling active power injection and voltage control by active/ reactive power management [15,16]. From transmission and distribution system operators (TSO/DSOs) point of view, an effective way to utilize BESS for ANM will be to place them in a HV/MV substation or in the MV distribution, e.g. at MV/LV substations. Hence, Li-ion BESSs will be an integral part of the ANM scheme at the MV distribution system for this study.
Efficient operation of ANM schemes highly bank upon the design of energy management system (EMS) [17,18] which manages the available flexibilities in the distribution system. However, intermittent nature of the RES-based flexible DERs narrows the flexibility provisioning for ANM schemes, thereby challenging their scope of services. Hence, a highly controllable FES will be needed to design the EMS functionalities effectively. Therefore, Li-ion BESSs due to their fast and controllable dynamics will play an important role in the EMS functionalities for multiple flexibility services acting as a buffer to manage flexibilities in the distribution systems.
In [19][20][21][22][23], extensive research on various ANM schemes to maintain system voltage level, as well as to manage the reactive power flow from the DERs within the reactive power window (RPW) provided by the Finnish TSO, Fingrid and ENTSO-E network code [24], have been studied and validated in a local smart grid pilot SSG. From previous results, the reactive power control of wind turbine generator (WTG) was sufficient in order to satisfy RPW requirements on an hourly average data obtained from the SSG MV distribution network. However, it had been recommended to study multi-use capabilities of BESSs in multi-objective ANM schemes by controlling flexibilities in RESs, BESSs and on-load tap changing transformers (OLTCs) [25][26][27] on a smaller time-step in order to design ANM schemes and services effectively. It was also suggested to study the effect of load curves BESS integration methodology (i.e. the effect of ANM load on the Li-ion BESS converter controllers).
Therefore, the objective of this study is to validate the overall role of Li-ion BESS integration design and its stability for ANM needs, which is often used to mitigate transient instability. Hence, a rule-based [28] EMS has been proposed in Sect. 4 to study the overall power system stability by means of electromagnetic transient (EMT) simulation studies in Matlab/Simulink (SimPow-erSystems). Developed EMS design for ANM in the MV distribution system will be based on managing two key network parameters. First objective of the EMS will be to manage reactive power flow from the DERs between the TSO/DSO interface defined by the reactive power window (RPW) provided by Finnish TSO, Fingrid, and ENTSO-E network codes [24]. The reactive power flow between TSO/DSO interfaces has to comply with the RPW limits to avoid being penalized. Second objective is to manage the MV network voltages which are facing higher fluctuation due to RESs in the network, between the limits set by grid codes. Hence, maintenance of voltage and RPW limits defined by the grid code provides a strong case for implementation of ANM schemes to administer technical ancillary services by effectively managing active and reactive power flows from the available FESs in the distribution network.
To conduct such studies, the requirements are (a) development of accurate Li-ion BESS performance model, (b) Liion BESS integration methodology (i.e. design and development of controllers for the power electronic interfaces used for the grid integration purposes) and (c) EMS design (i.e. development of co-ordinated control of grid side controllers with DER controllers).
Design and methodology for integration of Li-ion BESS in the MV distribution system, which are capable to capture and study the fast transient dynamics by means of EMT simulations (i.e. smaller time step system simulation), have been developed and presented in [29,30]. Hence, in this paper, the developed Li-ion BESS integration design is subjected to the active and reactive power requirements provided by the EMS implementing ANM scheme. EMS focus has been laid on designing coordinated control between the grid side controllers (i.e. the EMS controllers) and Li-ion BESS converter controllers. To validate the developed ANM scheme and the Li-ion BESS integration design, the backup feeding use case in the SSG has been modelled. Under this use case condition, the voltages and the RPW window limits are expected to be under duress, especially at low WTG, which will be addressed by the available flexibility (i.e. Liion BESS and WTG) in the MV distribution system with the help of developed EMS thereby providing active network management services.
To summarize, in this paper, the focus has been laid on, This paper has been organized in the following manner. Sundom smart grid network architecture has been explained in Sect. 2. The reason for underlying voltage fluctuations in the network is presented in Sect. 3. Section 4 explains the ANM architecture and the developed EMS design to manage FESs in the MV distribution system. Developed ANM scheme and their performance with respect to the coordinated control attributes have been validated by means of case studies in Sect. 5.

Sundom smart grid network
SSG is represented in Fig. 1, which is a pilot living laboratory jointly created by ABB, Vaasan Sähköverkko (DSO), Elisa (communications) and University of Vaasa. Real-time voltage and current measurements (IEC 61,850 standard) are recorded from the MV distribution network, from all four feeders at a HV/MV substation and from three MV/LV substations comprising 20 measurement points in total. Measurement is sampled at 80 samples/cycle. In addition, active and reactive power, frequency, RMS voltages and current measurements are received by GOOSE messages. SSG is modelled accurately with available data and grid structure, i.e. distribution network structure, loads, generation units, etc., obtained from the local DSO Vaasan Sähköverkko.
Wind power generation is modelled from the measured active power (P WIND ) and reactive power (Q WIND ) at bus Tuulivoima (J08), on 30-May-2017. P WIND and Q WIND are then converted to system currents, with MV voltage as reference as explained in [31]. Loads at Sulva (J06), Sundom (J07) and Vaskiluoto (J09) feeders are modelled as per the measured data from the MV distribution system.
Li-ion BESS dynamic characteristics were modelled accurately by considering the influence of parameters such as temperature, depth of discharge and C-rate (charge/discharge) by means of second-order equivalent circuit cell model [30]. Li-ion BESS is connected to the power system by means of power electronic interface. In this case, DC/DC bidirectional buck-boost converter will stabilize fluctuating/ changing battery voltage. It will also aid in charging and discharging of batteries within its safe operating window. DC/AC -converter will be connected to the high voltage side of the DC/DC -converter, which converts it into 3-phase, 400 V RMS . Voltage will be boosted to MV level by means of 3-phase transformer thereby completing integration of the battery system.
Deriving accurate design of the power converter controllers, i.e. DC/AC voltage-source-converter (VSC) and DC/ DC BESS buck-boost controllers for optimal operations is imperative considering the nature of applications they are tending in this study. Overall BESS integration design and their integration methodology along with power electronics controller design are explained in [30]. Developed ANM scheme in Sect. 4 will be utilized to manage flexibilities from WT generator, Li-ion BESS and the HV/MV OLTC transformer in SSG and will be validated in the use case where the loads are varying at low WT generation.

Problem description-voltage fluctuation
The intermittency of renewable power generation (i.e. wind power in SSG) introduces negative effects on the distribution grid, especially in terms of voltage rise and drop issues [32]. To understand the voltage change issues in the MV network of the SSG, an equivalent circuit of the network is deduced in Fig. 2. The line impedance ( Z Grid ) is represented as R Grid and X Grid . The current flow at the point of current coupling (PCC), i, is represented as, I i , and the MV bus voltage is measured as U MV . Wind turbine generator and Li-ion BESS have been represented as current sources with output, I Wind and I BESS . The loads in SSG are represented as current sinks, consuming I Su , I Sun and I Vas . Eqs. (1)-(6) represent the power flow in the SSG network. The active power flow at the PCC has been represented by (1) and summarized as in (2), where P Wind , P BESS and P Load represent the active power contribution from the WTG, Liion BESSs and load power consumption, respectively. P Load includes the active power flows of the individual load feeders from Sulva, Sundom and Vaskiluoto ( P Su , P Sun and P Vas ). Similarly, reactive power flow at the PCC is shown in (3), where Q Wind , Q BESS and Q Load represent the reactive power contribution from the WTG, Li-ion BESSs and load power consumption, respectively. Q Load includes the reactive power flows of the individual load feeders from Sulva, Sundom and Vaskiluoto ( Q Su , Q Sun and Q Vas ). Equation (4) represents the current distribution at the PCC in the network. Overall power flow at the PCC is shown in (5), where S i determines the apparent power flow, P i and Q i shows their active and reactive power flow components. The injected current at the PCC is represented in (6).
The equivalent circuit for Fig. 1 can be represented as (7), where U MV represents the MV grid voltage and the ΔV determines the voltage deviation in the MV grid. Voltage at the PCC is represented by U i in (8) and substituting Z Grid values (9) is obtained representing voltage at the PCC. Similarly, Substituting current I i from Eqs. (6) to (9), the overall voltage deviation is represented in (10). The voltage deviation ΔU is influenced by both active and reactive power flows in the network. By resolving (10), Eq. (11) is obtained, which shows the voltage deviation due to active power component ( ΔU d ) and reactive power component ( ΔU q ).
In the SSG's MV power grid, the magnitude of ΔU q is comparatively smaller than ΔU d but their contribution to voltage deviation is higher than that of the LV distribution system due to the line reactance. However, the purpose of this study is to design and develop effective utilization of Liion BESS active power control and to understand and map the effects of MV grid voltage fluctuation on Li-ion BESS and its adjoining power electronic converter controls. Hence, the effect of ΔU q is assumed a constant value. Therefore, by substituting active components of active power flow at the PCC, (12) has been obtained. The magnitude of voltage deviation | | ΔU i | | , at PCC is represented in (13). It is noted that the only controllable flexible energy source in Eqs. (12) and (13) is the Li-ion BESS, and hence it plays an immense role in regulating voltages in MV distribution network. By substituting Eqs. (12) in (13), we obtain the equation to provision the required change in voltage in (14).
Finally, by rearranging the equation, we obtain magnitude of active power discharge required from BESSs, i.e. in (15) to regulate the required voltages in the MV distribution system. Positive value of P BESS describes battery charging and Equivalent circuit representation of SSG the negative value to that of battery charging. Equation (15) shall form the basis for Li-ion BESS dispatch control operation in the study. The value of ΔU i is as shown in (16), which is the difference between voltage at bus i and U ref defines the required voltage correction factor at the MV bus.
where U ref is the voltage limits set by grid codes.

ANM Architecture and EMS Design
In this paper, the ANM management scheme is developed in reference to managing flexibilities from Li-ion BESSs and WT generators in the MV distribution system of SSG. Section 4.1 provides an explanation on the reactive power window requirements in TSO/DSO interface, which forms an inherent condition to be maintained as a part of ANM scheme, along with system voltages and frequency. Developed ANM scheme for Li-ion BESS operation and other available flexibilities in the MV distribution grid is explained in Sect. 4.2 and 4.3 shows the EMS architecture.

Reactive power window
Based on SSGs existing data, the future reactive power window at the MV side of the HV/MV transformer and its limits are presented in Fig. 3 [20]. The reactive power window and microgrid requirements are combined for the MV distribution system. Limits for the maximum active power are based on the measured data of the year 2016, when P MAX,IMPORT was 8.3 MW and P MAX,EXPORT was 1.975 MW. Apart from the Fingrid's requirements, EU legislations dictate reactive power interactions between TSOs and DSOs. TSO may require DSOs to actively control the exchange of reactive power and subsequently, DSO may require the TSO to consider utilizing the distribution network for reactive power management. The actual reactive power range should not exceed 48% of maximum capacity to import or export of active power (P max ), when importing (consuming) reactive power cosφ max at 0.9 inductive(ind) and exporting (producing) reactive power cosφ max at 0.9 capacitive(cap) . In addition, TSO cannot export reactive power when active power import is below 0.25*P max as [22]. ANM voltage control threshold is shown in Fig. 4, where the maximum voltage is set at 1.05 pu and the minimum voltage limits are set at 0.95 pu (both HV and MV connection points), which is based on the thermal limit for maximum current flow in the system.

ANM Architecture design-SSG
Flexibilities provided by the wind turbine (WT) are dependent on its active power generation, which in turn is dependent on the intermittent nature of wind. Thereby, WT alone will not be reliable enough to provide flexibility services in the MV distribution system of SSG. Hence, the Li-ion BESS which is placed strategically in the MV distribution grid will be able to complement WTG in providing various flexibility services in a smart grid. BESSs when integrated into the MV distribution system of the SSG are primarily designed to complement stochastic nature of wind power generation, i.e. store excess wind power generation and discharge during reduced wind power generation and secondarily used in providing technical ancillary services. Li-ion BESSs have multi-use capability based on their characteristics and hence the ANM scheme developed in this paper is inclusive utilizing such capabilities. The technical ancillary services in the ANM scheme are designed based on the available flexibilities in the MV distribution system. In this case, ancillary services include, Fig. 3 Reactive power window for SSG at MV (FINGRID) Fig. 4 Voltage control targets at HV and MV connection points 1. Voltage regulation within the threshold (Fig. 4) in the MV distribution system, mainly in all the MV feeders, is the primary objective of this ANM architecture 2. Maintaining the RPW defined by the Finnish TSO, Fingrid, at the HV side of the SSG is defined in Sect. 4.1.
Reactive power flow will be controlled from the available FESs to avoid violation of grid codes, thereby supporting customers to avoid paying the penalty fees to the TSO.

Energy management system
The most important layer of operation in the ANM scheme is the energy management system (EMS) which concerns with the operation of active and reactive power flows between MV grid and flexible energy sources, in this case, Li-ion BESS and WT generator.
Objective of the EMS is to maintain U grid,ref within the limits specified by grid codes by controlling the active and reactive power flows at the DSO/TSO interface, especially focusing on the reactive power flow which has been maintained within the limits defined by RPW.
The ANM control architecture described in Fig. 5 is designed for implementation in SSG. Measured MV grid data such as active power (P grid,meas ), reactive power (Q grid,meas ), voltages (U grid,meas ), frequency (f grid,meas ) are given as input to the EMS layer. Primary role of the EMS  Fig. 6. If the voltages, frequency and reactive power flows are well within the limits suggested by grid codes, the controllers in the EMS layer stay inactive. However, they constantly monitor the reference parameters in the MV system. In case, the defined MV parameters are out of threshold values ANM scheme starts to activate to mitigate the abnormalities by controlling the grid side controllers. The total required reactive power control is set according to requirements of Fingrid's RPW limits (i.e. Figure 3) BESS PU-control is utilized to control active power flow from the Li-ion BESS. Despite Li-ion BESSs capability of providing both active and reactive power control, they also provide active power flexibility in terms of both chargingand discharging-related services. In case the BESSs are being charged, their active power discharge control is disabled, whereas the reactive power discharge control component remains active.

PU-control and OLTC-controllers as shown in
Therefore

QU-management system
Reactive power (Q WIND ) control of WTG system depends on the reactive power output capability. The inverter operating range should be applied accurately before utilizing reactive power control strategy in WTGs. Therefore, the maximum controllable reactive power from the WTG is calculated by (17). Q WIND,MIN and Q WIND,MAX are the maximum and minimum reactive power output from the WTG. Negative symbol denotes absorbing reactive power and that of positive symbol to generate reactive power.
The reactive power control of BESS is defined by the phasor relationship between the battery inverter operating parameters, for several different levels of BESS active power output (P BESS ). When S BESS is larger than P BESS , the inverter can supply or consume reactive power, Q BESS . The BESS inverter can dispatch Q BESS quickly (on the cycle-to-cycle time scale) providing a mechanism for rapid voltage regulation. As the output, P BESS , approaches S BESS , the range of available Q BESS decreases to zero, as shown in (18). Q flex , the flexible reactive power allotted for QU-control is based on (19), whose values are in turn dependant on RPW limits defined in Fig. 3. Q flex dispatch is provided by Q WIND and Q BESS whose magnitudes are defined in Eqs. (20) and (21), respectively. The controller is designed in such a way that the Q flex allocated shall control the reactive power flow in the TSO/DSO interface within Q RPW,MIN and Q RPW,MAX and the Voltage at Sulva feeder, U SUL which is considered as the reference MV voltage. U SUL has been under stress during the defined use cases, and the Q flex flow addressed to regulate this voltage within grid codes.

BESS PU-management system
This paper proposes an autonomous PU-droop control scheme for the autonomous operation of the Li-ion BESSs according to voltage measurements at the MV distribution system. The PU-control loop is shown in Fig. 7. It is noted that the reactive power control loop has been decoupled from its active power control loop. The error between measured voltage at connection point and the reference voltage value (here it is considered 0.95 pu) is sent to a PI-controller. The droop value is used as negative feedback gain as shown in  Fig. 7. The droop gain of the regulator is set to 0.015 pu (1.5%) per 1 MW. This is a design parameter, which depends on installed network parameters (mention equations) and designed BESS rated power. In this work, the designed system is able to compensate maximum of ± 1.5% voltage drifts. Figure 8 shows this droop characteristic which has been used in this work. In order to avoid oscillation and instability issues, a ± 0.5% margin has been considered in order to enable/disable the droop control loop as it is illustrated in Fig. 2. The Li-ion BESSs start to discharge power if the reference voltage from the MV bus goes below 0.95 pu and the discharge power is based on the droop coefficient chosen in the study. In case the WT is non-operational, the Li-ion BESS starts to charge when the voltages rise to 1.05 pu or above. In case the WTG is operational, power generation is curtailed based on its own PU-droop control.
BESS internal control algorithms are described by (22) and (23). Battery discharge power (P DIS ) is provided by the BESS system when U SUL is lesser than 0.95 pu, and the magnitude of P DIS is provided by droop characteristics. According to (22), Li-ion BESS will discharge only when its SOC is greater than SOC MIN adhering to the limitations presented by the battery operational characteristics. Maximum P DIS has been set at 1C, i.e. 1 MW. Li-ion BESS charging (P CHG ) is defined by the battery's SOC and must be within their threshold SOC MIN and SOC MAX as in (23). Li-ion BESS charging is forbidden when BESS SOC is higher than SOC MAX . Magnitude of P CHG is set at a charging rate up to 2C, mainly to observe the MV distribution characteristics when BESS is in different charging modes.

WT PU-management system
WT PU-management system is designed keeping in mind the curtailment of renewable energy generation, when the voltage limits exceed 1.05 PU in the MV bus of the system. In order to manage the curtailment, droop control referred in Fig. 9 is utilized for the curtailment of wind power generation.

OLTC tap controllers
In the developed ANM scheme, OLTCs are activated to regulate voltages when QU-, QU-and P-controllers fail to provide the required voltage regulation defined by the grid codes in the MV distribution system.

Case study: variable load at low WT generation
SSG has been reliable in operation in terms of MV voltage regulation and its power quality during normal mode of operation, i.e. when the grid power is being fed from Sundom HV/MV sub-stations. However, during Sundom HV/MV substation maintenance operation, the grid power will be fed from Kuutamolahti power station (as in Fig. 10) which is about 5.2 KMs away, adding on to the overall Z Grid values. Hence, grid disturbances in the form of voltage fluctuations and power quality problems shall be anticipated, especially when variable load conditions exist at low WTG. Hence, in this use case, effect of such load variation during lower WT generation during backup feeding case has been modelled. The arising network issues, such as voltage distortion and reactive power flow within RPW, will be addressed by the ANM scheme designed in Sect. 4. The effectiveness of developed ANM scheme and the interaction between EMS and DER controllers during this condition has been studied in detail, considering the Li-ion BESS integration aspects. Initial battery SoC was maintained at about 50%, where it could accommodate simultaneous charge/discharge operations. Characteristics of new cells, i.e. unaged cells are considered for the case study. Simulations were performed for a time period (TS) of 120 s. Figure 11a shows the P BESS and Q BESS characteristics of the Li-ion BESS from its MV feeder (J10). Without ANM scheme being active, it is observed that both P BESS and Q BESS are at zero values. P WIND is shown in Fig. 11b and the Q WIND contribution from wind turbine has been unused in the base case evaluation. Figure 11c depicts the active power characteristics at the MV side of the HV/MV transformer. Negative symbol states that the active power is consumed  Fig. 11d. It is observed that the Q MV is higher than the threshold defined by the RPW limits set by FINGRID. Figure 12 represents the voltages in PU at the various MV feeders in the MV distribution system of SSG. It is observed that the voltages are well within the threshold defined by the grid codes, except the voltage at the Sulva feeder. U SUL is seen to be lower than 0.95 PU during the simulation time period. Figure 13a shows the P BESS and Q BESS characteristics of the Li-ion BESS from its MV feeder (J10) with ANM scheme being active. Magnitude of Li-ion BESS discharge (whose maximum is set at 1 MW) of P BESS is defined by the BESS PU-controller characteristics of the EMS designed to implement ANM scheme, as explained in Sect. 4.3.2. P WIND and Q WIND characteristics are as shown in Fig. 13b. The magnitude of Q flex required to satisfy RPW requirements is shown in (17). The Q WIND contribution as part of Q flex is determined by (18). In this case, Q WIND was alone enough to regulate RPW requirement. Hence, Q BESS dispatch based on (19) was unused. Figure 13c depicts the active power characteristics at the MV side of the HV/MV transformer. Negative symbol states that the active power is consumed by the MV distribution system. Reactive power characteristics are shown in Fig. 13d. It is observed that the Q MV has been reduced in magnitude and currently well within the threshold defined by the RPW limits from Fingrid.  Figure 14 represents the voltages in pu at the various MV feeders in the MV distribution system of SSG. It is observed that the voltages are well within the threshold defined by the grid codes, except the voltage at the Sulva feeder. U SUL was seen to be lower than 0.95 PU in the beginning of the simulation in the base case evaluation. However, all the MV feeder voltages have improved and well within the voltage limits determined by the grid codes after the EMS dispatched required amounts of flexibility (i.e. P BESS and Q WIND ). Figure 14 explains the DC characteristics of the Li-ion BESS and its adjoining PE converters for MV grid codes, except the voltage at the Sulva feeder. U SUL was seen to be lower than 0.95 PU in the beginning of the simulation in the base case evaluation. However, all the MV feeder voltages have improved and well within the voltage limits determined by the grid codes after the EMS dispatched required amounts of flexibility (i.e. P BESS and Q WIND ). Figure 15 explains the DC characteristics of the Li-ion BESS and its adjoining PE converters for MV grid integration. BESS charge/discharge current characteristics are shown in Fig. 15a, where magnitude of defined BESS current, in this case, is the BESS discharge current. Figure 15b depicts the changes in BESS operational voltage. BESS SoC behaviour is presented in Fig. 15c. DC-bus voltage is constantly maintained at 600 V, despite frequent variation in BESS voltage and Fig. 15d, thereby, reinforcing robust BESS model and adjoining converter controller integration design for 1 MW charge power.

Discussion and conclusion
Role of Li-ion BESSs as flexible energy sources in such distribution networks is multi-faceted considering their participation in both active and reactive power related flexibility services. In this study, the developed Li-ion BESS  integration was subjected to the load requirements of ANM schemes in the MV distribution system of SSG, when the WT generation was low and variable load conditions exist. Under such situation, transient instability is seen in the network in terms of voltage regulation. Also, the RPW limits defined by the grid codes are non-adhering to the threshold values. It is imperative that the developed EMS and its adjoining controllers must work in a co-ordinated way with the DER inverter controllers, i.e. Li-ion BESS and the WT generator in order to satisfy the ANM objectives.
Li-ion BESS integration design was validated as a part of the use case. DC/AC voltage source converter and DC/ DC bidirectional buck-boost converter and their respective controllers used in the Li-ion BESS performed as per the load requirements provided by the ANM scheme to contain voltage and RPW violation. The stability of the DC bus in Fig. 15d aids in validating the Li-ion BESS integration design being stable even at various transient conditions despite variable WTG and loads. Table 1 provides a summary of the simulation results and an indication on how the flexibility indices have been utilized based on the ANM objectives and the EMS set-points based on Eqs. (17)- (23). The reactive power control requirement, Q flex, has been provided only by Q WIND , without any interference from Q BESS . From the results, it is indicative that the Q flex , based on (17), was instrumental in keeping the reactive power flow, Q MV between HV/MV grids, within the limits specified by the RPW. With respect to the results of voltage limits at various MV feeders, it has been evident that the voltage at the Sulva feeder was below 0.95 pu without any ANM schemes operational. However, with the allocation of P BESS , whose dispatch value was based on the BESS PUdroop controller characteristics, voltage at the Sulva feeder was controlled at 0.95 pu. Purpose of this control loop is to dispatch the exact amount of active power required from the Li-ion BESS which is derived in Sect. 3, where the Li-ion BESS dispatch is dictated by (15), thereby providing optimum power without over/under-usage of the battery system.
The synergy between Li-ion BESS converter controls and the EMS controllers (i-e. BESS PU-and QU-controllers) has been established as a part ANM design and validated by the simulation results, where the EMS controllers provided required set-points to the individual component (Liion BESS and WTG) controllers. Therefore, the designed ANM scheme and its adjoining EMS controllers acted as required to provide RPW and voltage regulation.
In future studies, more use cases such as such as complementing RES intermittency and frequency fluctuations, will be added to the existing ANM control architecture, particularly focusing on the multi-use capability of the Li-ion BESSs. Design and development of adaptive EMS controllers to optimise the control of flexible energy sources in MV distribution systems will be included in the scope of study.  Further, real-time simulation models shall be built for EMS controller test-bed development purposes.
Funding Open access funding provided by University of Vaasa (UVA).
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http:// creat iveco mmons. org/ licen ses/ by/4. 0/.