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

[Other] Effcient WENO Scheme

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By janGaertner

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 21, 2020, 16:41
Default Effcient WENO Scheme
  #1
New Member
 
Jan Gaertner
Join Date: Nov 2017
Posts: 20
Rep Power: 9
janGaertner is on a distinguished road
Hello all,

in the recent months I had put a lot of work into the WENO Scheme originally written by Tobias Martin to improve efficiency and computational speed.
It has finally reached a state that is stable and has proven to reach the accuracy and performance that I would expect from this scheme. This has been now also published in SoftwareX describing some of the improvements and the test cases (https://doi.org/10.1016/j.softx.2020.100611).

If you are looking for a higher order scheme which also works for discontinuities in flows, such as shocks, this would be a good choice. Please check it out on GitHub
https://github.com/WENO-OF/WENOEXT

Hope some of you will find it helpful


(If you find any bugs or have ideas how to improve it please send me an e-mail or open an issue)
li siye likes this.
janGaertner is offline   Reply With Quote

Old   November 5, 2020, 08:17
Default
  #2
New Member
 
Jan Gaertner
Join Date: Nov 2017
Posts: 20
Rep Power: 9
janGaertner is on a distinguished road
Hello,


I am sorry to say that there was a major bug in the latest release of the library. In the release 2.0 the integer power multiplication for the Gauss quadratur was incorrect for any order higher than 2. Sadly this mistake did not appear in any of my small test cases. However, the release 1.0 which is used for the publication is correct.



I have now fixed this error and released 2.1 version which should fix this issue.
janGaertner is offline   Reply With Quote

Old   December 7, 2020, 10:11
Default
  #3
New Member
 
Join Date: Oct 2020
Posts: 10
Rep Power: 6
li siye is on a distinguished road
Thank you for your amazing jobs! Jan Gaertner!

I have a big problem that if i use dynamicRefineFvMesh (AMR method), how can i also use the WENO library to get the stencil where the level and size of cells are different, how can deal with this problem.

Thanks a lot again! Best wishes to you!
li siye is offline   Reply With Quote

Old   December 8, 2020, 05:33
Default
  #4
New Member
 
Jan Gaertner
Join Date: Nov 2017
Posts: 20
Rep Power: 9
janGaertner is on a distinguished road
Hello Siye,


the calculation of the stencil list and corresponding matrices is computationally very expensive. Therefore, it is currently implemented to be done only once when the scheme is called the first time, after this the matrix and stencil lists are stored as a static object. Thus, you cannot recreate this list at run time, which conflicts with adaptive mesh refinement.



For the case of adaptive refinement I would suggest to not use this WENO implementation as it would require some structural changes of the code and also would be VERY slow.



I do not know of any WENO implementation that can handle unstructured grids, e.g. cells with any shape, that also handles adaptive mesh refinement. I think the best performance would be to use a hybrid scheme with a shock detector. Thus, to get at least perfect second order in the smooth region and then to fall back to either upwind or limitedLinear at the shock.

However, the shock sensors require some tuning to your case so they do not set everything to upwind or have to little smoothing. But if you have only one case you simulate you can tune it for this particular case.



A possible shock detector is explained in here:
[1] Ducros, F., Ferrand, V., Nicoud, F., Weber, C., Darracq, D.,
Gacherieu, C., & Poinsot, T. (1999).
Large-eddy simulation of the shock/turbulence interaction.
Journal of Computational Physics, 152(2), 517-549.
janGaertner is offline   Reply With Quote

Reply

Tags
openfoam, weno


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
WENO scheme on curvilinear coordinates selig5576 Main CFD Forum 4 July 18, 2019 03:49
A way to optimize the WENO scheme by optimizing the coefficients of linear scheme moon_light Main CFD Forum 1 November 27, 2012 10:19
About WENO scheme for FVM on 2D triangular mesh. xiaowanzi01 Main CFD Forum 1 May 26, 2012 20:56
Finite Volume WENO Scheme DSS Main CFD Forum 3 January 15, 2007 04:47
Flux splitting for WENO scheme DSS Main CFD Forum 6 January 10, 2007 11:59


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