CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   particle number concentration in OpenFOAM (https://www.cfd-online.com/Forums/openfoam-programming-development/80493-particle-number-concentration-openfoam.html)

gmag July 8, 2016 18:13

Quote:

Originally Posted by wentao (Post 277159)

In the main code, I assigned kinematicCloud.rhoEff() to pncon as follows.
--------------------------------------------------------------------------------------------------
pncon = kinematicCloud.rhoEff();

runTime.write();
---------------------------------------------------------------------------------------------------
It is compiled successfully.

I am interested in applying Wentao's solution to my problem, but I have a question:
Is the best place to insert this code in the main part of the application code? Or is there a more general solution?

Thanks for your help!

Ela89 October 12, 2016 16:38

Hi everyone,

I'm also trying to find the number of particles that impact a surface (particles that rebound). Does anyone know of a way to do this?

Thanks!

chpjz0391 October 12, 2016 21:17

Quote:

Originally Posted by Ela89 (Post 621251)
Hi everyone,

I'm also trying to find the number of particles that impact a surface (particles that rebound). Does anyone know of a way to do this?

Thanks!

Hi Ela,
You can achieve this goal by paraview. In the paraview, you can select all the particles which on the surface of your model.

Kind regards.
Ping

cfdopenfoam April 12, 2017 18:39

Quote:

Originally Posted by chpjz0391 (Post 621272)
Hi Ela,
You can achieve this goal by paraview. In the paraview, you can select all the particles which on the surface of your model.

Kind regards.
Ping

Hi Ping,

Thank you for your hints here. Could you be a littile more specifically how this can be done? I am working with the solidParticle class.

cfdopenfoam April 12, 2017 19:30

Quote:

Originally Posted by Ela89 (Post 621251)
Hi everyone,

I'm also trying to find the number of particles that impact a surface (particles that rebound). Does anyone know of a way to do this?

Thanks!

Hi Alberta,

Did you solve your problem? Could you pls post your solution here? I am facing the same situation.

Thanks.

nilvxingren October 23, 2019 22:31

Quote:

Originally Posted by wentao (Post 277159)
Hallo, Marta

With your help, everything seems clear. But I still want to confirm whether what I have done is right or not!

Take that piece of code you referred to as an example. Function rhoEff() is declared in KinematicCloud.H but defined in KinematicCloudl.H. At the same time KinematicCloud.H is inserted into basicKinematicCloud.H which is applied in my main code as follows.
-----------------------------------------------------------------------------------------------------------------------------------------------------
#include "fvCFD.H"
#include "basicPsiThermo.H"
#include "turbulenceModel.H"
#include "basicKinematicCloud.H"
-----------------------------------------------------------------------------------------------------------------------------------------------------
Therefore, rhoEff() can be regarded as a member function in basicKinematicCloud.H. And then I create an object for basicKinematicCloud class, named kinematicCloud.

In the creatField.H, I also build a volScalarField variable named pncon.
---------------------------------------------------------------------------------------------
Info << "Reading field pncon\n" << endl;
volScalarField pncon
(
IOobject
(
"pncon",
runTime.timeName(),
mesh,
IOobject::READ_IF_PRESENT,
IOobject::AUTO_WRITE
),
mesh
);
----------------------------------------------------------------------------------------

In the main code, I assigned kinematicCloud.rhoEff() to pncon as follows.
--------------------------------------------------------------------------------------------------
pncon = kinematicCloud.rhoEff();

runTime.write();
---------------------------------------------------------------------------------------------------
It is compiled successfully.

Hi wentao, I try this this method ,but get an error "cannot find file file: /mnt/hgfs/1ShareFolder/coalcutterLES/0/pncon at line 0." when I run my case. Is it necessary to create an initial pncon file under the 0 file? thankyou

FerdiFuchs June 17, 2020 09:15

you could modify the voidfraction from cloudfunctionsobject. thats what i did and it works pretty good. Thats how i calculate particles/m³ per cell.

regards,
FerdiFuchs

RAJ_GAURAV March 20, 2022 23:43

reactingparcelfoam droplet heat interaction with the walls
 
Quote:

Originally Posted by Alaska1964 (Post 548023)
Dear Mayank,
Did you find answer for your problem? I have the same problem.
I am simulating droplets in a L shape channel. I am using the following conditions:
patchInteractionModel localInteraction;

localInteractionCoeffs
{
patches
(
WALL
{
type rebound;
e 1;
mu 0.9;
}
);
}

In my log file it is reported that:

Parcel fate (number, mass) : patch WALL
- escape = 0, 0
- stick = 0, 0


I want to count the number of droplets deposited on the wall. Ho can Count it ? Shall I add a specific command in kinematicCloudProperties to show the number of droplets deposited?
Cheers,


hii everyone

i am using reactingparcelfoam and injecting mist with path injection but it is not interating with the plate which i want to cool down. can anyone suggest some methods to enble the heat transfer of droplets with the walls.


All times are GMT -4. The time now is 09:39.