Quan Li , Maoxiang Tao , Yuxian Liu , Hao Huang , Qian Li , Xiaojun Zhu
{"title":"PySTH: A Python program for calculating and analyzing theoretical solar-to-hydrogen efficiency","authors":"Quan Li , Maoxiang Tao , Yuxian Liu , Hao Huang , Qian Li , Xiaojun Zhu","doi":"10.1016/j.cpc.2025.109822","DOIUrl":null,"url":null,"abstract":"<div><div>Solar-to-hydrogen (STH) efficiency is a key metric for evaluating the economic feasibility of hydrogen production via solar-driven water splitting. However, accurately calculating theoretical STH efficiency remains challenging due to the complexity of the underlying integrals and the presence of multiple interdependent material parameters, which hampers computational efficiency and reproducibility. In this work, we introduce PySTH, a Python-based command-line program designed to enable rapid and reliable computation and intuitive visualization of theoretical STH efficiencies for two-dimensional photocatalysts under various sets of material property parameters. All required parameters are derived from first-principles calculations. The program supports four distinct photocatalytic systems: conventional photocatalysts, Janus materials, Z-scheme heterojunctions, and Janus Z-scheme systems. PySTH also generates high-resolution efficiency maps that reveal how the interplay among different material parameters affects STH efficiency, thereby offering valuable insights into synergistic optimization strategies. A series of benchmark examples demonstrate the accuracy, versatility, and practical utility of the program in theoretical photocatalysis research.</div></div><div><h3>Program summary</h3><div><em>Program Title:</em> PySTH</div><div><em>CPC Library link to program files:</em> <span><span>https://doi.org/10.17632/jxc5j8vtvb.1</span><svg><path></path></svg></span></div><div><em>Developer's repository link:</em> <span><span>https://github.com/Quanli2022/PySTH</span><svg><path></path></svg></span></div><div><em>Licensing provisions:</em> MIT license</div><div><em>Programming language:</em> Python3</div><div><em>Nature of problem:</em> Theoretical solar-to-hydrogen (STH) efficiency is a widely adopted descriptor for assessing the performance of 2D photocatalysts in solar-driven water-splitting applications targeted at hydrogen production. However, accurate evaluation of theoretical STH efficiency remains challenging due to complex integral formulations, multiple input parameters, and the absence of standardized computational tools. Moreover, the combined influence of these parameters on STH efficiency is not yet fully understood.<em>Solution method:</em> PySTH enables users to compute theoretical STH efficiencies by selecting the photocatalyst type and providing key electronic property parameters (e.g., band-edge potentials and vacuum level difference). The program performs spectral integration using AM1.5G data and outputs both pH-dependent efficiency curves and STH efficiency maps to visualize the effects of synergistic parameter variations.</div><div><em>Additional comments including restrictions and unusual features:</em> All efficiency calculations in PySTH are based on the AM1.5G solar spectrum. The software supports four classes of 2D materials: conventional photocatalysts, Janus materials, Z-scheme heterojunctions, and Janus Z-scheme systems. It employs a modular design and supports both numerical integration and parameter visualization, making it particularly suitable for high-throughput theoretical screening of photocatalysts.</div></div>","PeriodicalId":285,"journal":{"name":"Computer Physics Communications","volume":"317 ","pages":"Article 109822"},"PeriodicalIF":3.4000,"publicationDate":"2025-08-28","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Computer Physics Communications","FirstCategoryId":"101","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0010465525003248","RegionNum":2,"RegionCategory":"物理与天体物理","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS","Score":null,"Total":0}
引用次数: 0
Abstract
Solar-to-hydrogen (STH) efficiency is a key metric for evaluating the economic feasibility of hydrogen production via solar-driven water splitting. However, accurately calculating theoretical STH efficiency remains challenging due to the complexity of the underlying integrals and the presence of multiple interdependent material parameters, which hampers computational efficiency and reproducibility. In this work, we introduce PySTH, a Python-based command-line program designed to enable rapid and reliable computation and intuitive visualization of theoretical STH efficiencies for two-dimensional photocatalysts under various sets of material property parameters. All required parameters are derived from first-principles calculations. The program supports four distinct photocatalytic systems: conventional photocatalysts, Janus materials, Z-scheme heterojunctions, and Janus Z-scheme systems. PySTH also generates high-resolution efficiency maps that reveal how the interplay among different material parameters affects STH efficiency, thereby offering valuable insights into synergistic optimization strategies. A series of benchmark examples demonstrate the accuracy, versatility, and practical utility of the program in theoretical photocatalysis research.
Program summary
Program Title: PySTH
CPC Library link to program files:https://doi.org/10.17632/jxc5j8vtvb.1
Nature of problem: Theoretical solar-to-hydrogen (STH) efficiency is a widely adopted descriptor for assessing the performance of 2D photocatalysts in solar-driven water-splitting applications targeted at hydrogen production. However, accurate evaluation of theoretical STH efficiency remains challenging due to complex integral formulations, multiple input parameters, and the absence of standardized computational tools. Moreover, the combined influence of these parameters on STH efficiency is not yet fully understood.Solution method: PySTH enables users to compute theoretical STH efficiencies by selecting the photocatalyst type and providing key electronic property parameters (e.g., band-edge potentials and vacuum level difference). The program performs spectral integration using AM1.5G data and outputs both pH-dependent efficiency curves and STH efficiency maps to visualize the effects of synergistic parameter variations.
Additional comments including restrictions and unusual features: All efficiency calculations in PySTH are based on the AM1.5G solar spectrum. The software supports four classes of 2D materials: conventional photocatalysts, Janus materials, Z-scheme heterojunctions, and Janus Z-scheme systems. It employs a modular design and supports both numerical integration and parameter visualization, making it particularly suitable for high-throughput theoretical screening of photocatalysts.
期刊介绍:
The focus of CPC is on contemporary computational methods and techniques and their implementation, the effectiveness of which will normally be evidenced by the author(s) within the context of a substantive problem in physics. Within this setting CPC publishes two types of paper.
Computer Programs in Physics (CPiP)
These papers describe significant computer programs to be archived in the CPC Program Library which is held in the Mendeley Data repository. The submitted software must be covered by an approved open source licence. Papers and associated computer programs that address a problem of contemporary interest in physics that cannot be solved by current software are particularly encouraged.
Computational Physics Papers (CP)
These are research papers in, but are not limited to, the following themes across computational physics and related disciplines.
mathematical and numerical methods and algorithms;
computational models including those associated with the design, control and analysis of experiments; and
algebraic computation.
Each will normally include software implementation and performance details. The software implementation should, ideally, be available via GitHub, Zenodo or an institutional repository.In addition, research papers on the impact of advanced computer architecture and special purpose computers on computing in the physical sciences and software topics related to, and of importance in, the physical sciences may be considered.