Vibeflow fenics

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

Vibeflow fenics is an AI agent skill from the GitHub repository sunrise-hjx/vibeFlow-skills. Use when preparing, running, debugging, validating, or developing VibeFlow/VibeCAE FEniCS or FEniCSx finite-element PDE workflows, including Python weak forms, dolfinx/dolfin environments, mesh and boundary-tag handoff, solver setup, post-processing, reusable PDE modules, and traceability to 0-caseD

How to use this skill

Skill file

VibeFlow FEniCS

This skill is responsible for integrating FEniCS/FEniCSx into VibeCAE as a Python-driven FEM/PDE backend.

When to Use

First Decide: Usage Mode or Development Mode

What to Read First

Inputs

Outputs

Recommended Structure

C-run/fenics/case-1/
├── solve.py
├── inputs/
├── mesh/
├── results/
└── logs/

Usage Mode Workflow

  1. Confirm the backend and FEniCS version: prefer FEniCSx/dolfinx; legacy dolfin may be used for older projects.
  2. Read the PDE type, weak-form variables, materials, boundaries, and target quantities from caseDict.
  3. Check mesh dimension, element type, cell tags, and facet tags.
  4. Generate solve.py, keeping parameters centralized and paths relative to the case.
  5. Run import checks and a minimal solve.
  6. Output XDMF/VTK/CSV/JSON results.
  7. Write run status, error norms, residuals, or target quantities back to caseDict.

Development Mode Workflow

  1. Define the development target: weak-form library, material model, boundary generator, mesh conversion, PETSc solver configuration, or post-processing.
  2. Write a minimal manufactured solution or benchmark first.
  3. Split UFL forms, function spaces, boundary tags, and solver parameters into small functions.
  4. Do not mix FEniCSx and legacy FEniCS APIs.
  5. Under MPI, do not rely on single-process file-writing assumptions.
  6. Record versions, dependencies, commands, and validation results.

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.