# CASTEP

**CASTEP**（Cambridge Serial Total Energy Package，剑桥串行总能量包）是一款从第一性原理出发计算材料性质的软件包，采用密度泛函理论（DFT），以平面波基组和赝势为基础。它可以模拟能量学、原子结构、振动性质、电子响应，以及红外与拉曼光谱、核磁共振参数、核心能级谱等光谱可观测量。<sup>[1](https://www.castep.org/)</sup> 该程序起源于20世纪80年代末剑桥大学凝聚态理论课题组，由迈克·佩恩（Mike Payne）教授领导，现由CASTEP开发者组（CASTEP Developers Group，CDG）开发，这是一个由在英国工作的学者组成的团队。<sup>[2](https://www.enterprise.cam.ac.uk/wp-content/uploads/2020/03/Cambridge-Enterprise-Annual-Review-2019.pdf)</sup><sup> • </sup><sup>[3](https://cas-web.esc.rl.ac.uk/about_us)</sup>

| 关键信息 | 详情 |
|---|---|
| 全称 | 剑桥串行总能量包<sup>[2](https://www.enterprise.cam.ac.uk/wp-content/uploads/2020/03/Cambridge-Enterprise-Annual-Review-2019.pdf)</sup> |
| 方法 | 平面波赝势密度泛函理论<sup>[4](https://eprints.whiterose.ac.uk/id/eprint/8521/1/probertm12.pdf)</sup> |
| 起源 | 20世纪80年代末，剑桥大学凝聚态理论课题组，由迈克·佩恩领导<sup>[2](https://www.enterprise.cam.ac.uk/wp-content/uploads/2020/03/Cambridge-Enterprise-Annual-Review-2019.pdf)</sup> |
| 重写 | 1999年起完全重新设计；新代码于2001年首次公开发布<sup>[4](https://eprints.whiterose.ac.uk/id/eprint/8521/1/probertm12.pdf)</sup><sup> • </sup><sup>[5](https://impact.ref.ac.uk/casestudies2/refservice.svc/GetCaseStudyPDF/11780)</sup> |
| 赝势 | 模守恒与超软赝势，可即时生成（OTFG）或从文件读取<sup>[6](https://www.castep.org/features/capabilities/pseudopotentials)</sup> |
| 并行 | MPI加OpenMP；G矢量、k点、能带和任务农场并行；可扩展至远超1000个处理单元<sup>[7](https://www.castep.org/features/capabilities/code-and-parallelism)</sup> |
| 许可 | 通过STFC提供免费学术源代码许可；商业销售通过BIOVIA Materials Studio进行<sup>[8](https://licences.stfc.ac.uk/product/castep/print)</sup><sup> • </sup><sup>[9](https://cas-web.esc.rl.ac.uk/get_castep)</sup> |
| 关键论文 | 克拉克等，*Zeitschrift für Kristallographie* 220, 567–570 (2005)<sup>[4](https://eprints.whiterose.ac.uk/id/eprint/8521/1/probertm12.pdf)</sup> |

## 历史

该程序最初由佩恩及其合作者在20世纪80年代末和90年代初开发。到1990年，该课题组已能常规模拟多达50个原子的体系；到1991年，在将代码移植到并行计算机之后，可模拟多达400个原子；此时代码已足够稳健，可以以CASTEP之名提供给其他研究人员使用。<sup>[10](https://www.enterprise.cam.ac.uk/wp-content/uploads/2015/04/ce-annual-review-2008-2009-final.pdf)</sup> 1988年，该项目获得了英国工程与物理科学研究理事会的资助。<sup>[10](https://www.enterprise.cam.ac.uk/wp-content/uploads/2015/04/ce-annual-review-2008-2009-final.pdf)</sup>

**重写。** 原始代码经众多合作者贡献而不断扩展，却没有模块化结构或书面规范，这使得进一步改进变得困难。从1999年起，CASTEP由其作者从头完全重新设计，产出了一套新的模块化Fortran 90代码，从一开始就为并行计算机而设计。<sup>[4](https://eprints.whiterose.ac.uk/id/eprint/8521/1/probertm12.pdf)</sup> 新代码于2001年首次公开发布。<sup>[5](https://impact.ref.ac.uk/casestudies2/refservice.svc/GetCaseStudyPDF/11780)</sup> 最初的CASTEP开发者组由斯图尔特·克拉克（Stewart Clark，杜伦）、菲尔·哈斯尼普（Phil Hasnip）、迈克·佩恩和克里斯·皮卡德（Chris Pickard，剑桥）、马特·普罗伯特（Matt Probert，约克）以及马特·西格尔（Matt Segall）组成。<sup>[5](https://impact.ref.ac.uk/casestudies2/refservice.svc/GetCaseStudyPDF/11780)</sup>

**商业化。** CASTEP于1994年首次授权给Molecular Simulations International，条款规定大学享有部分版税分成，同时原始作者保留对开发的控制权。Molecular Simulations于1995年被Accelrys Inc.收购，后者负责销售近20年；2014年Accelrys被达索系统（Dassault Systèmes）收购并更名为BIOVIA，新的许可于2019年初生效。<sup>[2](https://www.enterprise.cam.ac.uk/wp-content/uploads/2020/03/Cambridge-Enterprise-Annual-Review-2019.pdf)</sup> CASTEP的销售额已超过3000万美元。<sup>[11](https://www.enterprise.cam.ac.uk/case-studies/castep-software-can-predict-behaviour-of-new-materials-before-they-exist/)</sup> 如今，CASTEP开发者组与剑桥企业（Cambridge Enterprise）面向全球提供免费的学术用途源代码许可，源代码通过STFC许可网站分发；商业用户则通过BIOVIA Materials Studio软件包获取CASTEP。<sup>[8](https://licences.stfc.ac.uk/product/castep/print)</sup><sup> • </sup><sup>[9](https://cas-web.esc.rl.ac.uk/get_castep)</sup>

## 方法

CASTEP通过将波函数在由周期性边界条件和布洛赫定理定义的平面波基组中展开，来求解DFT的Kohn-Sham方程。电子-离子相互作用由从头算赝势描述，包括模守恒和超软两种形式；电子波函数和电荷密度通过直接能量最小化自洽求得，采用共轭梯度和密度混合方案；系综DFT方法用于处理金属及其他具有部分占据的体系。<sup>[4](https://eprints.whiterose.ac.uk/id/eprint/8521/1/probertm12.pdf)</sup> 该代码还提供块Davidson求解器配合密度混合，以及针对难以收敛体系的系综DFT。<sup>[12](https://www.castep.org/features/capabilities)</sup>

总能量是核心量：它对原子位置的导数给出力，对晶胞参数的导数给出应力，二者驱动几何优化和分子动力学。响应性质由微扰理论得到，例如声子来自原子位置微扰，介电性质来自电场微扰，核磁共振来自磁场微扰，弹性常数来自晶格参数微扰，玻恩电荷来自k点微扰。<sup>[4](https://eprints.whiterose.ac.uk/id/eprint/8521/1/probertm12.pdf)</sup>

## 赝势

CASTEP用赝势表示核心电子与价电子之间的相互作用，支持模守恒和超软两种形式。赝势可从多种格式的文件读取（.usp、.uspso、.recpot，以及Quantum Espresso生成的.UPF），CASTEP还内置生成器，可在计算过程中即时计算赝势（OTFG），并有一个经过充分测试的赝势数据库作为支撑，其中包括用于高压研究的高精度半核心赝势。<sup>[6](https://www.castep.org/features/capabilities/pseudopotentials)</sup>

超软赝势由范德比尔特（Vanderbilt）于1990年提出，它放宽了模守恒条件，使核心区域内具有显著权重的紧束缚轨道能够以尽可能软的方式表示，从而大幅降低所需的平面波截断能。电子密度随即被分为贯穿整个晶胞的软部分和局域于核心区域的增广电荷。<sup>[13](https://www.tcm.phy.cam.ac.uk/castep/documentation/WebHelp/content/modules/castep/thcastepultrapseudo.htm)</sup> 默认的OTFG赝势是精确的超软赝势；更快的QC5赝势集设计为对所有元素在500 eV截断能下即可给出收敛结果，服务于高通量计算；对于需要模守恒赝势的性质，则提供模守恒赝势集（NCP）。C19和NCP19等带版本号的赝势集可保证向后兼容。<sup>[14](https://castep-docs.github.io/workshop/documentation/Pseudopotentials/overview/)</sup> 一个实际限制是：使用PAW增广的性质，包括所有核磁共振/电子顺磁共振性质和电子能量损失谱，需要OTFG赝势，无法使用基于文件的赝势。<sup>[14](https://castep-docs.github.io/workshop/documentation/Pseudopotentials/overview/)</sup>

## 功能

**结构与动力学。** CASTEP使用BFGS、LBFGS、TPSD和阻尼分子动力学进行变胞几何优化，可对原子、晶胞、体积以及固定原子间距等非线性量施加约束，并用LST/QST方法或微动弹性带（NEB）方法寻找过渡态。<sup>[12](https://www.castep.org/features/capabilities)</sup><sup> • </sup><sup>[15](https://www.castep.org/features/capabilities/structural-methods)</sup> 分子动力学可在NVE、NVT、NPH和NPT系综中运行，配有Nosé-Hoover、Langevin及相关恒温器和Andersen-Hoover或Parrinello-Rahman恒压器，路径积分分子动力学可处理量子核运动。<sup>[15](https://www.castep.org/features/capabilities/structural-methods)</sup>

**振动光谱。** 金属和绝缘体的声子模式通过密度泛函微扰理论（DFPT）或超胞有限位移法计算，包括自动化的非对角超胞方法。内置的晶格动力学代码无需外部软件即可处理完整工作流程，电场响应DFPT给出红外和拉曼强度及非线性光学系数。<sup>[16](https://www.castep.org/features/capabilities/vibrational-spectroscopy)</sup>

**光谱与电子结构。** 除能带结构和态密度外，CASTEP还可计算固态核磁共振化学位移、电场梯度张量、J耦合、超精细和g张量、电子能量损失谱/ELNES和XANES谱以及光谱，并提供Mulliken和Hirshfeld布居分析以及电子局域函数。<sup>[12](https://www.castep.org/features/capabilities)</sup><sup> • </sup><sup>[17](https://www.castep.org/features/capabilities/electronic-properties)</sup> 哈密顿量方面提供广泛的交换关联泛函，从LDA和GGA各变体到meta-GGA（rSCAN）、杂化泛函（PBE0、B3LYP、sX-LDA、HSE系列）、Hubbard DFT+U，以及Grimme D2、D3、D4、TS、MBD和XDM等半经验色散校正。<sup>[12](https://www.castep.org/features/capabilities)</sup>

## 并行与性能

当前代码以Fortran 2003编写，采用模块化结构，可从台式PC运行到国家超级计算机。它采用三个层次的并行——G矢量（基组）、k点和能带——外加任务农场用于涉及多个相关基态计算的情形；所有策略可组合使用，从而在远超1000个处理单元上实现良好扩展。<sup>[7](https://www.castep.org/features/capabilities/code-and-parallelism)</sup> 能带并行是在2007年一个项目中开发的，目的是在英国机器HECToR上扩展到1000核以上，使代码在基准测试中的运行速度达到前一版本的2至4倍。<sup>[18](https://www.researchgate.net/publication/237350304_Bands-parallelism_in_Castep_A_dCSE_Project)</sup> OpenMP线程于2014–2015年加入，以减少内存占用并改善多核架构上的扩展性。<sup>[19](https://eprints.whiterose.ac.uk/id/eprint/185650/1/Portable_Acceleration_of_Materials_Modeling_Software_CASTEP_GPUs_and_OpenACC.pdf)</sup>

在Excalibur项目下开发的基于OpenACC的GPU移植，早期即显示出在使用非局域泛函的模拟中可超过十倍的加速；后来在Bede超级计算机上的工作将CASTEP的GPU加速比从试点项目中的1.2倍提升到同一硬件上约9.6倍。<sup>[19](https://eprints.whiterose.ac.uk/id/eprint/185650/1/Portable_Acceleration_of_Materials_Modeling_Software_CASTEP_GPUs_and_OpenACC.pdf)</sup><sup> • </sup><sup>[20](https://n8cir.org.uk/case-studies/bede/phil-hasnip/)</sup>

## 使用与影响

CASTEP模拟每年支撑超过1000篇同行评审论文。<sup>[19](https://eprints.whiterose.ac.uk/id/eprint/185650/1/Portable_Acceleration_of_Materials_Modeling_Software_CASTEP_GPUs_and_OpenACC.pdf)</sup> 仅2012年就有超过750篇基于CASTEP计算的学术论文发表，该代码被用于石油天然气、化工和半导体制造行业，以提高工艺效率并查明器件和产品失效的根源。<sup>[11](https://www.enterprise.cam.ac.uk/case-studies/castep-software-can-predict-behaviour-of-new-materials-before-they-exist/)</sup> 一份REF影响案例研究指出，CASTEP对二氧化铪性质的计算表明，其中的量子隧穿问题远不如二氧化硅中严重，同年英特尔独立发布了其首款基于二氧化铪的芯片。<sup>[5](https://impact.ref.ac.uk/casestudies2/refservice.svc/GetCaseStudyPDF/11780)</sup> 标准方法学参考文献是克拉克、西格尔、皮卡德、哈斯尼普、普罗伯特、雷夫森和佩恩于2005年发表在*Zeitschrift für Kristallographie*上的论文《使用CASTEP的第一性原理方法》。<sup>[4](https://eprints.whiterose.ac.uk/id/eprint/8521/1/probertm12.pdf)</sup>

## References

1. [CASTEP Homepage](https://www.castep.org/)
2. [Cambridge Enterprise Annual Review 2019, CASTEP section](https://www.enterprise.cam.ac.uk/wp-content/uploads/2020/03/Cambridge-Enterprise-Annual-Review-2019.pdf)
3. [About us, CASTEP](https://cas-web.esc.rl.ac.uk/about_us)
4. [Clark, S.J. et al. (2005). First principles methods using CASTEP. Zeitschrift für Kristallographie 220, 567–570.](https://eprints.whiterose.ac.uk/id/eprint/8521/1/probertm12.pdf)
5. [REF impact case study: CASTEP (Clark, Durham)](https://impact.ref.ac.uk/casestudies2/refservice.svc/GetCaseStudyPDF/11780)
6. [Pseudopotentials, CASTEP features](https://www.castep.org/features/capabilities/pseudopotentials)
7. [Code and Parallelism, CASTEP features](https://www.castep.org/features/capabilities/code-and-parallelism)
8. [CASTEP academic licence, STFC](https://licences.stfc.ac.uk/product/castep/print)
9. [Getting CASTEP](https://cas-web.esc.rl.ac.uk/get_castep)
10. [Cambridge Enterprise Annual Review 2008–2009, CASTEP timeline](https://www.enterprise.cam.ac.uk/wp-content/uploads/2015/04/ce-annual-review-2008-2009-final.pdf)
11. [CASTEP software predicts behaviour of materials, Cambridge Enterprise case study](https://www.enterprise.cam.ac.uk/case-studies/castep-software-can-predict-behaviour-of-new-materials-before-they-exist/)
12. [Capabilities, CASTEP features](https://www.castep.org/features/capabilities)
13. [Ultrasoft pseudopotentials, CASTEP documentation](https://www.tcm.phy.cam.ac.uk/castep/documentation/WebHelp/content/modules/castep/thcastepultrapseudo.htm)
14. [Pseudopotentials overview, CASTEP Docs](https://castep-docs.github.io/workshop/documentation/Pseudopotentials/overview/)
15. [Structural Properties and Dynamics, CASTEP features](https://www.castep.org/features/capabilities/structural-methods)
16. [Vibrational Spectroscopy, CASTEP features](https://www.castep.org/features/capabilities/vibrational-spectroscopy)
17. [Electronic Properties, CASTEP features](https://www.castep.org/features/capabilities/electronic-properties)
18. [Bands-parallelism in Castep: A dCSE Project (Hasnip, 2008)](https://www.researchgate.net/publication/237350304_Bands-parallelism_in_Castep_A_dCSE_Project)
19. [Smith, M., Tamerus, A., Hasnip, P. (2022). Portable Acceleration of Materials Modeling Software: CASTEP, GPUs, and OpenACC. Computing in Science and Engineering 24(1), 46–55.](https://eprints.whiterose.ac.uk/id/eprint/185650/1/Portable_Acceleration_of_Materials_Modeling_Software_CASTEP_GPUs_and_OpenACC.pdf)
20. [Phil Hasnip case study, N8 CIR Bede supercomputer](https://n8cir.org.uk/case-studies/bede/phil-hasnip/)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 物质世界与数学 › 物理学 › 物理学方法、实践与学术共同体 › Applied and interdisciplinary physics › Computational and simulation physics › Physics simulation software and engines › Scientific simulation packages › Quantum many-body and materials simulation codes

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/castep

English original: https://www.edgepedia.org/castep
