# 2D colouring of a surface of a given shape (Circular rake)

**URL:** https://discourse.paraview.org/t/2d-colouring-of-a-surface-of-a-given-shape-circular-rake/14742
**Category:** ParaView Support
**Tags:** openfoam, cfd
**Created:** [May 30, 2024, 10:31am UTC](https://discourse.paraview.org/t/2d-colouring-of-a-surface-of-a-given-shape-circular-rake/14742 "2024-05-30T10:31:47Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Shariq\_Shuaib](https://discourse.paraview.org/user_avatar/discourse.paraview.org/shariq_shuaib/32/12160_2.png) [@Shariq\_Shuaib](https://discourse.paraview.org/u/Shariq_Shuaib)
#### Post date: [May 30, 2024, 10:31am UTC](https://discourse.paraview.org/t/2d-colouring-of-a-surface-of-a-given-shape-circular-rake/14742/1 "2024-05-30T10:31:47Z")

</div>

![11](https://discourse.paraview.org/uploads/default/original/2X/6/6548410705be5e3f0ae05fcf9d62609547ea67a2.png)  
Image courtesy: [https://arc.aiaa.org/doi/10.2514/6.2013-3796](https://arc.aiaa.org/doi/10.2514/6.2013-3796)

Greetings,

I hope this message finds you well. I am attempting to plot data similar to the attached image. I have scalar values at various points, represented in a CSV file with columns (x, y, z, scalar\_value). I am looking for a way to achieve this visualization in ParaView.

I have considered using the Delaunay 2D filter, but it results in a flat surface. My goal is to create a visualization that resembles a rake, as shown in the image. Is there a method in ParaView to achieve this effect?

Thank you for your time and expertise.

---

<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: [May 30, 2024, 11:42am UTC](https://discourse.paraview.org/t/2d-colouring-of-a-surface-of-a-given-shape-circular-rake/14742/2 "2024-05-30T11:42:09Z")

</div>

Please share your data

---

<div class="post-metadata">

### Author: ![Shariq\_Shuaib](https://discourse.paraview.org/user_avatar/discourse.paraview.org/shariq_shuaib/32/12160_2.png) [@Shariq\_Shuaib](https://discourse.paraview.org/u/Shariq_Shuaib)
#### Post date: [May 30, 2024, 3:49pm UTC](https://discourse.paraview.org/t/2d-colouring-of-a-surface-of-a-given-shape-circular-rake/14742/3 "2024-05-30T15:49:04Z")

</div>

Thank you for your response.

Attached is a CSV file containing x, y, and z coordinates followed by velocity magnitudes. These values were obtained by first inputting the CSV files of the coordinates into ParaView, where I had my CFD results. Then, I resampled at those points.  
[data.csv](https://discourse.paraview.org/uploads/short-url/ziAwyJf2ZJq8qMzedd5pvLvv8fn.csv) (1.5 KB)

Please let me know if you need any further information.

Best 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: [May 31, 2024, 7:30am UTC](https://discourse.paraview.org/t/2d-colouring-of-a-surface-of-a-given-shape-circular-rake/14742/4 "2024-05-31T07:30:16Z")

</div>

Something like that ?

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

Please note I used delaunay 2D and then remove the cells in the middle manually.

[state.pvsm](https://discourse.paraview.org/uploads/short-url/6KObmuEJYWu1yJzvHRZsVOHpCkc.pvsm) (481.8 KB)

---

<div class="post-metadata">

### Author: ![Shariq\_Shuaib](https://discourse.paraview.org/user_avatar/discourse.paraview.org/shariq_shuaib/32/12160_2.png) [@Shariq\_Shuaib](https://discourse.paraview.org/u/Shariq_Shuaib)
#### Post date: [May 31, 2024, 10:15am UTC](https://discourse.paraview.org/t/2d-colouring-of-a-surface-of-a-given-shape-circular-rake/14742/5 "2024-05-31T10:15:57Z")

</div>

Hey Mathieu,

That’s exactly what I’m looking for. Could you please briefly explain the steps involved? Once again, thank you for your help.

Best regards,  
Shariq

---

<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: [May 31, 2024, 11:31am UTC](https://discourse.paraview.org/t/2d-colouring-of-a-surface-of-a-given-shape-circular-rake/14742/6 "2024-05-31T11:31:07Z")

</div>

1. Create geometry:

- run ParaView
- File → Open → data.csv → Apply
- FIlters → TableToPoints → X, Y, Z, → Apply
- Filter → Delaunay2D → BestFittingPlane → Apply

1. Extract wanted cells

- Switch representation to SurfaceWithEdges
- Use “InteractiveSelectCellsOn”
- Select the few cells in the middle
- View → FIndData
- InvertSelection
- Filter → ExtractSelection

1. Representation

- Show TableToPoint as Point representation, increase point size
- Show the ExtractSelection as surface, show “Velocity” variable
- View → ColorMap Editor → Preset → All → KAAMS

hth

---

<div class="post-metadata">

### Author: ![Shariq\_Shuaib](https://discourse.paraview.org/user_avatar/discourse.paraview.org/shariq_shuaib/32/12160_2.png) [@Shariq\_Shuaib](https://discourse.paraview.org/u/Shariq_Shuaib)
#### Post date: [May 31, 2024, 12:43pm UTC](https://discourse.paraview.org/t/2d-colouring-of-a-surface-of-a-given-shape-circular-rake/14742/7 "2024-05-31T12:43:32Z")

</div>

Thank you for your support.  
Cheers
