arXiv:2610.38094cs.CEOct 2026

Manuscript Offprint

arXiv:2610.38094

PyPSA-Libya: An Open-Source Energy System Model for National Decarbonization and Hydrogen Export Pathways

Mohamed Abuella

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Libya possesses significant renewable energy potential that remains largely untapped. This paper presents PyPSA-Libya, a national-scale model built on the PyPSA-Earth framework, designed to explore optimal transition pathways for the Libyan power sector. We present two primary studies: (1) an electricity-only capacity expansion analysis comparing a zero-emission constraint against an unconstrained baseline at 36-cluster resolution, and (2) a sector-coupled hydrogen export study evaluating the levelized cost of exporting 70 TWh/year of hydrogen to Europe under three technological scenarios and a 100 €/tonne CO₂ carbon tax regime. Results indicate that while solar PV dominates the domestic capacity mix, integration of hydrogen production significantly alters grid storage requirements. Furthermore, under carbon pricing, steam methane reforming with carbon capture (SMR-CC) frequently out-competes pure green electrolysis, establishing a lower-cost compliance pathway for cross-border export. The model, data, and configuration files are released under an open-source license to support transparent energy planning in Libya.

Keywords: Energy system modeling, Libya, Green Hydrogen, Blue Hydrogen, Decarbonization, Carbon pricing, PyPSA-Earth

1. Introduction

The global imperative to mitigate climate change has accelerated the transition from carbon-intensive fossil fuels to renewable energy sources, in line with the objectives of the Paris Agreement [1, 2]. Petro-state economies face a distinct dual challenge during this transition: they must decarbonize their domestic power sectors

*Any feedback is welcome via email. Email address: mhdabuella@gmail.com (Mohamed Abuella) while simultaneously diversifying their economies away from oil and gas dependence [1, 3]. Libya represents a critical case study of this paradigm. The country's political economy relies almost entirely on conventional fossil fuels, with the oil sector contributing approximately 95% of export earnings and 65% of Gross Domestic Product (GDP) [1]. Over the past decade, political instability and administrative division have severely affected Libya's energy sector. Armed conflicts and unilateral shutdowns of major oil fields (such as those in early 2020 causing financial losses exceeding $9 billion) have repeatedly undermined the reliability of fuel supplies for electricity generation [1].

Concurrently, Libya's domestic power sector, monopolized by the state-owned General Electricity Company of Libya (GECOL), is facing a severe operational crisis [1]. The power grid relies completely on fossil fuels, with natural gas driving approximately 63% of generation and oil-fired plants accounting for 29% [1]. Rapid growth in energy demand, driven by rising temperatures and population growth, has led to a persistent peak-load electricity deficit of approximately 1,200 MW, resulting in frequent and widespread blackouts [1]. Furthermore, Libya's environmental footprint is substantial; in 2018, its per capita CO2 emissions amounted to 8.73 tonnes, surpassing the Chinese national average of 7.95 tonnes [1]. Although the Renewable Energy Authority of Libya (REAoL) set an ambitious target in 2010 to integrate a 10% renewable share (equivalent to 2,219 MW) into the national mix by 2025, this initiative was completely derailed by the civil conflict that erupted in 2011 [1].

Despite these challenges, Libya is exceptionally well-positioned to pivot toward a sustainable energy economy. The country possesses some of the highest solar and wind resource potentials in the world. The average global horizontal irradiation (GHI) over the Libyan territory yields an average potential solar photovoltaic (PV) productivity of 1.9 MWh/kW/year (with Al Kufra in the southeast reaching an optimal annual productivity of 2,100 kWh/kWp), while onshore wind potentials reach up to 500 W/m² along its southernmost borders, coastal Darna, and the Western Mountain region [1]. Recognizing these vast resources, pioneering research in the late 1980s first proposed a solar-hydrogen energy system for Libya, emphasizing that converting solar power to hydrogen would not only extend the lifespan of fluid fossil fuel reserves as raw chemical feedstocks but also position Libya as a leading exporter of clean hydrogen to Europe in lieu of oil and gas [3].

To evaluate the modern technical and economic feasibility of this transition, we introduce PyPSA-Libya, a high-resolution, open-source energy system model of Libya's power and hydrogen network. Built as a country-specific extension of the global PyPSA-Earth framework [4], our model is divided into two primary, complementary studies designed to address both domestic and international planning questions:

  1. Electricity-only capacity expansion (Part 1): This study models Libya's power sector in isolation at a high spatial resolution of 36 clustered nodes. It compares a zero-CO2 emission constraint (Case 1) against an unconstrained fossil-heavy baseline (Case 2) under 2030 technology-cost assumptions, capturing transmission bottlenecks and identifying the optimal mix of solar, wind, and storage needed for complete domestic grid decarbonization.

  2. Sector-coupled hydrogen export (Part 2): This study models the spatial and economic implications of exporting 70 TWh/year of renewable or low-carbon hydrogen from Libya to European markets via maritime shipping [4]. Formulated at a 12-cluster resolution to maintain computational tractability, we evaluate three technology scenarios representing strictly green electrolysis (Scenario A), electrolysis coupled with carbon-captured steam methane reforming (SMR CC) representing blue hydrogen (Scenario B), and an unconstrained scenario representing grey, blue, and green pathways (Scenario C).

To ensure robustness, our model incorporates a connectivity_upgrade workflow to resolve topological gaps and isolated buses inherent in OpenStreetMap (OSM) grid data for Libya. We report the Levelized Cost of Electricity (LCOE) and apply a paired-run differencing methodology to isolate the Net Levelized Cost of Hydrogen (Net LCOH) directly attributable to the export obligation. The model code, parameters, and results are released under an open-source license to establish a transparent, reproducible benchmark for national decarbonization and cross-border energy partnerships.