# Using SimplexMesh in SimPEG problems

**URL:** <https://simpeg.discourse.group/t/using-simplexmesh-in-simpeg-problems/478>\
**Category:** Discretization\
**Created:** [July 9, 2023, 6:26pm UTC](https://simpeg.discourse.group/t/using-simplexmesh-in-simpeg-problems/478 "2023-07-09T18:26:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hello](https://avatars.discourse-cdn.com/v4/letter/h/7993a0/32.png) [@Hello](https://simpeg.discourse.group/u/Hello)\
**Post date:** [July 9, 2023, 6:26pm UTC](https://simpeg.discourse.group/t/using-simplexmesh-in-simpeg-problems/478/1 "2023-07-09T18:26:36Z")

</div>

Tell me, please, is it possible to use unstructured (tetrahedral) meshes in any problems in SimPEG? I can read a SimplexMesh from a VTK file, but how can I use it to solve inversion problems? For example, in problems of the “potential\_fields → magnetics”, SimPEG gives an error:

```auto
File "E:\magnettest\tetsample.py", line 252, in <module>
simulation = magnetics.simulation.Simulation3DIntegral(                                                                                                                      
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\SimPEG\potential_fields\magnetics\simulation.py", line 45, in _init_
super()._init_(mesh, **kwargs)
File "C:\Program Files\Python311\Lib\site-packages\SimPEG\potential_fields\base.py", line 128, in _init_
raise ValueError("Mesh must be 3D tensor or Octree.")
ValueError: Mesh must be 3D tensor or Octree.

```

Is it planned to support SimplexMesh in future versions of SimPEG?
