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

OpenFOAM discretization schemes

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 3 Post By piu58

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 23, 2017, 04:14
Default OpenFOAM discretization schemes
  #1
Member
 
Join Date: Jul 2013
Posts: 39
Rep Power: 13
cfdsolver1 is on a distinguished road
Hello OpenFOAMers. As you know from the CFD theory, there are several discretization schemes such as Upwind, Hybrid and Power-Law.

I mostly select linear of OpenFOAM as it is second order scheme. When I am solving laminar and high Re number flows, such as Re = 2000 for empty channel, I am facing with convergence problems. However, if I select Upwind, there is no convergence problem.

This is one of the advantage of Upwind scheme when there is strong convective effect. However, as it is first-order scheme, there is false diffusion risk. What are your suggestions for this kind of flows? As I know, there is no power-law scheme in OpenFOAM, which scheme should I select at high Re and laminar flows?
cfdsolver1 is offline   Reply With Quote

Old   May 23, 2017, 04:23
Default
  #2
Senior Member
 
floquation's Avatar
 
Kevin van As
Join Date: Sep 2014
Location: TU Delft, The Netherlands
Posts: 252
Rep Power: 21
floquation will become famous soon enough
That depends on the term you are trying to discretise...

For the convective term, 'linear' is asking for trouble as far as I know.
'upwind' works, but is diffusive.
'vanLeer' (and other flux-limiters) are the best of both worlds: second-order in all of space, except for the critical regions like shocks where it switches to first-order to maintain a stable simulation.

For the Laplacian (momentum diffusion / viscosity) terms, I tend to always go for 'linear', but I don't know if it really matters. The convective term seems to be the most critical one.
floquation is offline   Reply With Quote

Old   May 23, 2017, 10:46
Default
  #3
Member
 
Join Date: Jul 2013
Posts: 39
Rep Power: 13
cfdsolver1 is on a distinguished road
Thank you so much for your answer. I try to discretize U term. I don't know why but when Re high, even channel flow with good quality mesh, only upwind scheme works for me. What might be a reason behind this? I use OpenFOAM 4.1.
cfdsolver1 is offline   Reply With Quote

Old   May 23, 2017, 14:10
Default
  #4
Senior Member
 
piu58's Avatar
 
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15
piu58 is on a distinguished road
It is the wrong way the reach numerical stability by using less exact models.

The first thing to analyse is the reason for instability. Often it ist the mesh or wrong boundary conditions. Only in real complicated problems the physics need taken into account. The last one may be if there are shock waves and other transient effects of large size.

To analyse the mesh it may be helpful to write result every time step. These result indicate the region where the instability starts to grow. Look at these regions first.

If you need to handle physical stiffness of you problem, it may be much better to use relaxation in the solution process but second order schemes. In this case the final, stable solution is correct (if there is any), but the course to it get smeared. If you use less exact models you don't get a correct solution for any simulated time.
homeaway, MaximeB and Biku like this.
__________________
Uwe Pilz
--
Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950)
piu58 is offline   Reply With Quote

Reply

Tags
openfoam 4.1, upwind


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
Getting Started with OpenFOAM wyldckat OpenFOAM 26 June 21, 2024 07:54
Convection discretization schemes for LES sek OpenFOAM Running, Solving & CFD 38 July 31, 2017 15:30
Question on OpenFOAM and implicit time discretization me3840 OpenFOAM Running, Solving & CFD 1 March 11, 2016 04:05
Grid Independence with discretization schemes saisanthoshm88 CFX 19 May 22, 2013 11:10
OpenFOAM - 2nd order of discretization? makaveli_lcf OpenFOAM Running, Solving & CFD 0 November 12, 2009 08:15


All times are GMT -4. The time now is 17:44.