# How to show particles inside fluid

**URL:** https://discourse.paraview.org/t/how-to-show-particles-inside-fluid/12136
**Category:** ParaView Support
**Created:** [May 23, 2023, 4:23am UTC](https://discourse.paraview.org/t/how-to-show-particles-inside-fluid/12136 "2023-05-23T04:23:58Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![BilalFareed123.3](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/b3f665/32.png) [@BilalFareed123.3](https://discourse.paraview.org/u/BilalFareed123.3)
#### Post date: [May 23, 2023, 4:23am UTC](https://discourse.paraview.org/t/how-to-show-particles-inside-fluid/12136/1 "2023-05-23T04:23:58Z")

</div>

Hi,  
I am working on paraview, i want to show my particles in the fluid box, i have two files one is fluid and other is particles after clicking the fluid file the fluid show but when i open the particles file the particles scattered outside the fluid box not adjust inside in the fluid i am sharing the image for clear understanding, please guide me about this as early as possible.Thanks

 ![Fluid](https://discourse.paraview.org/uploads/default/original/2X/8/8093d60d4f09deb662e9d5c1b51db22087cea696.png)  
 ![Particles](https://discourse.paraview.org/uploads/default/original/2X/c/cce9c6d2203bc910c8259c03ec9b2f95bfb79cea.png)

---

<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 23, 2023, 7:24am UTC](https://discourse.paraview.org/t/how-to-show-particles-inside-fluid/12136/2 "2023-05-23T07:24:37Z")

</div>

Please share your files

---

<div class="post-metadata">

### Author: ![BilalFareed123.3](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/b3f665/32.png) [@BilalFareed123.3](https://discourse.paraview.org/u/BilalFareed123.3)
#### Post date: [May 23, 2023, 7:30am UTC](https://discourse.paraview.org/t/how-to-show-particles-inside-fluid/12136/3 "2023-05-23T07:30:46Z")

</div>

Thanks Mathieu,  
I have attached my both particles and fluid files,please see and guide me how to show particles inside fluid,waiting for your quick response.Thanks

[data\_fluid.xdmf](https://discourse.paraview.org/uploads/short-url/8djTRGgH0aKELDs5JPODm5Nr3jE.xdmf) (1.7 KB)  
[data\_particle.xdmf](https://discourse.paraview.org/uploads/short-url/zozkLoHHarXVQmk5MXcZn8TTPzf.xdmf) (2.7 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: [May 23, 2023, 7:36am UTC](https://discourse.paraview.org/t/how-to-show-particles-inside-fluid/12136/4 "2023-05-23T07:36:56Z")

</div>

missing h5 files

---

<div class="post-metadata">

### Author: ![BilalFareed123.3](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/b3f665/32.png) [@BilalFareed123.3](https://discourse.paraview.org/u/BilalFareed123.3)
#### Post date: [May 23, 2023, 8:28am UTC](https://discourse.paraview.org/t/how-to-show-particles-inside-fluid/12136/5 "2023-05-23T08:28:05Z")

</div>

Which file has no h5 files,could you please explain it more.Thanks

---

<div class="post-metadata">

### Author: ![BilalFareed123.3](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/b3f665/32.png) [@BilalFareed123.3](https://discourse.paraview.org/u/BilalFareed123.3)
#### Post date: [May 23, 2023, 8:31am UTC](https://discourse.paraview.org/t/how-to-show-particles-inside-fluid/12136/6 "2023-05-23T08:31:34Z")

</div>

with these two files also have h5 file, i have attached h5 file.you are asking about it?

[data.h5](https://discourse.paraview.org/uploads/short-url/t4VM1ezAr3zbbxeZPmJV2KRoJ7z.h5) (442.1 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: [May 23, 2023, 8:43am UTC](https://discourse.paraview.org/t/how-to-show-particles-inside-fluid/12136/7 "2023-05-23T08:43:15Z")

</div>

I’m able to open the particles, ParaView shows them where they are. You probably have an issue in your file generation.

---

<div class="post-metadata">

### Author: ![BilalFareed123.3](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/b3f665/32.png) [@BilalFareed123.3](https://discourse.paraview.org/u/BilalFareed123.3)
#### Post date: [May 23, 2023, 8:51am UTC](https://discourse.paraview.org/t/how-to-show-particles-inside-fluid/12136/8 "2023-05-23T08:51:48Z")

</div>

yes the particle file is also open here but it is not adjusting on the fluid box,could you send me the image how you adjust particles over fluid.Thanks

---

<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 23, 2023, 8:53am UTC](https://discourse.paraview.org/t/how-to-show-particles-inside-fluid/12136/9 "2023-05-23T08:53:00Z")

</div>

Why would it adjust to the box ?

---

<div class="post-metadata">

### Author: ![BilalFareed123.3](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/b3f665/32.png) [@BilalFareed123.3](https://discourse.paraview.org/u/BilalFareed123.3)
#### Post date: [May 23, 2023, 8:54am UTC](https://discourse.paraview.org/t/how-to-show-particles-inside-fluid/12136/10 "2023-05-23T08:54:33Z")

</div>

Actually i want to show both particles and fluid like a sedimentation how i do that?

---

<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 23, 2023, 8:56am UTC](https://discourse.paraview.org/t/how-to-show-particles-inside-fluid/12136/11 "2023-05-23T08:56:39Z")

</div>

ParaView is a toolbox, you have to use the tools to be able to do what you want.

What does “Like a sedimentation” means to you ?

---

<div class="post-metadata">

### Author: ![BilalFareed123.3](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/b3f665/32.png) [@BilalFareed123.3](https://discourse.paraview.org/u/BilalFareed123.3)
#### Post date: [May 23, 2023, 9:08am UTC](https://discourse.paraview.org/t/how-to-show-particles-inside-fluid/12136/12 "2023-05-23T09:08:00Z")

</div>

ok i understand,now i want to show data of these two filesn in one box,how to do that?

---

<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 23, 2023, 9:08am UTC](https://discourse.paraview.org/t/how-to-show-particles-inside-fluid/12136/13 "2023-05-23T09:08:53Z")

</div>

Well, you should either generate the data in the right location or transform it in ParaView to put it in the right location.

how do you generate these particles ?

---

<div class="post-metadata">

### Author: ![BilalFareed123.3](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/b3f665/32.png) [@BilalFareed123.3](https://discourse.paraview.org/u/BilalFareed123.3)
#### Post date: [May 23, 2023, 9:12am UTC](https://discourse.paraview.org/t/how-to-show-particles-inside-fluid/12136/14 "2023-05-23T09:12:05Z")

</div>

i am using the softeware to produce files like data.conf and data.h5 then i use python code to convert this data into fluid and particles files like usinh this command hfkapselxdmf.py data.conf

---

<div class="post-metadata">

### Author: ![BilalFareed123.3](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/b3f665/32.png) [@BilalFareed123.3](https://discourse.paraview.org/u/BilalFareed123.3)
#### Post date: [May 23, 2023, 9:13am UTC](https://discourse.paraview.org/t/how-to-show-particles-inside-fluid/12136/15 "2023-05-23T09:13:05Z")

</div>

How i can transfer it in paraview to put it in the right location?

---

<div class="post-metadata">

### Author: ![BilalFareed123.3](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/b3f665/32.png) [@BilalFareed123.3](https://discourse.paraview.org/u/BilalFareed123.3)
#### Post date: [May 24, 2023, 4:36am UTC](https://discourse.paraview.org/t/how-to-show-particles-inside-fluid/12136/16 "2023-05-24T04:36:29Z")

</div>

Thanks Mathieu i got the solution.
