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

CFL drops when using fieldAverage

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 3, 2017, 01:40
Default CFL drops when using fieldAverage
  #1
Senior Member
 
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 24
me3840 is on a distinguished road
Hey there. I'm having an odd problem I think with the fieldAverage utility.

I have an LES case I'm running which runs fine by itself with a max CFL of 2. The timestep is chosen based on the CFL. However when I enable the fieldAverage in my controlDict, for a short time the CFL stays at 2. After some time, though, the CFL starts plummeting and my timestep drops to 1e-17 for seemingly no reason. If I run the case without fieldAverage on, this doesn't happen.

Anyone encountered this before? Is this a bug?
me3840 is offline   Reply With Quote

Old   December 4, 2017, 23:44
Default
  #2
Senior Member
 
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 24
me3840 is on a distinguished road
I noticed that the fieldAverage was the only dictionary in the system directory which was set to writeTime instead of adjustableRunTime. That sounds like it could be the cause, so I'll try setting the average interval correctly to match the rest of the dictionaries...
me3840 is offline   Reply With Quote

Old   December 5, 2017, 08:48
Default
  #3
Senior Member
 
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 24
me3840 is on a distinguished road
Apparently that's not the problem.

It also appears that no matter what writeControl/writeInterval I use, and no matter what startTime I choose, the timestep drops starting at startTime+0.015s. So strange..
me3840 is offline   Reply With Quote

Old   December 6, 2017, 07:52
Default
  #4
Senior Member
 
Pete Bachant
Join Date: Jun 2012
Location: Boston, MA
Posts: 173
Rep Power: 13
pbachant is on a distinguished road
So you've determined that it isn't the field averaging causing the solver to diverge? That would have been very strange.
__________________
Home | Twitter | GitHub
pbachant is offline   Reply With Quote

Old   December 6, 2017, 08:27
Default
  #5
Senior Member
 
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 24
me3840 is on a distinguished road
The solver doesn't diverge. The solution always looks as expected, but for some reason the timestep it chooses just drops. Even though maxCo is set to 2, it's computing a timestep at nowhere near that CFL. If I don't use the fieldAverage, the CFL stays at 2 as specified and everything runs as I would expect.

None of this happens if I use a static timestep, either.
me3840 is offline   Reply With Quote

Old   December 6, 2017, 20:07
Default
  #6
Senior Member
 
Pete Bachant
Join Date: Jun 2012
Location: Boston, MA
Posts: 173
Rep Power: 13
pbachant is on a distinguished road
Interesting. Sounds like a bug that should be reported at https://bugs.openfoam.org.
__________________
Home | Twitter | GitHub
pbachant is offline   Reply With Quote

Old   March 5, 2018, 19:50
Default
  #7
Senior Member
 
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 24
me3840 is on a distinguished road
This was indeed a bug, fixed with
https://bugs.openfoam.org/view.php?id=2820
me3840 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
CFL Adapt parameter DLuo SU2 7 May 19, 2024 18:28
Test Case CFL Number Issues with Software Update JBCFD SU2 3 July 14, 2017 12:05
Utility of providing the CFL and the time-step simultaneously Lise STAR-CCM+ 1 January 31, 2017 08:22
[swak4Foam] Using fieldAverage together with swak4foam expressionField tiam OpenFOAM Community Contributions 33 December 18, 2016 07:49
CFL ramp option curky SU2 1 April 11, 2013 13:25


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