Vibeflow elmer

From sunrise-hjx/vibeFlow-skills · View interactive version

Vibeflow elmer is an AI agent skill from the GitHub repository sunrise-hjx/vibeFlow-skills. Use when preparing, running, debugging, post-processing, or extending VibeFlow/VibeCAE Elmer finite-element multiphysics workflows from 0-caseDict/caseDict, including ElmerSolver SIF files, ElmerGrid mesh conversion, materials, bodies, boundary conditions, coupled physics, MATC/user functions, and r

How to use this skill

Skill file

VibeFlow Elmer

This skill is responsible for using Elmer as VibeCAE's open-source finite-element multiphysics backend, covering thermal, structural, electromagnetic, flow, and coupled problems.

When to Use

First Decide: Usage Mode or Development Mode

What to Read First

Inputs

Outputs

Recommended Structure

C-run/elmer/
└── case-1/
    ├── case.sif
    ├── mesh/
    ├── logs/
    ├── results/
    ├── Allrun
    └── Allclean

Usage Mode Workflow

  1. Map caseDict into Elmer Simulation, Constants, Body, Equation, Solver, Material, Boundary Condition, and Initial Condition blocks.
  2. Check that body/boundary IDs in the mesh correspond to the regions/boundaries in caseDict.
  3. Convert the mesh with ElmerGrid, preserving the conversion log when needed.
  4. Generate case.sif, explicitly writing solvers, linear/nonlinear controls, and output formats.
  5. Run a short case or a relaxed-convergence smoke test.
  6. Post-process result files and generate key fields, curves, and tables.
  7. Write run, error, and result status back to caseDict.

Development Mode Workflow

  1. Define the development target: SIF templates, mesh-conversion adapters, material libraries, MATC expressions, Fortran/C user functions, or coupling drivers.
  2. Write the development notes first, recording the Elmer version, interfaces, compilation method, and validation case.
  3. For user functions, document input variables, units, return values, and loading method.
  4. For template generators, maintain a body/boundary name-to-ID mapping table.
  5. Complete at least solver loading or a short-step validation on a small mesh.

Core Rules

Validation

Fallback Rules

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.