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

Higher order formulation question

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 27, 2012, 09:13
Default Higher order formulation question
  #1
New Member
 
Join Date: Jul 2012
Posts: 2
Rep Power: 0
peterciaran is on a distinguished road
Hi all

This is my first post on here and I'm starting by asking for help

I'm trying to build a simple code that will solve the advection equation. Starting from a simple upwind scheme then to a central differencing scheme then on to a third order scheme.

The first two schemes as you'd expect worked easily however once I've tried to move to third order I cant get any results.

so by using a finite volume formulation and polynomial fitting I get a formulation ranging from node E to W-3.

So my 1D formulation becomes;

AE(phi,i+1)+(1-AP)(Phi,i)-AW(phi,i-1)-AW1(phi,i-2)-AW2(phi,i-2)-AW3(phi,i-3)=D

So when i solve this in matrix form the result does not travel in the x direction at all but instead just reduces the values more and more.

an anyone help me?
peterciaran is offline   Reply With Quote

Old   July 27, 2012, 13:47
Default
  #2
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,763
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by peterciaran View Post
Hi all

This is my first post on here and I'm starting by asking for help

I'm trying to build a simple code that will solve the advection equation. Starting from a simple upwind scheme then to a central differencing scheme then on to a third order scheme.

The first two schemes as you'd expect worked easily however once I've tried to move to third order I cant get any results.

so by using a finite volume formulation and polynomial fitting I get a formulation ranging from node E to W-3.

So my 1D formulation becomes;

AE(phi,i+1)+(1-AP)(Phi,i)-AW(phi,i-1)-AW1(phi,i-2)-AW2(phi,i-2)-AW3(phi,i-3)=D

So when i solve this in matrix form the result does not travel in the x direction at all but instead just reduces the values more and more.

an anyone help me?
You should address more issue about your scheme...as I assume you are working on the equation d/dt phi + u d/dx phi = 0 (u = constant) please use notation "i" for the space-location and "n" for time-location
FMDenaro is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Higher order spacial derivatives chegdan OpenFOAM 0 February 9, 2011 12:54
Higher order Gradient Calculation CFDtoy Main CFD Forum 3 February 13, 2009 04:42
Higher order terms in the equations Argyle Main CFD Forum 7 October 31, 2008 07:41
eigen value analysis for higher order schemes Shyam Main CFD Forum 0 June 9, 2008 22:20
Higher order DG method for compressible flows jinwon park Main CFD Forum 0 May 16, 2008 12:10


All times are GMT -4. The time now is 00:23.