Numerical information 'flowing particles'

A discussion forum for HYDRUS users. HYDRUS is a software package for simulating water, heat and solute movement in one-, two- and three-dimensional variably saturated media. Happy Posting!
Post Reply
PieterMallants
Posts: 2
Joined: Mon May 21, 2018 3:12 pm
Location: Belgium

Numerical information 'flowing particles'

Post by PieterMallants » Mon May 21, 2018 3:37 pm

Hi

I am trying to simulate the 2D movement of solutes using the 'flowing particles' option. There are NO issues with the visualization and graphical representation after the simulation (from the 'draw particle positions' and 'draw particle trajectores'), however, I'm wondering if it is possible to get numerical information in some way on the flowing particles, e.g. the xz coordinates per time step or the time it took to cover a certain distance. Thanks in advance!

Pieter

Jirka
Posts: 6075
Joined: Sat Mar 16, 2002 3:47 pm
Location: USA
Location: Riverside, CA

Re: Numerical information 'flowing particles'

Post by Jirka » Mon May 21, 2018 5:25 pm

Pieter,

You can use the command "Results->Convert Output to ASCII" and select "Particle trajectories (Particle.out). The binary file Particle.out will be converted to an ASCII (text) file Particle.txt, which will have information on each time step and the x- and z-coordinates of particle locations. I will find all information that you request in this file. J.

Here is an example for two particles:
Time Particle(1) Particle(2)
0 130.633 23.3164 264.638 25.5967
0.5 134.31 21.9532 264.331 25.3349
1 138.924 20.526 264.026 25.0913
2 147.515 18.3917 263.54 24.6933
3 147.515 18.3917 263.153 24.3745
5 147.515 18.3917 262.58 23.8805
10 147.515 18.3917 261.818 23.1801

PieterMallants
Posts: 2
Joined: Mon May 21, 2018 3:12 pm
Location: Belgium

Re: Numerical information 'flowing particles'

Post by PieterMallants » Mon May 21, 2018 7:58 pm

Thank you very much for the swift reply!

AlessandraBonazzi
Posts: 3
Joined: Fri Jun 07, 2024 8:44 pm
Location: USA

Re: Numerical information 'flowing particles'

Post by AlessandraBonazzi » Fri Jun 07, 2024 9:35 pm

Hello,
I am using Hydrus 2D to simulate water infiltrating in the soil from a drywell. I have initially located 49 particles along the edge of the boundary that represents my drywell. Following the explanation in this discussion I was able to get the file Particle.txt. However, the file only reports the location in time of the last particle I generated, flowing particle 49. For each time step the position of said particle is repeated 49 times, like all the particles are occupying the same position at the same time. However from the visual display of the result of my simulation, I can clearly see that each particle is moving along its own trajectory. How can I get their position in the file Particle.txt?
Thank you for your help!
Alessandra

Jirka
Posts: 6075
Joined: Sat Mar 16, 2002 3:47 pm
Location: USA
Location: Riverside, CA

Re: Numerical information 'flowing particles'

Post by Jirka » Fri Jun 07, 2024 11:47 pm

Without seeing the project and knowing what version of HYDRUS you use, I cannot really comment on it. J.

AlessandraBonazzi
Posts: 3
Joined: Fri Jun 07, 2024 8:44 pm
Location: USA

Re: Numerical information 'flowing particles'

Post by AlessandraBonazzi » Wed Jun 12, 2024 9:04 pm

I am using Hydrus 5.02, and my domain geometry is 2D axisymmetrical vertical. I tried attaching the project file to this message, but I received an error message ("Invalid file extension", my project file extension is .hyd5). Thank you for the help!

Mirek
Posts: 504
Joined: Sat Mar 16, 2002 4:00 pm
Location: Czech Republic
Contact:

Re: Numerical information 'flowing particles'

Post by Mirek » Thu Jun 13, 2024 5:08 am

Try to ZIP your project (*.zip file extension). If the file size is too large, you can send your project to support@pc-progress.com

Jirka
Posts: 6075
Joined: Sat Mar 16, 2002 3:47 pm
Location: USA
Location: Riverside, CA

Re: Numerical information 'flowing particles'

Post by Jirka » Thu Jun 13, 2024 11:28 am

You can display the results of particle simulations using the menu commands: Results->Flowing Particles->Draw Particle Positions and Results->Flowing Particles->Draw Particle Trajectories. This graph is draws based on data from the binary Particle.out file. J.

AlessandraBonazzi
Posts: 3
Joined: Fri Jun 07, 2024 8:44 pm
Location: USA

Re: Numerical information 'flowing particles'

Post by AlessandraBonazzi » Fri Jun 14, 2024 9:13 pm

Thank you for your replies! I can display the particles trajectories and their position in time, that works. My issue arises when I try to look at the particle.out (or rather, its ascii conversion particle.txt) file, which only displays the position of one particle in time, repeated for the number of particles. The zip file is still too large so I'll try sending an email to the address provided, thank you.

Mirek
Posts: 504
Joined: Sat Mar 16, 2002 4:00 pm
Location: Czech Republic
Contact:

Re: Numerical information 'flowing particles'

Post by Mirek » Tue Jun 18, 2024 11:11 am

I looked at your project and it seems that there is an error in the conversion of floating particles to an ASCII file. The data in the binary file Particle.out is correct, but the converted data in the text file PARTICLE.txt is incorrect. We will fix this error in the next HYDRUS update (HYDRUS_5.04.0170_x64.exe)

Post Reply