pycalphad
하는 일
이 프로그램은 여러 온도와 압력에서 재료(합금)가 어떻게 행동하는지 계산합니다. 합금의 어떤 부분(상)이 형성되고 그 양이 얼마인지 보여 줍니다.
사용하는 경우
- ✓금속 합금의 상 안정성을 이해하고 싶을 때.
- ✓온도에 따라 상이 어떻게 바뀌는지 확인할 때.
- ✓합금에서 각 상의 정확한 양을 계산할 때.
스킬 링크
https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/pycalphad/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“구리-니켈 합금에 대해 1000켈빈과 1기압에서 Cu-Ni 데이터베이스를 사용해 상과 그 양을 계산해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
재료와 조건(온도, 압력, 조성)에 대한 정보가 담긴 데이터베이스를 제공합니다. 프로그램은 이 정보를 사용해 어떤 상이 안정적인지, 그리고 어떤 비율로 나타나는지 예측합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
pycalphad: TDB equilibrium calculations
When to use
Use for equilibrium phase fractions and compositions at a fixed bulk elemental mole composition, specified pressure, and a list of finite temperatures. The bundled helper executes real pycalphad equilibria, checks mass balance, repeats at greater sampling density, and exports each stable composition set separately.
Equilibrium is constrained by the selected database, components, phases, and conditions. It does not predict precipitation rates, retained metastable microstructures, or properties of phases missing from the database. Successful numerical checks do not establish the database's experimental accuracy.
Workflow
- Identify the TDB's source, license, assessment/publication, valid temperature/pressure and composition range, and required elements. Use the user's database for real alloys. The bundled assets/ideal-cu-ni.tdb is an original hypothetical teaching model, not an assessed Cu-Ni database.
- Inspect database elements and phases. Select the relevant phases deliberately; record
exclusions because they can turn the calculation into a metastable constrained result.
Include
VAwhere required by sublattice models. Vacancies are not an independent bulk mole fraction. Keep coupled order/disorder definitions in the TDB, but do not select both partners as separate candidates when the ordered model already includes the disordered contribution; the helper rejects such filtered candidate lists. - Copy assets/equilibrium.json. Specify exactly N-1 elemental
mole fractions and one dependent non-vacancy element. The dependent fraction is
1 - sum(independent fractions); fractions are not silently normalized. Set K and Pa. Convert weight percentages or mass fractions before using this helper. - Declare the database temperature interval from its assessment if known, or set
database_temperature_range_kto null if unknown. This is user-supplied evidence, not a range automatically inferred from every TDB function. Requests outside a declared interval fail. Check pressure and composition validity separately. - Run the calculation. Check finite Gibbs energies, phase fractions summing to one,
reconstructed bulk composition, and stability to doubled
pdens(phase-constitution sampling density). Near transitions, refine temperatures and sampling density further. - Deliver phase fractions with their molar basis, phase compositions, database hash, conditions, excluded phases, and any numerical or assessment limitations.
Read references/model-and-validation.md for the analytic example, basis conversion, native Model/Workspace/property/plot contracts, miscibility-gap handling, and convergence limits.
Execute the tested example
From the collection root:
uv run --no-project --python 3.12 --with pycalphad==0.11.2 --with numpy==2.5.3 \
python skills/pycalphad/scripts/equilibrate.py \
skills/pycalphad/assets/ideal-cu-ni.tdb \
skills/pycalphad/assets/equilibrium.json equilibrium-result
Tested on Python 3.12, pycalphad 0.11.2, and NumPy 2.5.3. Use a new output directory. All thermodynamic calculations are local; the script does not upload a TDB.
For the supplied hypothetical model at X(Ni)=0.5 and 101325 Pa:
| Temperature | Equilibrium result |
|---|---|
| 900 K | FCC_A1 only |
| 1100 K | 0.5 FCC_A1 + 0.5 LIQUID; X(Ni) approximately 0.527307 and 0.472693 respectively |
| 1300 K | LIQUID only |
The suite verifies analytic common-tangent compositions, a noncentral lever-rule case, Gibbs energy, mass balance, both single-phase limits, and actual same-phase miscibility gap vertices. These validate the computational workflow, not real Cu-Ni metallurgy.
Outputs and acceptance
report.json: settings and versions, TDB/settings SHA-256, excluded database phases, requested, solver-imposed, and reconstructed bulk compositions, per-temperature baseline/refined results, and checks. Experimental validity is not evaluated by the helper.phase-equilibria.csv: one row per stable vertex per temperature and sampling run, including phase name, molar phase fraction, and elemental mole fractions. Its Gibbs energy column is the whole-system molar Gibbs energy, repeated for each vertex; it is not the individual phase energy.
…
자주 묻는 질문
TDB 데이터베이스란 무엇인가요?
원소들과 그 상호작용이 여러 온도와 압력에서 어떤 상을 만드는지에 대한 열역학 정보를 담은 파일입니다.
합금의 ‘상’이란 무엇인가요?
재료를 섞을 때 형성될 수 있는 서로 다른 구조나 화합물입니다. 예를 들어 구리-니켈 합금에서는 고체나 액체 상이 존재할 수 있습니다.
프로그램은 상이 형성되는 속도를 예측하나요?
아닙니다. 프로그램은 평형, 즉 안정한 최종 상태만 계산합니다. 그 상태에 도달하는 과정이나 속도는 계산하지 않습니다.
상세 정보
작성자의 원본 설명
Computes finite-temperature CALPHAD equilibria, phase fractions, and phase compositions from thermodynamic TDB databases using pycalphad. Use for alloy phase stability, equilibrium temperature sweeps, tie lines, lever-rule checks, or reproducible phase-fraction calculations with explicit components and mole-fraction conditions.
인기도
- GitHub 스타
- 51k
- 순위
- #3537
- 라이선스
- MIT
- 업데이트
- 2026. 10. 15.
댓글
- …
이 저장소의 다른 스킬
13c-metabolic-flux
51k탄소-13 동위원소 추적 데이터를 사용해 대사 흐름(플럭스)을 추정합니다. 세포 대사와 생화학 경로를 분석할 때 유용합니다.
adaptyv
51kAdaptyv API를 사용해 단백질 특성 분석 실험을 설계합니다. 비용을 추정하고, 서열을 제출하며, 실험실 결과를 확인하는 데 도움이 됩니다.
aeon
51k시계열 데이터에 대해 머신러닝 작업을 수행합니다. 순차 데이터를 분류하고, 예측하고, 이상을 탐지하고, 패턴을 찾을 때 유용합니다.
alphagenome
51k유전 변이에 대해 미리 계산된 게놈 영향을 조회합니다. 변이가 게놈에 주는 영향을 이해하도록 점수와 설명을 제공합니다.
비슷한 스킬
gitcrawl
394k에이전트가 저장된 GitHub 이슈와 풀 리퀘스트 보관본을 검색하고, 중복 항목을 묶고, GitHub에서 현재 상태를 확인하도록 돕습니다.
slacrawl
394k에이전트가 로컬 Slack 보관본에서 메시지를 검색하고 개수를 세며, 보관본이 얼마나 최신인지 확인하고 필요할 때 새로 고치도록 돕습니다.
goplaces
394k에이전트가 Google Places로 장소를 검색하고, 세부 정보와 리뷰를 가져오고, 장소 이름을 확인하며, 스크립트용 JSON을 출력하도록 돕습니다.