Plan and control time-step policies for simulations. Use when coupling CFL/physics limits with adaptive stepping, ramping initial transients, or scheduling outputs/checkpoints for long runs.
📖 中文导读:Plan and control time-step policies for simulations. Use when coupling CFL/physics limits with adaptive stepping, ramping initial transients, or scheduling outputs/checkpoints for long runs. 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: time-stepping
description: Plan and control time-step policies for simulations. Use when coupling CFL/physics limits with adaptive stepping, ramping initial transients, scheduling outputs/checkpoints, or planning restart strategies for long runs.
allowed-tools: Read, Bash, Write, Grep, Glob
Time Stepping
Goal
Provide a reliable workflow for choosing, ramping, and monitoring time steps plus output/checkpoint cadence.
Requirements
Python 3.8+
No external dependencies (uses stdlib)
Inputs to Gather
Input
Description
Example
Stability limits
CFL/Fourier/reaction limits
dt_max = 1e-4
Target dt
Desired time step
1e-5
Total run time
Simulation duration
10 s
Output interval
Time between outputs
0.1 s
Checkpoint cost
Time to write checkpoint
120 s
Decision Guidance
Time Step Selection
Is stability limit known?
├── YES → Use min(dt_target, dt_limit × safety)
└── NO → Start conservative, increase adaptively
Need ramping for startup?
├── YES → Start at dt_init, ramp to dt_target over N steps
└── NO → Use dt_target from start