CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

code blow up

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 16, 2006, 22:17
Default code blow up
  #1
prapanj
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.
  Reply With Quote

Old   October 16, 2006, 23:09
Default Re: code blow up
  #2
Dominic
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
  Reply With Quote

Old   October 20, 2006, 10:55
Default Re: code blow up
  #3
vasanth
Guest
 
Posts: n/a
Hi,

If it a non uniform grid check your grid metrics as well.

  Reply With Quote

Reply


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
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


All times are GMT -4. The time now is 08:29.