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

Lagrange particles not moving

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By obiscolly50

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 10, 2019, 11:37
Default Lagrange particles not moving
  #1
Member
 
Obi
Join Date: Jul 2016
Location: Canada
Posts: 45
Rep Power: 9
obiscolly50 is on a distinguished road
Hello all,
I modified a simplefoam solver to include temperature, porous media and lagrange particle tracking. I'm trying to solve the flow for a steady-state case in parallel, but i'm experiencing a strange problem. I'm using the flow field from an already converged case as the initial 0 field. After introducing the particles at the inlet patch they remain roughly in the same position for subsequent iterations.
Below is the kinematicCloudProperties file i'm using which was derived from the steady-state particle solver simpleReactingParcelFoam particle properties file.
I'm supsecting two issues:-
1) The particles are stuck just before the first porous zone. I implemented the porosity as a momentum sink in the UEqn not as a physical barrier and didn't think this would be an issue since the particle should take the path of least resistance.
2) I'm setting something wrong in my kinematicCloudProperties file. I've not used steady-state particle tracking before and just used the file fro simpleReactingParcelFoam with very little modification.
Anyone with any idea of what could be wrong. I'm using the openFoam v6.


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

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

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

    integrationSchemes
    {
        U               Euler;
	T               analytical;
    }

    sourceTerms
    {
	resetOnStartup  no; //added
        schemes
        {
            U           semiImplicit 1;
        }
    }
}

constantProperties
{
    rho0            1200; //was 8800
    youngsModulus   1.3e5;
    poissonsRatio   0.35;
}

subModels
{
    particleForces
    {
        sphereDrag;
        
        gravity;
        
        pressureGradient
        {
            U U;
        }

    }

    injectionModels
    {
	model1
	{
            type             patchInjection;
	    massFlowRate     0.8e-04;
            parcelBasisType  mass;
            patchName        influent;
	    parcelsPerSecond 1000;
            duration         1;  //set to 1 for steady state
            U0               (-60 0 0);
            flowRateProfile  constant 1;
            //nParticle        1;
            //SOI              10;

            sizeDistribution
            {
                type        fixedValue;
                fixedValueDistribution
                {
                    value   15e-6;
                }
            }
        }
    }

    dispersionModel none;

    patchInteractionModel  localInteraction; //was standardWallInteraction

    localInteractionCoeffs
    {
        patches
        (
            "effluent|soldischarge"
            {
                type escape;
            }
            ".*"
            {
                type rebound;
                e    0.97;
                mu   0.09;
            }
        );
    }

    surfaceFilmModel none;

    stochasticCollisionModel none;
    
    collisionModel none;    

    pairCollisionCoeffs
    {
        maxInteractionDistance  0.00007;

        writeReferredParticleCloud no;

        pairModel pairSpringSliderDashpot;

        pairSpringSliderDashpotCoeffs
        {
            useEquivalentSize   no;
            alpha               0.12;
            b                   1.5;
            mu                  0.52;
            cohesionEnergyDensity 0;
            collisionResolutionSteps 12;
        };
        
        wallModel wallSpringSliderDashpot;

        wallSpringSliderDashpotCoeffs
        {
            useEquivalentSize no;
            collisionResolutionSteps 12;
            youngsModulus   1e10;
            poissonsRatio   0.23;
            alpha           0.12;
            b               1.5;
            mu              0.43;
            cohesionEnergyDensity 0;
        };
    }
}

cloudFunctions
{
    particleTracks1
    {
        type            particleTracks;
        trackInterval   5;
        maxSamples      1000000;
        resetOnWrite    yes;
    }
}

// *************************************************************************
Below is the picture of the particles stuck at the porous zone.
Attached Images
File Type: jpg particles_stuck.jpg (111.0 KB, 84 views)

Last edited by obiscolly50; February 10, 2019 at 12:19. Reason: added more details
obiscolly50 is offline   Reply With Quote

Old   March 2, 2019, 16:40
Default
  #2
Member
 
Obi
Join Date: Jul 2016
Location: Canada
Posts: 45
Rep Power: 9
obiscolly50 is on a distinguished road
Eventually figured out the problem. I increased the maxTrackTime to a higher value. Now the particles move past the region.
rugg.das likes this.
obiscolly50 is offline   Reply With Quote

Old   May 12, 2019, 06:06
Default Lagrangian particles + thermal transport
  #3
New Member
 
...
Join Date: Jun 2013
Posts: 19
Rep Power: 12
manalis is on a distinguished road
Quote:
Originally Posted by obiscolly50 View Post
Hello all,
I modified a simplefoam solver to include temperature, porous media and lagrange particle tracking. I'm trying to solve the flow for a steady-state case in parallel...

Hello obiscolly,


As I've been working on similar cases, I have a quick question: how did you handle the thermal transport to particles? I am asking this because normally the "thermo" library for particles (and generally for fluids, if I am not mistaken) is associated with compressible solvers. So, isn't it incompatible with an incompressible solver like "simpleFoam" by default?


Regards
manalis is offline   Reply With Quote

Old   May 25, 2019, 17:09
Default
  #4
Member
 
Obi
Join Date: Jul 2016
Location: Canada
Posts: 45
Rep Power: 9
obiscolly50 is on a distinguished road
Quote:
Originally Posted by manalis View Post
Hello obiscolly,


As I've been working on similar cases, I have a quick question: how did you handle the thermal transport to particles? I am asking this because normally the "thermo" library for particles (and generally for fluids, if I am not mistaken) is associated with compressible solvers. So, isn't it incompatible with an incompressible solver like "simpleFoam" by default?


Regards
I didn't consider heat transfer from/to particles for my analysis unfortunately. I believe some of the particle tracking classes already take this into consideration by using particle properties such as specific heat e.g reactingCloud. But i didn't need that for my analysis. It would probably be more compatible with a solver like chtMultiRegionFoam which can also be used for incompressible.
obiscolly50 is offline   Reply With Quote

Old   October 9, 2020, 11:42
Default
  #5
New Member
 
Ruggiero
Join Date: Jan 2015
Posts: 1
Rep Power: 0
rugg.das is on a distinguished road
Quote:
Originally Posted by obiscolly50 View Post
Eventually figured out the problem. I increased the maxTrackTime to a higher value. Now the particles move past the region.

Hi obiscolly,

I'm a real beginner in OpenFoam and I'm trying to implement the lagrangian particle transport on a steady-state problem.


I followed the tutorial https://www.foamacademy.com/wp-conte...les_slides.pdf, but on a SIMPLE scheme. I followed the same steps as in the tutorial and the compilation was successful.


I am doing verification tests on the pitzdaily tutorial, but no particle is traced (kinematicCloud folder is not created after the foamToVTK command).
What I can display in paraview is just the solid fraction, and it seems that solid particles don't evolve through the domain, even if I increase the maxTrackTime value.
Which value do you suggest?



Have you ever experienced this issue? Have you found a way to overcome it?
I'm working on OpenFoam 4.x.




Thank you very much for your support.
Any suggestion will be very much appreciate.
rugg.das is offline   Reply With Quote

Reply


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
Problem with DPM simulation with particles injection and EXECUTE_AT_THE_END UDF. Ari Fluent UDF and Scheme Programming 4 May 31, 2016 08:51
dsmcFoam - micro-hole limiting the number of dsmc particles Araist OpenFOAM Running, Solving & CFD 0 June 25, 2015 06:50
Add lagrangian particles to OpenFoam solver luchen2408 OpenFOAM 0 June 2, 2015 03:10
Question on moving mesh, mesh velocity is really small! ripperjack Main CFD Forum 2 April 28, 2014 13:37
particles model ati_ros61 FLOW-3D 3 December 6, 2009 16:03


All times are GMT -4. The time now is 19:35.