跳到正文
cccskills
免费在 GitHub 公开

mike-import

Bring an EPA SWMM (.inp) or EPANET (.inp) model into MIKE+ via the mike-plus MCP server — the bridge from an INP builder such as SWMMCanada or agentic-swmm into a MIKE+ database that mike_model_info / mike_run can use. Use when the user has an .inp and wants it in MIKE+. Requires MIKE+ installed + a checked-out license (demo mode caps the model size).

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md2.9 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

MIKE+ Import

Creates a new .sqlite from an .inp. SWMM data lands in MIKE+'s SWMM tables (mss_Node, mss_Link, mss_Project, ... ; subcatchments in msm_Catchment) and the tool switches the model type to CS_SWMM so the imported simulation setup is the active one. mike_model_info then reports the mss_* counts and setups.

Tool

  • mike_import_swmm — {inp, out_sqlite, kind?='swmm'|'epanet', overwrite?, srid?, projection?} → {sqlite, inp_used, patched_outfalls_gated[], active_model, active_simulation, unit_system, simulations[], counts{nodes,links,catchments}, inp_scan}.

What the tool does for you (verified on MIKE+ 2026)

  • Gated column. MIKE+ rejects [OUTFALLS] rows without the optional Gated column (O1 90 FREE, valid for EPA SWMM which assumes NO) with an opaque "Error importing from SWMM file." The tool writes a patched COPY <name>.mikeplus.inp next to out_sqlite (adds NO), imports that, and lists the rows in patched_outfalls_gated. Your original .inp is never modified.
  • Model type. Sets m_ModelSetting.ModelNo = 2 (SWMM) so active_model = CS_SWMM and the imported mss_Project setup is active.
  • Failure hints. On failure the error names the likely cause: gated-less outfalls, or the model is bigger than the demo-mode limit (more than 10 subcatchments fails when no license is checked out).

Conventions

  • Needs a real license for anything but toy models: if the error mentions the demo limit, the GUI or another process holds the seat: free it, wait, retry once; do not loop.
  • overwrite defaults to false; the tool refuses to clobber an existing .sqlite.
  • External files referenced by the .inp (FILE "rain.dat" time series) are not copied; keep them next to the .inp and check inp_scan.TIMESERIES vs what the model expects.
  • After import: mike_model_info (expect CS_SWMM, mss_* counts) → copy the folder → mike_run. Running an imported SWMM-type model through mike_run has not been verified live yet (license); gate on status as always and report what you see.
  • EPANET (kind='epanet') uses the same call; the model type is left as MIKE+ sets it (report active_model).

Orchestration

mike_import_swmm {inp, out_sqlite: runs/<case>/00_model/<name>.sqlite}
mike_model_info  {sqlite}                    -> CS_SWMM, setups, counts
mike_run         {sqlite}  (license)         -> result files -> mike-results / mike-plot
mike_manifest_write {model, inputs: [inp, inp_used], ...}

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Record provenance for an Agentic MIKE+ step via the mike-plus MCP server — a manifest.json tying the model copy, inputs, edits, run QA status, result files and figures together, each file with a sha256. Use at the end of every run/compare/plot task (successful or failed) so the work can be audited, re-compared or reproduced later. No license required.

中文简介正在准备中。当前显示原文说明。

Zhonghao1995/Agentic-MIKE-Plus82026年8月16日 更新

Compare two MIKE+ runs via the mike-plus MCP server — baseline vs scenario, before vs after a parameter edit — to say WHERE a change mattered and BY HOW MUCH (delta peak, delta volume, timing shift, RMSE/NSE) and to draw the overlay hydrograph. Use whenever two .res1d files of the same model exist or a re-run just finished. Comparing needs no license; producing the second run does.

中文简介正在准备中。当前显示原文说明。

Zhonghao1995/Agentic-MIKE-Plus82026年8月16日 更新

Standard operating procedure for an auditable, headless MIKE+ workflow via the mike-plus MCP server — how to plan, copy, run, QA-gate, compare, plot, audit, and safely stop. Use FIRST whenever an agent is handed a MIKE+ model (.sqlite) or result (.res1d) plus a plain-language goal; it picks the operating mode and tells the agent which mike-* skill to open next and in what order.

中文简介正在准备中。当前显示原文说明。

Zhonghao1995/Agentic-MIKE-Plus82026年8月16日 更新

Inspect a MIKE+ .sqlite model via the mike-plus MCP server — active simulation/scenario/model type, unit system, the list of simulation setups and scenarios, element counts — and switch the active scenario. Use when an agent needs to understand a MIKE+ model before running or editing it, or must run a scenario prepared in the GUI. Requires MIKE+ installed + a license.

中文简介正在准备中。当前显示原文说明。

Zhonghao1995/Agentic-MIKE-Plus82026年8月16日 更新

Read and modify MIKE+ model parameters via the mike-plus MCP server — inspect or change values in any model table (pipe Diameter/Manning in msm_Link, node levels in msm_Node, catchment properties in msm_Catchment, etc.). Use when an agent must identify a current parameter and change it before re-running. Requires MIKE+ + license; mutating tools must run on a copy.

中文简介正在准备中。当前显示原文说明。

Zhonghao1995/Agentic-MIKE-Plus82026年8月16日 更新

mike-plot

免费

Produce publication-style figures from MIKE+ .res1d results via the mike-plus MCP server — a stacked rainfall-runoff hydrograph, a single time series, a network map, a baseline-vs-scenario overlay, or a longitudinal profile (bed / crown / ground / max water level along a pipe string), in the house style (Arial 12, ticks inward, SI units, no title). Use when an agent must render MIKE+ results as a PNG without opening the GUI. No license required.

中文简介正在准备中。当前显示原文说明。

Zhonghao1995/Agentic-MIKE-Plus82026年8月16日 更新

查看 Zhonghao1995 的全部技能

报告此技能的问题