# HOW to Smooth the fluid interface？

**URL:** https://discourse.paraview.org/t/how-to-smooth-the-fluid-interface/11737
**Category:** ParaView Support
**Created:** [March 28, 2023, 12:20pm UTC](https://discourse.paraview.org/t/how-to-smooth-the-fluid-interface/11737 "2023-03-28T12:20:25Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![AlexL](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/a/f05b48/32.png) [@AlexL](https://discourse.paraview.org/u/AlexL)
#### Post date: [March 28, 2023, 12:20pm UTC](https://discourse.paraview.org/t/how-to-smooth-the-fluid-interface/11737/1 "2023-03-28T12:20:25Z")

</div>

I used the S-ALE method of LS-DYNA to study an underwater bubble and use the DominationGroup option of the threshold filter to distinguish between bubble and water. However, due to the presence of meshes, the bubble interface is very rough. Now I want to make the bubble interface smooth. How can I do this?  
 ![屏幕截图 2023-03-28 201721](https://discourse.paraview.org/uploads/default/original/2X/7/746275ef00f1da126da38dd2af95862c72a19bb7.png)  
 ![屏幕截图 2023-03-28 201806](https://discourse.paraview.org/uploads/default/original/2X/8/87ea39da873401856bbf8b7fdc46b8fc26ac9e54.png)

---

<div class="post-metadata">

### Author: ![AlexL](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/a/f05b48/32.png) [@AlexL](https://discourse.paraview.org/u/AlexL)
#### Post date: [March 28, 2023, 12:22pm UTC](https://discourse.paraview.org/t/how-to-smooth-the-fluid-interface/11737/2 "2023-03-28T12:22:00Z")

</div>

I’m new at Paraview, hoping your reply.THANKS!

---

<div class="post-metadata">

### Author: ![Kenneth\_Moreland](https://discourse.paraview.org/user_avatar/discourse.paraview.org/kenneth_moreland/32/15033_2.png) [@Kenneth\_Moreland](https://discourse.paraview.org/u/Kenneth_Moreland)
#### Post date: [March 28, 2023, 2:24pm UTC](https://discourse.paraview.org/t/how-to-smooth-the-fluid-interface/11737/3 "2023-03-28T14:24:31Z")

</div>

There is not a straightforward way to smooth the mesh boundary (AFAIK), but you might be able to create a smoother mesh by using something other than `Threshold`.

Does your simulation output volume fractions for each material/group? If so, you can use the `Cell Data To Point Data` filter to average the data to the points and then use `Contour` (or `Clip` with a `Clip Type` of `Scalars`) to find the interface. The act of averaging cell data to point data will have a smoothing effect.

If you don’t have volume fractions, you can do the same thing with your `DominantGroup` field _as long as you only have 2 groups_. If you have more than 2 groups, the `Cell Data To Point Data` is going to give invalid values. If that is the case, you can use the `Calculator` filter to make a field that is either 0 or 1 depending on whether the `DominantGroup` is a particular value. For example, to create this field for group id 2, use the calculator expression `if(DominantGroup = 2, 1, 0)`.

---

<div class="post-metadata">

### Author: ![AlexL](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/a/f05b48/32.png) [@AlexL](https://discourse.paraview.org/u/AlexL)
#### Post date: [March 28, 2023, 2:28pm UTC](https://discourse.paraview.org/t/how-to-smooth-the-fluid-interface/11737/4 "2023-03-28T14:28:32Z")

</div>

Thank you! I’ll try the method you mentioned.

---

<div class="post-metadata">

### Author: ![AlexL](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/a/f05b48/32.png) [@AlexL](https://discourse.paraview.org/u/AlexL)
#### Post date: [March 28, 2023, 2:53pm UTC](https://discourse.paraview.org/t/how-to-smooth-the-fluid-interface/11737/5 "2023-03-28T14:53:07Z")

</div>

I tried the first method you mentioned.It did work, but didn’t perform well enough. How can I further make the interface smoother? Should Smooth Filter be used?  
My goal is not to display the inside of the bubble, but only to display water while making the water-  
gas interface smoother.

 ![屏幕截图 2023-03-28 223846](https://discourse.paraview.org/uploads/default/original/2X/f/f506b230e7591c9060fc0e7c720af8d8ad98cf97.png)  
 ![屏幕截图 2023-03-28 225247](https://discourse.paraview.org/uploads/default/original/2X/0/0b7c912f6d5da6e58980eb38a656b2ff1303566b.png)
