CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ParaView (https://www.cfd-online.com/Forums/paraview/)
-   -   [OpenFOAM] How to calculate the particles number by paraview? (https://www.cfd-online.com/Forums/paraview/171501-how-calculate-particles-number-paraview.html)

chpjz0391 May 10, 2016 05:25

How to calculate the particles number by paraview?
 
Hi all,
Recently, I used simplereactingparcleFoam to simulate the particle problem. The simulation run well, however, I have a small question.

How can I calculate the particles number in a specified area of the mesh after simulation? In my simulation, I have two different sized particles, can I calculate the number for each size particles? Am I able to use the preview to achieve these goals?

Thanks.

Dipsomaniac May 17, 2016 04:22

Hi Ping

In paraview, if you select a region of interest, then use use the histogram function and define the bins manually for your particle sizes of interest, you should be able to count them, and extract the data.

Regards,
brian

chpjz0391 May 17, 2016 23:21

Quote:

Originally Posted by Dipsomaniac (Post 600328)
Hi Ping

In paraview, if you select a region of interest, then use use the histogram function and define the bins manually for your particle sizes of interest, you should be able to count them, and extract the data.

Regards,
brian

Hi, Brian
I have already found that function. Anyway, thank you very much.

Kind Regards,
PING

Ela89 January 5, 2017 11:42

Hi Brian,

I tried the method you said for counting particles. However, I'm only able to see the number of particles in my region of interest in a certain time step. Is there a way to count the total number of particles in a region throughout my whole simulation? (basically, I'm trying to find out the total number of particles that impact a particular surface).

Regards,
Ela

cfdopenfoam April 7, 2017 20:19

Quote:

Originally Posted by Ela89 (Post 632162)
Hi Brian,

I tried the method you said for counting particles. However, I'm only able to see the number of particles in my region of interest in a certain time step. Is there a way to count the total number of particles in a region throughout my whole simulation? (basically, I'm trying to find out the total number of particles that impact a particular surface).

Regards,
Ela

Hi Alberta,

Did you find solutions to your problem? I am facing exactly the same situation and I am in desperate need of your hints.

Thank you in advance.

Best,
Karekle

cfdopenfoam April 7, 2017 20:22

Quote:

Originally Posted by chpjz0391 (Post 600484)
Hi, Brian
I have already found that function. Anyway, thank you very much.

Kind Regards,
PING

Hi Ping,

I would like to know which function you used. Could you share your method in a more specific way here so that it can help others?

Thanks.

Best,
Karelke

Ela89 April 10, 2017 11:32

Hi Karekle,

For counting the total number of particles that impact a particular surface, in "kinematicCloudProperties" I changed "localInteractionCoeffs" from rebound to stick for that particular surface. Then in the log file, I could see the number and mass of the particles that impact (i.e. stick to) that particular surface at different time steps. You should check to see if changing from rebound to stick doesn't impact your simulation results. In my case it didn't change the results I was interested in.

Ela

jairoandres June 7, 2020 16:37

Sticking the particles might change the overall statistics. Better use patchPostProcessing in cloudFunctions

patchPostProcessing
{
type patchPostProcessing;
functionObjectLibs ("libcloudFunctionObjects.so");
// Optional new entry
fields (age d nParticle);

maxStoredParcels 2000;
patches
(

wallsNoSlip

);

RAJ_GAURAV June 15, 2022 01:43

Quote:

Originally Posted by chpjz0391 (Post 599429)
Hi all,
Recently, I used simplereactingparcleFoam to simulate the particle problem. The simulation run well, however, I have a small question.

How can I calculate the particles number in a specified area of the mesh after simulation? In my simulation, I have two different sized particles, can I calculate the number for each size particles? Am I able to use the preview to achieve these goals?

Thanks.

Dear Sir, how did you define the bins manually? I am using the same solver in OF.


All times are GMT -4. The time now is 00:35.