본문으로 건너뛰기
cccskills
무료GitHub에 공개

packmol

Generate initial configurations for molecular simulations using Packmol. Build liquid boxes, mixtures, solutions, and solvated systems by packing molecules into a defined region.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Hello-QM/catgo-LRG스타 208(GitHub 208 + cccskills 0)

실행 점수 미검증

설치 방법 보기

포함된 파일(1)

  • SKILL.md4.3 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Packmol — Mixture/Solution Box Generation

When to Use

  • User needs to build a liquid simulation box (water, organic solvents)
  • User wants to create a mixture of different molecules
  • User needs to solvate a solute in a solvent box
  • User is preparing initial structures for LAMMPS ReaxFF or classical MD
  • User needs to fill a region with molecules at a target density

Prerequisites

  1. Packmol installed (packmol < /dev/null should print version)
  2. Molecule coordinate files in PDB or XYZ format
  3. For molecules from SMILES: first convert with Open Babel (data/openbabel/SKILL.md)

Workflow Steps

1. Prepare molecule files

If starting from SMILES, convert to PDB first:

obabel -:"O" -O water.pdb --gen3d -h
obabel -:"CCO" -O ethanol.pdb --gen3d -h

2. Create Packmol input and run

catgo_workflow_engine(action="add_task", params={
  "workflow_id": "wf_xxx",
  "task_type": "shell",
  "name": "packmol_mix",
  "command": "packmol < mixture.inp > packmol.log 2>&1",
  "input_files": {
    "mixture.inp": "<packmol input>",
    "water.pdb": "<water coords>",
    "ethanol.pdb": "<ethanol coords>"
  },
  "system_name": "water_ethanol_mix"
})

Packmol Input Template — Simple Liquid Box

tolerance 2.0
filetype pdb
output mixture.pdb

structure water.pdb
  number 1000
  inside box 0.0 0.0 0.0 30.0 30.0 30.0
end structure

Packmol Input Template — Binary Mixture

tolerance 2.0
filetype pdb
output mixture.pdb

# Water (70% by count)
structure water.pdb
  number 700
  inside box 0.0 0.0 0.0 40.0 40.0 40.0
end structure

# Ethanol (30% by count)
structure ethanol.pdb
  number 300
  inside box 0.0 0.0 0.0 40.0 40.0 40.0
end structure

Packmol Input Template — Solvated Solute

tolerance 2.0
filetype pdb
output solvated.pdb

# Solute (fixed at center)
structure solute.pdb
  number 1
  center
  fixed 20.0 20.0 20.0 0.0 0.0 0.0
end structure

# Solvent around solute
structure water.pdb
  number 500
  inside box 0.0 0.0 0.0 40.0 40.0 40.0
  outside sphere 20.0 20.0 20.0 5.0
end structure

Packmol Input Template — Layered System (e.g., Interface)

tolerance 2.0
filetype pdb
output interface.pdb

# Liquid phase
structure hexane.pdb
  number 200
  inside box 0.0 0.0 0.0 30.0 30.0 15.0
end structure

# Gas phase
structure oxygen.pdb
  number 50
  inside box 0.0 0.0 15.0 30.0 30.0 30.0
end structure

Box Size Estimation

Target density determines box size. For water at 1 g/cm3:

N_molecules * M_molecule / (N_A * V_box) = density

For 1000 water molecules:
V = 1000 * 18.015 / (6.022e23 * 1.0) = 2.993e-20 cm3
L = V^(1/3) = 3.1e-7 cm = 31.0 Angstrom

Use a box slightly larger (e.g., 32 Ang) and equilibrate with NPT MD.

Parameter Guidance

ParameterTypical valueNotes
tolerance2.0 AngMinimum distance between atoms of different molecules
filetypepdb or xyzMust match input molecule files
numbervariesNumber of molecules of each type
inside boxx0 y0 z0 x1 y1 z1Rectangular region (Angstrom)
inside spherecx cy cz rSpherical region
outside spherecx cy cz rExclusion zone (for solvation)
fixedx y z a b cFix position and orientation (angles in degrees)

Common Pitfalls

  1. Tolerance too small — tolerance 2.0 works for most cases. Smaller values cause Packmol to fail to converge.
  2. Box too small — if density is too high, Packmol cannot place all molecules. Increase box size.
  3. Wrong filetype — filetype pdb must match the actual input file format.
  4. No equilibration after Packmol — Packmol output is NOT equilibrated. Always run NPT MD to relax the density.
  5. Missing hydrogens — ensure input molecules have correct hydrogens before packing.
  6. Molecule overlap with solute — use outside sphere to prevent solvent from overlapping with a fixed solute.
  7. Convergence failure — if Packmol does not converge, increase tolerance or box size, or reduce molecule count.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

abinit

무료

Generate and manage ABINIT DFT calculations. Use when the user requests ABINIT, or needs DFPT phonons, GW calculations, or BSE optical spectra.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Hello-QM/catgo-LRG2082026년 10월 23일 업데이트

Use when the user asks to place an adsorbate molecule on a surface, find adsorption sites, or set up a surface+adsorbate model for DFT.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Hello-QM/catgo-LRG2082026년 10월 23일 업데이트

Use when the user asks for adsorption energy, binding energy, or wants to compare how strongly a molecule binds to a surface.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Hello-QM/catgo-LRG2082026년 10월 23일 업데이트

Use when the user asks to analyze computational results: Gibbs free energy, OER/HER/CO2RR overpotentials, adsorption energy, convergence tests, DOS/d-band analysis, or Bader charge analysis.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Hello-QM/catgo-LRG2082026년 10월 23일 업데이트

Use AmberTools antechamber for molecular force field parameterization. Generates GAFF/GAFF2 parameters and AM1-BCC or RESP charges for use in AMBER or LAMMPS classical MD simulations.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Hello-QM/catgo-LRG2082026년 10월 23일 업데이트

atom-ops

무료

One-shot recipes for adding, deleting, moving, and replacing individual atoms in the active CatGo viewer structure. Use whenever the user asks to "add an atom", "delete atoms", "remove this atom", "move atom N", "replace H with Li", or any single-atom edit — including "add a hydrogen on top of atom 12" / "delete atoms 5–9" / "swap the oxygen at site 3 for fluorine". Skips the discovery loop (no need to list structure tools or check adsorption sites first); goes straight to the matching `catgo_structure` action. Triggers in Chinese on 加原子, 删原子, 减原子, 移动原子, 替换原子, 增加氢, 删除氧, 把 ... 换成 ....

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Hello-QM/catgo-LRG2082026년 10월 23일 업데이트

Hello-QM의 스킬 모두 보기

이 스킬의 문제 신고