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

Bounded schemes seem to oscillate

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 13, 2021, 12:01
Default Bounded schemes seem to oscillate
  #1
New Member
 
Join Date: Apr 2015
Posts: 15
Rep Power: 11
Numericer is on a distinguished road
I've recently started learning OpenFOAM. As a source of practice, I thought I'll just simulate the example problems in textbooks (ex. Fersiger and Peric).



The first example is a demonstration of finite difference method applied to a canonical convection-diffusion problem, which is as follows. In a 1D geometry, phi (scalar) has a value of zero at the inlet and 1 at the outlet. What is its distribution across the interior, if the flow speed is a given constant of 1 m/s, diffusivity is 0.02 m^2/s and length of geometry is 1 m?


I've solved the problem as mentioned in the textbook. Two schemes, upwind and central difference, are compared against each other and against the exact solution. I've gotten the exact results as the authors.



I wanted to try this simple problem in OpenFOAM. So I cloned the pitzdaly case and made the necessary adjustments to set the case up. For the central difference scheme, I chose 'Gauss linear' as the divergence scheme, and the resulting 'plot over line' matches exactly. But strange things are happening with 'Gauss upwind' (or vanLeer too).


As is known, the upwind is a TVD scheme and as such is bounded albeit a lower order scheme. But the result of the simulation show oscillation as can be seen in these links: https://ibb.co/qg0M1kV and https://ibb.co/jDb6syJ.

Can anyone explain if I'm doing something wrong or what is OpenFOAM doing?
Attached Images
File Type: png gauss_linear.png (5.5 KB, 13 views)
File Type: png gauss_upwind.png (5.7 KB, 13 views)
Numericer is offline   Reply With Quote

Old   December 23, 2021, 07:44
Default
  #2
New Member
 
Join Date: Apr 2015
Posts: 15
Rep Power: 11
Numericer is on a distinguished road
Can anyone reply to this thread?
Numericer is offline   Reply With Quote

Reply

Tags
tvd scheme, upwind diffrence


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
Fundamental questions about numerical schemes Obad OpenFOAM Running, Solving & CFD 1 May 10, 2021 10:40
Problems occur using kklomega in simpleFoam PeterShi OpenFOAM Running, Solving & CFD 26 May 16, 2018 05:18
bounded Gauss and normal Gauss question Tobi OpenFOAM 2 June 18, 2013 00:35
Schemes for strictly bounded scalar fields stawrogin OpenFOAM 1 July 19, 2010 17:16
Higher-order bounded convection schemes for pure advection with discontinuity Anthony Main CFD Forum 3 June 13, 1999 02:36


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