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

Problem with staggered grid on numerical simulation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 15, 2012, 06:26
Default Problem with staggered grid on numerical simulation
  #1
New Member
 
Ivano
Join Date: Feb 2012
Posts: 3
Rep Power: 14
gtr84 is on a distinguished road
Hello everyone, this is my first question on this forum

i've made a simulatio of a stratified fluid in a rotating system of reference.
So i'm going to solve equation of motion using Shallow Water approximation.

the code is written in matlab using C grid
i've done also one using an unstaggered (A) grid

The problem is that code with c grid is unstable even though
cfl condition is satisfied (the scheme of integration is FTCS + LAX for
both cases).
With A grid code works as it's expected

in the attachment there are both codes (you can use word pad to
view)

can you tell me if there's any mistake?
Attached Files
File Type: txt agrid.txt (2.4 KB, 2 views)
File Type: txt cgrid.txt (3.3 KB, 2 views)
gtr84 is offline   Reply With Quote

Old   February 15, 2012, 08:58
Default
  #2
New Member
 
Ivano
Join Date: Feb 2012
Posts: 3
Rep Power: 14
gtr84 is on a distinguished road
maybe CFL condition is different for C grid.


for an unstaggered grid is CFL<0.5 (in 2 dimension)

i've noticed that c grid code is stable for very little
courant numbers, like 0.01


does anyone know something more about this?

thanks
gtr84 is offline   Reply With Quote

Reply

Tags
staggered grid


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
production term on staggered grid behzadmaha Main CFD Forum 0 April 24, 2011 17:30
tracer simulation for transient problem. John CFX 0 August 12, 2005 11:37
Problem with grid interface Anindya FLUENT 9 July 26, 2002 17:04
problem with grid dimension nisheet goyal Phoenics 1 June 18, 2001 10:28
Numerical methods for discontinuous grid interfaces? Hansong Hang Main CFD Forum 12 September 16, 1998 23:26


All times are GMT -4. The time now is 06:59.