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

second order time scheme in interFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By AliE

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 17, 2018, 23:31
Question second order time scheme in interFoam
  #1
New Member
 
Han Li
Join Date: Jul 2015
Location: College Station
Posts: 16
Rep Power: 11
lifeinhand is on a distinguished road
Hi,

I was running the interFoam tutorial case "les/nozzleFlow2D". The default setting in ddt was Euler which is a first order scheme. I was trying to use a second order scheme, somehow seems like backward and CrankNicolson are not supported.

When I try backward, the error message is "only Euler and CrankNicolson are supported"

When I use CrankNicolson, the error message is "Sub-cycling is not supported with the CrankNicolson ddt scheme"

any suggestions?
Thanks!
lifeinhand is offline   Reply With Quote

Old   January 18, 2018, 03:43
Default
  #2
Member
 
Join Date: Sep 2014
Location: Germany
Posts: 88
Rep Power: 12
TobM is on a distinguished road
Seems like you have to switch nAlphaSubCycles in fvSolution to 1 to switch off subcycling. Consequently you will have to reduce maxAlphaCo.
TobM is offline   Reply With Quote

Old   January 19, 2018, 03:16
Default
  #3
New Member
 
Han Li
Join Date: Jul 2015
Location: College Station
Posts: 16
Rep Power: 11
lifeinhand is on a distinguished road
Thanks for the advice! Unfortunately, after I change nAlphaSubCycles to 1, the solution diverges. (With maxAlphaCo reduced to 0.3)

I did a little bit research, finding that this error (the sub-cycling and CrankNicolson) does not exist in OpenFOAM 2.3.1. This is strange to me. Somehow, newer version loses second order ddt capablity......
lifeinhand is offline   Reply With Quote

Old   January 19, 2018, 03:23
Default
  #4
Member
 
Join Date: Sep 2014
Location: Germany
Posts: 88
Rep Power: 12
TobM is on a distinguished road
I don't have any experience with second order time for interFoam.
However, just a few ideas:
- you can try to reduce maxAlphaCo=0.1
- reduce the initial time step
- recheck boundary conditions
TobM is offline   Reply With Quote

Old   January 19, 2018, 04:20
Default
  #5
Senior Member
 
Join Date: Dec 2017
Posts: 153
Rep Power: 8
AliE is on a distinguished road
Hello,

Let me put my 2cents. The alpha equation is treated explicitly in interfoam since it is hyperbolic. Sometimes to improve stability you need to split the actual time step in more sub-steps and this is called subcycling. Now, cranck nicholson is implicit by definition and in theory unconditionally stable, so maybe that's why you cannot use subcycles... This is my odea, but maybe someone more expert on of can shed ligth on this
M.W.G. likes this.
AliE is offline   Reply With Quote

Old   January 19, 2018, 18:46
Default
  #6
New Member
 
Han Li
Join Date: Jul 2015
Location: College Station
Posts: 16
Rep Power: 11
lifeinhand is on a distinguished road
Thank you! Will try those.
lifeinhand 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
bash script for pseudo-parallel usage of reconstructPar kwardle OpenFOAM Post-Processing 42 May 8, 2024 00:17
Extrusion with OpenFoam problem No. Iterations 0 Lord Kelvin OpenFOAM Running, Solving & CFD 8 March 28, 2016 12:08
Floating point exception error lpz_michele OpenFOAM Running, Solving & CFD 53 October 19, 2015 03:50
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 07:20
Could anybody help me see this error and give help liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 19:07


All times are GMT -4. The time now is 23:57.