# Construct an unstructured grid from arrays

**URL:** https://discourse.paraview.org/t/construct-an-unstructured-grid-from-arrays/8662
**Category:** ParaView Support
**Created:** [December 20, 2021, 2:35pm UTC](https://discourse.paraview.org/t/construct-an-unstructured-grid-from-arrays/8662 "2021-12-20T14:35:34Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Captain\_Convergence](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/c/e19b73/32.png) [@Captain\_Convergence](https://discourse.paraview.org/u/Captain_Convergence)
#### Post date: [December 20, 2021, 2:35pm UTC](https://discourse.paraview.org/t/construct-an-unstructured-grid-from-arrays/8662/1 "2021-12-20T14:35:34Z")

</div>

Dear all,

I have some coordinates (XYZ) with associated array-fields (density, pressure, velocity…). I need them to be a continuous grid because I have to compute gradients (vorticiy, density gradients, Q-criterion…). Is it possible to generate an unstructured grid from numpy arrays using a programmable filter? Thank you in advance!

Kind regards,

Cesar.

---

<div class="post-metadata">

### Author: ![Francois\_Mazen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/francois_mazen/32/6483_2.png) [@Francois\_Mazen](https://discourse.paraview.org/u/Francois_Mazen)
#### Post date: [December 22, 2021, 8:29am UTC](https://discourse.paraview.org/t/construct-an-unstructured-grid-from-arrays/8662/2 "2021-12-22T08:29:14Z")

</div>

You may look at the VTK python examples: [https://kitware.github.io/vtk-examples/site/Python/UnstructuredGrid/UGrid/](https://kitware.github.io/vtk-examples/site/Python/UnstructuredGrid/UGrid/)
