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

Unexcepted behavior with vanLeer divergence scheme

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 20, 2019, 08:16
Default Unexcepted behavior with vanLeer divergence scheme
  #1
New Member
 
Viktor Sundström
Join Date: Nov 2019
Posts: 1
Rep Power: 0
vrogly is on a distinguished road
I'm learning OpenFOAM by messing around with the SimpleFOAM - motorbike (with kOmegaSST) tutorial. I was recommended to use vanLeer as divergence scheme, but when I tried it, the pressure and velocity fields don't act as excpected. The first figure is when running the simulation with

divSchemes
{
default none;
div(phi,U) bounded Gauss linearUpwindV grad(U);
div(phi,k) bounded Gauss upwind;
div(phi,omega) bounded Gauss upwind;
div((nuEff*dev2(T(grad(U))))) Gauss linear;
}

and the second with

divSchemes
{
default none;
div(phi,U) Gauss vanLeer;
div(phi,k) bounded Gauss upwind;
div(phi,omega) bounded Gauss upwind;
div((nuEff*dev2(T(grad(U))))) Gauss linear;
}

The intense blue and red colors are orders of magnitudes larger than the muted colors in the first figure. The yellow is "nan", not a number.

I've read the official documentation of vanLeer [1], and it seems like I've implemented the scheme correctly, but something is clearly wrong.

So, I'm wondering if anyone has any idea of what could have happended? All other settings are equal.



[1] https://www.openfoam.com/documentati...e-vanleer.html



Thanks in advance
Attached Images
File Type: png cfd1.png (24.9 KB, 76 views)
File Type: png cfd2.png (26.1 KB, 69 views)

Last edited by vrogly; November 25, 2019 at 13:09.
vrogly is offline   Reply With Quote

Old   November 26, 2019, 05:03
Default
  #2
Senior Member
 
Ruiyan Chen
Join Date: Jul 2016
Location: Hangzhou, China
Posts: 162
Rep Power: 10
cryabroad is on a distinguished road
Quick question, can you also post your residuals plot? "nan" means the simulation is diverged, so the results are not meaningful.

I normally use vanLeer for bounded scalars, e.g., some variables that are bounded between 0 and 1. It usually gives good results, meaning that the results are indeed bounded (sometimes with a little overshoot, but within 1 or 2 percent and it goes away as the simulation proceeds).

I think another thing you could try to make more meaningful comparison is to use

Code:
div(phi, U)    bounded Gauss vanLeerV;
cryabroad 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
Constructing Surface Interpolation Scheme from Divergence Scheme Information ngj OpenFOAM Programming & Development 2 June 17, 2022 10:12
PEMFC model with FLUENT brahimchoice FLUENT 22 April 19, 2020 16:44
[ANSYS Meshing] Help with element size sandri_92 ANSYS Meshing & Geometry 14 November 14, 2018 08:54
fluent divergence for no reason sufjanst FLUENT 2 March 23, 2016 17:08
Divergence problem Smaras FLUENT 13 February 21, 2013 06:03


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