# How can I extract the Cp distribution plot around an airfoil from a VTK file using Paraview?

**URL:** https://discourse.paraview.org/t/how-can-i-extract-the-cp-distribution-plot-around-an-airfoil-from-a-vtk-file-using-paraview/5052
**Category:** Development
**Tags:** vtk
**Created:** [August 7, 2020, 9:58am UTC](https://discourse.paraview.org/t/how-can-i-extract-the-cp-distribution-plot-around-an-airfoil-from-a-vtk-file-using-paraview/5052 "2020-08-07T09:58:51Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![Victor](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/v/3e96dc/32.png) [@Victor](https://discourse.paraview.org/u/Victor)
#### Post date: [August 7, 2020, 9:58am UTC](https://discourse.paraview.org/t/how-can-i-extract-the-cp-distribution-plot-around-an-airfoil-from-a-vtk-file-using-paraview/5052/1 "2020-08-07T09:58:52Z")

</div>

I have seen in other discussion pages that they can do it extracting the block or selecting the surfaces of the airfoil. However, in my VTK file I do not have those. I only have the fluid domain around the airfoil. Does anyone know how to extract the pressure distribution around an airfoil with the domain file I am attaching below?

Thank you in advance.

[domain\_00000080.vtm](https://discourse.paraview.org/uploads/short-url/pPdIavYKCD508pvxZEkjUD3ViRO.vtm) (4.0 KB)

---

<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: [August 7, 2020, 11:28am UTC](https://discourse.paraview.org/t/how-can-i-extract-the-cp-distribution-plot-around-an-airfoil-from-a-vtk-file-using-paraview/5052/2 "2020-08-07T11:28:57Z")

</div>

You need to share the associated files : domain\*.vti

---

<div class="post-metadata">

### Author: ![Victor](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/v/3e96dc/32.png) [@Victor](https://discourse.paraview.org/u/Victor)
#### Post date: [August 7, 2020, 3:55pm UTC](https://discourse.paraview.org/t/how-can-i-extract-the-cp-distribution-plot-around-an-airfoil-from-a-vtk-file-using-paraview/5052/3 "2020-08-07T15:55:23Z")

</div>

Thank you Mathieu. However, the software I am using to perform the simulation (called PALABOS) only generates .vtm files in this example. Is there something that I could do with the .vtm files?

---

<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: [August 7, 2020, 3:56pm UTC](https://discourse.paraview.org/t/how-can-i-extract-the-cp-distribution-plot-around-an-airfoil-from-a-vtk-file-using-paraview/5052/4 "2020-08-07T15:56:37Z")

</div>

alongside your .vtm file, there is a folder named domain\_00000080, share it please.

---

<div class="post-metadata">

### Author: ![Victor](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/v/3e96dc/32.png) [@Victor](https://discourse.paraview.org/u/Victor)
#### Post date: [August 7, 2020, 3:59pm UTC](https://discourse.paraview.org/t/how-can-i-extract-the-cp-distribution-plot-around-an-airfoil-from-a-vtk-file-using-paraview/5052/5 "2020-08-07T15:59:04Z")

</div>

Oh you are right! These files below are the ones inside the folder domain\_00000080.

[domain\_00000080-g001-00000000.vti](https://discourse.paraview.org/uploads/short-url/7WUn4ZRqKMk1PSmjAzAaXoKSMbo.vti) (70.6 KB) [domain\_00000080-g001-00000001.vti](https://discourse.paraview.org/uploads/short-url/uwMxxncZbM1Lmp55UVm1rzKTpEl.vti) (2.3 MB) [domain\_00000080-g001-00000002.vti](https://discourse.paraview.org/uploads/short-url/k9j0MFmIeHqxoyxCRWEbSrd1C3E.vti) (70.6 KB) [domain\_00000080-g001-00000003.vti](https://discourse.paraview.org/uploads/short-url/cv8UwDAw6xwhX5Sai5gZxptr96K.vti) (70.6 KB) [domain\_00000080-g001-00000004.vti](https://discourse.paraview.org/uploads/short-url/q6hTBF4AzxM3COrEFD8sYvYyuQt.vti) (2.3 MB) [domain\_00000080-g001-00000005.vti](https://discourse.paraview.org/uploads/short-url/swNAmFnktnvNxcgHOGh35jTd4Li.vti) (2.3 MB) [domain\_00000080-g001-00000006.vti](https://discourse.paraview.org/uploads/short-url/nsjv7nBxBDanApVckExZupKmzXq.vti) (1.8 MB) [domain\_00000080-g001-00000007.vti](https://discourse.paraview.org/uploads/short-url/zpJlmHmAZggusVLbZCgCtzy0P66.vti) (1.8 MB) [domain\_00000080-g001-00000008.vti](https://discourse.paraview.org/uploads/short-url/dHwKHfJ21UNW9WXZ8ObKXAZDivX.vti) (1.8 MB) [domain\_00000080-g001-00000009.vti](https://discourse.paraview.org/uploads/short-url/oM8VntvNupSPvx5E5khDhb0dBgi.vti) (70.6 KB) [domain\_00000080-g001-00000010.vti](https://discourse.paraview.org/uploads/short-url/2bD9SaLWnrltotmBvXgiXlYn7sJ.vti) (70.6 KB) [domain\_00000080-g001-00000011.vti](https://discourse.paraview.org/uploads/short-url/sUwfeYlZyAxSBFUoAdDKtgyfToj.vti) (2.3 MB) [domain\_00000080-g001-00000012.vti](https://discourse.paraview.org/uploads/short-url/9aOcB9DqFxH1OyJfIxEn2uiQ5OW.vti) (2.3 MB) [domain\_00000080-g001-00000013.vti](https://discourse.paraview.org/uploads/short-url/mQmKsNmefzotRMIYxG75No0j2Pg.vti) (70.6 KB) [domain\_00000080-g001-00000014.vti](https://discourse.paraview.org/uploads/short-url/hHgYJlSO5v5rPRuKlD0hoO7JMwV.vti) (12.3 KB) [domain\_00000080-g001-00000015.vti](https://discourse.paraview.org/uploads/short-url/vyCU0XXRR16RtdAwmUoXV6kmm23.vti) (2.3 MB) [domain\_00000080-g001-00000016.vti](https://discourse.paraview.org/uploads/short-url/9fECoCwP0nDAkB8wmIagtpvuOIC.vti) (385.6 KB) [domain\_00000080-g001-00000017.vti](https://discourse.paraview.org/uploads/short-url/vkvsIkJkPXprp8Hqfj1lXOKGNgQ.vti) (1.8 MB) [domain\_00000080-g001-00000018.vti](https://discourse.paraview.org/uploads/short-url/5p4i6dFB12Ac8sAJdVlrdZVTdQ8.vti) (1.8 MB) [domain\_00000080-g001-00000019.vti](https://discourse.paraview.org/uploads/short-url/zmQpqbBiUycD3YBhYwf7TBkpZ9b.vti) (1.8 MB) [domain\_00000080-g001-00000020.vti](https://discourse.paraview.org/uploads/short-url/iveggV4YhtrmvNJ7iZfLK7qxJwH.vti) (312.7 KB) [domain\_00000080-g001-00000021.vti](https://discourse.paraview.org/uploads/short-url/13dux00XqtwDN4jy7jhKSfWT7Y8.vti) (73.3 KB) [domain\_00000080-g001-00000022.vti](https://discourse.paraview.org/uploads/short-url/zEMSrfIbclIUaH4lReUGF59aZ2P.vti) (2.3 MB) [domain\_00000080-g001-00000023.vti](https://discourse.paraview.org/uploads/short-url/qxZTMnnDDyF6KKCS9Al72nHary7.vti) (73.3 KB) [domain\_00000080-g001-00000024.vti](https://discourse.paraview.org/uploads/short-url/c0P83sJrW7TiBe5rs0cCESuoebr.vti) (73.3 KB) [domain\_00000080-g001-00000025.vti](https://discourse.paraview.org/uploads/short-url/3JMn4nD9P3R2MUZu2qwsUsGI4Ke.vti) (2.3 MB) [domain\_00000080-g001-00000026.vti](https://discourse.paraview.org/uploads/short-url/a4zgTirU5dkUw2ICHibLAGrg0b4.vti) (2.3 MB) [domain\_00000080-g001-00000027.vti](https://discourse.paraview.org/uploads/short-url/xs40LllQBIQPJBOyczb0OlrShB2.vti) (1.9 MB) [domain\_00000080-g001-00000028.vti](https://discourse.paraview.org/uploads/short-url/uHvrE2aC0DuO5g3T2ispz1NT6H3.vti) (1.9 MB) [domain\_00000080-g001-00000029.vti](https://discourse.paraview.org/uploads/short-url/tY5BC9ejyMcr4IUQNqMtMEoWfvO.vti) (1.9 MB) [domain\_00000080-g001-00000030.vti](https://discourse.paraview.org/uploads/short-url/8Q3C8HwZv24YAyUEOE1qQWyIMom.vti) (73.3 KB) [domain\_00000080-g001-00000031.vti](https://discourse.paraview.org/uploads/short-url/untowrBystaDwqxCc4tTTGscsxw.vti) (73.3 KB) [domain\_00000080-g001-00000032.vti](https://discourse.paraview.org/uploads/short-url/9Bzc0CWVxHhxatpKMVXhpxkclG6.vti) (2.3 MB) [domain\_00000080-g001-00000033.vti](https://discourse.paraview.org/uploads/short-url/4Hai2yx7A4qggRbT9olVXrzbFN.vti) (2.3 MB) [domain\_00000080-g001-00000034.vti](https://discourse.paraview.org/uploads/short-url/j1oh6MZQTjKXodyEwQw24HNsWH3.vti) (73.3 KB) [domain\_00000080-g001-00000035.vti](https://discourse.paraview.org/uploads/short-url/odUKWg3lhgrTBCcUFWu7HZGQagl.vti) (12.8 KB) [domain\_00000080-g001-00000036.vti](https://discourse.paraview.org/uploads/short-url/b48O02pEgLmom00xXIc5tuQOQ4j.vti) (2.3 MB) [domain\_00000080-g001-00000037.vti](https://discourse.paraview.org/uploads/short-url/tgyhwaFnV7IGcvSeZtFMVsygRD2.vti) (400.1 KB) [domain\_00000080-g001-00000038.vti](https://discourse.paraview.org/uploads/short-url/bQ4lFkhYPx3aQ2qxo9RLD6ZjAcB.vti) (1.9 MB) [domain\_00000080-g001-00000039.vti](https://discourse.paraview.org/uploads/short-url/sgSHUSyEZ2DYrjEiNQSrv2DAUAu.vti) (1.9 MB) [domain\_00000080-g001-00000040.vti](https://discourse.paraview.org/uploads/short-url/egQi78o7Vrylzpj0ewaJWRDG80g.vti) (1.9 MB) [domain\_00000080-g001-00000041.vti](https://discourse.paraview.org/uploads/short-url/lJf6Q7UGaljlTKQYOyeg5OjWXgd.vti) (324.4 KB)

---

<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: [August 7, 2020, 4:03pm UTC](https://discourse.paraview.org/t/how-can-i-extract-the-cp-distribution-plot-around-an-airfoil-from-a-vtk-file-using-paraview/5052/6 "2020-08-07T16:03:25Z")

</div>

please share an archive containing all your files together for simple access, thanks.

---

<div class="post-metadata">

### Author: ![Victor](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/v/3e96dc/32.png) [@Victor](https://discourse.paraview.org/u/Victor)
#### Post date: [August 7, 2020, 4:08pm UTC](https://discourse.paraview.org/t/how-can-i-extract-the-cp-distribution-plot-around-an-airfoil-from-a-vtk-file-using-paraview/5052/7 "2020-08-07T16:08:54Z")

</div>

Sorry, I will compress it.

---

<div class="post-metadata">

### Author: ![Victor](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/v/3e96dc/32.png) [@Victor](https://discourse.paraview.org/u/Victor)
#### Post date: [August 7, 2020, 4:09pm UTC](https://discourse.paraview.org/t/how-can-i-extract-the-cp-distribution-plot-around-an-airfoil-from-a-vtk-file-using-paraview/5052/8 "2020-08-07T16:09:44Z")

</div>

The file is too large so I uploaded it here.

> **[Enrique Labiano Laserna sent you 1 item](https://www.dropbox.com/t/1YLvRByrtz5nue7W)**
>
> domain\_00000080.rar

---

<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: [August 7, 2020, 4:15pm UTC](https://discourse.paraview.org/t/how-can-i-extract-the-cp-distribution-plot-around-an-airfoil-from-a-vtk-file-using-paraview/5052/9 "2020-08-07T16:15:47Z")

</div>

So, you dataset indeed contains only the fluid domain. To extract the pressure at the airfoil you would need to share the airfoil geometry as well.

---

<div class="post-metadata">

### Author: ![Victor](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/v/3e96dc/32.png) [@Victor](https://discourse.paraview.org/u/Victor)
#### Post date: [August 7, 2020, 4:18pm UTC](https://discourse.paraview.org/t/how-can-i-extract-the-cp-distribution-plot-around-an-airfoil-from-a-vtk-file-using-paraview/5052/10 "2020-08-07T16:18:26Z")

</div>

Okay. You mean this file, right?

[30P30N\_modified\_slat\_configF\_0p2m\_AoA5p5.stl](https://discourse.paraview.org/uploads/short-url/tguJCkRkio8KExhm3DngGIn1JzG.stl) (1.4 MB)

---

<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: [August 7, 2020, 4:23pm UTC](https://discourse.paraview.org/t/how-can-i-extract-the-cp-distribution-plot-around-an-airfoil-from-a-vtk-file-using-paraview/5052/11 "2020-08-07T16:23:32Z")

</div>

Yes.

- Open your .stl file, Apply
- Open your .vtm file, Apply
- Make sure the .vtm file is highlighted in the pipeline browser
- Filters -\> ResampleWithDataSet
- Click on destination mesh and select the .stl file
- Apply
- Color by pressure

 ![image](https://discourse.paraview.org/uploads/default/original/2X/c/c0159397d3d0127f06ee798f6f206d830afb71a2.png)

---

<div class="post-metadata">

### Author: ![Victor](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/v/3e96dc/32.png) [@Victor](https://discourse.paraview.org/u/Victor)
#### Post date: [August 7, 2020, 4:30pm UTC](https://discourse.paraview.org/t/how-can-i-extract-the-cp-distribution-plot-around-an-airfoil-from-a-vtk-file-using-paraview/5052/12 "2020-08-07T16:30:27Z")

</div>

Thank you! I followed your steps and I got the same! However, what I was actually looking for was: how could I extract those pressure values to generate a 2D Cp vs X/c distribution?. Is there any option inside Paraview to get those values (as well as their position in x)?

Thank you again Mathieu!

---

<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: [August 10, 2020, 7:46am UTC](https://discourse.paraview.org/t/how-can-i-extract-the-cp-distribution-plot-around-an-airfoil-from-a-vtk-file-using-paraview/5052/13 "2020-08-10T07:46:36Z")

</div>

Please precise what your are trying to achieve.

---

<div class="post-metadata">

### Author: ![TimJim](https://discourse.paraview.org/user_avatar/discourse.paraview.org/timjim/32/1270_2.png) [@TimJim](https://discourse.paraview.org/u/TimJim)
#### Post date: [September 17, 2020, 8:44am UTC](https://discourse.paraview.org/t/how-can-i-extract-the-cp-distribution-plot-around-an-airfoil-from-a-vtk-file-using-paraview/5052/14 "2020-09-17T08:44:04Z")

</div>

Hi @Victor - regarding the 2D Cp vs X/c distribution once you have your pressure applied to the geometry, did you try the “Plot On Intersection Curves”? (Filters -\> Alphabetical -\> Plot On Intersection Curves)

Judging from the screenshot above, you could set the plane to Z Normal and select your z-slice locations. I think by default, it will try to plot everything so you can untick all the series you don’t want. You’ll also need to set the x-axis X Array Name to Points\_X.

Hope that helps a bit!
