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

particleCount 0/no particles injected: icoUncoupledKinematicParcelFoam

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 28, 2021, 06:04
Default particleCount 0/no particles injected: icoUncoupledKinematicParcelFoam
  #1
New Member
 
anonymous
Join Date: Feb 2021
Posts: 1
Rep Power: 0
particlecount_0 is on a distinguished road
Hi,


I am having a problem with the icoUncoupledKinematicParcelFoam solver. I am using a simple 3d Geometry of a square with a side length of 0.2m. Inside the square is a small obstacle. The mesh has about 160000 points. The left side of the square is my inlet and the right side my outlet. For generating the U-field needed for the icoUncoupledKinematicParcelFoam solver I used the simpleFoam solver. I have used different velocity boundary conditions ranging from 0.02m/s to 0.0002m/s. Up until now everything works fine.


When I am running the icoUncoupledKinematicParcelFoam solver I get now error messages but the particlecount stays 0, even though I should have injected particles. All generated cloud_properties files read:


Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "0.5/uniform/lagrangian/kinematicCloud";
    object      cloudProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

processor0
{
    particleCount   0;
}
console output:
Code:
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0


Reading g
Reading field U

Reading/calculating face flux field phi

Selecting incompressible transport model Newtonian
Selecting turbulence model type laminar
Selecting laminar stress model Stokes
Constructing kinematicCloud kinematicCloud
Constructing particle forces
    none
Constructing cloud functions
    none
Constructing particle injection models
Creating injector: model1
Selecting injection model patchInjection
    Constructing 3-D injection
Selecting distribution model fixedValue
Selecting dispersion model none
Selecting patch interaction model none
Selecting stochastic collision model none
Selecting surface film model none
Selecting U integration scheme Euler
Reading non-inertial frame fields
Courant Number mean: 0.0317746 max: 0.213496

Starting time loop

Time = 0.5

Evolving kinematicCloud
ExecutionTime = 1.43 s  ClockTime = 2 s

Time = 1

Evolving kinematicCloud
ExecutionTime = 1.84 s  ClockTime = 2 s

Time = 1.5

Evolving kinematicCloud
ExecutionTime = 2.23 s  ClockTime = 2 s

Time = 2

Evolving kinematicCloud
ExecutionTime = 2.64 s  ClockTime = 3 s

Time = 2.5

Evolving kinematicCloud
ExecutionTime = 3.05 s  ClockTime = 3 s

Time = 3

Evolving kinematicCloud
ExecutionTime = 3.45 s  ClockTime = 4 s

Time = 3.5

Evolving kinematicCloud
ExecutionTime = 3.86 s  ClockTime = 4 s

Time = 4

Evolving kinematicCloud
ExecutionTime = 4.26 s  ClockTime = 4 s

Time = 4.5

Evolving kinematicCloud
ExecutionTime = 4.67 s  ClockTime = 5 s

Time = 5

Evolving kinematicCloud

Solving 3-D cloud kinematicCloud

Cloud: kinematicCloud injector: model1
    Added 10 new parcels

Cloud: kinematicCloud
    Current number of parcels       = 10
    Current mass in system          = 0.008
    Linear momentum                 = (0 0 0)
   |Linear momentum|                = 0
    Linear kinetic energy           = 0
    model1:
        number of parcels added     = 10
        mass introduced             = 0.008

 ExecutionTime = 5.23 s  ClockTime = 5 s
kinematicCloudProperties:
Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "constant";
    object      kinematicCloudProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

solution
{
    active          true;
    coupled         false;
    transient       no;
    calcFrequency   10;   // calc pro cycle
    cellValueSourceCorrection off;
    maxCo           0.3;
    maxTrackTime 5;

    interpolationSchemes
    {
        rho             cell;
        U               cellPoint;
        mu              cell;
    }

    integrationSchemes
    {
        U               Euler;
    }
}

constantProperties
{
    rho0            1000;
    youngsModulus   1e8;
    poissonsRatio   0.35;
}

subModels
{
    particleForces
    {
        //sphereDrag;
        //gravity;
    }

    injectionModels
    {
        /*model1
        {
            type            manualInjection;
            massFlowRate        0.004583;
            massTotal       0;
            parcelBasisType fixed;
            nParticle       1;
            SOI             0;
            //positionsFile   "kinematicCloudPositions";
            U0              (0 0 0);
            sizeDistribution
            {
                type        fixedValue;
                fixedValueDistribution
                {
                    value   0.006;
                }
            }
        }*/
        
        model1
    {
        type patchInjection;
        parcelBasisType mass;
        patchName inlet;            
        U0 (0 0 0);
        //nParticle 10;    
        parcelsPerSecond 10;
        sizeDistribution
                {
                    type        fixedValue;
                    fixedValueDistribution
                    {
                        value   0.000001;
                    }
                }
                flowRateProfile constant 1;
                //massTotal 0.3;  //Choosing nParticle to be a fixed value, massTotal variable now             does not determine anything.
                SOI 0;
                duration 1;
                massFlowRate        0.8e-02;//0.0001;//0.004583;
        }
    }

    dispersionModel none;
    
    patchInteractionModel none;

    //patchInteractionModel standardWallInteraction;

    //standardWallInteractionCoeffs
    //{
      //      type        rebound; // stick, escape
     //       e           1;       // optional - elasticity coeff
    //        mu          0;       // optional - restitution coeff
    //};
    
    surfaceFilmModel none;

    stochasticCollisionModel none;

    collisionModel pairCollision;
controlDict:

Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  5                                     |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "system";
    object      controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

application     icoUncoupledKinematicParcelFoam;

startFrom       startTime;

startTime       0;

stopAt          endTime;

endTime         10;

deltaT          0.5;

writeControl    timeStep;

writeInterval   1;

purgeWrite      0;

writeFormat     ascii;

writePrecision  6;

writeCompression off;

timeFormat      general;

timePrecision   6;

runTimeModifiable true;

//functions
//{
//    #includeFunc streamlines
//}

// ************************************************************************* //
I would be very grateful if someone could point me in the right direction!
particlecount_0 is offline   Reply With Quote

Old   March 6, 2021, 15:09
Default
  #2
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12
HPE is on a distinguished road
"console output" shows that 10 parcels were injected into the domain. therefore, there are definitely parcels in your domain unless they convected out of the domain. "particleCount" quantity seems to be taken from a processor file - maybe in the first processor data group, there is no parcel. maybe parcels reside in other processors. if the case is small, I would run it in serial with interim time-steps- just to observe it.
HPE is offline   Reply With Quote

Reply

Tags
lagrangian particles, no particles injected, particle count zerom

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
how to determine the number of particles injected. welch FLUENT 2 January 18, 2024 05:08
Distinguish particles injected from Injection Achini Fluent UDF and Scheme Programming 0 October 23, 2020 13:17
No particles injected in DPMFoam when nonSphereDrag particle force selected decah OpenFOAM Running, Solving & CFD 0 April 7, 2017 13:14
Nitrogen injected into a column filled with sand particles AndoniBM OpenFOAM 1 April 10, 2015 06:57
Defining New Material for Injected Particles Lior FLUENT 5 June 4, 2004 12:12


All times are GMT -4. The time now is 18:48.