Skip to content
Back to skills

Potential Analysis

ASecurity

This skill group covers electrostatic potential analysis from first-principles

  • 666 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 2, 2026
ai-agentspython

Security analysis

A100/100

Scanned September 2, 2026

npx -y skills add majiayu000/claude-skill-registry --skill potential-analysis --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Potential Analysis?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Potential Analysis
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-potential-analysis/badge)](https://www.skillsdirectory.com/skills/majiayu000-potential-analysis)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: potential-analysis
description: This skill group covers electrostatic potential analysis from first-principles
  calculations.
---

---
name: potential-analysis
description: Potential Analysis (3 sub-skills: macroscopic-average, planar-average, work-function)
---

# Potential Analysis

## Overview

This skill group covers electrostatic potential analysis from first-principles calculations.
It provides workflows for extracting, averaging, and interpreting the electrostatic potential
from Quantum ESPRESSO and VASP outputs. These analyses are essential for work function
calculations, band alignment at interfaces, and understanding interface dipoles.

All workflows correspond to VASPKIT menu 42 (tasks 420--430).

## Sub-Skills

| Sub-Skill | Directory | Description |
|---|---|---|
| Work Function | `work-function/` | Calculate work function from planar-averaged electrostatic potential. Vacuum level minus Fermi energy. QE: pp.x + average.x. VASP: LOCPOT parsing. |
| Planar Average | `planar-average/` | Planar-average and macroscopic-average of charge density and potential along a chosen axis. QE: pp.x + average.x. VASP: LOCPOT/CHGCAR parsing. Line profiles along specified paths. |
| Macroscopic Average | `macroscopic-average/` | Double (macroscopic) averaging technique for interface dipoles, band offsets, and heterojunction band alignment. |

## When to Use

- **work-function/** -- You need the work function of a surface slab (vacuum level minus Fermi energy).
- **planar-average/** -- You need 1D profiles of the electrostatic potential or charge density
  averaged over planes perpendicular to a slab normal or interface direction.
- **macroscopic-average/** -- You need smooth macroscopic averages for band alignment at
  heterojunctions, interface dipole determination, or Schottky barrier estimation.

## General Prerequisites

- Quantum ESPRESSO 7.5 (`pw.x`, `pp.x`, `average.x`)
- Python packages: `pymatgen`, `ase`, `numpy`, `scipy`, `matplotlib`
- A converged slab calculation with sufficient vacuum (typically 15--20 Angstrom)
- For VASP workflows: LOCPOT and/or CHGCAR files from a slab calculation

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.