Use when running Simcenter Flotherm thermal cases through the sim runtime. Primary path is GUI automation via pywinauto UIA (`.pack` import + FloSCRIPT playback). Direct batch (`translator.exe` + `solexe.exe`) is a headless optimization for re-solving existing projects only.
You are connected to Simcenter Flotherm via sim-cli. This file is the index. It tells you where to look for actual content — it does not contain the content itself.
The /connect response told you which active layer applies via:
"skills": {
"root": "<sim-skills>/flotherm",
"active_sdk_layer": null, // Flotherm has no Python SDK
"active_solver_layer":"2504" // or "2412" / "2406"
}
Always read base/, then your active solver/<version>/. There is no
sdk/ overlay because Flotherm has no Python wrapper — the driver
controls Flotherm via pywinauto UIA (Qt menu automation) + Win32
ctypes (standard file dialogs).
All vendor-documented CLI playback modes are broken in Flotherm 2504 (see known_issues.md ISSUE-001). GUI automation via pywinauto UIA is the only verified end-to-end working path for import, FloSCRIPT playback, and first-time project creation/modification.
.packsim connect --solver flotherm --ui-mode gui # launch Flotherm GUI (needs RDP/interactive desktop)
sim exec '<path>.pack' # import pack into GUI
sim exec 'solve' # run CFD solve
sim exec 'status' # query session state
sim disconnect # kill all processes
Requirements: sim serve must run in an interactive desktop session (RDP, not SSH session 0). The GUI binary needs a real desktop to render Qt widgets.
Bypasses floserv — calls translator and solver executables directly. Works from SSH with no interactive desktop, BUT only for projects that already exist in FLOUSERDIR (i.e., previously imported/created via the GUI path).
call flotherm.bat -env :: set environment only
translator.exe -p "<FLOUSERDIR>\<project>.<GUID>" -n1 :: discretize model → msp_0
solexe.exe -p "<FLOUSERDIR>\<project>.<GUID>" :: run CFD solver
What this path can do:
solver_control)What this path cannot do:
.pack file (needs GUI automation)Solver log: <project>/DataSets/BaseSolution/PDTemp/logit
Result fields: <project>/DataSets/BaseSolution/msp_*/end/Temperature etc.
Solver variants: solexe.exe (single), solexed.exe (double), solexe_p.exe (parallel)
.pack or create/modify a project? → GUI automationknown_issues.md ISSUE-003)sim exec → driver.run() → _play_floscript(script_path)
├─ subprocess: pywinauto UIA expand() Macro → invoke() Play FloSCRIPT
│ (invoke blocks due to modal dialog; subprocess killed after timeout)
└─ main process: Win32 ctypes fills file dialog → clicks Open
UIA runs in a subprocess to isolate COM state corruption from the
server process. The file dialog is a standard Windows dialog, handled
via GetDlgItem(1148) + SendMessage(WM_SETTEXT) + BM_CLICK.
| Path | What's there |
|---|---|
base/reference/floscript_modeling.md | FloSCRIPT model generation reference — command vocabulary, patterns, step templates for building models from scratch via Claude. |
base/reference/ | FloSCRIPT XML patterns, GUI control sequences, Win32 message recipes. |
base/workflows/ | End-to-end demo runs of typical Phase A .pack cases. |
base/docs/ | Background on the GUI-automation approach and why headless batch is broken upstream. |
base/skill_tests/ | Skill QA cases (kept inside base/ for flotherm because the GUI playback IS the skill — there's no separate Python control surface). |
Empty stubs by default; per-release deltas land here as discovered.
solver/2504/notes.md — 2025.1, currentsolver/2412/notes.md — 2024.4solver/2406/notes.md — 2024.2Top-level QA artifacts. known_issues.md documents the
vendor-defect-broken headless batch mode. tests/ is the pytest suite
for the inline driver. Not loaded during a normal session.
This skill's workflow scripts and skill_tests/ reference vendor-shipped
demo models by the paths where they live inside a local Flotherm install.
The sim-skills repo does not bundle any of that content (it is
proprietary Siemens / Mentor Graphics material and was removed under
issue #2 for IP compliance). To reproduce the tests, point the helpers at
your own Flotherm 2504 install — default on Windows is
C:\Program Files\Siemens\SimcenterFlotherm\2504\examples\ (override in
flotherm/tests/execution/run_helpers.ps1 if installed elsewhere).
| File referenced in this skill | Location inside …\2504\examples\ |
|---|---|
Mobile_Demo-Steady_State.pack | FloSCRIPT\Demonstration Examples\Transient Power Update\ |
SuperPosition.pack | Demonstration Models\Superposition\ |
Grid-HeatSinks-and-Fans.xml, Make_Tube.xml, linear-relaxation-setup.xml, Remove-All-Grid.xml, reset_solver_controls.xml | FloSCRIPT\Utilities\ and FloSCRIPT\Demonstration Examples\Voxelization\ |
FloSCRIPT XSD schemas (FloSCRIPTSchema.xsd, CommonCommands.xsd, CoreFloviewCommands.xsd, …) | FloSCRIPT\Schema\ |
FloSCRIPT_Rack.cls VBA module | DCIM\ |
For Flotherm 2410, the same subpaths apply under
C:\Program Files\Siemens\SimcenterFlotherm\2410\examples\.
To build a Flotherm model from a natural language description, generate
FloSCRIPT XML step by step. See base/reference/floscript_modeling.md
for the full command reference, common patterns, and pitfalls.
sim connect --solver flotherm --ui-mode gui
sim lint step1.xml # XSD validates automatically
sim exec step1.xml # create geometry + save checkpoint
sim lint step2.xml
sim exec step2.xml # add sources + save checkpoint
sim exec 'solve' # run CFD
sim disconnect
Each step is a separate FloSCRIPT file with <project_save_as> at the
end for crash recovery. Lint before play — XSD validation catches
typos and structural errors with line numbers.
sim serve must be started from RDP, not SSH.invoke() on Qt menu items throws
COMError and corrupts COM state for the entire process. Always
isolate in subprocess.Popen with timeout.sim connect --solver flotherm --ui-mode gui — launches Flothermsim exec '<path>.pack' — imports pack (uses project_import FloSCRIPT with import_type="Pack File")sim exec 'solve' — plays <start start_type="solver"/> FloSCRIPTI/9001 - Solver stopped: steady solution convergedsim disconnect — kills floserv, floview, flotherm