원시데이터 수집 시스템
선정목록으로

Protocol for evaluating the effect of potential on electrochemical reactions via the grand canonical fixed-potential technique

간접 관련 수소연료전지 · (7) MEA(막전극접합체) (6) PEM(고분자전해질막)

기본 정보

저자
  1. Guoping Gao — MOE Key Laboratory for Non-equilibrium Synthesis and Modulation of Condensed Matter, Shaanxi Province Key Laboratory of Advanced Functional Materials and Mesoscopic Physics, School of Physics, Xi'an Jiaotong University, Xi'an, Shaanxi 710049, China. Electronic address: guopinggao@xjtu.edu.cn|||MOE Key Laboratory for Non-equilibrium Synthesis and Modulation of Condensed Matter, Shaanxi Province Key Laboratory of Advanced Functional Materials and Mesoscopic Physics, School of Physics, Xi'an Jiaotong University, Xi'an, Shaanxi 710049, China
  2. Lin‐Wang Wang — State Key Laboratory on Integrated Optoelectronics, Institute of Semiconductors, Chinese Academy of Sciences, Beijing 100083, China. Electronic address: lwwang@semi.ac.cn|||State Key Laboratory on Integrated Optoelectronics, Institute of Semiconductors, Chinese Academy of Sciences, Beijing 100083, China
DOI
10.1016/j.xpro.2024.103021
저널
STAR Protocols
발행년도
2024
발행기관
Elsevier BV
피인용수
2
라이선스
cc-by-nc-nd
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1016/j.xpro.2024.103021
토픽
Electrocatalysts for Energy Conversion
OpenAlex ID
W4394866179

평가 내용

관련도
간접 관련
사업분야
수소연료전지 · (7) MEA(막전극접합체)
부 분야
(6) PEM(고분자전해질막)
R&D 측면
분석·모델링
확신도
0.80
근거 용어
electrochemical reactions, grand canonical constant potential, proton migration, DFT-based, fixed-potential method
판단 근거
이 논문은 전위(potential)가 전기화학 반응에 미치는 영향을 시뮬레이션하는 DFT 기반의 계산 프로토콜을 다룹니다. 이는 코오롱인더스트리의 수소연료전지(PEMFC) 분야에서 전극 촉매 및 이온 전도성 막의 전기화학적 메커니즘을 이론적으로 분석하고 설계하는 데 활용될 수 있는 방법론입니다.
R&D 활용 포인트
PEMFC의 전극(MEA) 및 촉매층에서 일어나는 양성자 이동(proton migration)과 전기화학적 반응 메커니즘을 분자 수준에서 시뮬레이션하여 소재의 성능을 예측하고 최적화하는 데 활용 가능합니다.
평가 입력
본문 37,745자 중 30,032자 발췌

초록

초록이 없습니다.

본문 37,745자

본문 펼치기
#### ll OPEN ACCESS ### Protocol # Protocol for evaluating the effect of potential on electrochemical reactions via the grand canonical fixed-potential technique Guoping Gao, Lin Wang Wang [guopinggao@xjtu.edu.cn](mailto:guopinggao@xjtu.edu.cn) (G.G.) [lwwang@semi.ac.cn](mailto:lwwang@semi.ac.cn) (L.W.W.) Highlights Steps for installing PWmat software Steps for preparing input files for fixedpotential calculation Steps for calculating the charge and free energy evolution during the proton migration Steps for analyzing the potential’s effect on electrochemical reactions The grand canonical constant potential approach is a cornerstone for modeling the electrochemical reactions under work conditions. Here, we present a protocol for evaluating the effect of potential on electrochemical reactions using the grand canonical fixed-potential technique. We describe steps for installing PWmat software, preparing input files for the fixedpotential calculation, and simulating different electrochemical states under the same potential. We then detail procedures for analyzing the free energy evolution under the same potential. Publisher’s note: Undertaking any experimental protocol requires adherence to local institutional guidelines for laboratory safety and ethics. Gao & Wang, STAR Protocols 5, 103021 June 21, 2024 ª 2024 The Author(s). Published by Elsevier Inc. [https://doi.org/10.1016/](https://doi.org/10.1016/j.xpro.2024.103021) [j.xpro.2024.103021](https://doi.org/10.1016/j.xpro.2024.103021) #### ll OPEN ACCESS ##### Protocol ## Protocol for evaluating the effect of potential on electrochemical reactions via the grand canonical fixed- potential technique Guoping Gao <sup>1,4,</sup> - and Lin-Wang Wang <sup>2,3,</sup> 1MOE Key Laboratory for Non-equilibrium Synthesis and Modulation of Condensed Matter, Shaanxi Province Key Laboratory of Advanced Functional Materials and Mesoscopic Physics, School of Physics, Xi’an Jiaotong University, Xi’an, Shaanxi 710049, China 2State Key Laboratory on Integrated Optoelectronics, Institute of Semiconductors, Chinese Academy of Sciences, Beijing 100083, China 3Technical contact 4Lead contact [*Correspondence: guopinggao@xjtu.edu.cn (G.G.), lwwang@semi.ac.cn (L.-W.W.)](mailto:guopinggao@xjtu.edu.cn) [https://doi.org/10.1016/j.xpro.2024.103021](https://doi.org/10.1016/j.xpro.2024.103021) SUMMARY The grand canonical constant potential approach is a cornerstone for modeling the electrochemical reactions under work conditions. Here, we present a protocol for evaluating the effect of potential on electrochemical reactions using the grand canonical fixed-potential technique. We describe steps for installing PWmat software, preparing input files for the fixed-potential calculation, and simulating different electrochemical states under the same potential. We then detail procedures for analyzing the free energy evolution under the same potential. For complete details on the use and execution of this protocol, please refer to Gao et al. <sup>1–3</sup> BEFORE YOU BEGIN Timing: <24 h Under an applied potential away from the potentials of zero charge (PZC), the overall system will generally be charged. The different electronegativity of the intermediates induces different charge states under a constant potential. Generally, the catalytic performance of the electrode is charge dependence or potential dependence. The grand canonical constant potential approach is a cornerstone for modeling the electrochemical reaction under work conditions. Several groups have recently developed DFT-based constant-potential methods for electrochemical simulation. <sup>4,5</sup> In these methods, an outside loop of an existing ab initio package (e.g., PWSCF and GPAW) is used to adjust the total electron of the systems until their Fermi energy aligns to the same applied potential. <sup>1</sup> The fixed-potential method enables us to do the grand canonical calculation within the Density functional theory framework via embedding the fixed-Fermi-energy self-consistent field procedure into the DFT electronic structure calculation itself, which can significantly speed up the calculation without the use of the outside loop. Additionally, the fixed-potential technique enables atomic relaxation, NEB, and ab initio MD at a given constant potential U. All these functions are implemented in the PWmat software. This section includes the hardware requirements, operating system, the license of the PWmat, as well as installation procedures. #### ll ##### OPEN ACCESS Protocol Hardware and operating system Both the GPU and CPU versions of the PWmat are available. Both versions are functional on Linux operation systems (For instance, Linux version 3.10.0–1160.el7.x86_64). For the GPU versions, the hardware requirements are Nvidia GeForce GTX 1080 or advanced versions. For the CPU version, the minimum hardware requirement is a local memory of 8 GB. For a system with more than 30 atoms, a larger local memory is required. In addition, the Lonxun Quantum also provides the Supercomputing Cloud Platform: Mcloud [(https://mcloud.lonxun.com/#/app/user).](https://mcloud.lonxun.com/) For Mcloud users, only a personal computer with the Windows operating system is required to open the website. License of PWmat PWmat is a commercial first-principles software including fixed-potential method, rt-TDDFT method, <sup>6</sup> quantum transport method, linear scaling large-scale computation method and many other advanced features. It now incorporates the plane wave basis, the Gaussian basis as well as the DFTB empirical method. To become a PWmat user, you need to purchase a license by sending an email to support@pwmat.com. Once you obtain the license of PWmat, a technician will assist you in installing the PWmat software. The following is an example to install or update GPU versions PWmat: 1.>mpirun --version # obtain the MPI version ----------------------------------------------------- mpirun (Open MPI) 2.1.0 2. >nvcc --version | grep "release" # obtain the CUDA version ----------------------------------------------------- Cuda compilation tools, release 8.0, V8.0.44 #Based on the above information, download the PWmat Latest CUDA8.0 [3. >wget //www.pwmat.com/pwmat-resource/mstation-download/cuda-8.0-beta.zip.](http://www.pwmat.com/pwmat-resource/mstation-download/cuda-8.0-beta.zip) 4. >unzip cuda-8.0-beta.zip ----------------------------------------------------- Archive: cuda-8.0-beta.zip inflating: install.beta.run 5. >sh install.beta.run ----------------------------------------------------- Verifying archive integrity... All good. Uncompressing install PWmat 100% >>> Please input the full path where to install PWmat >>> The default directory is [/home/xxx/PWMAT] >>> The PATH(Press Enter to accept the default): >>> The directory /home/xxx/PWMAT/xxxxxxxx ... OK! >>> Do you wish to clean and update the .bashrc?[Y/y/N/n][default:N]y >>> FINISH INSTALLING PWmat IN DIRECTORY: /home/xxx/PWMAT/xxxxxxxx 6. >bash #### ll ##### Protocol OPEN ACCESS 7. >which PWmat ----------------------------------------------------- <mark>�/PWMAT/xxxxxxxx/bin/PWmat #Done</mark> Note: The Installation packages and detailed installation methods of PWmat can be found on websites: [https://www.pwmat.com/gpu-download](https://www.pwmat.com/gpu-download) and [https://www.pwmat.com/pwmat-](https://www.pwmat.com/pwmat-update-function) [update-function.](https://www.pwmat.com/pwmat-update-function) KEY RESOURCES TABLE <mark>REAGENT or RESOURCE</mark> <mark>SOURCE</mark> <mark>IDENTIFIER</mark> <mark>Software and algorithms</mark> <mark>PWmat</mark> <mark>Jia et al.</mark> <sup>7</sup> <mark>[http://www.pwmat.com/](http://www.pwmat.com/)</mark> Anaconda Anaconda [https://www.anaconda.com/](https://www.anaconda.com/) <mark>VESTA</mark> <mark>Koichi Momma and Fujio Izumi</mark> <sup>8</sup> <mark>[https://jp-minerals.org/vesta/en/download.html](https://jp-minerals.org/vesta/en/download.html)</mark> STEP-BY-STEP METHOD DETAILS Protocol steps in this section have been partially modified from Gao et al., 2023. <sup>1</sup> In this section, we use The Pt (111) electrode covered by a six-water-layer (see Figure 1) as an example to illustrate how to set up a constant-potential relaxation calculation and analyze the output quickly. The simulated electron chemical reaction is the Heyrovsky reaction of hydrogen evolution reaction. Here, the Heyrovsky reaction is divided into two parts: the proton migration from bulk solvent to the inner Helmholtz water layer and reduction. One excess proton is added to the different water layers and Pt (111) sequentially to simulate the different stages of proton migration and the reduction reaction. By doing that, we can reproduce the charge and energy evolution of the excess protons during these stages as present in ref. <sup>1</sup> Set up of a constant-potential calculation Timing: 30 min In this section, we describe the preparation of the input files for the fixed potential method. Note: The PWmat needs a few basic input files to start the constant-potential calculation: parameter file (etot.input), structure file (atom.config), pseudopotential files, detailed solvent parameters (IN.SOLVENT) and a job script to run the job. More details of this section can be [found in the official manual (http://www.pwmat.com/pwmat-resource/Manual.pdf).](http://www.pwmat.com/pwmat-resource/Manual.pdf) 1. Prepare the etot.input file. Note: the etot.input file is the basic input file to tell the PWmat what to do and how to do it. The tag specifies the calculation detail of the fixed-potential method is Fix_Fermi. The PWmat will use reasonable default values for almost all the tags, which we recommend using when the user is unfamiliar with them. The following is an example of the etot.input file. One can use this example as the etot.input file and specify the corresponding pseudopotential files by modifying the tag in.psp1, . in.pspx. An example of the etot.input. #### ll ##### OPEN ACCESS Protocol 4 1 #the processor(N1*N2) used by PWmat job = RELAX #what to do relax_detail = 1 500 0.05 in.atom = atom.config #read the atomic positions file Ecut = 50 #The plane wave cutoff energy (Ryd) for wavefunction, in Ryd VDW = DFT-D3 #Van Der Waals correction IN.Solvent = T #read the solvent file in.psp1 = Pt.SG15.PBE.UPF # the pseudopotential file of the first atom type in.psp2 = H.SG15.PBE.UPF # the pseudopotential file of the second atom type in.psp3 = O.SG15.PBE.UPF # the pseudopotential file of the third atom type mp_n123 = 3 3 1 0 0 0 #Kpoint xcfunctional = PBE #exchange-correlation functional E_error = 1.000000e-05 # energy tolerance (in Hartree) for SCF Rho_error = 1.000000e-05 # charge density tolerance for SCF SCF_ITER0_1 = 6 4 3 0.0000 0.1200 2 #control the charge density iterations in SCF SCF_ITER0_2 = 124 4 3 1.0000 0.1200 2 SCF_ITER1_1 = 70 4 3 1.0000 0.1200 2 Fix_Fermi = T -4.24 0.05 1.06 #fixed potential calculation, -4.24 is the absolute poten tial applied Pulay_mix_opt = 60, 1, 1, 0.0001, 1,0 #use charge density of previous steps to precondi <mark>tion the input charge density of next SCF iteration</mark> CRITICAL: The tags IN.Solvent and Fix_Fermi are the mandatory tags for the fixed-potential method. The fixed potential (�4.24 V) for the calculation specified in the tag Fix_Fermi, is the absolute potential value. The corresponding potential with the standard hydrogen electrode (SHE) potential as a reference can be obtained via USHE = �(Uabs + 4.44V). Note: The first line in the etot.input file must be two positive integers (N1, N2). The N1 is the number of processors used to divide the FFT grid, while the N2 is the number of processors used to divide the K-points. For high efficiency, the FFT grid and K-points should be divisible Figure 1. The atomic structure of the electrical double layer used in this protocol #### ll ##### Protocol OPEN ACCESS by N1 and N2, respectively. In addition, The N1 and N2 should be The N1*N2 is equal to the total number of processors required for the PWmat job in the Job script file. 2. Prepare the atom.config file. Note: The atom.config contains the lattice vector of the supercell, the number of atoms in the supercell, their atomic number, fractional coordinates and whether they will be moved in MD, relaxation, or NEB calculations. This file shares its format with the PWmat output file final.con[fig and MOVEMENT. One can use the free software Q_studio provided by LonXun Inc. http://](http://www.pwmat.com/qstudio-introduce) [www.pwmat.com/qstudio-introduce.](http://www.pwmat.com/qstudio-introduce) This is a browser-based atomic model builder and viewer. It can directly generate the atom.config format structure file. It is worth noting that only the Chinese version of Q_studio is available at present. Another general way to obtain the atom.config starting with a VASP POSCAR file and then converting the POSCAR to the atom.config and converting the atom.config back to POSCAR. The steps are: a. Convert the POSCAR to the atom.config via: <mark>>poscar2conf</mark> i <mark>g.x POSCAR</mark> b. Convert the atom.config back to the POSCAR via: <mark>>conf</mark> i <mark>g2poscar.x atom.conf</mark> i <mark>g</mark> c. Or convert the atom.config back to the .xsf or .xyz format file via: <mark>>convert_from_conf</mark> i <mark>g.x atom.conf</mark> i <mark>g</mark> d. Visualize the POSCAR or atom.config.xsf via VESTA to check whether the structure of the model is reasonable. An example of the atom.config. 145 atoms #total atom number Lattice vector (Angstrom), stress(eV) 0.8323800090E+01 0.0000000000E+00 0.0000000000E+00 #lattice vector x -0.4161900040E+01 0.7208622330E+01 0.0000000000E+00 #lattice vector y 0.0000000000E+00 0.0000000000E+00 0.4000000000E+02 #lattice vector z Position, move_x, move_y, move_z 78 0.000000000 0.000000000 0.055220000 0 0 0 #element number, fractional coordinates, whether move 78 0.111110000 0.222220000 0.111850000 0 0 0 #the position is fixed 78 0.333330010 0.000000000 0.055220000 0 0 0 78 0.444440010 0.222220000 0.111850000 0 0 0 78 0.666670020 0.000000000 0.055220000 0 0 0 78 0.777780000 0.222220000 0.111850000 0 0 0 78 0.000000000 0.333330010 0.055220000 0 0 0 78 0.111110000 0.555559990 0.111850000 0 0 0 78 0.333330010 0.333330010 0.055220000 0 0 0 #### ll ##### OPEN ACCESS Protocol 78 0.444440010 0.555559990 0.111850000 0 0 0 78 0.666670020 0.333330010 0.055220000 0 0 0 78 0.777780000 0.555559990 0.111850000 0 0 0 78 0.000000000 0.666670020 0.055220000 0 0 0 78 0.111110000 0.888890030 0.111850000 0 0 0 78 0.333330010 0.666670020 0.055220000 0 0 0 78 0.444440010 0.888890030 0.111850000 0 0 0 78 0.666670020 0.666670020 0.055220000 0 0 0 78 0.777780000 0.888890030 0.111850000 0 0 0 78 -0.000323212 0.000075984 0.225660158 1 1 1 # the position is free to move 78 0.222289990 0.111260000 0.168190000 0 0 0 78 0.333512583 0.000082284 0.225706259 1 1 1 78 0.555610000 0.111190000 0.168230000 0 0 0 <mark>78 ..</mark> 3. Prepare pseudopotential files (*.UPF) Note: The pseudopotential files contain the pseudopotential for each atomic species used in the calculation. There are two types of Pseudopotentials available on the website of [http://](http://www.pwmat.com/potential-download) [www.pwmat.com/potential-download (norm-conserving pseudopotential and ultrasoft pseu-](http://www.pwmat.com/potential-download) dopotential). Here, we use the ultrasoft pseudopotential in this simulation. a. [Download them from http://www.pwmat.com/potential-download, and store them in a](http://www.pwmat.com/potential-download) con ventional place. b. Copy the pseudopotential of all the elements required by the atom.config to the work directory. in.psp1 = Pt.SG15.PBE.UPF in.psp2 = H.SG15.PBE.UPF <mark>in.psp3 = O.SG15.PBE.UPF</mark> c. Use it by adding the following tag in the etot.input file. Note: The order of different elements’ pseudopotentials is arbitrary. An example of the Pt.SG15.PBE.UPF file. <UPF version="2.0.1"> <PP_INFO> This pseudopotential file has been produced using the code ONCVPSP (Optimized Norm-Conserving Vanderbilt PSeudopotential) scalar-relativistic version 3.2.2 08/07/2015 by D. R. Hamann [The code is available through a link at URL www.mat-simresearch.com.](http://www.mat-simresearch.com) #### ll ##### Protocol OPEN ACCESS Documentation with the package provides a full description of the input data below. While it is not required under the terms of the GNU GPL, it is suggested that you cite D. R. Hamann, Phys. Rev. B 88, 085117 (2013) in any publication using these pseudopotentials. <PP_INPUTFILE> # ATOM AND REFERENCE CONFIGURATION # atsym z nc nv iexc psfile Pt 78.00 10 4 4 upf # # n l f energy (Ha) 1 0 2.00 2 0 2.00 2 1 6.00 3 0 2.00 3 1 6.00 3 2 10.00 4 0 2.00 4 1 6.00 4 2 10.00 4 3 14.00 5 0 2.00 5 1 6.00 6 0 2.00 5 2 8.00 <mark>.</mark> 4. Prepare the IN.SOLVENT. Note: The IN.SOLVENT file defines the detailed parameters for the solvent model. A tag IN.SOLVENT = T should be added in the etot.input file to read these solvent parameters in the calculation. The key parameter for the fixed-potential method is POISSON_BOLTZMANN. The Poisson–Boltzmann equation is used to screen the effects of free ions, provide a reference potential (0 V) far away from the surface, and define the absolute potential of the electrode corresponding to the experimental potential in the fixed-potential (fixed-Fermi-energy) calculations. An example of the IN. SOLVENT file. DIELECTRIC_CONST = 78 #the dielectric constant of the solvent SURFACE_TENSION = 50.00E+000 #surface tension of the cavity #### ll ##### OPEN ACCESS Protocol DIELECTRIC_MODEL = ATOM_CHARGE #model to control the dielectric function profile rhomax_dielectric=0.0059 #when rho_e> it, epsilon=1 rhomin_dielectric=0.0015 #when rho_e< it, epsilon=dielectric constant of solvent POISSON_BOLTZMANN = T #do linearized poisson_boltzmann equation RHOMAX_DEBY = 0.0059 RHOMiN_DEBY = 0.0015 RHOMAX_CAVITY = 0.0059000000000E-000 RHOMIN_CAVITY = 0.001500000000E-000 AKK0_DEBY = 0.036 #inverse deby length in linearized PB equation <mark>PRESSUR = -0.350</mark> <mark>#pressure of the cavity</mark> 5. Prepare the Job script. Note: the job script based on the slurm workload manager specifies the desired resources for your PWmat job. You can name it arbitrarily, like slurm.sh. The exact content might depend on the actual computer environment setup. The required libraries include Math Kernel Library, Message Passing Interface, and Compute Unified Device Architecture. One might need to consult the computer administrator or send an email to [support@pwmat.com](mailto:support@pwmat.com) for details (e.g., the name of the libraries). One example job script looks like this: #!/bin/sh #SBATCH --partition=gpu #SBATCH --job-name=pwmat #SBATCH --nodes=1 #SBATCH --ntasks-per-node=4 #SBATCH --gres=gpu:4 #SBATCH --gpus-per-task=1 module load mkl/2022.0.2 module load mpi/2021.5.1 module load cuda/11.6 module load pwmat/20230425 which PWmat mpirun -np $SLURM_NPROCS PWmat | tee output <mark>convert_from_conf</mark> i <mark>g.x f</mark> i <mark>nal.conf</mark> i <mark>g</mark> Run the job Timing: 5 h 6. Once the above input files are ready, submit the jobs by: <mark>> sbatch slurm.sh</mark> #### ll ##### Protocol OPEN ACCESS a. Use the command squeue to check the job status and job ID. <mark>> squeue</mark> b. If something goes wrong, use the command scancel to kill your job. <mark>> scancel <job ID></mark> Note: We recommend checking the job status 10 min later after submitting the jobs. The software will report an error before entering the SCF calculation if something is wrong in the input files. Analyze the output Timing: 10 min Note: The main output file of PWmat is the REPORT. The output contains similar information but in a more detailed manner. The RELAXSTEPS file reports the atomic relaxation steps, and the energy and atomic forces at each atom, as well as the SCF convergence for each ab initio step calculation. The MOVEMENT file reports the relaxation or MD trajectory. Table 1 is a comprehensive list of all important output files. 7. Visualize the final.config. a. Use the utility of convert_from_config.x to convert the final.config to .xsf and .xyz format files and download the final.config.xsf to the local desktop. The command is: - convert_from_config.x final.config >>> make sure you have typed in command line: "convert_from_config.x file" <<< >>> or in command line: "convert_from_config.x < file" <<< >>> successfully write in the final.config.xsf <<< >>> successfully write in the final.config.xyz <<< <mark>> sz f</mark> i <mark>nal.conf</mark> i <mark>g.xsf</mark> b. Drag the final.config.xsf to the VESTA windows to visualize the final.config.xsf file c. Check whether the structure of the model is reasonable. d. The expected result is shown in Figure 2. Note: We suggest adding this command ‘‘convert_from_config.x final.config’’ at the end of the job script file. 8. Obtain the charge information of the system. Note: The fixed-potential method does the grand canonical calculation under constant potential/Fermi level, in which the total electron number of the system is adjusted in the ionic step to satisfy the applied potential. Therefore, the charge states of the different intermediates of an electrochemical reaction are different. We can obtain these data from the total electron number: a. Obtain the total number of valence electrons in the zero-charge system via the Command: - grep NUM_ELECTRON REPORT <mark>NUM_ELECTRON = 937.000000000000</mark> #### ll ##### OPEN ACCESS Protocol b. The convergence and evolution of the total electron number of the system during the elec tronic and ionic steps. This information can be obtained via command: Note: The E_Fermi is the absolute potential specified via the Fix_Fermi tag in the etot.input file. The totNel is the total electron of the system adjusted automatically in each electronic SCF step. The charge status of the system can be obtained by the difference between NUM_ELECTRON and the last totNel value of the calculation. - grep Fermi REPORT | tail Fix_Fermi, totNel= 938.576666224263 Fix_Fermi, totNel= 938.538284406885 Fix_Fermi, totNel= 938.545956623732 Fix_Fermi, totNel= 938.546818198657 Fix_Fermi, totNel= 938.550016436730 E_Fermi(eV)= -4.04000000000000 24000000000000 Fix_Fermi, input rho, define init totNel 938.554357265867 Fix_Fermi, totNel= 938.554437096808 Fix_Fermi, totNel= 938.554521897541 <mark>E_Fermi(eV)= -4.0400000000000024000000000000</mark> 9. Obtain the grand energy. The grand energy of each step is written in the fourth column in the RELAXSTEPS file via the command: - tail RELAXSTEPS It= -1 CORR E= -0.1356493404288E+06 Av_F= 0.11E-01 M_F= 0.73E-01 dE= 0.94E-06 dRho= 0.48E-03 SCF= 32 dL= 0.00E+00 p*F= 0.00E+00 p*F0= 0.00E+00 Fch= 0.00E+00 It= 0 NEW E= -0.1356493422269E+06 Av_F= 0.26E-01 M_F= 0.16E+00 dE= 0.15E-03 dRho= 0.92E-05 SCF= 47 dL= 0.72E-02 p*F= 0.34E+00 p*F0= -0.21E+00 Fch= -0.27E+01 It= 1 CORR E= -0.1356493433853E+06 Av_F= 0.69E-02 M_F= 0.65E-01 dE= 0.25E-03 dRho= 0.96E-05 SCF= 7 dL= 0.27E-02 p*F= 0.22E-01 p*F0= -0.21E+00 Fch= 0.83E+01 It= 2 CORR E= -0.1356493430965E+06 Av_F= 0.62E-02 M_F= 0.66E-01 dE= 0.21E-02 dRho= 0.85E-05 SCF= 3 dL= 0.25E-02 p*F= 0.34E-02 p*F0= -0.21E+00 Fch= 0.76E+01 It= 3 NEW E= -0.1356493442492E+06 Av_F= 0.66E-02 M_F= 0.57E-01 dE= 0.19E-03 dRho= 0.73E-05 SCF= 8 dL= 0.72E-02 p*F= -0.56E-01 p*F0= -0.10E+00 Fch= 0.26E+01 It= 4 CORR E= -0.1356493432889E+06 Av_F= 0.13E-01 M_F= 0.67E-01 dE= 0.38E-03 dRho= 0.80E-05 SCF= 6 dL= 0.16E-01 p*F= 0.22E-02 p*F0= -0.10E+00 Fch= 0.31E+00 It= 5 NEW E= -0.1356493440665E+06 Av_F= 0.12E-01 M_F= 0.59E-01 dE= 0.31E-03 dRho= 0.71E-05 SCF= 6 dL= 0.21E-02 p*F= -0.85E-01 p*F0= -0.92E-01 Fch= 0.55E+01 It= 6 CORR E= -0.1356493442404E+06 Av_F= 0.94E-02 M_F= 0.36E-01 dE= 0.23E-03 dRho= 0.97E-05 SCF= 2 dL= 0.83E-02 p*F= -0.59E-01 p*F0= -0.92E-01 Fch= 0.20E+01 It= 7 *END E= -0.1356493442404E+06 Av_F= 0.94E-02 M_F= 0.36E-01 dE= 0.23E-03 <mark>dRho= 0.97E-05 SCF= 2 dL= 0.83E-02 p*F= -0.59E-01 p*F0= -0.92E-01 Fch= 0.20E+01</mark> #### ll ##### Protocol OPEN ACCESS Table 1. A comprehensive list of all important output files <mark>f</mark> i <mark>nal.conf</mark> i <mark>g</mark> <mark>The updated atom.conf</mark> i <mark>g f</mark> i <mark>le after a calculation</mark> <mark>MOVEMENT</mark> <mark>The atom.conf</mark> i <mark>g of every atomic movement step generated in RELAX, NEB and MD</mark> <mark>OUT.EIGEN</mark> <mark>The eigen energies output in the Binary f</mark> i <mark>le</mark> <mark>OUT.FERMI</mark> <mark>The FERMI energy in SCF calculation</mark> <u><mark>OUT.FORCE</mark></u> <u><mark>The calculated force of all atoms</mark></u> <mark>OUT.KPT</mark> <mark>The k-point vectors and their weights</mark> <u><mark>OUT.OCC</mark></u> <u><mark>The occupation and eigenenergy of eigenstates</mark></u> <mark>OUT.RHO</mark> <mark>The charge density output in the Binary f</mark> i <mark>le</mark> <mark>OUT.VR</mark> <mark>The potential output in the Binary f</mark> i <mark>le</mark> <mark>OUT.WG</mark> <mark>The wave function output in the Binary f</mark> i <mark>le</mark> RELAXSTEP The atomic relaxation steps, and the energy and atomic forces at each atom, as well as the SCF convergence <u><mark>for each ab initio step calculation</mark></u> <mark>REPORT</mark> <mark>Main output f</mark> i <mark>le</mark> <mark>Output</mark> <mark>A detailed version of the REPORT f</mark> i <mark>le</mark> Note: The total energy in the fixed-potential method is grand canonic energy (Egrand <sup>q</sup> <sup>)</sup> <sup>of</sup> <sup>the</sup> system under charge state of q: Egrandq <sup>= Eq + qUabs</sup> (Equation 1) Here, the E <sup>q</sup> is the normal energy of the system under the charge state of q, and the Uabs is the absolute potential applied (E_Fermi), and q is the total charge deviation from 0 (charge-neutral). 10. Calculate the grand free energy. a. The grand free energy of the charged system is defined by: Gqgrand <sup>= E</sup> grandq <sup>+ ZPE + TS</sup> (Equation 2) Figure 2. The visualization of final.config.xsf via the VESTA #### ll ##### OPEN ACCESS Protocol b. The entropy difference between the proton in the water layer and it on the Pt surface is zero. c. Calculate the frequency difference between H3O <sup>+</sup> and normal water in the water layer and obtain the ZPE of H <sup>#</sup> (0.5hv). d. Calculate the frequency of a proton on the Pt surface and obtain the ZPE of H* (0.5hv). e. Use Equation 2 to obtain the free energy of the proton in the water layer and the proton on the Pt surface. Calculate the charge and free energy evolution during the proton migration Timing: 20 h 11. Copy the final.config of previous jobs to atom.config in a new folder. Change the position of the excess proton in the atom.config to another water layer or the Pt(111) surface. 12. Use the previous etot.input, IN.SOLVENT file and Job script files and repeat steps 6 to 10. 13. Obtain the effects of proton position on the totNel and grand free energy under the constant potential of Uabs = �4.04 V. Calculate the potential’s effect on the charge and free energy evolution during the proton migration Timing: 60 h 14. Change the applied absolute potential to �4.44, �4.64, and �4.84 V sequentially by modifying the Fix_Fermi tag in the etot.input. 15. Repeat steps 11 to 13 to obtain the potential’s effect on the charge and free energy evolution during the proton migration. Collect the free energy evolution and analyze the data Timing: 1 h 16. Collect the grand energy from the RELAXESTEPS file and fill Table 1 in Figure 3. 17. Add the ZPE to the grand energy to obtain the grand free energy (Ggrand). 18. Set the grand free energy of the proton at the 6 <sup>th</sup> water layer as a reference, and obtain the relative free energy of the proton (dG) under different states. 19. Use the value of dG to plot the figure (see the right panel of Figure 3) Collect the electron evolution and analyze the data Timing: 1 h 20. Collect the totNel from the REPORT file and fill the Table 1 in Figure 4. 21. Set the totNel of the proton at the 6th water layer as a reference, and obtain the charge transfer of the proton under different states. 22. Plot the figure (see the right panel of Figure 4). EXPECTED OUTCOMES The expected outcomes of the protocol are to obtain the charge transfer and free energy evolution during an electrochemical reaction or process via the Fixed-potential method. These numeric results will provide valuable information about the relationship between transferred electrons, free energy, and potential as shown in Figures 3 and 4. Based on these data, we can obtain the exact dynamics and energetics of electrochemical reactions, and reveal new mechanisms. #### ll ##### Protocol OPEN ACCESS Figure 3. The process of obtaining the grand free energy evolution during the whole proton migration step under several constant potentials LIMITATIONS It is a challenge to add all the details about the PWmat software. This protocol is a quick start guide for the fixed-potential method and gives you an overview of the most important features of the fixedpotential method. For the beginners of the fixed-potential method, one can use the input files provided in this manuscript directly and go through the procedure. Then, try to understand the meaning of each tag. For more detailed information about the PWmat software, please refer to the man[ual(http://www.pwmat.com/pwmat-resource/Manual.pdf)](http://www.pwmat.com/pwmat-resource/Manual.pdf) and our online videos [(https://www.](https://www.bilibili.com/video/BV1Tx4y1j7YY/?spm_id_from=333.999.0.0&amp;vd_source=b5be50945c9ff9139b3906eaf0a86f4c) [bilibili.com/video/BV1Tx4y1j7YY/?spm_id_from=333.999.0.0&vd_source=b5be50945c9ff9139](https://www.bilibili.com/video/BV1Tx4y1j7YY/?spm_id_from=333.999.0.0&amp;vd_source=b5be50945c9ff9139b3906eaf0a86f4c) [b3906eaf0a86f4c ).](https://www.bilibili.com/video/BV1Tx4y1j7YY/?spm_id_from=333.999.0.0&amp;vd_source=b5be50945c9ff9139b3906eaf0a86f4c) TROUBLESHOOTING Problem 1 The most common problem when running PWmat is the format of the input files. In this case, the PWmat job will crash within 30 s. Figure 4. The process of obtaining the electron evolution during proton migration and reduction under the constant potential #### ll ##### OPEN ACCESS Protocol Potential solution Double check the format of the input files. Or send all the input files to the [support@pwmat.com](mailto:support@pwmat.com) for help. Problem 2 The pseudopotential files are missing. To check whether the crash is caused by this problem, one can use the following command: - tail �15 output ______ _____ _____ ____ _____ | ____| __ \| __ \ / __ \| __ \ | |__ | |__) | |__) | | | | |__) | | __| | _ /| _ /| | | | _ / | |____| | \ \| | \ \| |__| | | \ \ |______|_| \_\_| \_\\____/|_| \_\ ########################################### ERROR in:input.f90 412 ==================================== "Pt.SG15.PBE.UPF" does not exist! <mark>###########################################</mark> Potential solution Add the required pseudopotential files to the work folder. Problem 3 MPI processes are not equal to the configurations. The product of N1 and N2 in the first line of the etot.input file should be equal to the total number of processors required for the PWmat job in the Job script file. To check whether the crash is caused by this problem, one can use the following command: - tail �15 output. ______ _____ _____ ____ _____ | ____| __ \| __ \ / __ \| __ \ | |__ | |__) | |__) | | | | |__) | | __| | _ /| _ /| | | | _ / | |____| | \ \| | \ \| |__| | | \ \ |______|_| \_\_| \_\\____/|_| \_\ ########################################### Error: MPI process not equal to the configuration running at 4 CPU/GPU. <mark>But the</mark> <mark>conf</mark> i <mark>guration</mark> <mark>is: 8.</mark> #### ll ##### Protocol OPEN ACCESS Potential solution Modify the N1, N2 in the etot.input file or values of nodes, ntask-per-node in the job script file. Problem 4 The memory is not enough. If the job crashes at the following point, one potential problem is caused by the memory limitation. - tail REPORT ********* *** end of etot.input report **** minimum n1,n2,n3 from Ecut2 73.595 73.595 353.662 minimum n1L,n2L,n3L from Ecut2L 73.595 73.595 353.662 <mark>*********</mark> Potential solution The memory required by the jobs depends on the size of the calculated system, the plane wave cutoff energy and the total number of processors required by the job script. If you do not want to reduce the size of the system, one can. - Reduce the value of the Ecut tag in the etot.input file, - Or reduce the total number of processors required by the job script and exclude other jobs to use this node by adding the ‘#SBATCH –exclusive’ into the job script: Problem 5 The totNel is not convergent during the relaxation or molecular dynamics (Steps 1–2). Potential solution In these situations, one can first do a normal relaxation job without FIX_FERMI tag for 5–10 steps to generate the reasonable OUT.WG and OUT.RHO files; then read the OUT.WG and OUT.RHO as input (mv OUT.WG/OUT.RHO IN.WG/IN.RHO and add the tags IN.WG = T, IN.RHO = T to the etot.input), redo the relaxation with FIX_FERMI= T. In case the totNel is larger than NUM_BAND*2, one should increase NUM_BAND in etot.input. RESOURCE AVAILABILITY Lead contact Further information and requests for resources and software should be directed to and will be ful[filled by the lead contact, Dr. Guoping Gao (guopinggao@xjtu.edu.cn).](mailto:guopinggao@xjtu.edu.cn) Technical contact [Dr. Lin-Wang Wang (lwwang@semi.ac.cn).](mailto:lwwang@semi.ac.cn) Materials availability This study did not use any reagents. Data and code availability - The published article includes all datasets generated or analyzed during this study. #### ll ##### OPEN ACCESS Protocol - This paper does not report the original code. - Any additional information required to reanalyze the data reported in this paper is available from the lead contact upon request. ACKNOWLEDGMENTS This work was supported by the National Natural Science Foundation of China (NSFC) (grant no. 22303063) and the Shaanxi Province Merit-based Overseas Scholars Funding for Scientific and Technological Activities (grant no. 2022-13). The theoretical work in this research used the resources of the Mcloud High-Performance Computing supported by the Lonxun Quantum. AUTHOR CONTRIBUTIONS G.G. and L.-W.W. conceived the concept and wrote the paper. Both authors discussed the results and commented on the paper. DECLARATION OF INTERESTS The authors declare no competing interests. REFERENCES 1. Gao, G., and Wang, L.-W. (2023). The concerted proton-electron transfer mechanism of proton migration in the electrochemical interface. [iScience 26, 108318. https://doi.org/10.1016/j.](https://doi.org/10.1016/j.isci.2023.108318) [isci.2023.108318.](https://doi.org/10.1016/j.isci.2023.108318) 2. Gao, G., and Wang, L.-W. (2021). A potential and pH inclusive microkinetic model for hydrogen reactions on Pt surface. Chem Catal. 1, 1331– [1345. https://doi.org/10.1016/j.checat.2021.](https://doi.org/10.1016/j.checat.2021.10.006) [10.006.](https://doi.org/10.1016/j.checat.2021.10.006) 3. Gao, G., and Wang, L.-W. (2020). Substantial potential effects on single-atom catalysts for the oxygen evolution reaction simulated via a fixed-potential method. J. Catal. 391, 530–538. [https://doi.org/10.1016/j.jcat.2020.](https://doi.org/10.1016/j.jcat.2020.08.032) [08.032.](https://doi.org/10.1016/j.jcat.2020.08.032) 4. Letchworth-Weaver, K., and Arias, T.A. (2012). Joint density functional theory of the electrodeelectrolyte interface: Application to fixed electrode potentials, interfacial capacitances, and potentials of zero charge. Phys. Rev. B 86, [075140. https://doi.org/10.1103/PhysRevB.86.](https://doi.org/10.1103/PhysRevB.86.075140) [075140.](https://doi.org/10.1103/PhysRevB.86.075140) 5. Goodpaster, J.D., Bell, A.T., and Head-Gordon, M. (2016). Identification of Possible Pathways for C–C Bond Formation during Electrochemical Reduction of CO2: New Theoretical Insights from an Improved Electrochemical Model. [J. Phys. Chem. Lett. 7, 1471–1477. https://doi.](https://doi.org/10.1021/acs.jpclett.6b00358) [org/10.1021/acs.jpclett.6b00358.](https://doi.org/10.1021/acs.jpclett.6b00358) 6. Liu, H.-W., Liu, W.-H., Suo, Z.-J., Wang, Z., Luo, J.-W., Li, S.-S., and Wang, L.-W. (2022). Unifying the order and disorder dynamics in photoexcited VO2. Proc. Natl. Acad. Sci. USA [119, e2122534119. https://doi.org/10.1073/](https://doi.org/10.1073/pnas.2122534119) [pnas.2122534119.](https://doi.org/10.1073/pnas.2122534119) 7. Jia, W., Cao, Z., Wang, L., Fu, J., Chi, X., Gao, W., and Wang, L.-W. (2013). The analysis of a plane wave pseudopotential density functional theory code on a GPU machine. Comput. Phys. [Commun. 184, 9–18. https://doi.org/10.1016/j.](https://doi.org/10.1016/j.cpc.2012.08.002) [cpc.2012.08.002.](https://doi.org/10.1016/j.cpc.2012.08.002) 8. Momma, K., and Izumi, F. (2011). VESTA 3 for three-dimensional visualization of crystal, volumetric and morphology data. J. Appl. [Crystallogr. 44, 1272–1276. https://doi.org/10.](https://doi.org/10.1107/S0021889811038970) [1107/S0021889811038970.](https://doi.org/10.1107/S0021889811038970)

섹션 본문 50문단 · 21,007자

Protocol

2Protocol for evaluating the effect of potential on electrochemical reactions via the grand canonical fixedpotential technique Guoping Gao 1,4, * and Lin-Wang Wang 2,3, * 1 MOE Key Laboratory for Non-equilibrium Synthesis and Modulation of Condensed Matter, Shaanxi Province Key Laboratory of Advanced Functional Materials and Mesoscopic Physics, School of Physics, Xi'an Jiaotong University, Xi'an, Shaanxi 710049, China 2 State Key Laboratory on Integrated Optoelectronics, Institute of Semiconductors, Chinese Academy of Sciences, Beijing 100083, China 3 Technical contact 4 Lead contact *Correspondence: guopinggao@xjtu.edu.cn(G.G.), lwwang@semi.ac.cn (L.-W.W.) https://doi.org/10.1016/j.xpro.2024.103021

SUMMARY

3The grand canonical constant potential approach is a cornerstone for modeling the electrochemical reactions under work conditions.Here, we present a protocol for evaluating the effect of potential on electrochemical reactions using the grand canonical fixed-potential technique.We describe steps for installing PWmat software, preparing input files for the fixed-potential calculation, and simulating different electrochemical states under the same potential.We then detail procedures for analyzing the free energy evolution under the same potential.For complete details on the use and execution of this protocol, please refer to Gao et al. [1][2][3]

BEFORE YOU BEGIN Timing: <24 h

4Under an applied potential away from the potentials of zero charge (PZC), the overall system will generally be charged.The different electronegativity of the intermediates induces different charge states under a constant potential.Generally, the catalytic performance of the electrode is charge dependence or potential dependence.The grand canonical constant potential approach is a cornerstone for modeling the electrochemical reaction under work conditions.Several groups have recently developed DFT-based constant-potential methods for electrochemical simulation. 4,5In these methods, an outside loop of an existing ab initio package (e.g., PWSCF and GPAW) is used to adjust the total electron of the systems until their Fermi energy aligns to the same applied potential. 1The fixed-potential method enables us to do the grand canonical calculation within the Density functional theory framework via embedding the fixed-Fermi-energy self-consistent field procedure into the DFT electronic structure calculation itself, which can significantly speed up the calculation without the use of the outside loop.Additionally, the fixed-potential technique enables atomic relaxation, NEB, and ab initio MD at a given constant potential U. All these functions are implemented in the PWmat software.

Hardware and operating system

5Both the GPU and CPU versions of the PWmat are available.Both versions are functional on Linux operation systems (For instance, Linux version 3.10.0-1160.el7.x86_64).For the GPU versions, the hardware requirements are Nvidia GeForce GTX 1080 or advanced versions.For the CPU version, the minimum hardware requirement is a local memory of 8 GB.For a system with more than 30 atoms, a larger local memory is required.In addition, the Lonxun Quantum also provides the Supercomputing Cloud Platform: Mcloud (https://mcloud.lonxun.com/#/app/user).For Mcloud users, only a personal computer with the Windows operating system is required to open the website.

License of PWmat

6PWmat is a commercial first-principles software including fixed-potential method, rt-TDDFT method, 6 quantum transport method, linear scaling large-scale computation method and many other advanced features.It now incorporates the plane wave basis, the Gaussian basis as well as the DFTB empirical method.To become a PWmat user, you need to purchase a license by sending an email to support@pwmat.com.Once you obtain the license of PWmat, a technician will assist you in installing the PWmat software.The following is an example to install or update GPU versions PWmat:

7Cuda compilation tools, release 8.0, V8.0.44 #Based on the above information, download the PWmat Latest CUDA8.0 3. >wget //www.pwmat.com/pwmat-resource/mstation-download/cuda-8.0-beta.zip.4. >unzip cuda-8.0-beta.zip------------------------------------------------------Archive: cuda-8.0-beta.zipinflating: install.beta.run 5. >sh install.beta.run-----------------------------------------------------

KEY RESOURCES TABLE STEP-BY-STEP METHOD DETAILS

8Protocol steps in this section have been partially modified from Gao et al., 2023. 1 In this section, we use The Pt (111) electrode covered by a six-water-layer (see Figure 1) as an example to illustrate how to set up a constant-potential relaxation calculation and analyze the output quickly.The simulated electron chemical reaction is the Heyrovsky reaction of hydrogen evolution reaction.Here, the Heyrovsky reaction is divided into two parts: the proton migration from bulk solvent to the inner Helmholtz water layer and reduction.One excess proton is added to the different water layers and Pt (111) sequentially to simulate the different stages of proton migration and the reduction reaction.By doing that, we can reproduce the charge and energy evolution of the excess protons during these stages as present in ref. 1 Set up of a constant-potential calculation Timing: 30 min In this section, we describe the preparation of the input files for the fixed potential method.

Note:

9The PWmat needs a few basic input files to start the constant-potential calculation: parameter file (etot.input),structure file (atom.config),pseudopotential files, detailed solvent parameters (IN.SOLVENT) and a job script to run the job.More details of this section can be found in the official manual (http://www.pwmat.com/pwmat-resource/Manual.pdf).

101. Prepare the etot.inputfile.

11Note: the etot.inputfile is the basic input file to tell the PWmat what to do and how to do it.The tag specifies the calculation detail of the fixed-potential method is Fix_Fermi.The PWmat will use reasonable default values for almost all the tags, which we recommend using when the user is unfamiliar with them.The following is an example of the etot.inputfile.One can use this example as the etot.inputfile and specify the corresponding pseudopotential files by modifying the tag in.psp1, .in.pspx.

12An example of the etot.input.----------------------------------------------------- CRITICAL: The tags IN.Solvent and Fix_Fermi are the mandatory tags for the fixed-potential method.The fixed potential (À4.24 V) for the calculation specified in the tag Fix_Fermi, is the absolute potential value.The corresponding potential with the standard hydrogen electrode (SHE) potential as a reference can be obtained via U SHE = À(U abs + 4.44V).

13The first line in the etot.inputfile must be two positive integers (N1, N2).The N1 is the number of processors used to divide the FFT grid, while the N2 is the number of processors used to divide the K-points.For high efficiency, the FFT grid and K-points should be divisible by N1 and N2, respectively.In addition, The N1 and N2 should be The N1*N2 is equal to the total number of processors required for the PWmat job in the Job script file.

142. Prepare the atom.configfile.

15Note: The atom.config contains the lattice vector of the supercell, the number of atoms in the supercell, their atomic number, fractional coordinates and whether they will be moved in MD, relaxation, or NEB calculations.This file shares its format with the PWmat output file final.0.8323800090E+01 0.0000000000E+00 0.0000000000E+00 #lattice vector x -0.4161900040E+01 0.7208622330E+01 0.0000000000E+00 #lattice vector y 0.0000000000E+00 0.0000000000E+00 0.4000000000E+02 #lattice vector z Position, move_x, move_y, move_z 78 0.000000000 0.000000000 0.055220000 0 0 0 #element number, fractional coordinates, whether move 78 0.111110000 0.222220000 0.111850000 0 0 0 #the position is fixed 78 0.333330010 0.000000000 0.055220000 0 0 0 78 0.444440010 0.222220000 0.111850000 0 0 0 78 0.666670020 0.000000000 0.055220000 0 0 0 78 0.777780000 0.222220000 0.111850000 0 0 0 78 0.000000000 0.333330010 0.055220000 0 0 0 78 0.111110000 0.555559990 0.111850000 0 0 0 78 0.333330010 0.333330010 0.055220000 0 0 0 Note: We recommend checking the job status 10 min later after submitting the jobs.The software will report an error before entering the SCF calculation if something is wrong in the input files.

Analyze the output

16Timing: 10 min

Note:

17The main output file of PWmat is the REPORT.The output contains similar information but in a more detailed manner.The RELAXSTEPS file reports the atomic relaxation steps, and the energy and atomic forces at each atom, as well as the SCF convergence for each ab initio step calculation.The MOVEMENT file reports the relaxation or MD trajectory.Table 1 is a comprehensive list of all important output files.Note: We suggest adding this command ''convert_from_config.xfinal.config''at the end of the job script file.

188. Obtain the charge information of the system.

19Note: The fixed-potential method does the grand canonical calculation under constant potential/Fermi level, in which the total electron number of the system is adjusted in the ionic step to satisfy the applied potential.Therefore, the charge states of the different intermediates of an electrochemical reaction are different.We can obtain these data from the total electron number:

20a. Obtain the total number of valence electrons in the zero-charge system via the Command:

Protocol

21b.The convergence and evolution of the total electron number of the system during the electronic and ionic steps.This information can be obtained via command:

Note:

22The E_Fermi is the absolute potential specified via the Fix_Fermi tag in the etot.inputfile.The totNel is the total electron of the system adjusted automatically in each electronic SCF step.The charge status of the system can be obtained by the difference between NUM_ELECTRON and the last totNel value of the calculation.

239. Obtain the grand energy.The grand energy of each step is written in the fourth column in the RELAXSTEPS file via the command: Protocol Note: The total energy in the fixed-potential method is grand canonic energy (E q grand ) of the system under charge state of q: E q grand = E q + qU abs (Equation 1)

24Here, the E q is the normal energy of the system under the charge state of q, and the U abs is the absolute potential applied (E_Fermi), and q is the total charge deviation from 0 (charge-neutral).

2510. Calculate the grand free energy.a.The grand free energy of the charged system is defined by: G q grand = E q grand + ZPE + TS (Equation 2) Calculate the potential's effect on the charge and free energy evolution during the proton migration Timing: 60 h 14.Change the applied absolute potential to À4.44, À4.64, and À4.84 V sequentially by modifying the Fix_Fermi tag in the etot.input.15.Repeat steps 11 to 13 to obtain the potential's effect on the charge and free energy evolution during the proton migration.

Collect the free energy evolution and analyze the data

26Timing: 1 h 16.Collect the grand energy from the RELAXESTEPS file and fill Table 1 in Figure 3. 17.Add the ZPE to the grand energy to obtain the grand free energy (G grand ).18. Set the grand free energy of the proton at the 6 th water layer as a reference, and obtain the relative free energy of the proton (dG) under different states.19.Use the value of dG to plot the figure (see the right panel of Figure 3)

Collect the electron evolution and analyze the data

27Timing: 1 h 20.Collect the totNel from the REPORT file and fill the Table 1 in Figure 4. 21.Set the totNel of the proton at the 6 th water layer as a reference, and obtain the charge transfer of the proton under different states.22. Plot the figure (see the right panel of Figure 4).

EXPECTED OUTCOMES

28The expected outcomes of the protocol are to obtain the charge transfer and free energy evolution during an electrochemical reaction or process via the Fixed-potential method.These numeric results will provide valuable information about the relationship between transferred electrons, free energy, and potential as shown in Figures 3 and 4. Based on these data, we can obtain the exact dynamics and energetics of electrochemical reactions, and reveal new mechanisms.

LIMITATIONS

29It is a challenge to add all the details about the PWmat software.This protocol is a quick start guide for the fixed-potential method and gives you an overview of the most important features of the fixedpotential method.For the beginners of the fixed-potential method, one can use the input files provided in this manuscript directly and go through the procedure.Then, try to understand the meaning of each tag.For more detailed information about the PWmat software, please refer to the manual(http://www.pwmat.com/pwmat-resource/Manual.pdf) and our online videos (https://www.bilibili.com/video/BV1Tx4y1j7YY/?spm_id_from=333.999.0.0&vd_source=b5be50945c9ff9139 b3906eaf0a86f4c ).

TROUBLESHOOTING Problem 1

30The most common problem when running PWmat is the format of the input files.In this case, the PWmat job will crash within 30 s.

Problem 4

31The memory is not enough.If the job crashes at the following point, one potential problem is caused by the memory limitation.

Potential solution

32The memory required by the jobs depends on the size of the calculated system, the plane wave cutoff energy and the total number of processors required by the job script.If you do not want to reduce the size of the system, one can.

33Reduce the value of the Ecut tag in the etot.inputfile, Or reduce the total number of processors required by the job script and exclude other jobs to use this node by adding the '#SBATCH -exclusive' into the job script:

Problem 5

34The totNel is not convergent during the relaxation or molecular dynamics (Steps 1-2).

Potential solution

35In these situations, one can first do a normal relaxation job without FIX_FERMI tag for 5-10 steps to generate the reasonable OUT.WG and OUT.RHO files; then read the OUT.WG and OUT.RHO as input (mv OUT.WG/OUT.RHO IN.WG/IN.RHO and add the tags IN.WG = T, IN.RHO = T to the etot.input),redo the relaxation with FIX_FERMI= T. In case the totNel is larger than NUM_BAND*2, one should increase NUM_BAND in etot.input.

RESOURCE AVAILABILITY

36Lead contact Further information and requests for resources and software should be directed to and will be fulfilled by the lead contact, Dr. Guoping Gao (guopinggao@xjtu.edu.cn).

Technical contact

37Dr. Lin-Wang Wang (lwwang@semi.ac.cn).

Materials availability

38This study did not use any reagents.

Data and code availability

39The published article includes all datasets generated or analyzed during this study.

SCF_ITER0_1Fix_Fermi = T - 4 .Figure 1 .

40Figure 1.The atomic structure of the electrical double layer used in this protocol

3 . 4 . 5 . 4 # 1 module

41Prepare pseudopotential files (*.UPF) Note: The pseudopotential files contain the pseudopotential for each atomic species used in the calculation.There are two types of Pseudopotentials available on the website of http:// www.pwmat.com/potential-download(norm-conserving pseudopotential and ultrasoft pseudopotential).Here, we use the ultrasoft pseudopotential in this simulation.a. Download them from http://www.pwmat.com/potential-download,and store them in a conventional place.b.Copy the pseudopotential of all the elements required by the atom.config to the work directory.c.Use it by adding the following tag in the etot.inputfile.Note:The order of different elements' pseudopotentials is arbitrary.An example of the Pt.SG15.PBE.UPF file.in.psp1 = Pt.SG15.PBE.UPF in.psp2 = H.SG15.PBE.UPF in.psp3 = O.SG15.PBE.UPF <UPF version="2.0.1"> <PP_INFO> This pseudopotential file has been produced using the code ONCVPSP (Optimized Norm-Conserving Vanderbilt PSeudopotential) scalar-relativistic version 3.2.208/07/2015 by D. R. Hamann The code is available through a link at URL www.mat-simresearch.com.Prepare the IN.SOLVENT.Note: The IN.SOLVENT file defines the detailed parameters for the solvent model.A tag IN.SOLVENT = T should be added in the etot.inputfile to read these solvent parameters in the calculation.The key parameter for the fixed-potential method is POISSON_BOLTZMANN.The Poisson-Boltzmann equation is used to screen the effects of free ions, provide a reference potential (0 V) far away from the surface, and define the absolute potential of the electrode corresponding to the experimental potential in the fixed-potential (fixed-Fermi-energy) calculations.An example of the IN.SOLVENT file.Documentation with the package provides a full description of the input data below.While it is not required under the terms of the GNU GPL, it is suggested that you cite D. R. Hamann, Phys.Rev. B 88, 085117 (2013) in any publication using these pseudopotentials.#the dielectric constant of the solvent SURFACE_TENSION = 50.00E+000#surface tension of the cavity Protocol Prepare the Job script.Note: the job script based on the slurm workload manager specifies the desired resources for your PWmat job.You can name it arbitrarily, like slurm.sh.The exact content might depend on the actual computer environment setup.The required libraries include Math Kernel Library, Message Passing Interface, and Compute Unified Device Architecture.One might need to consult the computer administrator or send an email to support@pwmat.com for details (e.g., the name of the libraries).One example job script looks like this: Run the job Timing: 5 h 6.Once the above input files are ready, submit the jobs by: #!/bin/sh #SBATCH --partition=gpu #SBATCH --job-name=pwmat #SBATCH --nodes=1 #SBATCH --ntasks-per-node=4 #SBATCH --gres=gpu:SBATCH --gpus-per-task=1 module load mkl/2022.0.2 module load mpi/2021.5.length in linearized PB equation PRESSUR = -0.350#pressure of the cavity > sbatch slurm.sha. Use the command squeue to check the job status and job ID. b.If something goes wrong, use the command scancel to kill your job.

7 .

42Visualize the final.config.a. Use the utility of convert_from_config.x to convert the final.config to .xsf and .xyzformat files and download the final.config.xsf to the local desktop.The command is: b.Drag the final.config.xsf to the VESTA windows to visualize the final.config.xsffile c.Check whether the structure of the model is reasonable.d.The expected result is shown in Figure 2.

>

43scancel <job ID> > convert_from_config.x final.config>>> make sure you have typed in command line: "convert_from_config.x file" <<< >>> or in command line: "convert_from_config.x < file" <<< >>> successfully write in the final.config.xsf<<< >>> successfully write in the final.config.xyz<<< > sz final.config.xsf> grep NUM_ELECTRON REPORT NUM_ELECTRON = 937.000000000000> squeue

Fix_FermiFix_Fermi

44938.550016436730 E_Fermi(eV)= -4.04000000000000 24000000000000 Fix_Fermi, input rho, define init totNel 938.554357265867E= -0.1356493404288E+06 Av_F= 0.11E-01 M_F= 0.73E-01 dE= 0.94E-06 dRho= 0.48E-03 SCF= 32 dL= 0.00E+00 p*F= 0.00E+00 p*F0= 0.00E+00 Fch= 0.00E+00 It= 0 NEW E= -0.1356493422269E+06 Av_F= 0.26E-01 M_F= 0.16E+00 dE= 0.15E-03 dRho= 0.92E-05 SCF= 47 dL= 0.72E-02 p*F= 0.34E+00 p*F0= -0.21E+00 Fch= -0.27E+01 It= 1 CORR E= -0.1356493433853E+06 Av_F= 0.69E-02 M_F= 0.65E-01 dE= 0.25E-03 dRho= 0.96E-05 SCF= 7 dL= 0.27E-02 p*F= 0.22E-01 p*F0= -0.21E+00 Fch= 0.83E+01 It= 2 CORR E= -0.1356493430965E+06 Av_F= 0.62E-02 M_F= 0.66E-01 dE= 0.21E-02 dRho= 0.85E-05 SCF= 3 dL= 0.25E-02 p*F= 0.34E-02 p*F0= -0.21E+00 Fch= 0.76E+01 It= 3 NEW E= -0.1356493442492E+06 Av_F= 0.66E-02 M_F= 0.57E-01 dE= 0.19E-03 dRho= 0.73E-05 SCF= 8 dL= 0.72E-02 p*F= -0.56E-01 p*F0= -0.10E+00 Fch= 0.26E+01 It= 4 CORR E= -0.1356493432889E+06 Av_F= 0.13E-01 M_F= 0.67E-01 dE= 0.38E-03 dRho= 0.80E-05 SCF= 6 dL= 0.16E-01 p*F= 0.22E-02 p*F0= -0.10E+00 Fch= 0.31E+00 It= 5 NEW E= -0.1356493440665E+06 Av_F= 0.12E-01 M_F= 0.59E-01 dE= 0.31E-03 dRho= 0.71E-05 SCF= 6 dL= 0.21E-02 p*F= -0.85E-01 p*F0= -0.92E-01 Fch= 0.55E+01 It= 6 CORR E= -0.1356493442404E+06 Av_F= 0.94E-02 M_F= 0.36E-01 dE= 0.23E-03 dRho= 0.97E-05 SCF= 2 dL= 0.83E-02 p*F= -0.59E-01 p*F0= -0.92E-01 Fch= 0.20E+01 It= 7 *END E= -0.1356493442404E+06 Av_F= 0.94E-02 M_F= 0.36E-01 dE= 0.23E-03 dRho= 0.97E-05 SCF= 2 dL= 0.83E-02 p*F= -0.59E-01 p*F0= -0.92E-01 Fch= 0.20E+01 STAR Protocols 5, 103021, June 21, 2024

Figure 2 .

45Figure 2. The visualization of final.config.xsfvia the VESTA

Figure 3 .Figure 4 .

46Figure 3.The process of obtaining the grand free energy evolution during the whole proton migration step under several constant potentials

47****************************************** *********** end of etot.inputreport ******** minimum n1,n2,n3 from Ecut2 73.595 73.595 353.662 minimum n1L,n2L,n3L from Ecut2L 73.595 73.595 353.662 *********************************************

-

48Verifying archive integrity...All good.

49config and MOVEMENT.One can use the free software Q_studio provided by LonXun Inc. http:// www.pwmat.com/qstudio-introduce.This is a browser-based atomic model builder and viewer.It can directly generate the atom.configformat structure file.It is worth noting that only the Chinese version of Q_studio is available at present.Another general way to obtain the atom.configstarting with a VASP POSCAR file and then converting the POSCAR to the atom.configand converting the atom.configback to POSCAR.The steps are:

50a. Convert the POSCAR to the atom.configvia:b.Convert the atom.configback to the POSCAR via: c.Or convert the atom.configback to the .xsfor.xyzformatfile via: d.Visualize the POSCAR or atom.config.xsfviaVESTA to check whether the structure of the model is reasonable.An example of the atom.config.

Table 1 .

51A comprehensive list of all important output files

참고문헌 7건

  1. Joint density functional theory of the electrode-electrolyte interface: Application to fixed electrode potentials, interfacial capacitances, and potentials of zero charge Physical Review B · American Physical Society · 2012 10.1103/physrevb.86.075140
  2. <i>VESTA 3</i> for three-dimensional visualization of crystal, volumetric and morphology data Journal of Applied Crystallography · Wiley · 2011 10.1107/s0021889811038970
  3. The analysis of a plane wave pseudopotential density functional theory code on a GPU machine Computer Physics Communications · Elsevier BV · 2012 10.1016/j.cpc.2012.08.002
  4. Identification of Possible Pathways for C–C Bond Formation during Electrochemical Reduction of CO<sub>2</sub>: New Theoretical Insights from an Improved Electrochemical Model The Journal of Physical Chemistry Letters · American Chemical Society · 2016 10.1021/acs.jpclett.6b00358
  5. Substantial potential effects on single-atom catalysts for the oxygen evolution reaction simulated via a fixed-potential method Journal of Catalysis · Elsevier BV · 2020 10.1016/j.jcat.2020.08.032
  6. A potential and pH inclusive microkinetic model for hydrogen reactions on Pt surface Chem Catalysis · Elsevier BV · 2021 10.1016/j.checat.2021.10.006
  7. The concerted proton-electron transfer mechanism of proton migration in the electrochemical interface iScience · Cell Press · 2023 10.1016/j.isci.2023.108318