# Warp by scalar issue

**URL:** https://discourse.paraview.org/t/warp-by-scalar-issue/14840
**Category:** ParaView Support
**Created:** [June 12, 2024, 10:54pm UTC](https://discourse.paraview.org/t/warp-by-scalar-issue/14840 "2024-06-12T22:54:58Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![MaT29011](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mat29011/32/14587_2.png) [@MaT29011](https://discourse.paraview.org/u/MaT29011)
#### Post date: [June 12, 2024, 10:54pm UTC](https://discourse.paraview.org/t/warp-by-scalar-issue/14840/1 "2024-06-12T22:54:58Z")

</div>

Hello everyone,

I have a question about using the “Warp by scalar” filter. I’ve made a simulation on a flat surface and I would like to visualize it on a 3d terrain warped from the scalar array Z that I’ve got. When applying the filter it makes the surface like I wanted, but when running the simulation it starts to run again on the flat surface rather than on the new warped surface.

Am I missing something when applying the filters?

The filters that I used in sequence are:1. Cell data to point data and 2. Warp by scalar.

 ![slika 1](https://discourse.paraview.org/uploads/default/original/2X/6/641f9ac58f788ffe4a6c6c9b08e4754bd59c240c.png)  
(2D flat simulation)

 ![slika 2](https://discourse.paraview.org/uploads/default/original/2X/9/938bbc9ee3821bc747513868b536566b6a1bdc11.png)  
(warped surface)

 ![slika 3](https://discourse.paraview.org/uploads/default/original/2X/0/078305cdf48d5d49ffd78f2862dc2198686f785a.png)  
(Issue that occurs when running the simulation on the warped surface)

Kind 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: [June 13, 2024, 11:46am UTC](https://discourse.paraview.org/t/warp-by-scalar-issue/14840/2 "2024-06-13T11:46:11Z")

</div>

> [@MaT29011](#):
>
> but when running the simulation it starts to run again on the flat surface rather than on the new warped surface.

Do you run your simulation INSIDE of ParaView ?

---

<div class="post-metadata">

### Author: ![MaT29011](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mat29011/32/14587_2.png) [@MaT29011](https://discourse.paraview.org/u/MaT29011)
#### Post date: [June 13, 2024, 11:54am UTC](https://discourse.paraview.org/t/warp-by-scalar-issue/14840/3 "2024-06-13T11:54:55Z")

</div>

Hello Mathieu, thank you for your reply.

The simulation is made in OpenFoam. What I meant to say is when I click to run the animation of the simulation the above mentioned error occurs. I don’t know if it’s even possible to create a new 3D look from warping the surface and make the animation run on that new 3D surface, or the problem is maybe because Z array is not time-varying like my S and T parameter?. I tried using “Resample with Dataset” filter but it provides the same result.

---

<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: [June 13, 2024, 11:57am UTC](https://discourse.paraview.org/t/warp-by-scalar-issue/14840/4 "2024-06-13T11:57:09Z")

</div>

> [@MaT29011](#):
>
> What I meant to say is when I click to run the animation of the simulation the above mentioned error occurs

Indeed, this should work. Please share your data.

---

<div class="post-metadata">

### Author: ![MaT29011](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mat29011/32/14587_2.png) [@MaT29011](https://discourse.paraview.org/u/MaT29011)
#### Post date: [June 13, 2024, 12:19pm UTC](https://discourse.paraview.org/t/warp-by-scalar-issue/14840/5 "2024-06-13T12:19:27Z")

</div>

[https://www.dropbox.com/scl/fo/x9jem4ea8qynqhekpffn0/AALxe1yBs7s7FfQK3ZU6uy0?rlkey=hqb6gmmt9wszkqb6zou0978rm&st=oo1unhbo&dl=0](https://www.dropbox.com/scl/fo/x9jem4ea8qynqhekpffn0/AALxe1yBs7s7FfQK3ZU6uy0?rlkey=hqb6gmmt9wszkqb6zou0978rm&st=oo1unhbo&dl=0)

I’ve put the whole file on my dropbox account.

---

<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: [June 13, 2024, 12:24pm UTC](https://discourse.paraview.org/t/warp-by-scalar-issue/14840/6 "2024-06-13T12:24:45Z")

</div>

Please share the folder once the simulation is done.

---

<div class="post-metadata">

### Author: ![MaT29011](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mat29011/32/14587_2.png) [@MaT29011](https://discourse.paraview.org/u/MaT29011)
#### Post date: [June 13, 2024, 12:32pm UTC](https://discourse.paraview.org/t/warp-by-scalar-issue/14840/7 "2024-06-13T12:32:25Z")

</div>

[https://www.dropbox.com/scl/fo/zjq2bg0szqtev25fhc9mr/AGqbkBl40-kaSk7VDofXiAo?rlkey=5t2zadrm0h8vk166gixsslgga&st=56y0ikse&dl=0](https://www.dropbox.com/scl/fo/zjq2bg0szqtev25fhc9mr/AGqbkBl40-kaSk7VDofXiAo?rlkey=5t2zadrm0h8vk166gixsslgga&st=56y0ikse&dl=0)

My mistake, here is the full simulation.

---

<div class="post-metadata">

### Author: ![MaT29011](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mat29011/32/14587_2.png) [@MaT29011](https://discourse.paraview.org/u/MaT29011)
#### Post date: [June 14, 2024, 11:17am UTC](https://discourse.paraview.org/t/warp-by-scalar-issue/14840/8 "2024-06-14T11:17:49Z")

</div>

Hi @mwestphal. Have you maybe figured out what could be the cause of the problem with the WarpbyScalar filter? Could it be the Paraview version because I’m using 5.6.3 version?

Thank you in advance!

---

<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: [June 17, 2024, 8:02am UTC](https://discourse.paraview.org/t/warp-by-scalar-issue/14840/9 "2024-06-17T08:02:14Z")

</div>

> [@MaT29011](#):
>
> Could it be the Paraview version because I’m using 5.6.3 version?

I dont know but you definitely wants to update anyway.

Works fine here anyway, time step 52:

 ![image](https://discourse.paraview.org/uploads/default/original/2X/5/5ab2e139507b606f6612150debc2fad86a563ac4.jpeg)
