Claude Skill

starccm-sim

Use when driving Simcenter STAR-CCM+ for CFD/multiphysics tasks: batch macro execution, mesh generation, solver setup, and result extraction. Choose the smallest real control path first: direct `starccm+` launcher/batch, local project artifacts, native Java macros, or sim-cli whe

LLM Mart · 0 points · 0 views 0 listing impressions 0 install-command copies
Download svd-ai-lab-sim-cli-plugins_starccm_src_sim_plugin_starccm__skills_starccm-710c467.zip · 9 KB

Install

skills CLI npx skills add https://github.com/svd-ai-lab/sim-cli/tree/main/plugins/starccm/src/sim_plugin_starccm/_skills/starccm
Claude Code claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install svd-ai-lab-sim-cli@llmmart
Git git clone https://github.com/svd-ai-lab/sim-cli.git

The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole svd-ai-lab/sim-cli collection as a plugin from our marketplace. Git is the plain clone.

Skill manifest

starccm-sim

Skill for controlling Simcenter STAR-CCM+ through the simplest real path that can produce evidence: direct starccm+ launcher/batch commands, saved .sim inspection, native Java macros, or sim-cli when its runtime layer is useful.


First principles

  1. Star-CCM+ uses Java macros, not Python scripts. Every automation script is a .java file extending StarMacro. There is no pip-installable Python SDK.
  2. Execution is batch-mode subprocess. starccm+ -batch macro.java [case.sim] — sim never imports Star-CCM+ libraries.
  3. The macro recorder is your best API discovery tool. Record GUI actions → read generated .java → adapt.
  4. License is required. CDLMD_LICENSE_FILE must point to a valid license file. The driver auto-detects license.dat near the installation.

Hard constraints

  • Script format: .java files only. Must extends StarMacro and import star.common.*.
  • Output convention: Print a JSON object via sim.println(jsonString) as the last meaningful output line. The driver's parse_output() extracts it.
  • No persistent session: Current driver is one-shot only (supports_session = False). Each sim run starts and stops Star-CCM+.
  • Startup overhead: ~15-20s per run (JVM + license checkout). Plan macros to do meaningful work per invocation.

File index

Path What it contains When to read
base/reference/java_macro_api.md Java macro API reference — classes, methods, patterns When writing any macro
base/reference/batch_execution.md CLI flags, license setup, parallel execution When configuring runs
base/snippets/starccm_01_smoke_test.java Minimal connectivity test First run verification
base/snippets/starccm_02_pipe_flow.java Geometry creation + volume mesh generation E2E reference
base/known_issues.md Vendor quirks and workarounds When debugging failures
solver/21.02/notes.md Version-specific notes for 2602 (21.02) After version detection

Required protocol

  1. Direct availability probe: before requiring sim-cli, look for a real starccm+ launcher from PATH, STARCCM_HOME/user-provided paths, common Siemens install roots, and visible STAR-CCM+ sessions. Check license signals such as CDLMD_LICENSE_FILE when present, while remembering that a path or env var is not proof of solver/license availability. For sim runtime validation, run sim check starccm from a project environment with sim-cli/plugin installed.
  2. Write macro: .java file extending StarMacro. End with sim.println(json).
  3. Lint: sim lint macro.java — checks structure before execution.
  4. Run: sim run macro.java --solver starccm — executes in batch mode.
  5. Check result: sim logs last — verify exit_code == 0 AND parsed output meets acceptance criteria.

Input classification

  • Category A (must ask user): Geometry file path, physics models, boundary condition values, acceptance criteria.
  • Category B (may default): Processor count (-np), mesh base size, iteration count.
  • Category C (derive from context): Region names, boundary names, field function names — discover via macro recorder or inspection macro.
Files (sim-cli)
  • base
    • reference
      • batch_execution.md 1.9 KB
        Loading…
      • java_macro_api.md 4.4 KB
        Loading…
    • snippets
      • starccm_01_smoke_test.java 549 B · in bundle
      • starccm_02_pipe_flow.java 3.6 KB · in bundle
    • workflows
      • pipe_flow
        • evidence
          • README.md 374 B
            Loading…
    • known_issues.md 3.4 KB
      Loading…
  • solver
    • 21.02
      • notes.md 746 B
        Loading…
  • SKILL.md 3.7 KB
    ---
    name: starccm-sim
    description: "Use when driving Simcenter STAR-CCM+ for CFD/multiphysics tasks: batch macro execution, mesh generation, solver setup, and result extraction. Choose the smallest real control path first: direct `starccm+` launcher/batch, local project artifacts, native Java macros, or sim-cli when standardized runtime validation, diagnostics, sessions, and artifact handling are useful."
    ---
    
    # starccm-sim
    
    Skill for controlling **Simcenter STAR-CCM+** through the simplest real path
    that can produce evidence: direct `starccm+` launcher/batch commands, saved
    `.sim` inspection, native Java macros, or `sim-cli` when its runtime layer is
    useful.
    
    ---
    
    ## First principles
    
    1. **Star-CCM+ uses Java macros, not Python scripts.** Every automation script is a `.java` file extending `StarMacro`. There is no pip-installable Python SDK.
    2. **Execution is batch-mode subprocess.** `starccm+ -batch macro.java [case.sim]` — sim never imports Star-CCM+ libraries.
    3. **The macro recorder is your best API discovery tool.** Record GUI actions → read generated `.java` → adapt.
    4. **License is required.** `CDLMD_LICENSE_FILE` must point to a valid license file. The driver auto-detects `license.dat` near the installation.
    
    ---
    
    ## Hard constraints
    
    - **Script format**: `.java` files only. Must `extends StarMacro` and `import star.common.*`.
    - **Output convention**: Print a JSON object via `sim.println(jsonString)` as the last meaningful output line. The driver's `parse_output()` extracts it.
    - **No persistent session**: Current driver is one-shot only (`supports_session = False`). Each `sim run` starts and stops Star-CCM+.
    - **Startup overhead**: ~15-20s per run (JVM + license checkout). Plan macros to do meaningful work per invocation.
    
    ---
    
    ## File index
    
    | Path | What it contains | When to read |
    |------|-----------------|--------------|
    | `base/reference/java_macro_api.md` | Java macro API reference — classes, methods, patterns | When writing any macro |
    | `base/reference/batch_execution.md` | CLI flags, license setup, parallel execution | When configuring runs |
    | `base/snippets/starccm_01_smoke_test.java` | Minimal connectivity test | First run verification |
    | `base/snippets/starccm_02_pipe_flow.java` | Geometry creation + volume mesh generation | E2E reference |
    | `base/known_issues.md` | Vendor quirks and workarounds | When debugging failures |
    | `solver/21.02/notes.md` | Version-specific notes for 2602 (21.02) | After version detection |
    
    ---
    
    ## Required protocol
    
    1. **Direct availability probe**: before requiring sim-cli, look for a real
       `starccm+` launcher from `PATH`, `STARCCM_HOME`/user-provided paths, common
       Siemens install roots, and visible STAR-CCM+ sessions. Check license signals
       such as `CDLMD_LICENSE_FILE` when present, while remembering that a path or
       env var is not proof of solver/license availability. For sim runtime
       validation, run `sim check starccm` from a project environment with
       sim-cli/plugin installed.
    2. **Write macro**: `.java` file extending `StarMacro`. End with `sim.println(json)`.
    3. **Lint**: `sim lint macro.java` — checks structure before execution.
    4. **Run**: `sim run macro.java --solver starccm` — executes in batch mode.
    5. **Check result**: `sim logs last` — verify `exit_code == 0` AND parsed output meets acceptance criteria.
    
    ---
    
    ## Input classification
    
    - **Category A (must ask user)**: Geometry file path, physics models, boundary condition values, acceptance criteria.
    - **Category B (may default)**: Processor count (`-np`), mesh base size, iteration count.
    - **Category C (derive from context)**: Region names, boundary names, field function names — discover via macro recorder or inspection macro.
    

Comments (0)

Sign in to join the conversation.

No comments yet.

Reviews (0)

No reviews yet.