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

maxTrackTime is not limiting tracking

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 17, 2019, 04:45
Default maxTrackTime is not limiting tracking
  #1
New Member
 
Khaled Yassin
Join Date: Aug 2019
Location: Jülich-Germany
Posts: 12
Rep Power: 6
Yassin-K is on a distinguished road
Dear Foamers,

I am using reactingParcelFilmFoam to simulate water particles' cloud.
My problem is that even if I set maxParticleTrack to be 0.5 sec. the solver still simulates the particle to the end of the domain (which takes almost 2 sec to reach).
Here my reactingCloud1Properties:
Code:
/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  6
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "constant";
    object      reactingCloud1Properties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

#include "../initialConditions"

solution
{
    active          true;

    coupled         no;
    transient       yes;

    cellValueSourceCorrection no;
    maxTrackTime    0.5;
    maxCo           0.3;

    sourceTerms
    {
        schemes
        {
            rho             explicit 1;
            U               explicit 1;
            Yi              explicit 1;
            h               explicit 1;
            radiation       explicit 1;
        }
    }

    interpolationSchemes
    {
        rho             cell;
        U               cellPoint;
        thermo:mu       cell;
        T               cell;
        Cp              cell;
        kappa           cell;
        p               cell;
    }

    integrationSchemes
    {
        U               Euler;
        T               analytical;
    }
}

constantProperties
{
    rho0            1000;
    T0              $temp;
    Cp0             4187;

    constantVolume  false;
}

subModels
{
    particleForces
    {
        sphereDrag;
        //gravity;
    }

    injectionModels
    {
        model1
		{
			type            patchInjection;
            SOI             0.0;
            massTotal       $massTotal;
            parcelBasisType mass;
            patchName       inlet;
            duration        $duration;
            parcelsPerSecond $nParcels;
            U0              $U;
            flowRateProfile constant 1;
            sizeDistribution
            {
                type         RosinRammler;
                RosinRammlerDistribution
                {
                    minValue        $minValue;
                    maxValue        $maxValue;
                    d               $d;
                    n               $n;
                }
            }
		}
    }

    dispersionModel none;

    patchInteractionModel standardWallInteraction;

    heatTransferModel none;

    compositionModel singleMixtureFraction;

    phaseChangeModel none;

    devolatilisationModel none;

    surfaceReactionModel none;

    stochasticCollisionModel none;

    surfaceFilmModel none;//thermoSurfaceFilm;

    radiation       off;

    standardWallInteractionCoeffs
    {
        type            rebound;
    }

    singleMixtureFractionCoeffs
    {
        phases
        (
            gas
            {
            }
            liquid
            {
                H2O         1;
            }
            solid
            {
            }
        );
        YGasTot0        0;
        YLiquidTot0     1;
        YSolidTot0      0;
    }

    thermoSurfaceFilmCoeffs
    {
        interactionType absorb;
    }
}


cloudFunctions
{}


// ************************************************************************* //
__________________
--
Best Regards,

Khaled Yassin,
Research Assistant
Institute for Energy and Environmental Research (IEK-14)
Forschungszentrum Jülich
Yassin-K is offline   Reply With Quote

Old   December 17, 2019, 05:33
Default
  #2
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi,


out of the box and after a fast code analysis, for me it seems that the maxTrackTime parameter just matters if you have the transient mode set to off. In your case it is turned on.


Here some snipped of where the maxTrackTime is used

Code:
 if (steadyState())                                                          
    {                                                                           
        dict_.lookup("calcFrequency") >> calcFrequency_;                        
        dict_.lookup("maxTrackTime") >> maxTrackTime_;                          
                                                                                
        if (coupled_)                                                           
        {                                                                       
            dict_.subDict("sourceTerms").lookup("resetOnStartup")               
                >> resetSourcesOnStartup_;                                      
        }                                                                       
    }
Code:
bool Foam::cloudSolution::canEvolve()                                           
{                                                                               
    if (transient_)                                                             
    {                                                                           
        trackTime_ = mesh_.time().deltaTValue();                                
    }                                                                           
    else                                                                        
    {                                                                           
        trackTime_ = maxTrackTime_;                                             
    }                                                                           
                                                                                
    return solveThisStep();                                                     
}
__________________
Keep foaming,
Tobias Holzmann
Tobi 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
Lagrangian Particle Tracking in Eulerian-Eulerian Multiphase Flow DarrenC CFX 5 April 7, 2016 14:50
Particle tracking AKHILESH S L CFX 1 November 14, 2013 16:45
Ubuntu 12.10 + openfoam2.2.0 ==> paraview error message peteryuan OpenFOAM Installation 6 August 18, 2013 18:00
[OpenFOAM] ParaView ErrOr soheil nazmdeh ParaView 1 August 17, 2013 07:40
massless particle tracking problem Renold FLUENT 0 January 26, 2011 14:23


All times are GMT -4. The time now is 09:47.