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

How to specify number of parcels to be added to cellZone in cellZoneInjection Model

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

Like Tree1Likes
  • 1 Post By vidyadhar

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 13, 2017, 11:37
Default How to specify number of parcels to be added to cellZone in cellZoneInjection Model
  #1
Senior Member
 
vidyadhar
Join Date: Jul 2016
Posts: 138
Rep Power: 9
vidyadhar is on a distinguished road
Hello All,

I am trying for cellZoneInjection to inject particles in my case.

The cellZoneInjection.H file specifies the following:

Class
CML::CellZoneInjection

Description
Injection positions specified by a particle number density within a cell set

- User specifies
- Number density of particles in cell set (effective)
- Total mass to inject
- Initial parcel velocity
- Parcel diameters obtained by PDF model
- All parcels introduced at SOI

Accordingly, I have created injection model (in bubbleCloudProperties File) which looks like below:

injectionModels
{
model1
{

type cellZoneInjection;
SOI 0.0;
massTotal 3.4746e-08;
parcelBasisType mass; //fixed;
nParticle 1;
cellZone particle_INLET1; //particleSupplyCellZone;
numberDensity 20000;
duration 5e-5;
U0 (0 0 0.04175); //(0 0 0);

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


When I execute my solver, I am getting the following warning message:
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


My Simulation is not stopping but, particles are not adding into the domain.
Can anyone tell me how to resolve this issue.


Thanks & Regards,
vidyadhar
vidyadhar is offline   Reply With Quote

Old   June 9, 2017, 20:41
Default
  #2
New Member
 
dj
Join Date: Mar 2015
Posts: 1
Rep Power: 0
CowAndFlow is on a distinguished road
Hello Vidyadhar,

I was facing the same problem when creating a cellZone with topoSet. The cellZone is written to polyMesh/sets/'yourCellZone'. I just copied the CellLabels from that into the file polyMesh/cellZones. Laborious, but worked.

Best
David
CowAndFlow is offline   Reply With Quote

Old   June 11, 2017, 03:19
Default
  #3
Senior Member
 
vidyadhar
Join Date: Jul 2016
Posts: 138
Rep Power: 9
vidyadhar is on a distinguished road
Hello David,

Thank you for your reply.

I got to do in a different way. Thanks to Darrin Stephens for this.



injectionModels
{

model1
{
type cellZoneInjection;
cellZone INLET; // Name of cellZone
SOI 5; // Start Of Injection
//flowRateProfile constant 1; // Flow rate profile relative to SOI
parcelBasisType fixed; // How are the number of particles calculated
nParticle 1;
numberDensity 13e05; // numberDensity multiplied by cellZoneVolume gives the number of particles to be injected
duration 5e-5; //cellZoneInjection through this manner is a one time injection, i.e., all the particles will be injected at once
U0 (0 0 0); //initial velocity of the particles upon injection
massTotal 24e-3; // Total mass injected over injection duration


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


}

Regards,
vidyadhar
CFD-HSNR likes this.
vidyadhar is offline   Reply With Quote

Old   October 26, 2020, 09:19
Default
  #4
Member
 
UOCFD
Join Date: Oct 2020
Posts: 40
Rep Power: 5
uosilos is on a distinguished road
Hi, I am using cellZoneInjection.


Let's suppose I want to introduce 0.005 kg (massTotal) distributed inside a cellZone defined with topoSet.


The number of particles is easy to calculate, since we now total mass and particle volume and density.



The volume of this cellZone is known so I calculate the numberDensity as total number of particles/volume of cellZone.


However, seems that my computer cannot handle so big number of particles, so how can I include more than one particle in one parcel while keeping total mass equal to 0.005kg. totalMass is totally bypassed when parcelBasisType is fixed. Is nParticle the number of particles in a parcel?


Thanks
uosilos is offline   Reply With Quote

Reply

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
[General] Extracting ParaView Data into Python Arrays Jeffzda ParaView 30 November 6, 2023 22:00
Decomposing meshes Tobi OpenFOAM Pre-Processing 22 February 24, 2023 10:23
[Other] Can't Shake Erros: patch type 'patch' not constraint type 'empty' BrendaEM OpenFOAM Meshing & Mesh Conversion 12 April 3, 2022 19:32
decomposePar -allRegions stru OpenFOAM Pre-Processing 2 August 25, 2015 04:58
foam-extend_3.1 decompose and pyfoam warning shipman OpenFOAM 3 July 24, 2014 09:14


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