# \#gmsh

**URL:** https://fenicsproject.discourse.group/tag/gmsh/17.md

[Latest](https://fenicsproject.discourse.group/latest.md) · [Categories](https://fenicsproject.discourse.group/categories.md) · [Tags](https://fenicsproject.discourse.group/tags.md)

---

## [Importing XMDF file into workspace file](https://fenicsproject.discourse.group/t/importing-xmdf-file-into-workspace-file/19740)

<div class="topic-metadata">

**Author:** [@shivam](https://fenicsproject.discourse.group/u/shivam)\
**Replies:** 2\
**Last updated:** [June 24, 2026, 7:19pm UTC](https://fenicsproject.discourse.group/t/importing-xmdf-file-into-workspace-file/19740 "2026-06-24T19:19:25Z")

</div>

Hey y’all. I am working on an indentation model with penalty formulation. I have had a Python file which included both the generation of the mesh with Gmsh and solving the problem out, but as the project continues it was…

---

## [Structural Modal Analysis](https://fenicsproject.discourse.group/t/structural-modal-analysis/19479)

<div class="topic-metadata">

**Author:** [@Finn\_Hansen](https://fenicsproject.discourse.group/u/Finn_Hansen)\
**Replies:** 1\
**Last updated:** [February 10, 2026, 2:57pm UTC](https://fenicsproject.discourse.group/t/structural-modal-analysis/19479 "2026-02-10T14:57:48Z")

</div>

I am trying to replecate the eigenfrequencies from this paper: Modal Analysis of Single Rectangular Cantilever Plate by Mathematically, FEA and Experimental Ashish R. Sonawane, Poonam S. Talmale I cant get to achive re…

---

## [Gmshio not available in v10](https://fenicsproject.discourse.group/t/gmshio-not-available-in-v10/18418)

<div class="topic-metadata">

**Author:** [@lclaire](https://fenicsproject.discourse.group/u/lclaire)\
**Replies:** 3\
**Last updated:** [November 24, 2025, 10:37am UTC](https://fenicsproject.discourse.group/t/gmshio-not-available-in-v10/18418 "2025-11-24T10:37:53Z")

</div>

Hello, I am trying to import gmhsio in v10 using import dolfinx.io.gmshio or from dolfinx.io import gmshio and it returns cannot import name 'gmshio' from 'dolfinx.io' No module named 'dolfinx.io.gmshio' Is it s…

---

## [Generating mesh with svmtk](https://fenicsproject.discourse.group/t/generating-mesh-with-svmtk/18247)

<div class="topic-metadata">

**Author:** [@Chris\_S](https://fenicsproject.discourse.group/u/Chris_S)\
**Replies:** 8\
**Last updated:** [October 13, 2025, 4:53am UTC](https://fenicsproject.discourse.group/t/generating-mesh-with-svmtk/18247 "2025-10-13T04:53:59Z")

</div>

I have trouble generating a subdomain mesh as outline in an svmtk tutorial. I have been following the svmtk tutorials here “Mathematical Modeling of the Human Brain From Magnetic Resonance Images to Finite Element Simula…

---

## [Surface evaluation with correct normal of gmsh mesh](https://fenicsproject.discourse.group/t/surface-evaluation-with-correct-normal-of-gmsh-mesh/18117)

<div class="topic-metadata">

**Author:** [@wurschtbrotwilli](https://fenicsproject.discourse.group/u/wurschtbrotwilli)\
**Replies:** 10\
**Last updated:** [August 25, 2025, 7:01am UTC](https://fenicsproject.discourse.group/t/surface-evaluation-with-correct-normal-of-gmsh-mesh/18117 "2025-08-25T07:01:45Z")

</div>

Hello, I’m working on the post-processing of a 3D electrial field (Nedelec elements) problem. I use perfectly matched layers on the surrounding, hence I want to evaluate the electrical field on an interior surface. The …

---

## [Nodal coordinates and values with MPI](https://fenicsproject.discourse.group/t/nodal-coordinates-and-values-with-mpi/18080)

<div class="topic-metadata">

**Author:** [@wurschtbrotwilli](https://fenicsproject.discourse.group/u/wurschtbrotwilli)\
**Replies:** 13\
**Last updated:** [August 14, 2025, 6:18am UTC](https://fenicsproject.discourse.group/t/nodal-coordinates-and-values-with-mpi/18080 "2025-08-14T06:18:21Z")

</div>

Hello, I recently installed fenicsx with dolfinx 0.9.0.0. I’m working on a 3D problem, where I read a gmsh file with the gmshio.read\_from\_msh command. The definition of the variational problem is working and the visuali…

---

## [Invalid MPI rank error when using gmshio.read\_from\_msh() on WSL2 with DOLFiNx - how to fix?](https://fenicsproject.discourse.group/t/invalid-mpi-rank-error-when-using-gmshio-read-from-msh-on-wsl2-with-dolfinx-how-to-fix/18040)

<div class="topic-metadata">

**Author:** [@Jaci](https://fenicsproject.discourse.group/u/Jaci)\
**Replies:** 5\
**Last updated:** [July 31, 2025, 10:07am UTC](https://fenicsproject.discourse.group/t/invalid-mpi-rank-error-when-using-gmshio-read-from-msh-on-wsl2-with-dolfinx-how-to-fix/18040 "2025-07-31T10:07:27Z")

</div>

I’m encountering an MPI rank error when trying to load Gmsh files using DOLFiNx on WSL2. The error occurs even with MPI.COMM.SELF and proper WSL2 MPI environment variables. """ Minimum Working Example: WSL2 MPI Problem …

---

## [Time-Dependent boundary for "dead-alive" elements](https://fenicsproject.discourse.group/t/time-dependent-boundary-for-dead-alive-elements/17458)

<div class="topic-metadata">

**Author:** [@Arshidin\_Malikov](https://fenicsproject.discourse.group/u/Arshidin_Malikov)\
**Replies:** 12\
**Last updated:** [May 11, 2025, 9:29pm UTC](https://fenicsproject.discourse.group/t/time-dependent-boundary-for-dead-alive-elements/17458 "2025-05-11T21:29:37Z")

</div>

Hello, I am trying to model 3D metal printing process with moving Heat source. I have Robin bcs in boundary facets of working area and base plate except for bottom facets where i add Dirichlet bcs. After evaluation of He…

---

## [Inconsistent Mesh Conversion Results on Laptop vs HPC Using Legacy DOLFIN](https://fenicsproject.discourse.group/t/inconsistent-mesh-conversion-results-on-laptop-vs-hpc-using-legacy-dolfin/17470)

<div class="topic-metadata">

**Author:** [@Noah\_William](https://fenicsproject.discourse.group/u/Noah_William)\
**Replies:** 9\
**Last updated:** [April 30, 2025, 10:55pm UTC](https://fenicsproject.discourse.group/t/inconsistent-mesh-conversion-results-on-laptop-vs-hpc-using-legacy-dolfin/17470 "2025-04-30T22:55:58Z")

</div>

Hi everyone, I’m encountering an inconsistency when running the same legacy DOLFIN (FEniCS) code on my laptop and on an HPC cluster. The code reads a Gmsh-generated mesh and then proceeds with a finite element computati…

---

## [Mesh Markers in GMSH](https://fenicsproject.discourse.group/t/mesh-markers-in-gmsh/17124)

<div class="topic-metadata">

**Author:** [@umarkhayaz](https://fenicsproject.discourse.group/u/umarkhayaz)\
**Replies:** 2\
**Last updated:** [March 5, 2025, 7:55pm UTC](https://fenicsproject.discourse.group/t/mesh-markers-in-gmsh/17124 "2025-03-05T19:55:37Z")

</div>

I am currently working on solving a single edge notch problem implementing phase-field formulation. I have successfully written the code to mark boundary subdomains in FEniCS. However, I now want to mark these boundary s…

---

## [Fail to read tagged facets from mesh generated with GMSH](https://fenicsproject.discourse.group/t/fail-to-read-tagged-facets-from-mesh-generated-with-gmsh/17082)

<div class="topic-metadata">

**Author:** [@mekong](https://fenicsproject.discourse.group/u/mekong)\
**Replies:** 4\
**Last updated:** [March 1, 2025, 2:31pm UTC](https://fenicsproject.discourse.group/t/fail-to-read-tagged-facets-from-mesh-generated-with-gmsh/17082 "2025-03-01T14:31:17Z")

</div>

Hello, I would like to generate a 2d mesh by using gmsh.model.occ but I am having some issues. I generate the mesh with import meshio import argparse import gmsh import warnings parser = argparse.ArgumentParser() pars…

---

## [BC when creating ring mesh using gmsh](https://fenicsproject.discourse.group/t/bc-when-creating-ring-mesh-using-gmsh/16845)

<div class="topic-metadata">

**Author:** [@Ami\_Taitelbaum](https://fenicsproject.discourse.group/u/Ami_Taitelbaum)\
**Replies:** 0\
**Last updated:** [January 26, 2025, 6:08pm UTC](https://fenicsproject.discourse.group/t/bc-when-creating-ring-mesh-using-gmsh/16845 "2025-01-26T18:08:11Z")

</div>

I’m trying to generate a ring mesh using gmsh for solving NS equation using dolfinx. The mesh looks fine, meaning that the cells are in the desired locations (left panel), but I have a problem with the boundary condition…

---

## [No module named 'gmsh'](https://fenicsproject.discourse.group/t/no-module-named-gmsh/16720)

<div class="topic-metadata">

**Author:** [@ZhangQi](https://fenicsproject.discourse.group/u/ZhangQi)\
**Replies:** 6\
**Last updated:** [January 13, 2025, 8:45am UTC](https://fenicsproject.discourse.group/t/no-module-named-gmsh/16720 "2025-01-13T08:45:14Z")

</div>

Sorry to bother you! I want to ask about the download of Gmsh. Recently, I was going to use gmsh to draw a grid, when I called it, it would display No module named 'gmsh', but I have installed gmsh under fenicsx-env usin…

---

## [Reading xdmf mesh leads to illegal topological dimension](https://fenicsproject.discourse.group/t/reading-xdmf-mesh-leads-to-illegal-topological-dimension/16528)

<div class="topic-metadata">

**Author:** [@Matheus-Janczkowski](https://fenicsproject.discourse.group/u/Matheus-Janczkowski)\
**Replies:** 0\
**Last updated:** [December 17, 2024, 12:09am UTC](https://fenicsproject.discourse.group/t/reading-xdmf-mesh-leads-to-illegal-topological-dimension/16528 "2024-12-17T00:09:56Z")

</div>

Hi, folks! I’ve been struggling with incorporating gmsh into my fenics workflow. I encounter multiple errors while reading a 3D mesh with physical groups I created using gmsh with python. I’ve been using the thread from…

---

## [Error reading gmsh mesh](https://fenicsproject.discourse.group/t/error-reading-gmsh-mesh/16377)

<div class="topic-metadata">

**Author:** [@MatsievskiySV](https://fenicsproject.discourse.group/u/MatsievskiySV)\
**Replies:** 3\
**Last updated:** [November 28, 2024, 10:14am UTC](https://fenicsproject.discourse.group/t/error-reading-gmsh-mesh/16377 "2024-11-28T10:14:04Z")

</div>

Hello! I’m getting an error using gmsh importing function gmshio.read\_from\_msh when building DolfinX from source: AttributeError: type object 'CoordinateElement\_float32' has no attribute '\_\_qualname\_\_'. This seems like …

---

## [Error when reading Gmsh mesh with overlapping physical groups](https://fenicsproject.discourse.group/t/error-when-reading-gmsh-mesh-with-overlapping-physical-groups/16186)

<div class="topic-metadata">

**Author:** [@Puk](https://fenicsproject.discourse.group/u/Puk)\
**Replies:** 6\
**Last updated:** [November 4, 2024, 1:22am UTC](https://fenicsproject.discourse.group/t/error-when-reading-gmsh-mesh-with-overlapping-physical-groups/16186 "2024-11-04T01:22:13Z")

</div>

I’m trying to use physical groups for various different materials, as well as regions with a non-zero source term in Poisson’s equation. Consequently, regions with a source term are part of multiple physical groups. Howe…

---

## [How can I resolve a matrix error when converting a 3D GMSH mesh to a 2D mesh and exporting it from .msh to .xdmf format?](https://fenicsproject.discourse.group/t/how-can-i-resolve-a-matrix-error-when-converting-a-3d-gmsh-mesh-to-a-2d-mesh-and-exporting-it-from-msh-to-xdmf-format/16096)

<div class="topic-metadata">

**Author:** [@Yuvaraje017](https://fenicsproject.discourse.group/u/Yuvaraje017)\
**Replies:** 3\
**Last updated:** [October 22, 2024, 10:11am UTC](https://fenicsproject.discourse.group/t/how-can-i-resolve-a-matrix-error-when-converting-a-3d-gmsh-mesh-to-a-2d-mesh-and-exporting-it-from-msh-to-xdmf-format/16096 "2024-10-22T10:11:04Z")

</div>

Hi! I am a beginner to this environment. In my project, especially in learning, I am facing an error in finding sym(grad(v)) value. I am using an example which is done by using FEniCSx mesh but i replaced the mesh part w…

---

## [When trying to create mesh using gmsh I am getting PETSC ERROR](https://fenicsproject.discourse.group/t/when-trying-to-create-mesh-using-gmsh-i-am-getting-petsc-error/16039)

<div class="topic-metadata">

**Author:** [@vishalkr](https://fenicsproject.discourse.group/u/vishalkr)\
**Replies:** 1\
**Last updated:** [October 13, 2024, 1:52pm UTC](https://fenicsproject.discourse.group/t/when-trying-to-create-mesh-using-gmsh-i-am-getting-petsc-error/16039 "2024-10-13T13:52:20Z")

</div>

from mpi4py import MPI import numpy as np import ufl import gmsh import dolfinx from mpi4py import MPI from dolfinx.io import (VTXWriter, distribute\_entity\_data, gmshio) from dolfinx.fem.petsc import LinearProblem from b…

---

## [Creating the data on grid or nodes](https://fenicsproject.discourse.group/t/creating-the-data-on-grid-or-nodes/15744)

<div class="topic-metadata">

**Author:** [@ahujan](https://fenicsproject.discourse.group/u/ahujan)\
**Replies:** 3\
**Last updated:** [September 9, 2024, 1:59pm UTC](https://fenicsproject.discourse.group/t/creating-the-data-on-grid-or-nodes/15744 "2024-09-09T13:59:49Z")

</div>

Hello , I want to save the data on the meshgrid for the complex geometry (for ML modelling), which is imported from gmsh. But I am getting discrepancies in compute\_midpoints between the in-build mesh and mesh generated…

---

## [Problems with facet\_markers assignment](https://fenicsproject.discourse.group/t/problems-with-facet-markers-assignment/15649)

<div class="topic-metadata">

**Author:** [@Mauricio\_Castedo\_Gut](https://fenicsproject.discourse.group/u/Mauricio_Castedo_Gut)\
**Replies:** 0\
**Last updated:** [August 26, 2024, 9:02pm UTC](https://fenicsproject.discourse.group/t/problems-with-facet-markers-assignment/15649 "2024-08-26T21:02:50Z")

</div>

Good afternoon, I have the following error. I am generating a mesh, the problem arises when I want to define a facet\_markers to apply a load on that line, at first I tried to Save it along with the rest with the command…

---

## [Interior facets indexing on a GMSH mesh: unexpected results when solving in parallel](https://fenicsproject.discourse.group/t/interior-facets-indexing-on-a-gmsh-mesh-unexpected-results-when-solving-in-parallel/15545)

<div class="topic-metadata">

**Author:** [@abounthanh](https://fenicsproject.discourse.group/u/abounthanh)\
**Replies:** 2\
**Last updated:** [August 15, 2024, 2:49pm UTC](https://fenicsproject.discourse.group/t/interior-facets-indexing-on-a-gmsh-mesh-unexpected-results-when-solving-in-parallel/15545 "2024-08-15T14:49:56Z")

</div>

Hi everyone, I’m having an issue when trying to solve in parallel the Poisson equation with DG elements using a GMSH mesh. Interior facet tags are required to write the DG formulation. Unfortunatly, the gmshio.model\_t…

---

## [Problems paralelizing a mesh generated using gmsh python api](https://fenicsproject.discourse.group/t/problems-paralelizing-a-mesh-generated-using-gmsh-python-api/15378)

<div class="topic-metadata">

**Author:** [@Eduardo\_Firvida](https://fenicsproject.discourse.group/u/Eduardo_Firvida)\
**Replies:** 9\
**Last updated:** [August 5, 2024, 8:09pm UTC](https://fenicsproject.discourse.group/t/problems-paralelizing-a-mesh-generated-using-gmsh-python-api/15378 "2024-08-05T20:09:27Z")

</div>

Hi all, I am having problems parallelizing my case, and I don’t know what happened, I can go over 4 ranks, and if I print the DOFS on each rank, I can see that they are not distributed correctly, leaving some ranks with …

---

## [Read meshtag from xdmf created by \<mesh generation with gmsh\>](https://fenicsproject.discourse.group/t/read-meshtag-from-xdmf-created-by-mesh-generation-with-gmsh/15302)

<div class="topic-metadata">

**Author:** [@MushishiYako](https://fenicsproject.discourse.group/u/MushishiYako)\
**Replies:** 2\
**Last updated:** [July 20, 2024, 9:26am UTC](https://fenicsproject.discourse.group/t/read-meshtag-from-xdmf-created-by-mesh-generation-with-gmsh/15302 "2024-07-20T09:26:39Z")

</div>

Hello, my dolfinx version is 0.8.0 import dolfinx print(dolfinx.\_\_version\_\_) I use gmsh to create a 2D model. And save the model in xdmf file. But the facets\_tags can’t be read. Here is a example based on dolfinx 0.8.…

---

## [Issue reading the mesh tags imported from gmsh](https://fenicsproject.discourse.group/t/issue-reading-the-mesh-tags-imported-from-gmsh/14783)

<div class="topic-metadata">

**Author:** [@ahujan](https://fenicsproject.discourse.group/u/ahujan)\
**Replies:** 7\
**Last updated:** [July 9, 2024, 1:19am UTC](https://fenicsproject.discourse.group/t/issue-reading-the-mesh-tags-imported-from-gmsh/14783 "2024-07-09T01:19:04Z")

</div>

Hello all, I know topic (reading the mesh from gmsh) has been posted and answered several times, even the documentation gives great clarity in explaining the subdomains. I heave tried with the different geometries befor…

---

## [Cannot assign and extract a label to a single line in a mesh](https://fenicsproject.discourse.group/t/cannot-assign-and-extract-a-label-to-a-single-line-in-a-mesh/15049)

<div class="topic-metadata">

**Author:** [@mekong](https://fenicsproject.discourse.group/u/mekong)\
**Replies:** 7\
**Last updated:** [June 24, 2024, 4:04pm UTC](https://fenicsproject.discourse.group/t/cannot-assign-and-extract-a-label-to-a-single-line-in-a-mesh/15049 "2024-06-24T16:04:25Z")

</div>

Hello, Given this mesh I can successfully label in it the circle and the rectangle, save the mesh to file, and read the circle and rectangle. I prepared a minimal working example to illustrate the issue: First, gen…

---

## [Improve mapping data on a Function by coordinates](https://fenicsproject.discourse.group/t/improve-mapping-data-on-a-function-by-coordinates/14911)

<div class="topic-metadata">

**Author:** [@Eduardo\_Firvida](https://fenicsproject.discourse.group/u/Eduardo_Firvida)\
**Replies:** 10\
**Last updated:** [June 20, 2024, 4:51am UTC](https://fenicsproject.discourse.group/t/improve-mapping-data-on-a-function-by-coordinates/14911 "2024-06-20T04:51:00Z")

</div>

Hi everyone, I have a working code that I want to improve, I simplified a lot to create a MWE. I’m triying to couple Fenics-X via preCICE by myself, because the current adapter can solve 3D linear elastic problems at th…

---

## [What is wrong with my mesh as related to quadrature-space projections?](https://fenicsproject.discourse.group/t/what-is-wrong-with-my-mesh-as-related-to-quadrature-space-projections/15028)

<div class="topic-metadata">

**Author:** [@edgar](https://fenicsproject.discourse.group/u/edgar)\
**Replies:** 5\
**Last updated:** [June 20, 2024, 4:46am UTC](https://fenicsproject.discourse.group/t/what-is-wrong-with-my-mesh-as-related-to-quadrature-space-projections/15028 "2024-06-20T04:46:55Z")

</div>

Dear everyone, I have been using different versions of a mesh, and it was working well. Now, I am having issues when projecting. All I get are np.inf. If anybody has the time to look at this, I would appreciate it. Than…

---

## [Add load over a surfaces in a rotatory geometry](https://fenicsproject.discourse.group/t/add-load-over-a-surfaces-in-a-rotatory-geometry/14596)

<div class="topic-metadata">

**Author:** [@Eduardo\_Firvida](https://fenicsproject.discourse.group/u/Eduardo_Firvida)\
**Replies:** 4\
**Last updated:** [May 14, 2024, 2:49pm UTC](https://fenicsproject.discourse.group/t/add-load-over-a-surfaces-in-a-rotatory-geometry/14596 "2024-05-14T14:49:43Z")

</div>

Hi, I’m new to FenicsX, so excuse me if this is too basic. I’m coming from this tutorial trying to simulate the elastic response of a wind turbine rotor, so I’m dealing with a transient elastic problem. The problem invo…

---

## [Memory error when importing a gmsh mesh with gmshio](https://fenicsproject.discourse.group/t/memory-error-when-importing-a-gmsh-mesh-with-gmshio/14368)

<div class="topic-metadata">

**Author:** [@Maki](https://fenicsproject.discourse.group/u/Maki)\
**Replies:** 2\
**Last updated:** [April 22, 2024, 9:15am UTC](https://fenicsproject.discourse.group/t/memory-error-when-importing-a-gmsh-mesh-with-gmshio/14368 "2024-04-22T09:15:00Z")

</div>

Greetings everyone, I am currently trying to do an acoustic modal analysis on a cavity with a mesh I created with gmsh. Here is the main code : Cool imports import dolfinx as dfx from dolfinx.fem import Function, Fu…

---

## [Gmsh: quadrilateral mesh](https://fenicsproject.discourse.group/t/gmsh-quadrilateral-mesh/14273)

<div class="topic-metadata">

**Author:** [@renol-kth](https://fenicsproject.discourse.group/u/renol-kth)\
**Replies:** 3\
**Last updated:** [April 16, 2024, 4:25pm UTC](https://fenicsproject.discourse.group/t/gmsh-quadrilateral-mesh/14273 "2024-04-16T16:25:46Z")

</div>

I am solving the poisson problem using quadrilateral elements defined using the gmsh python library. The problem is: the solution does exactly like if i had used triangles. Is there an error in the code, where I define …

[Next page](https://fenicsproject.discourse.group/tag/gmsh/17.md?match_all_tags=true&page=1&tags%5B%5D=gmsh)
