|
[Sponsors] |
October 16, 2006, 22:17 |
code blow up
|
#1 |
Guest
Posts: n/a
|
hi I tried to solve the 2D burger's equaion using the approximate riemann solver of roe. the coding was done in matlab. the actual solution involves a shock. I got a solution matrix will elements as NaN. which i found meand Not a Number.(indeterminate). to find the bug i solved for one time step and found the values of flux went to infinity at many points. Is this normal? Is it because of shock? And can i get a proper solution if i use flux limiters? i tried flux averaging, which failed too.
|
|
October 16, 2006, 23:09 |
Re: code blow up
|
#2 |
Guest
Posts: n/a
|
Hi,
Check your denominator in the diffusion part of the interface fluxes i.e : alpha(j)*(u_j -u_j-1)., alpha = dg/du. You might not have implemnted this step properly. Try first order initially. Dont jump to flux limiters in the first instance. Regs, Dominic |
|
October 20, 2006, 10:55 |
Re: code blow up
|
#3 |
Guest
Posts: n/a
|
Hi,
If it a non uniform grid check your grid metrics as well. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
The FOAM Documentation Project - SHUT-DOWN | holger_marschall | OpenFOAM | 242 | March 7, 2013 12:30 |
How to make code run in parallel? | cwang5 | OpenFOAM Programming & Development | 1 | May 30, 2011 04:47 |
Open Source Vs Commercial Software | MechE | OpenFOAM | 28 | May 16, 2011 11:02 |
Small 3-D code | Zdravko Stojanovic | Main CFD Forum | 2 | July 19, 2010 10:11 |
public CFD Code development | Heinz Wilkening | Main CFD Forum | 38 | March 5, 1999 11:44 |