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

nSubCycles criteria

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 25, 2014, 11:16
Question nSubCycles criteria
  #1
Senior Member
 
maysmech's Avatar
 
Join Date: Jan 2010
Posts: 347
Blog Entries: 2
Rep Power: 17
maysmech is on a distinguished road
Hi Foamers,

As you know, in gas-solid flows there are two time steps; one for continuous phase and the other for disperse phase which is usually less than first one. It is introduced as nSubCycles in openFoam. when running dpmFoam we see in terminal:
Code:
Courant Number mean: 0.0331165 max: 0.168717
Time = 0.00018

Evolving kinematicCloud

Solving 3-D cloud kinematicCloud
    2 move-collide subCycles
which tells it has 2 move subcycles.

HTML Code:
src/lagrangian/intermediate/submodels/Kinematic/CollisionModel/CollisionModel/CollisionModel.H
in above address you see:
Code:
    // Member Functions

        //- Return the number of times to subcycle the current
        //  timestep to meet the criteria of the collision model
        virtual label nSubCycles() const;
I couldn't find in source code the criteria for number of subcycles and how is it calculated and implemented. If anyone knows please share with us.
Regards,
maysmech is offline   Reply With Quote

Old   August 9, 2023, 19:03
Default
  #2
Member
 
Shah Akib Sarwar
Join Date: Mar 2021
Posts: 41
Rep Power: 5
Shah Akib Sarwar is on a distinguished road
Hello. Did you ever find an answer to this?
Shah Akib Sarwar is offline   Reply With Quote

Old   September 1, 2023, 14:19
Default
  #3
Member
 
Utkan Caliskan
Join Date: Aug 2014
Posts: 42
Rep Power: 11
dscian is on a distinguished road
That firstly reads:
~/OpenFOAM/OpenFOAM-dev/src/lagrangian/parcel/submodels/Momentum/CollisionModel/PairCollision/PairCollision.C

Code:
template<class CloudType>
Foam::label Foam::PairCollision<CloudType>::nSubCycles() const
{
    label nSubCycles = 1;

    if (pairModel_->controlsTimestep())
    {
        label nPairSubCycles = returnReduce
        (
            pairModel_->nSubCycles(), maxOp<label>()
        );

        nSubCycles = max(nSubCycles, nPairSubCycles);
    }

    if (wallModel_->controlsTimestep())
    {
        label nWallSubCycles = returnReduce
        (
            wallModel_->nSubCycles(), maxOp<label>()
        );

        nSubCycles = max(nSubCycles, nWallSubCycles);
    }

    return nSubCycles;
}
which then reads

~/OpenFOAM/OpenFOAM-dev/src/lagrangian/parcel/submodels/Momentum/CollisionModel/PairCollision/PairModel/PairSpringSliderDashpot/PairSpringSliderDashpot.C

and

~/OpenFOAM/OpenFOAM-dev/src/lagrangian/parcel/submodels/Momentum/CollisionModel/PairCollision/WallModel/WallSpringSliderDashpot/WallSpringSliderDashpot.C

as part of "pairModel_->nSubCycles()" and "wallModel_->nSubCycles()"

nSubCycles()from PairSpringSliderDashpot is as follows:

Code:
template<class CloudType>
Foam::label Foam::PairSpringSliderDashpot<CloudType>::nSubCycles() const
{
    if (!this->owner().size())
    {
        return 1;
    }

    scalar RMin, rhoMax, UMagMax;
    findMinMaxProperties(RMin, rhoMax, UMagMax);

    // Note:  pi^(7/5)*(5/4)^(2/5) = 5.429675
    const scalar minCollisionDeltaT =
        5.429675
       *RMin
       *pow(rhoMax/(Estar_*sqrt(UMagMax) + rootVSmall), 0.4)
       /collisionResolutionSteps_;

    return ceil(this->owner().time().deltaTValue()/minCollisionDeltaT);
}
nSubCycles() of WallSpringSliderDashpot is basically the same.
dscian 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
Steady state criteria in combustion Aleksey_R Main CFD Forum 0 November 21, 2011 10:01
What value shall I set for the Convergence criteria? steventay CFX 7 May 14, 2010 12:44
Convergence Criteria edwin FLUENT 1 February 14, 2008 19:24
How can I set the converge criteria properly? Alina FLUENT 3 September 7, 2007 16:55
CAVITATION (convergence criteria & discretization) ROOZBEH FLUENT 1 October 6, 2003 09:32


All times are GMT -4. The time now is 12:20.