cai-aa/text-to-cae/fenics-fem
- community
Checking that the SKILL.md file is still in the repository.
Use this Skill to solve PDEs with the finite element method using FEniCS/dolfinx: weak form formulation, mesh generation with gmsh, Poisson/elasticity problems, boundary conditions, and paraview export.
Install
npx vskill@latest install cai-aa/text-to-cae/fenics-femSKILL.md
FEniCS Finite Element Method for PDEs
TL;DR — Solve partial differential equations with the Finite Element Method (FEM)using FEniCS/dolfinx. Derive the weak form, generate meshes with gmsh, applyDirichlet/Neumann boundary conditions, solve Poisson or elasticity problems,and export results to XDMF/VTK for ParaView.
When to Use
Use this Skill when you need to:
- Solve elliptic, parabolic, or hyperbolic PDEs on complex geometries
- Implement custom weak forms for multi-physics problems
- Apply mixed Dirichlet/Neumann/Robin boundary conditions
- Perform convergence studies on successively refined meshes
- Export solutions for publication-quality visualization in ParaView
Do not use this Skill when:
- You need a quick 1D finite-difference solution → use SciPy
solve_bvp - You want a spectral method for periodic domains → use pseudo-spectral libraries
- You need GPU-accelerated large-scale CFD → consider OpenFOAM or Fluidity
Background & Key Concepts
Variational (Weak) Form
The FEM converts a strong-form PDE into an integral equation by multiplying by a test function v and integrating by parts. For Poisson's equation:
Strong form: −∇²u = f in Ω, u = uD on ΓD, ∇u·n = g on ΓN
Weak form: Find u ∈ H¹(Ω) such that for all v ∈ H¹₀(Ω): ∫_Ω ∇u·∇v dx = ∫_Ω f v dx + ∫_ΓN g v ds
Function Spaces
| Space | dolfinx name | Use case | |
|---|---|---|---|
| Continuous Galerkin deg 1 | ("Lagrange", 1) | Scalar fields, temperature | |
| Continuous Galerkin deg 2 | ("Lagrange", 2) | Higher accuracy, elasticity displacement | |
| Discontinuous Galerkin | ("DG", 0) | Cell-wise constants, flux | |
| Nédélec (edge elements) | ("Nedelec1st", 1) | Electromagnetics, H(curl) |
Convergence and Error
For Lagrange P1 elements on a quasi-uniform mesh of size h:
- L² error: O(h²) (one order above approximation degree)
- H¹ error: O(h)
Environment Setup
Core Workflow
Step 1 — Poisson Equation on Unit Square
Step 2 — Linear Elasticity
Step 3 — gmsh Mesh Generation and Import into dolfinx
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingSkill/abaqus/reference/fenics-fem/SKILL.md
Popularity
- Repository stars
- 797
- Repository forks
- 104
- 7-day trend score
- 33
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 30 Aug 2026, a month ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/cai-aa/text-to-cae/fenics-fem)