gmsh-meshio

Generate 2D and 3D meshes with gmsh and convert across 40+ formats using meshio.

19|2|Updated Jan 31, 2026
One-click install
npx skills add https://github.com/tondevrel/scientific-agent-skills --skill gmsh-meshio
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gmsh-meshio
Source: https://github.com/tondevrel/scientific-agent-skills/tree/main/skills/gmsh%20%26%20meshio
Command: npx skills add https://github.com/tondevrel/scientific-agent-skills --skill gmsh-meshio

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gmsh, meshio, numpy, matplotlib, pyvista, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the process of creating computational meshes required for Finite Element Method (FEM) simulations and converting them between various file formats.

Core Features & Use Cases

  • Mesh Generation: Create 2D and 3D meshes from geometric primitives and complex shapes using gmsh.
  • Mesh I/O: Read and write meshes across over 40 formats using meshio, essential for interoperability with different simulation solvers.
  • Use Case: You need to simulate fluid flow around a complex airfoil. Use gmsh to define the airfoil's geometry, generate a high-quality mesh with adaptive refinement near the surface, and then use meshio to convert the mesh to the .xdmf format required by your FEniCS solver.

Quick Start

Use the gmsh-meshio skill to generate a 2D triangular mesh for a rectangle defined by corners (0,0) and (2,1) and save it as 'rectangle.msh'.

Frequently Asked Questions about gmsh-meshio

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

FAQPage Schema
How do I generate a mesh for FEM simulations from geometric primitives?

You can generate FEM simulation meshes by defining 2D and 3D geometric shapes and applying CSG operations using gmsh programmatically. This allows adaptive refinement near surfaces to prepare high-quality geometry for solvers like FEniCS and deal.II.

Can I convert meshes to the .xdmf format required by FEniCS or Firedrake?

Yes, meshio supports reading and writing meshes across over 40 formats, including the .xdmf format required by FEniCS and Firedrake. This ensures interoperability when transferring geometry between different computational physics solvers.

What is the best way to handle mesh I/O across different computational physics solvers?

Using meshio for mesh I/O standardizes reading and writing across 40+ formats, bridging interoperability gaps. It converts gmsh-generated geometries into the specific formats required by solvers like FEniCS, deal.II, and Firedrake.

Does this mesh generation workflow support both 2D and 3D complex shapes?

Yes, gmsh handles both 2D and 3D mesh generation from geometric primitives and complex shapes. You can create structured and unstructured grids with adaptive refinement for computational physics simulations.

How do I create a high-quality mesh around a complex airfoil for fluid flow simulation?

Define the airfoil geometry using gmsh to generate a mesh with adaptive refinement near the surface. Then use meshio to convert the mesh into the format required by your computational physics solver.

What are the limitations of using gmsh and meshio for computational physics mesh preparation?

While gmsh and meshio handle 2D and 3D mesh generation and conversion across 40+ formats, highly specialized solver-specific boundary condition markers may require manual adjustments after mesh generation and format conversion.