Number of particles in a cellZone
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. |
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 |
Quote:
How can I help you? What is the error? |
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 |
Hello Mojtaba,
To add to the previous reply: Simulation is not getting stopped. Only problem is that particles are not getting added. Regards, vidyadhar |
cellZoneinjection problem
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 |
Did you find the solution for the number of particles inside a user-defined cellzone?
Quote:
|
All times are GMT -4. The time now is 04:13. |