CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Alternative way of particle tracking (https://www.cfd-online.com/Forums/openfoam-solving/160035-alternative-way-particle-tracking.html)

Gerrit September 30, 2015 07:17

Alternative way of particle tracking
 
Hi,

I want to track particles in an incompressible flow (big system) and try to get an overview about the smartest way of doing that for my case. I know that there are solvers to track particles, but they need time and computer power.

My idea is the following:
- The Stokes number is very small in my case (0.001) which means in my opinion, the particles follow the flow close to perfect.
- I am not interested in the forces on a particle or something like that, only on it's path

Following that logic, it should be a fair assumption to use the stream tracker (assuming the particles follow the stream lines), put e.g. 1000 streamlines at the inlet and get x,y and z values of each stream line.

Of course I tried that already:
After inserting a stream-tracker, one clicks on the stream-tracker and goes to File --> Save Data, as CSV for example...

What do you thing about this idea?

GerhardHolzinger October 2, 2015 03:40

Why don't you track 1000 particles which perfectly follow the fluid?

There are two implementations of Lagrangian particles in OpenFOAM. The more the basic implementation is the solidParticle and the advanced one is in the intermediate library (based on the parcel class).

You can create a clone of solidParticle by deriving a class from the class particle (which is the base class of both solidParticle and all the parcel-based classes) and tell your new particle class to follow the fluid. You do this by prescribing the particle's velocity in the move() method.

Study the solidParticle class and throw out everything you don't need, e.g. calculation of drag. As long as the number of particles you want to track is low, the additional computational cost will be low.

Gerrit October 2, 2015 04:10

Thank you for your answer!

I am doing something similar in small case, but in my case I need 1000000 particles in one m³.... so it might make life a lot easier if, I can directly use streamlines - if that is possible...

GerhardHolzinger October 2, 2015 04:25

Ok, I did read from your original post that you need to use such a large number of particles. I have also noticed that the larger the number of particles is, the faster computation times explode.

Gerrit October 5, 2015 03:05

Hi,

for everyone who is interested:
The columns of x,y and z direction are called "Points:0", "Points:1" and "Points:2".

Best
Gerrit


All times are GMT -4. The time now is 03:42.