|
[Sponsors] |
![]() |
![]() |
#1 |
Member
Join Date: Jul 2014
Posts: 39
Rep Power: 12 ![]() |
Hello
New to forum, so here goes: I have successfully implemented the 5th order WENO reconstruction method for 1D scalar and Euler conservation laws of the form: ![]() ![]() For the scalar case, my initial condition was ![]() ![]() For the Euler conservation laws, my initial condition is: ![]() ![]() where ![]() Any help will be greatly appreciated Last edited by PicklER; August 14, 2014 at 03:41. |
|
![]() |
![]() |
![]() |
![]() |
#2 |
New Member
Cat
Join Date: Aug 2014
Posts: 6
Rep Power: 12 ![]() |
Hi Pickler,
I am working on 1D conservation law but have met difficulty for the time discretization. Could you share your code? Also, for the problem you met, are you using FD or FV? From what I read, FV is intensively harder when dimension increases while FD simply requires you to write another "do" loop. |
|
![]() |
![]() |
![]() |
![]() |
#3 |
Member
Join Date: Jul 2014
Posts: 39
Rep Power: 12 ![]() |
Hey Catkun
I'm using FD and yes, also read that to extend it a simple do-loop should be added but that only works for the scalar test case and not for the conservation laws. Do you only need the time discretization? As I've said, I only used the 3rd order Runge-Kutta which looks as follows (found in any article describing the WENO reconstruction method, ref below): ![]() ![]() ![]() where ![]() where ![]() ![]() ref: http://www.dam.brown.edu/scicomp/med...SC-2009-03.pdf |
|
![]() |
![]() |
![]() |
![]() |
#4 |
New Member
Cat
Join Date: Aug 2014
Posts: 6
Rep Power: 12 ![]() |
Hi Pickler,
Thanks for your reply. I guess my problem is that I don't know how to compute ![]() ![]() |
|
![]() |
![]() |
![]() |
![]() |
#5 |
Member
Join Date: Jul 2014
Posts: 39
Rep Power: 12 ![]() |
Hi Catkun
Here is an example of my WENO for the 1D shocktube case. The scalar case is simpler version of this with only one equation. Hope it helps! Vrede |
|
![]() |
![]() |
![]() |
![]() |
#6 |
New Member
Cat
Join Date: Aug 2014
Posts: 6
Rep Power: 12 ![]() |
Hi Pickler,
I wonder if you are still working on this problem. I have finished the 1D case and then started working on the 2D case. Actually I think there is some problem in your code for the 1D simulation, (or I may be wrong ![]() |
|
![]() |
![]() |
![]() |
![]() |
#7 |
Member
Join Date: Jul 2014
Posts: 39
Rep Power: 12 ![]() |
Hey Catkun
I paused on the WENO case and started on other things. What is the mistake in the 1D case? Will gladly have a look at it again if you have new info on it. Kind regards |
|
![]() |
![]() |
![]() |
![]() |
#8 | |
New Member
Aranya Dan
Join Date: Jul 2016
Posts: 1
Rep Power: 0 ![]() |
Quote:
If this thread is still active, I would like to draw your attention to a few corrections on your code. (Just a few small errors). In the main file, Line 22: Replace function name with 'initiali_1D_shock' and replace 'x' passed as parameter with 'n_x'. Line 110: Replace 'x' as x-axis with 'x(1:length(x)-1)'. This will get the code up and running. I am new to CFD myself and your code was a huge help. I am attempting 5th order WENO for shock formation on a 2d wedge. Thank you. P.S. If anybody has the 2d WENO figured out, a little help would be appreciated. |
||
![]() |
![]() |
![]() |
![]() |
#9 |
New Member
Aranya Dan
Join Date: Oct 2017
Posts: 19
Rep Power: 9 ![]() |
https://github.com/aranyadan/WENO52D_fortran
2D weno code I wrote and validated with Reimann test cases. Hit me for any other assistance you might need. |
|
![]() |
![]() |
![]() |
Tags |
2 dimensional, code, euler, matlab, weno |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
WENO code for Euler equations | buaalzr | Main CFD Forum | 19 | October 16, 2017 17:32 |
Conservation error for 1-D Euler with WENO | kiliancfd | Main CFD Forum | 6 | July 24, 2014 18:26 |
Problem with Backward Euler Results | Hooman | Main CFD Forum | 5 | January 1, 2012 12:02 |
euler euler multiphase modelling | mdsvjpk | FLUENT | 0 | June 14, 2011 12:50 |
convergence of Euler Equations with WENO | Shyam | Main CFD Forum | 0 | June 1, 2007 01:47 |