# Horizontal stripes show on solid surface in Q criterion contour

**URL:** https://discourse.paraview.org/t/horizontal-stripes-show-on-solid-surface-in-q-criterion-contour/15092
**Category:** ParaView Support
**Created:** [July 21, 2024, 7:48am UTC](https://discourse.paraview.org/t/horizontal-stripes-show-on-solid-surface-in-q-criterion-contour/15092 "2024-07-21T07:48:56Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![cheapmeow](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cheapmeow/32/14071_2.png) [@cheapmeow](https://discourse.paraview.org/u/cheapmeow)
#### Post date: [July 21, 2024, 7:48am UTC](https://discourse.paraview.org/t/horizontal-stripes-show-on-solid-surface-in-q-criterion-contour/15092/1 "2024-07-21T07:48:56Z")

</div>

My flow past airfoil case shows horizontal stripes on airfoil surface in Q criterion contour.

The result is calculated by custom solver, using incompressible model, DNS algorithm, structured grid, immersive boundary method to handle coupling of solid.

Result pvts file is:

[https://drive.google.com/file/d/1Zdzt3uCRv8VVBwxit0KD2P9sgPypuDqV/view?usp=sharing](https://drive.google.com/file/d/1Zdzt3uCRv8VVBwxit0KD2P9sgPypuDqV/view?usp=sharing)

The q criterion image:

 ![NACA0012_3d_q_5](https://discourse.paraview.org/uploads/default/original/2X/e/ecf480ed547002142bd5f0888142e8784d1d8b41.png)

You can see obvious horizontal stripes on airfoil surface.

I have checked the velocity on section of fluid by `resample to image`.

U section:

 ![NACA0012_3d_U_section](https://discourse.paraview.org/uploads/default/original/2X/6/6798207fd2e9a1fa9efe906e4cca42aef6c4ee72.png)

V section:

 ![NACA0012_3d_V_section](https://discourse.paraview.org/uploads/default/original/2X/f/f2c2eec37f6fe4c0086a73a397f26cc323e8f9fb.png)

W section:

 ![NACA0012_3d_W_section](https://discourse.paraview.org/uploads/default/original/2X/e/e53ec949978b558d48e1cee348b1772d8e2e2241.png)

All of three velocity components looks like smooth, it confused me. I don’t know why there is oscillation in Q criterion?

Thank you for your reply.

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [July 22, 2024, 2:17pm UTC](https://discourse.paraview.org/t/horizontal-stripes-show-on-solid-surface-in-q-criterion-contour/15092/2 "2024-07-22T14:17:09Z")

</div>

Thanks for providing the dataset. My usual laptop couldn’t uncompress it for some reason, so I couldn’t have a look at the data.

Is the velocity magnitude on the airfoil 0? I wonder if that and perhaps the discretization around of the wing are causing the issue you are seeing.

---

<div class="post-metadata">

### Author: ![cheapmeow](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cheapmeow/32/14071_2.png) [@cheapmeow](https://discourse.paraview.org/u/cheapmeow)
#### Post date: [July 23, 2024, 10:35am UTC](https://discourse.paraview.org/t/horizontal-stripes-show-on-solid-surface-in-q-criterion-contour/15092/3 "2024-07-23T10:35:07Z")

</div>

Yes, the velocity magnitude on airfoil surface is 0. It is draw by `Resample to image` slice.

Maybe discretization method in `Resample to image` and `Contour` are not the same?

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [July 23, 2024, 11:19am UTC](https://discourse.paraview.org/t/horizontal-stripes-show-on-solid-surface-in-q-criterion-contour/15092/4 "2024-07-23T11:19:05Z")

</div>

> [@cheapmeow](#):
>
> It is draw by `Resample to image` slice.

I’m not sure I follow. Where do you use **Resample to Image**? Could you share a screenshot of your pipeline?

---

<div class="post-metadata">

### Author: ![cheapmeow](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cheapmeow/32/14071_2.png) [@cheapmeow](https://discourse.paraview.org/u/cheapmeow)
#### Post date: [July 27, 2024, 3:37am UTC](https://discourse.paraview.org/t/horizontal-stripes-show-on-solid-surface-in-q-criterion-contour/15092/5 "2024-07-27T03:37:34Z")

</div>

I am sorry, I am outside of school, so I can’t ssh to vncserver in school server, even though I have connected to vpn. So I can’t provide you a screenshot.

More specifically, I use `Resample to Image` to draw velocity section. I use `NVIDIA IndeX` plugin as `representation` of `Resample to Image`, take `Velocity_X`, `Velocity_Y`, `Velocity_Z` as the value to be resampled. And I use `NVIDIA IndeX` slice to show the section.

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [July 27, 2024, 1:34pm UTC](https://discourse.paraview.org/t/horizontal-stripes-show-on-solid-surface-in-q-criterion-contour/15092/6 "2024-07-27T13:34:34Z")

</div>

Thanks for explaining your pipeline. The **Resample to Image** sampling pattern is introducing aliasing of your velocity field. Some points of the resampling grid fall inside the wing, where presumably the velocity is set to 0, and some are out in the volume outside the wing, so have real values. That sharp transition across grid cell is probably what you are seeing along the wing.

IndeX is supposed to be able to render unstructured grids. It must not be available for your input structured grid. You could apply a **Tetrahedralize** filter to your input at the cost of a lot more memory use and try to render it with the IndeX representation. That might not be the best solution, but should at least prevent the resampling artifacts you are seeing.

---

<div class="post-metadata">

### Author: ![Kenichiro-Yoshimi](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/k/ecc23a/32.png) [@Kenichiro-Yoshimi](https://discourse.paraview.org/u/Kenichiro-Yoshimi)
#### Post date: [July 28, 2024, 10:59am UTC](https://discourse.paraview.org/t/horizontal-stripes-show-on-solid-surface-in-q-criterion-contour/15092/7 "2024-07-28T10:59:56Z")

</div>

You mention that the velocity field is smooth. However, in the immersed boundary method, the wing surface shape is represented as a staircase. This effect may cause the velocity vector field to appear wobbly when displayed with shadows in volume rendering.

 ![vel_contour](https://discourse.paraview.org/uploads/default/original/2X/1/1a172a42e547a3d39453588ca0a1b091bc21ed77.jpeg)

---

<div class="post-metadata">

### Author: ![cheapmeow](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cheapmeow/32/14071_2.png) [@cheapmeow](https://discourse.paraview.org/u/cheapmeow)
#### Post date: [August 2, 2024, 7:36am UTC](https://discourse.paraview.org/t/horizontal-stripes-show-on-solid-surface-in-q-criterion-contour/15092/9 "2024-08-02T07:36:03Z")

</div>

`Tetrahedralize` doesn’t help.

 ![1e6290e83ce2cfb4e7197e438a60831](https://discourse.paraview.org/uploads/default/original/2X/f/f7ec955ec5637119e98ab841515e4bfcf4525d6c.jpeg)

---

<div class="post-metadata">

### Author: ![cheapmeow](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cheapmeow/32/14071_2.png) [@cheapmeow](https://discourse.paraview.org/u/cheapmeow)
#### Post date: [August 2, 2024, 7:41am UTC](https://discourse.paraview.org/t/horizontal-stripes-show-on-solid-surface-in-q-criterion-contour/15092/10 "2024-08-02T07:41:11Z")

</div>

I have tried two method of generating IBM points, one is simply repeating along y axis, the other is repeating along y axis with staggered offset.

Figure 1: simply repeating along y axis.

![NACA0012_3d_ib_line](https://discourse.paraview.org/uploads/default/original/2X/0/09b1b52c023969e381f48ddc3643debca0b197ba.png)

Figure 2: repeating along y axis with staggered offset.

![staggered_NACA0012_ib_points](https://discourse.paraview.org/uploads/default/original/2X/8/8c390f68773d69dfef82b66662bdd8354aed801b.png)

Both methods produce same stripes problem.

Both methods are not staircase. Points are sampled at NACA0012 fitting function.

Fitting function comes from:

[https://turbmodels.larc.nasa.gov/naca0012\_val.html](https://turbmodels.larc.nasa.gov/naca0012_val.html)

---

<div class="post-metadata">

### Author: ![cheapmeow](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cheapmeow/32/14071_2.png) [@cheapmeow](https://discourse.paraview.org/u/cheapmeow)
#### Post date: [August 2, 2024, 8:05am UTC](https://discourse.paraview.org/t/horizontal-stripes-show-on-solid-surface-in-q-criterion-contour/15092/11 "2024-08-02T08:05:22Z")

</div>

You are right, I can also see the staircase of velocity magnitude, but I don’t know why.
