# How to save finite element data to import in Paraview?

**URL:** https://discourse.paraview.org/t/how-to-save-finite-element-data-to-import-in-paraview/6395
**Category:** ParaView Support
**Created:** [February 5, 2021, 2:45am UTC](https://discourse.paraview.org/t/how-to-save-finite-element-data-to-import-in-paraview/6395 "2021-02-05T02:45:18Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Dimi\_Kallio](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/d/e36b37/32.png) [@Dimi\_Kallio](https://discourse.paraview.org/u/Dimi_Kallio)
#### Post date: [February 5, 2021, 2:45am UTC](https://discourse.paraview.org/t/how-to-save-finite-element-data-to-import-in-paraview/6395/1 "2021-02-05T02:45:18Z")

</div>

Hello everyone!

I have 2D finite element data (originally generated in Matlab) and I am trying to import them in Paraview.

My data are organized in the following matrices:

1. CRD(# of nodes, 2) which gives the 2D coordinates of the nodes in the domain,
2. Nodes(# of nodes per element,# of elements) which provides the connectivity between the nodes,
3. U(# of nodes, 2) which gives the x & y velocities per node, and
4. P(# of nodes, 1) which gives the pressure on a node.

However, I am not quite sure how can I put all these in the appropriate form so that they can be imported in Paraview. I have tried some matlab codes with vtk file type but without success. I would appreciate your help!

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [February 5, 2021, 10:41am UTC](https://discourse.paraview.org/t/how-to-save-finite-element-data-to-import-in-paraview/6395/2 "2021-02-05T10:41:08Z")

</div>

Use vtkwrite : [https://www.mathworks.com/matlabcentral/fileexchange/47814-vtkwrite-exports-various-2d-3d-data-to-paraview-in-vtk-file-format](https://www.mathworks.com/matlabcentral/fileexchange/47814-vtkwrite-exports-various-2d-3d-data-to-paraview-in-vtk-file-format)

---

<div class="post-metadata">

### Author: ![Dimi\_Kallio](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/d/e36b37/32.png) [@Dimi\_Kallio](https://discourse.paraview.org/u/Dimi_Kallio)
#### Post date: [February 5, 2021, 3:07pm UTC](https://discourse.paraview.org/t/how-to-save-finite-element-data-to-import-in-paraview/6395/3 "2021-02-05T15:07:23Z")

</div>

Dear Mathieu,

Thank you for your response! I tried using that but it does not seem to work in my case.

Regards

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [February 5, 2021, 3:08pm UTC](https://discourse.paraview.org/t/how-to-save-finite-element-data-to-import-in-paraview/6395/4 "2021-02-05T15:08:52Z")

</div>

Then you probably need to ask on a matlab support forum.

---

<div class="post-metadata">

### Author: ![Dimi\_Kallio](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/d/e36b37/32.png) [@Dimi\_Kallio](https://discourse.paraview.org/u/Dimi_Kallio)
#### Post date: [February 5, 2021, 3:09pm UTC](https://discourse.paraview.org/t/how-to-save-finite-element-data-to-import-in-paraview/6395/5 "2021-02-05T15:09:51Z")

</div>

Will do!
