CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   STAR-CCM+ (https://www.cfd-online.com/Forums/star-ccm/)
-   -   Lagrangian particle tracking: tracking the residence times at low velocities (https://www.cfd-online.com/Forums/star-ccm/230069-lagrangian-particle-tracking-tracking-residence-times-low-velocities.html)

LorenzoVonMT September 6, 2020 22:01

Lagrangian particle tracking: tracking the residence times at low velocities
 
Hello, my simulation has two inlets and multiple outlets and my there is a region in my domain where the particles slow down and speed up upon leaving that region, so I want to characterize the residence times of the particles at low velocities, in other words, I want to know how long my particles spend at those low velocities. Is there a good way to quantify this?

ping September 6, 2020 22:24

there is a field function called particle residence time which you should be able to show as a scalar on your track streamlines

LorenzoVonMT September 6, 2020 23:22

Quote:

Originally Posted by ping (Post 782178)
there is a field function called particle residence time which you should be able to show as a scalar on your track streamlines

I have already calculated the particle residence time. What I want to do is find out how much time the particles spend at a range of low velocities. For example, suppose the maximum residence time is 3 seconds and the particles spend 2 seconds at a low velocity and the other 1 second at a high velocity. How do I determine that value of 2 seconds?

ping September 7, 2020 00:31

i would hope this information can be extracted with an internal table where you use the particle track as the part and add the required field scalars as the data, like residence time, vel.mag etc.

then you might be able to internally histogram that data or certainly export the table as a csv file and do some analysis in excel.

LorenzoVonMT September 7, 2020 01:06

Quote:

Originally Posted by ping (Post 782181)
i would hope this information can be extracted with an internal table where you use the particle track as the part and add the required field scalars as the data, like residence time, vel.mag etc.

then you might be able to internally histogram that data or certainly export the table as a csv file and do some analysis in excel.

This is perfect, I didn't know about internal tables. Thank you.

cwl September 7, 2020 07:03

Might be an option to set a separate Region (of interest) connected though Interfaces to other (upstream, downstream) Regions and use Boundary Sampling (recording Residence Time on Interfaces) from Lagrangian model, - and then you could report average Residence time on "inlet" (upstream) and "outlet" (downstream) Interfaces and difference between them.

Also some sort of Residence Time over velocity bands can be used - if you filter obtained (Boundary Sampling) data using velocity-based Thresholds .. or something like that.

LorenzoVonMT September 7, 2020 12:01

Quote:

Originally Posted by cwl (Post 782219)
Might be an option to set a separate Region (of interest) connected though Interfaces to other (upstream, downstream) Regions and use Boundary Sampling (recording Residence Time on Interfaces) from Lagrangian model, - and then you could report average Residence time on "inlet" (upstream) and "outlet" (downstream) Interfaces and difference between them.

Also some sort of Residence Time over velocity bands can be used - if you filter obtained (Boundary Sampling) data using velocity-based Thresholds .. or something like that.

I should have been clearer in my original post, my domain only has 1 region so no interfaces were created.

cwl September 7, 2020 13:20

You can always split Parts.

LorenzoVonMT September 7, 2020 16:38

Quote:

Originally Posted by cwl (Post 782257)
You can always split Parts.

I see I will look into it. Thank you.

LorenzoVonMT September 8, 2020 00:26

2 Attachment(s)
So I tried the internal table option first and the output of the table produced a [20,000x5] matrix as shown in the image below. My question is, does each row represent 1 of the particles?. The table was set to save every 10 time steps so I got a total of 120 tables. My simulation has a 0.75s physical time and uses 50 inner iterations.

Nabuchadresar March 3, 2021 14:38

Quote:

Originally Posted by LorenzoVonMT (Post 782281)
So I tried the internal table option first and the output of the table produced a [20,000x5] matrix as shown in the image below. My question is, does each row represent 1 of the particles?. The table was set to save every 10 time steps so I got a total of 120 tables. My simulation has a 0.75s physical time and uses 50 inner iterations.

How can I export a table like this?
I mean, I will simulate a DEM simulation, how I'll export a table with the final positions of all particles?

LorenzoVonMT March 3, 2021 16:39

Quote:

Originally Posted by Nabuchadresar (Post 797818)
How can I export a table like this?
I mean, I will simulate a DEM simulation, how I'll export a table with the final positions of all particles?

Go to Tools>Tables>right click New Table>XYZ Internal table

Nabuchadresar March 4, 2021 07:37

Quote:

Originally Posted by LorenzoVonMT (Post 797831)
Go to Tools>Tables>right click New Table>XYZ Internal table

Very thanks

Nabuchadresar March 15, 2021 13:50

Quote:

Originally Posted by LorenzoVonMT (Post 797831)
Go to Tools>Tables>right click New Table>XYZ Internal table

Hello again

Do you know if I can transform the result of a dem simulation into a mesh for a CFD simulation?


All times are GMT -4. The time now is 15:37.