Electrification turns oilfield wellsite machinery into a small industrial microgrid. Beam pumping units, drilling rigs and workover rigs impose cyclic and step-like loads, while PV and wind output follow weather. A battery energy storage system must absorb renewable surplus, cover deficits, limit exchange with the external grid and remain safe in field operation. The energy battery storage system described here integrates lithium iron phosphate (LFP) modules, a model-based battery management system (BMS), an energy management system (EMS), a power conversion system (PCS) and protection into a single storage cabinet.

Load and generation basis for sizing
The sizing basis was measured at the wellsite: PV generation averaged about 330 kWh per day, wind generation about 1 kWh per day, and wellsite demand about 176 kWh per day. Demand was split into approximately 106 kWh during daylight and 70 kWh at night. Because wind contributed less than 1% of daily generation, PV determined the main charging window and the storage requirement.
| Parameter | Value |
|---|---|
| PV generation, daily average | ≈330 kWh |
| Wind generation, daily average | ≈1 kWh |
| Wellsite load, daily | ≈176 kWh |
| Daytime load | ≈106 kWh |
| Nighttime load | ≈70 kWh |
| Battery design capacity | 185.5 kWh |
| PCS rating | 30 kVA |
The 185.5 kWh battery and 30 kVA PCS were sized to carry the wellsite through one overcast or rainy day and to be recharged during daylight. The capacity is close to one day of wellsite demand, so the operational value depends on shifting PV energy from midday to night rather than on multi-day autonomy.
LFP was selected as the cell chemistry. It offers low cost, good safety and long cycle life, while its lower energy density is less important in an outdoor installation with available space. An integrated thermal-control system reduces the low-temperature performance penalty that would otherwise constrain charge and discharge in cold weather.
Battery management with a dual extended Kalman filter
The BMS uses a two-level architecture. In the test build, each module contained 16 series-connected cells. Module-level battery management units measured cell voltages and temperatures and performed cell balancing. A pack-level battery control unit communicated with the module units over a CAN bus, controlled precharge and the main charge and discharge contactors, and aggregated state data. A high-voltage current monitoring unit and a DC-DC converter completed the architecture.
State of charge (SOC) was estimated with a dual extended Kalman filter. The battery is represented by a three-RC equivalent circuit, so the model can separate short-, medium- and long-term polarization. The fast state vector and the slow parameter vector are
\[
\mathbf{x}=[S,u_1,u_2,u_3]^{\mathsf T},\qquad
\mathbf{y}=[R_\Omega]^{\mathsf T}
\]
where \(S\) is SOC, \(u_i\) is the polarization voltage of the \(i\)-th RC branch and \(R_\Omega\) is the ohmic internal resistance. Terminal voltage \(z=u_B\) is the common observation. The prediction and correction steps are
\[
\mathbf{x}_k^{-}=\mathbf{A}\mathbf{x}_{k-1}+\mathbf{B}I_{k-1}^{B},\qquad
\mathbf{y}_k^{-}=\mathbf{y}_{k-1}
\]
\[
\mathbf{x}_k=\mathbf{x}_k^{-}+\mathbf{K}_k^{x}(z_k-\hat z_k^{x}),\qquad
\mathbf{y}_k=\mathbf{y}_k^{-}+\mathbf{K}_k^{y}(z_k-\hat z_k^{y})
\]
\[
\mathbf{K}_k=\mathbf{P}_k^{-}\mathbf{H}_k^{\mathsf T}
\left(\mathbf{H}_k\mathbf{P}_k^{-}\mathbf{H}_k^{\mathsf T}+\mathbf{R}_k\right)^{-1}
\]
Here, \(\mathbf{A}\) and \(\mathbf{B}\) are the state-transition and input matrices derived from the RC network, \(I_{k-1}^{B}\) is the battery current input, \(\mathbf{H}_k\) is the observation Jacobian, \(\mathbf{P}_k\) is the state covariance and \(\mathbf{R}_k\) is the measurement-noise covariance set by the voltage sensor. At each time step, the voltage residual corrects both the fast state estimate and the slow resistance estimate. The state filter follows load changes, while the parameter filter tracks the gradual resistance increase associated with aging. This avoids fixing internal resistance at a beginning-of-life value, which would otherwise bias SOC estimation as the pack ages.
Energy management and protection
The EMS dispatches power in a fixed hierarchy. Renewable generation first serves the wellsite load. Surplus power charges the battery; if the battery is full, the surplus is exported to the external grid. When renewable output is below demand, the battery supplies the deficit. If SOC falls below 10%, the external grid supplies the remaining demand. The EMS controller collects power-flow data from across the microgrid, stores and analyzes the data, provides visualization, and exchanges information with a cloud server over the public network.
Safety is handled at the cabinet and system levels. The DC path includes a load isolation switch, a DC contactor and a DC fuse as three layers of protection, supplemented by thermal management and a fire-protection system. Anti-islanding protection is split between the PCS and the EMS: the PCS protects against loss of voltage on the AC bus during grid-connected operation, while the EMS protects against loss of voltage at the low-voltage side of the transformer.
Laboratory and field validation
The test system used 302 Ah prismatic LFP cells, with 16 cells in series per module and a two-level BMS. Laboratory tests were performed before cabinet assembly, followed by integrated-cabinet assembly and field testing under actual wellsite conditions.
| Test | Condition | Result |
|---|---|---|
| Module capacity | 100 A constant-current discharge, 302 Ah nominal | 305.4 Ah delivered |
| Voltage behavior | SOC above 20% | Voltage decline ≤5% |
| System discharge | PCS at 30 kW constant power | Current fluctuation ≤5% |
In the capacity test, the 302 Ah module delivered 305.4 Ah at 100 A, confirming that the series-connected cells met the nominal rating. The voltage decline remained within 5% while SOC was above 20%. In the PCS discharge test, the 30 kW constant-power command produced a stable current output with fluctuations within 5%.
| Phase | Period | Energy | Share of 185.5 kWh design capacity |
|---|---|---|---|
| Charge | 9:00–16:00 | 181.2 kWh | 97.68% |
| Discharge | 16:10–9:00 | 164.7 kWh | 88.79% |
During the field cycle, the battery charged to 97.68% of its design capacity and discharged 88.79%, leaving a reserve at the end of the night. The PCS held near-maximum charging power through most of the solar window, and the system maintained a nearly linear, stable energy output during variable-power discharge. In repeated site tests, the green-power share of the microgrid exceeded 92%, comprehensive conversion efficiency exceeded 90%, and external-grid power fluctuation was reduced by more than 60%.
| Case | Grid power range (kW) | Peak-to-peak span (kW) |
|---|---|---|
| No storage | −46.9 to 19.1 | 66.0 |
| With storage | −16.9 to 9.34 | 26.2 |
| Change | — | 60.2% reduction |
In the single-day grid-power profile, the external-grid power range narrowed from −46.9 to 19.1 kW without storage to −16.9 to 9.34 kW with storage. The corresponding peak-to-peak span fell from 66.0 kW to 26.2 kW, a 60.2% reduction, consistent with the reported fluctuation reduction of more than 60%. Positive and negative values represent opposite directions of power exchange with the external grid.
Interpretation and scope
The integrated cabinet changes the wellsite grid interface from a passive, weather-dependent load into a controllable buffer. The 185.5 kWh bank shifts midday PV energy into the night and reduces the ramps seen by the external grid. The dual extended Kalman filter adds online resistance tracking, which matters because a fixed-resistance model would increasingly misstate SOC as the pack ages. Testing the BMS, EMS, PCS and protection as one system also makes the reported green-power share and conversion efficiency system-level indicators rather than cell-level laboratory estimates.
The field data cover a daily charge-discharge cycle and repeated site tests. They do not establish multi-season performance or long-term aging behavior. Capacity, dispatch thresholds and anti-islanding settings would need to be re-evaluated for different wellsite load profiles, renewable mixes and local grid codes.
