# How can I load a polygonal 2D mesh (VTK format) into JuAFEM?

**URL:** https://discourse.julialang.org/t/how-can-i-load-a-polygonal-2d-mesh-vtk-format-into-juafem/53831
**Category:** General Usage
**Tags:** juafem
**Created:** [January 23, 2021, 12:43pm UTC](https://discourse.julialang.org/t/how-can-i-load-a-polygonal-2d-mesh-vtk-format-into-juafem/53831 "2021-01-23T12:43:39Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![gedankenexperiment](https://avatars.discourse-cdn.com/v4/letter/g/a183cd/32.png) [@gedankenexperiment](https://discourse.julialang.org/u/gedankenexperiment)
#### Post date: [January 23, 2021, 12:43pm UTC](https://discourse.julialang.org/t/how-can-i-load-a-polygonal-2d-mesh-vtk-format-into-juafem/53831/1 "2021-01-23T12:43:39Z")

</div>

Hi, I want to solve a reaction-diffusion equation on a 2D polygonal mesh, where each cell has a different parameter value for the reaction-diffusion equation. I have the mesh in the VTK format. Now I wonder whether I should simply write a script to convert the VTK data into a JuAFEM grid or whether there exists some IO functionality for that in the Julia package universe. Thanks for any hints.

---

<div class="post-metadata">

### Author: ![vavrines](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vavrines/32/8024_2.png) [@vavrines](https://discourse.julialang.org/u/vavrines)
#### Post date: [January 23, 2021, 10:39pm UTC](https://discourse.julialang.org/t/how-can-i-load-a-polygonal-2d-mesh-vtk-format-into-juafem/53831/2 "2021-01-23T22:39:11Z")

</div>

One option is to make use of [meshio](https://github.com/nschloe/meshio) if you don’t want to implement it yourself.  
It can be easily called from julia via PyCall.
