본문으로 건너뛰기
Skillpedia
분석 및 스프레드시트51k · #3435

cantera

하는 일

이 도구는 특정 조건에서 기체 혼합물이 점화(타기 시작)되기까지 걸리는 시간을 계산합니다. 화학 반응 모델을 사용해 이 시간을 예측합니다.

사용하는 경우

  • ✓기체 혼합물이 열과 압력에 어떻게 반응하는지 이해하고 싶을 때.
  • ✓서로 다른 연료의 점화 속도를 비교하고 싶을 때.
  • ✓화학 반응 모델이 점화를 시뮬레이션하는 데 정확한지 확인할 때.

스킬 링크

https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/cantera/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/cantera/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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

  1. Identify the mechanism and its validated condition range. Preserve its source, version, citation, and any modifications. Check that its phase is ideal-gas and 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.
  2. Choose constant volume or constant pressure from the physical experiment. Supply K, Pa, seconds, and mole amounts explicitly. mole_amounts is normalized to mole fractions; it is not a mass-fraction mapping. The report includes the normalized initial composition.
  3. Copy assets/hydrogen-ignition.json and change its conditions. The supplied H2/O2/Ar case uses Cantera's bundled h2o2.yaml for an executable numerical example; it is not a recommendation for every hydrogen experiment.
  4. 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.
  5. 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.
  6. 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.

repo: K-Dense-AI/scientific-agent-skills

인기도

GitHub 스타
51k
순위
#3435
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬