cantera
하는 일
이 도구는 특정 조건에서 기체 혼합물이 점화(타기 시작)되기까지 걸리는 시간을 계산합니다. 화학 반응 모델을 사용해 이 시간을 예측합니다.
사용하는 경우
- ✓기체 혼합물이 열과 압력에 어떻게 반응하는지 이해하고 싶을 때.
- ✓서로 다른 연료의 점화 속도를 비교하고 싶을 때.
- ✓화학 반응 모델이 점화를 시뮬레이션하는 데 정확한지 확인할 때.
스킬 링크
https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/cantera/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“수소, 산소, 아르곤 혼합물의 점화 지연 시간을 1000켈빈, 1기압에서 계산해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
기체, 양, 온도, 압력을 입력합니다. 도구는 화학 반응 모델을 사용해 과정을 시뮬레이션하고, 점화까지 걸리는 정확한 시간을 계산합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Cantera: homogeneous ignition calculations
When to use
Use for a closed, adiabatic, homogeneous ideal-gas reactor with a known kinetic mechanism, initial temperature, pressure, and mole composition. The bundled helper runs both constant volume and constant pressure cases and reports a precisely defined temperature-based delay. It is not a flame solver or a general reactor-network builder.
A calculation completing successfully establishes numerical execution, not mechanism validity for the fuel, pressure, temperature, diluent, or measured ignition observable. Read references/interpretation.md when choosing a mechanism, comparing experiments, or interpreting unresolved/two-stage ignition.
Workflow
- Identify the mechanism and its validated condition range. Preserve its source, version,
citation, and any modifications. Check that its phase is
ideal-gasand that every reactant, diluent, and tracked species exists. For custom YAML with imports, retain the original dependency files as well as the generated phase snapshot. Custom Python rate extensions additionally need their original code and environment for replay. - Choose constant volume or constant pressure from the physical experiment. Supply K,
Pa, seconds, and mole amounts explicitly.
mole_amountsis normalized to mole fractions; it is not a mass-fraction mapping. The report includes the normalized initial composition. - Copy assets/hydrogen-ignition.json and change its conditions.
The supplied H2/O2/Ar case uses Cantera's bundled
h2o2.yamlfor an executable numerical example; it is not a recommendation for every hydrogen experiment. - Set a time horizon long enough to observe the temperature rise and the decline of the heating-rate peak. Choose output spacing fine enough to locate that peak. Set a minimum temperature rise to distinguish ignition from negligible heating or numerical noise.
- Run the helper and inspect all four histories and the report. Refine again if the delay changes materially, if the maximum approaches a time boundary, or if conservation fails. Compare the temperature and tracked-species histories with the actual ignition definition.
- Report the condition set, mechanism hash, reactor constraint, delay definition, output spacing, numerical changes, and scientific limits together with the delay.
Execute the tested example
From the collection root:
uv run --no-project --python 3.12 --with cantera==3.2.0 --with numpy==2.5.3 \
python skills/cantera/scripts/ignition_delay.py \
skills/cantera/assets/hydrogen-ignition.json hydrogen-result
Tested on Python 3.12, Cantera 3.2.0, and NumPy 2.5.3. No external solver executable or credentials are needed. Local relative mechanism paths resolve against the configuration file directory before Cantera's built-in data search. Use a new output directory each run.
The 1000 K, 101325 Pa, H2:O2:Ar = 2:1:7 constant-volume example gives about 0.313 ms
using the stated max(dT/dt) definition. At 3 ms its temperature is approximately
2920.67 K and agrees with a separate UV equilibrium calculation. These are package
regression values, not experimental validation data.
Exact delay and refinement contract
Delay is the time of the global maximum of numpy.gradient(T, time, edge_order=2) on
a uniform output grid. It is reported only if the maximum temperature rise reaches
minimum_temperature_rise_k and the maximum is at least two sample indices from each
boundary. Otherwise delay_s is null and a status explains why. No delay beyond the
simulation horizon is extrapolated.
The helper explicitly uses Cantera 3.2's clone=True and reads evolving properties from
reactor.phase. The original Solution retains the initial state; do not read it as
the reactor's final state. ReactorNet.advance(t) requests an absolute time, and no
advance limits are configured, so the output grid remains uniform.
It runs four independent fresh reactors:
| Run | Change from configured conditions |
|---|---|
| baseline | Original settings |
| finer_output | Half output spacing, same horizon and solver controls |
| tighter_solver | Both solver tolerances divided by ten; maximum internal time step halved |
| longer_horizon | Twice the horizon with the original output spacing |
numerically_resolved requires all runs to yield delays, relative delay changes within
…
자주 묻는 질문
‘메커니즘’이란 무엇인가요?
기체 혼합물이 어떻게 행동하는지 설명하는 화학 규칙과 반응의 모음입니다.
여기서 ‘점화’는 무슨 뜻인가요?
기체 혼합물이 빠르게 반응하기 시작해 에너지를 방출하고 온도가 올라가는 순간을 말합니다.
이 도구로 폭발을 예측할 수 있나요?
아니요, 이 도구는 초기 점화 시간에 초점을 맞추며, 폭발이나 화염이 퍼지는 과정은 다루지 않습니다.
상세 정보
작성자의 원본 설명
Runs Cantera homogeneous chemical reactors and evaluates ignition delay with mechanism provenance, conservation checks, and numerical refinement. Use for combustion kinetics, closed adiabatic ideal-gas constant-volume or constant-pressure ignition, temperature histories, or mechanism-specific ignition-delay comparisons.
인기도
- GitHub 스타
- 51k
- 순위
- #3435
- 라이선스
- 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을 출력하도록 돕습니다.