|
[Sponsors] |
December 3, 2017, 02:40 |
CFL drops when using fieldAverage
|
#1 |
Senior Member
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 25 |
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? |
|
December 5, 2017, 00:44 |
|
#2 |
Senior Member
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 25 |
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...
|
|
December 5, 2017, 09:48 |
|
#3 |
Senior Member
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 25 |
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.. |
|
December 6, 2017, 09:27 |
|
#5 |
Senior Member
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 25 |
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. |
|
December 6, 2017, 21:07 |
|
#6 |
Senior Member
Pete Bachant
Join Date: Jun 2012
Location: Boston, MA
Posts: 173
Rep Power: 14 |
Interesting. Sounds like a bug that should be reported at https://bugs.openfoam.org.
|
|
March 5, 2018, 20:50 |
|
#7 |
Senior Member
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 25 |
This was indeed a bug, fixed with
https://bugs.openfoam.org/view.php?id=2820 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
CFL Adapt parameter | DLuo | SU2 | 7 | May 19, 2024 19:28 |
Test Case CFL Number Issues with Software Update | JBCFD | SU2 | 3 | July 14, 2017 13:05 |
Utility of providing the CFL and the time-step simultaneously | Lise | STAR-CCM+ | 1 | January 31, 2017 09:22 |
[swak4Foam] Using fieldAverage together with swak4foam expressionField | tiam | OpenFOAM Community Contributions | 33 | December 18, 2016 08:49 |
CFL ramp option | curky | SU2 | 1 | April 11, 2013 14:25 |