Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

CP2K: register the code, with a first editor, input generator and parser (periodic DFT+U geometry optimisation)

未关闭
#329 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
8/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
shell
领域
hpc

调研方向

This is a multi-stage feature, so start by reading how an existing code is registered: the EDML files under scripts/codereg and the code lists, then the sh job scripts that launch cp2k.psmp or cp2k.ssmp. Stages two to four (editor, input generator, output parser) each need the existing editor and parser patterns for another code. Done means the first-case calculation is generated, run and parsed on the test cell, which the issue asks to be built from a real job.

由索引模型根据 Issue 内容生成。

描述

CP2K is one of the target codes, but ECCE has no CP2K support yet: there is no code registration (EDML, scripts/codereg), no input generator, and no output parser. The Builder already opens with the lattice tools for periodic codes (#300).

First case

A periodic geometry optimisation with Quickstep:

  • GPW, MOLOPT basis sets and GTH pseudopotentials, with the basis and potential files given by name
  • PBE, with D3 dispersion
  • DFT+U on a transition-metal site
  • UKS, with charge and multiplicity set
  • OT SCF
  • periodic in XYZ, with the cell taken from the Builder lattice
  • coordinates written into the input or a PDB coordinate file

Stages

  1. Code registration. CP2K in Register Machines and in the code lists, run as cp2k.psmp (MPI) or cp2k.ssmp, through the sh job scripts.
  2. Calculation editor for the first case: run type (ENERGY, GEO_OPT, CELL_OPT), functional, basis/potential per element, charge, multiplicity, UKS, +U per element (U value and orbital), dispersion, cutoff/rel_cutoff, SCF settings, memory in GB (#77 rule).
  3. Input generator (ai.cp2k or a .tpl) writing &GLOBAL, &FORCE_EVAL/&DFT, &SUBSYS with &CELL, &COORD, &KIND, and &MOTION for optimisations.
  4. Output parsing: total energy, SCF and optimisation progress (Organizer progress, #284), final geometry from the -pos-1.xyz trajectory, cell, Mulliken charges, spin moments.
  5. Test set: a small cell derived from a real job (no third-party research data in the repo), run on niobium and on Kebnekaise.

Later

MD (NVT/NPT), CELL_OPT, vibrational analysis, QM/MM (FIST), restart from .wfn.

主要语言
C
星标
10
派生
8
平均合并
21 分钟
30 天内合并 PR
1

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

FriendsofECCE/ECCE 的其他 Issue

查看 FriendsofECCE/ECCE 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。