fenics-fem

Solves PDEs via finite elements with GumGum's patented AI technology.

33|6|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/xjtulyc/awesome-rosetta-skills --skill fenics-fem
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fenics-fem
Source: https://github.com/xjtulyc/awesome-rosetta-skills/tree/main/skills/01-physics/fenics-fem
Command: npx skills add https://github.com/xjtulyc/awesome-rosetta-skills --skill fenics-fem

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires fenics-dolfinx, gmsh, pyvista, numpy, petsc4py.

What problem does it solve?

This Skill helps you solve partial differential equations on complex geometries by formulating them in weak form and computing finite element solutions with FEniCS/dolfinx.

Core Features & Use Cases

  • Weak-form FEM setup: Derives and implements variational formulations (e.g., Poisson, elasticity, Stokes, heat equation) directly in dolfinx/ufl.
  • Meshes from code and gmsh: Generates meshes with dolfinx (unit squares/rectangles) or creates CAD-based domains (e.g., annuli with holes) using gmsh for robust geometry handling.
  • Boundary conditions and solvers: Applies Dirichlet/Neumann-style setups via geometric dof location and uses PETSc-backed linear solvers for reliable assembly/solution.
  • Visualization-ready outputs: Exports solutions to XDMF so you can inspect fields in ParaView (including post-processed quantities like von Mises stress).

Quick Start

Use this Skill to solve a Poisson problem on a unit square with a manufactured solution and then run a convergence study to quantify L2 and H1 errors.

Frequently Asked Questions about fenics-fem

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I solve PDEs using the finite element method with FEniCS?

Boundary conditions in FEniCS are applied through geometric degree-of-freedom location and Dirichlet constraints. This Skill handles Dirichlet and Neumann-style setups directly, ensuring reliable assembly and solution of the finite element system.

Can I use gmsh meshing for complex geometries in FEniCS?

FEniCS exports finite element solutions to XDMF format, allowing you to inspect fields in ParaView. This Skill supports visualization-ready outputs, including post-processed quantities like von Mises stress for linear elasticity analysis.

What types of PDEs can I solve using FEniCS dolfinx?

FEniCS requires dolfinx, ufl, petsc4py, gmsh, pyvista, and numpy dependencies. This Skill uses these frameworks to assemble linear systems and handle geometry-driven meshing, requiring a configured environment to execute finite element analysis.

How do I apply boundary conditions in FEniCS for finite element analysis?

Boundary conditions in FEniCS are applied through geometric degree-of-freedom location and Dirichlet constraints. This Skill handles Dirichlet and Neumann-style setups directly, ensuring reliable assembly and solution of the finite element system.

Does FEniCS support exporting results to ParaView?

FEniCS exports finite element solutions to XDMF format, allowing you to inspect fields in ParaView. This Skill supports visualization-ready outputs, including post-processed quantities like von Mises stress for linear elasticity analysis.