# How to write cell centred data field to an unstructred grid.

**URL:** https://discourse.vtk.org/t/how-to-write-cell-centred-data-field-to-an-unstructred-grid/1965
**Category:** Support
**Created:** [October 23, 2019, 2:32am UTC](https://discourse.vtk.org/t/how-to-write-cell-centred-data-field-to-an-unstructred-grid/1965 "2019-10-23T02:32:07Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ztdep](https://discourse.vtk.org/user_avatar/discourse.vtk.org/ztdep/32/1008_2.png) [@ztdep](https://discourse.vtk.org/u/ztdep)
#### Post date: [October 23, 2019, 2:32am UTC](https://discourse.vtk.org/t/how-to-write-cell-centred-data-field-to-an-unstructred-grid/1965/1 "2019-10-23T02:32:07Z")

</div>

Dear sir:  
I need to output my cfd data in a FVM way.How to write cell centred data field to an unstructred grid.  
Regards

---

<div class="post-metadata">

### Author: ![Dave\_DeMarle](https://discourse.vtk.org/user_avatar/discourse.vtk.org/dave_demarle/32/6_2.png) [@Dave\_DeMarle](https://discourse.vtk.org/u/Dave_DeMarle)
#### Post date: [October 25, 2019, 2:19pm UTC](https://discourse.vtk.org/t/how-to-write-cell-centred-data-field-to-an-unstructred-grid/1965/2 "2019-10-25T14:19:35Z")

</div>

vtkUnstructuredGrid-\>GetCellData() gives you access to the collection of cell centered arrays. From there it is vtkDataArray API to edit the content of individual arrays and the unstructured grid compatible Readers and Writers to make the contents persist in files.
