# How to set a physical field in grid nodes and cells

**URL:** https://discourse.paraview.org/t/how-to-set-a-physical-field-in-grid-nodes-and-cells/5933
**Category:** ParaView Support
**Created:** [November 30, 2020, 11:09am UTC](https://discourse.paraview.org/t/how-to-set-a-physical-field-in-grid-nodes-and-cells/5933 "2020-11-30T11:09:43Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![E.Gaubesh](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/e/22d042/32.png) [@E.Gaubesh](https://discourse.paraview.org/u/E.Gaubesh)
#### Post date: [November 30, 2020, 11:09am UTC](https://discourse.paraview.org/t/how-to-set-a-physical-field-in-grid-nodes-and-cells/5933/1 "2020-11-30T11:09:43Z")

</div>

Hello,  
I just started learning ParaView so need your help.  
I needed to create a 2D grid model and set the physical fields (temperature distribution, density, etc.) in the nodes and cells of this grid.  
I created a grid (Sources -\> Fast Uniform Grid).  
I think that I should use ‘Add Field Arrays’ filter to add temperature values for each cell and node but I don’t understand how to create data array file with this values.  
I will be grateful for any 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: [November 30, 2020, 11:11am UTC](https://discourse.paraview.org/t/how-to-set-a-physical-field-in-grid-nodes-and-cells/5933/2 "2020-11-30T11:11:29Z")

</div>

Nope, this is not the way to go.

How do you want to specify the values, from files ? Which format ?  
ParaView is not a meshing tools, so this may not be an easy task.

---

<div class="post-metadata">

### Author: ![\_Marco](https://discourse.paraview.org/user_avatar/discourse.paraview.org/_marco/32/5242_2.png) [@\_Marco](https://discourse.paraview.org/u/_Marco)
#### Post date: [November 30, 2020, 3:35pm UTC](https://discourse.paraview.org/t/how-to-set-a-physical-field-in-grid-nodes-and-cells/5933/3 "2020-11-30T15:35:55Z")

</div>

Hi @E.Gaubesh,

If you are using Python, and feel comfortable working in that environment, I could send you some basic python script that fills user-defined arrays (any size) and converts them into netcdf: easily readable in PV.

I have done something similar for a project I am working on.

Ciao

---

<div class="post-metadata">

### Author: ![E.Gaubesh](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/e/22d042/32.png) [@E.Gaubesh](https://discourse.paraview.org/u/E.Gaubesh)
#### Post date: [November 30, 2020, 6:47pm UTC](https://discourse.paraview.org/t/how-to-set-a-physical-field-in-grid-nodes-and-cells/5933/4 "2020-11-30T18:47:45Z")

</div>

Hi,  
Yes, I’m using Python.  
Thank you for answer.  
It would be nice if you could send them.

---

<div class="post-metadata">

### Author: ![E.Gaubesh](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/e/22d042/32.png) [@E.Gaubesh](https://discourse.paraview.org/u/E.Gaubesh)
#### Post date: [November 30, 2020, 6:50pm UTC](https://discourse.paraview.org/t/how-to-set-a-physical-field-in-grid-nodes-and-cells/5933/5 "2020-11-30T18:50:46Z")

</div>

Oh, I think I understand what you mean.  
Shall I use \*.vtk file to run in PV? or something else?

---

<div class="post-metadata">

### Author: ![\_Marco](https://discourse.paraview.org/user_avatar/discourse.paraview.org/_marco/32/5242_2.png) [@\_Marco](https://discourse.paraview.org/u/_Marco)
#### Post date: [November 30, 2020, 7:59pm UTC](https://discourse.paraview.org/t/how-to-set-a-physical-field-in-grid-nodes-and-cells/5933/6 "2020-11-30T19:59:02Z")

</div>

Sent your per private message. Good luck.
