Vibeflow freefem

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

Vibeflow freefem is an AI agent skill from the GitHub repository sunrise-hjx/vibeFlow-skills. Use when preparing, running, debugging, post-processing, or extending VibeFlow/VibeCAE FreeFEM finite-element scripting workflows from 0-caseDict/caseDict, including .edp PDE scripts, variational formulations, mesh generation/import, boundary labels, parameter studies, MPI runs, and reusable PDE/FEM

How to use this skill

Skill file

VibeFlow FreeFEM

This skill is responsible for using FreeFEM as VibeCAE's scriptable finite-element backend for rapid PDE/FEM prototyping and numerical-method validation.

When to Use

First Decide: Usage Mode or Development Mode

What to Read First

Inputs

Outputs

Recommended Structure

C-run/freefem/
└── case-1/
    ├── main.edp
    ├── meshes/
    ├── includes/
    ├── logs/
    ├── results/
    ├── Allrun
    └── Allclean

Usage Mode Workflow

  1. Convert caseDict into a weak form: unknowns, test functions, finite-element spaces, boundary labels, source terms, material coefficients, and outputs.
  2. Generate or import the mesh, and check that labels match the boundary conditions.
  3. Write main.edp, concentrating parameters at the top of the script or in include files.
  4. Run a short script and check parsing, matrix assembly, boundary application, and output.
  5. Save result files and post-process them with Python or ParaView.
  6. Write mathematical assumptions, discretization order, mesh status, and result status back to caseDict.

Development Mode Workflow

  1. Define the development target: weak-form template, solver selection, mesh importer, parameter sweep, error estimator, or parallel script.
  2. Write development notes first, recording variables, function spaces, boundary conditions, linear/nonlinear solvers, and validation problems.
  3. Templates must provide a minimal runnable example and parameter descriptions.
  4. For a new weak form, verify it with an analytical solution or convergence-order test whenever possible.
  5. If it will be migrated to an engineering backend, preserve variable and boundary-name mappings.

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.