CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Number of particles in a cellZone

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 13, 2016, 20:35
Thumbs up Number of particles in a cellZone
  #1
Senior Member
 
Mojtaba.a's Avatar
 
Mojtaba Amiraslanpour
Join Date: Jun 2011
Location: Zanjan, Iran
Posts: 306
Rep Power: 12
Mojtaba.a is on a distinguished road
Send a message via Skype™ to Mojtaba.a
Hi all,

I am dealing with a problem in which I want to count number of current particles inside a cellZone. Adding particles to the domain, terminal shows the number of current particles in the whole region. However I want to know this on a particular cellZone that I may have defined before.

Any suggestions?

Thanks in advance.
__________________
Learn OpenFOAM in Persian
SFO (StarCCM+ FLUENT OpenFOAM) Project Team Member
Complex Heat & Flow Simulation Research Group
If you can't explain it simply, you don't understand it well enough. "Richard Feynman"
Mojtaba.a is offline   Reply With Quote

Old   February 9, 2017, 06:54
Default
  #2
Senior Member
 
vidyadhar
Join Date: Jul 2016
Posts: 137
Rep Power: 6
vidyadhar is on a distinguished road
Hello Mojtaba,

I am using lagrangian solver to inject particles into fluid.

I am trying to create cellZoneInjection. But, I am getting some errors in the creation of injection model.

If you are also working on the similar problem, may I request you to help me in solving this.

Thanks in advance.

Regards,
Vidyadhar
vidyadhar is offline   Reply With Quote

Old   February 9, 2017, 08:46
Default
  #3
Senior Member
 
Mojtaba.a's Avatar
 
Mojtaba Amiraslanpour
Join Date: Jun 2011
Location: Zanjan, Iran
Posts: 306
Rep Power: 12
Mojtaba.a is on a distinguished road
Send a message via Skype™ to Mojtaba.a
Quote:
Originally Posted by vidyadhar View Post
Hello Mojtaba,

I am using lagrangian solver to inject particles into fluid.

I am trying to create cellZoneInjection. But, I am getting some errors in the creation of injection model.

If you are also working on the similar problem, may I request you to help me in solving this.

Thanks in advance.

Regards,
Vidyadhar
Hello Vidyadhar,

How can I help you? What is the error?
__________________
Learn OpenFOAM in Persian
SFO (StarCCM+ FLUENT OpenFOAM) Project Team Member
Complex Heat & Flow Simulation Research Group
If you can't explain it simply, you don't understand it well enough. "Richard Feynman"
Mojtaba.a is offline   Reply With Quote

Old   February 9, 2017, 22:36
Default
  #4
Senior Member
 
vidyadhar
Join Date: Jul 2016
Posts: 137
Rep Power: 6
vidyadhar is on a distinguished road
Thank you for the reply Mojtaba.

I am using vofLPTSolver of Caelus(caelus is similar to openFoam).
The error is highlighted in red:

Part-Output of the log file
Constructing particle injection models
Creating injector: model3
Selecting injection model cellZoneInjection
Constructing 3-D injection
Selecting distribution model fixedValue
cell zone size = 3610
cell zone volume = 6.041191959e-09
--> CAELUS Warning :
From function CML::CellZoneInjection<CloudType>::updateMesh()
in file lagrangian/intermediate/lnInclude/CellZoneInjection.hpp at line 397
Number of particles to be added to cellZone particle_INLET1 is zero


The injection model in my particle Cloud properties file is like below:

model3
{
type cellZoneInjection;
cellZone particle_INLET1;
SOI 0.0112; // Start Of Injection
flowRateProfile constant 1; // Flow rate profile relative to SOI

massTotal 3.4746e-08; // Total mass injected over injection duration
parcelBasisType mass; // How are the number of particles calculated
duration 1.2; // Duration of injection. NOTE: set to 1 for steady state
U0 (0 0 0.04175); // Initial parcel velocity

numberDensity 500; //Number density of particles in cell set (effective)
nParticles 500; //I am trying these options to check if particles are getting injected or not
nparcels 500;
//I am trying these options to check if particles are getting injected or not


sizeDistribution
{
type fixedValue;
fixedValueDistribution
{
value 0.48e-03;
}
}
}

I have used toposetDict to create the cellZone:
actions
(

{
name particle_INLET1cellSet;
type cellSet;
action new;
source boxToCell;
sourceInfo
{
box (-0.0036 0.0012 -0.0125)(-0.0012 0.0036 -0.0115);
}
}

{
name particle_INLET1;
type cellZoneSet;
action new;
source setToCellZone;
sourceInfo
{
set particle_INLET1cellSet;
}
}


Probably, I am missing some keyword(for adding no.of particles to the cellZone
) in the injection model. I need help there.


Regards,
vidyadhar
vidyadhar is offline   Reply With Quote

Old   February 9, 2017, 22:38
Default
  #5
Senior Member
 
vidyadhar
Join Date: Jul 2016
Posts: 137
Rep Power: 6
vidyadhar is on a distinguished road
Hello Mojtaba,

To add to the previous reply:

Simulation is not getting stopped. Only problem is that particles are not getting added.

Regards,
vidyadhar
vidyadhar is offline   Reply With Quote

Old   July 24, 2018, 11:52
Default cellZoneinjection problem
  #6
New Member
 
pouneh hoshyar
Join Date: Dec 2017
Posts: 1
Rep Power: 0
Hoshyar is on a distinguished road
Quote:
Originally Posted by vidyadhar View Post
Hello Mojtaba,

To add to the previous reply:

Simulation is not getting stopped. Only problem is that particles are not getting added.

Regards,
vidyadhar
Hello vidyadhar
I am using lagrangian solver to inject particles into fluid. I am trying to create cellZoneInjection (cellZone made by topoSetDict) for InjectModel in kinematicCloudProperties.

If you were also working on the similar problem, may I request you to help me in solving this. Simulation is running but the problem is that the particles are not adding to the model.


injectionModels // Setup of the particle injection
{
model1
{
type cellZoneInjection;
cellZone particle_Inlet;
duration 1; // Total duration of particle injection
massTotal 0.018; //kg
parcelBasisType mass;
flowRateProfile constant 1;
numberDensity 500; //Number density of particles in cell set (effective)
nParticle 1; // Number of particles per parcel
SOI 0.2;//2; // Start-of-injection time (SOI)
U0 (0.05 0 0); // Initial parcel/particle velocity (U 0 )
sizeDistribution //Size distribution model (normal size distribution, ...)
{
type fixedValue;
fixedValueDistribution
{
value 0.0007;
}
}
}
}


Thanks

Regards,
pouneh
Hoshyar is offline   Reply With Quote

Old   August 28, 2018, 02:33
Default
  #7
Member
 
Mahdi
Join Date: Jul 2012
Posts: 52
Rep Power: 10
Mahdi2010 is on a distinguished road
Did you find the solution for the number of particles inside a user-defined cellzone?

Quote:
Originally Posted by Mojtaba.a View Post
Hi all,

I am dealing with a problem in which I want to count number of current particles inside a cellZone. Adding particles to the domain, terminal shows the number of current particles in the whole region. However I want to know this on a particular cellZone that I may have defined before.

Any suggestions?

Thanks in advance.
Mahdi2010 is offline   Reply With Quote

Reply

Tags
cellzone, count, kinematic cloud, number, particle

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Decomposing meshes Tobi OpenFOAM Pre-Processing 19 January 22, 2021 05:13
[ImmersedBoundary] Immersed Boundary Method in OpenFOAM-3.1-ext miladrakhsha OpenFOAM Community Contributions 101 June 2, 2020 13:28
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 18:57
[OpenFOAM.org] OF2.3.1 + OS13.2 - Trying to use the dummy Pstream library aylalisa OpenFOAM Installation 23 June 15, 2015 14:49


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