Passer au contenu principal
Z

dsh-fluent-pyfluent-ops

zzr-rui-997/dsh-fluent-pyfluent-ops

A PyFluent operating procedure for ANSYS Fluent on Windows, distilled from real production runs: startup handshake, setup order, session state-machine traps, time-step and Courant judgement, long runs with checkpoint and resume, VOF, multiphase and non-Newtonian setups, UDS plus UDF compilation, result reading from .dat.h5, and twelve environment traps with the exact error strings that precede them.

Installer

dsh plugin --profile web add github:zzr-rui-997/dsh-fluent-pyfluent-ops

README

dsh-fluent-pyfluent-ops

A DeepSeek Harness bundle that ships one skill: fluent-pyfluent-ops — a field notebook for driving ANSYS Fluent from PyFluent on Windows.

It is not an API reference and not a tutorial. It records the failure modes that cost real days: the startup handshake that actually works, the order that keeps the object is not active away, how to tell whether a case is converging or quietly stuck, what to do when Fluent becomes an orphan process after the agent window closes, and twelve Windows-specific traps with their fixes.

What's inside

skills/fluent-pyfluent-ops/
├── SKILL.md                       entry point: when to load, ten hard-won rules, standard flow, trap table
├── references/
│   ├── api-traps.md               startup handshake, state machine, Courant/dt, coordinates — with evidence
│   ├── run-sha-production.md      the long-run entry: guards, preflight, judging, resume, frame writing
│   ├── udf-age-transport.md       UDS age field + time-varying viscosity UDF: compile, mount, conserve
│   ├── env-traps-windows.md       E1–E12: schtasks supervision, orphan cleanup, encoding, logging
│   ├── postproc-metrics.md        penetration distance metrics, "is it stuck" rule, cross-mesh comparison
│   ├── vof-setup-checklist.md     VOF setup order and self-check list
│   ├── result-hdf5.md             .dat.h5 structure, phase indexing, common exports
│   ├── audits.md                  checks that catch errors, theory-vs-measurement discipline
│   └── mcp-tools.md               ansys-fluent MCP tool groups, read-only discipline, known defects
└── scripts/
    ├── summarize-frames.py        per-frame front / lead / L_eq / φ_max / viscosity, auto-detects the mesh
    ├── subgrid-front.py           sub-grid front position (~0.05 mm resolution) for "did it stop" calls
    └── kill-fluent-orphans.ps1    orphan cleanup via WMI Terminate (never touches ansyslmd.exe)

Install

As a bundle (recommended): point DeepSeek Harness at this package directory — Plugins → Add plugin and choose the folder, or install it from the plugin market once listed. The bundle's host half registers the skill through ctx.skills.register(), so it works from wherever the package is installed.

As a plain skill: copy the folder into your skills root and skip the bundle entirely.

Copy-Item -Recurse .\skills\fluent-pyfluent-ops "$env:USERPROFILE\.dsh\skills\fluent-pyfluent-ops"

When the agent will read it

The skill declares itself for anything Fluent-shaped: starting or connecting PyFluent, building a VOF / multiphase / non-Newtonian case, mounting UDS or compiling a UDF, running a long case or resuming one, judging whether a case is stuck or whether two meshes are comparable, reading .cas.h5 / .dat.h5, and any error like WinError 740, Stream removed, Insecure gRPC mode, or the object is not active.

Honest limits

  • Frozen snapshot. Written against Fluent v251 / Windows. PyFluent changes its connection parameters between minor versions; the notes say which version a statement came from where it matters, but nobody is tracking new releases. Issues and PRs are welcome, and so is taking over maintenance.
  • Windows-first. The environment chapter is entirely Windows (schtasks, WMI, GBK consoles). The Fluent-side chapters are platform-neutral.
  • The numbers are examples. Every s/step, m/s, Pa, mm, and line count in the notebooks comes from one case on this author's machine. They are there to show magnitude and ratio, not to be quoted as constants. Re-measure on your own case before citing anything.
  • No vendor files. No Fluent installation, license, or case data ships here; the scripts read files you produce.

A note on how to use it

Read SKILL.md first, then follow the "when to read" pointers into references/. The trap table in SKILL.md is the fastest lookup: symptom → cause → fix. If a statement contradicts what you see on disk, trust the disk and fix the skill — the "maintaining this skill" section explains the discipline.

License

MIT. See LICENSE. The skill body is Chinese (it was written for Chinese-speaking users); the scripts and their comments are bilingual.

Plugins associés