|
[Sponsors] |
June 13, 2016, 21:35 |
Number of particles in a cellZone
|
#1 |
Senior Member
|
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" |
|
February 9, 2017, 07:54 |
|
#2 |
Senior Member
vidyadhar
Join Date: Jul 2016
Posts: 138
Rep Power: 10 |
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 |
|
February 9, 2017, 09:46 |
|
#3 | |
Senior Member
|
Quote:
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" |
||
February 9, 2017, 23:36 |
|
#4 |
Senior Member
vidyadhar
Join Date: Jul 2016
Posts: 138
Rep Power: 10 |
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 |
|
February 9, 2017, 23:38 |
|
#5 |
Senior Member
vidyadhar
Join Date: Jul 2016
Posts: 138
Rep Power: 10 |
Hello Mojtaba,
To add to the previous reply: Simulation is not getting stopped. Only problem is that particles are not getting added. Regards, vidyadhar |
|
July 24, 2018, 12:52 |
cellZoneinjection problem
|
#6 | |
New Member
pouneh hoshyar
Join Date: Dec 2017
Posts: 1
Rep Power: 0 |
Quote:
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 |
||
August 28, 2018, 03:33 |
|
#7 | |
Member
Mahdi
Join Date: Jul 2012
Posts: 53
Rep Power: 14 |
Did you find the solution for the number of particles inside a user-defined cellzone?
Quote:
|
||
Tags |
cellzone, count, kinematic cloud, number, particle |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[ImmersedBoundary] Immersed Boundary Method in OpenFOAM-3.1-ext | miladrakhsha | OpenFOAM Community Contributions | 106 | July 3, 2023 11:26 |
Decomposing meshes | Tobi | OpenFOAM Pre-Processing | 22 | February 24, 2023 10:23 |
[mesh manipulation] Importing Multiple Meshes | thomasnwalshiii | OpenFOAM Meshing & Mesh Conversion | 18 | December 19, 2015 19:57 |
[OpenFOAM.org] OF2.3.1 + OS13.2 - Trying to use the dummy Pstream library | aylalisa | OpenFOAM Installation | 23 | June 15, 2015 15:49 |