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

Total variation diminishing scheme for advection or advection dispersion equation

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 21, 2012, 14:34
Default Total variation diminishing scheme for advection or advection dispersion equation
  #1
New Member
 
Jdbaba
Join Date: Jul 2012
Posts: 5
Rep Power: 5
cooljd is on a distinguished road
HI I want to write a total variation diminishing code for the simple advection equation and advection diffusion transport equation. I am using excel VBA to write a code. I have use bacward difference in time and central difference implicit scheme for space. The scheme is showing a lot of oscillation so I want to use the total variation diminishing scheme. Does anyone have a sample code with discretization which I can look at and start developing code ? Thank you so much.
cooljd is offline   Reply With Quote

Old   July 21, 2012, 15:15
Default
  #2
Senior Member
 
cfdnewbie
Join Date: Mar 2010
Posts: 551
Rep Power: 11
cfdnewbie is on a distinguished road
Quote:
Originally Posted by cooljd View Post
HI I want to write a total variation diminishing code for the simple advection equation and advection diffusion transport equation. I am using excel VBA to write a code. I have use bacward difference in time and central difference implicit scheme for space. The scheme is showing a lot of oscillation so I want to use the total variation diminishing scheme. Does anyone have a sample code with discretization which I can look at and start developing code ? Thank you so much.

Dont use a central scheme for your advection, use upwind, and your oscillations will go away!
cfdnewbie is offline   Reply With Quote

Old   July 22, 2012, 14:46
Default
  #3
New Member
 
Jdbaba
Join Date: Jul 2012
Posts: 5
Rep Power: 5
cooljd is on a distinguished road
Thank you for your reply.

I think the implicit scheme is stable but I want to know how to implement the TVD scheme for diffusion advection equation. I knew some theory about the TVD scheme but I am having difficulty on how to start the scheme. Can anyone suggest me any sources or provide sample code to start with ? I am working on this code as a part of my research and one paper has stated that using TVD scheme gives better result. So, I want to see how does the result vary when we use TVD scheme.

Thanks.
cooljd is offline   Reply With Quote

Old   July 22, 2012, 15:27
Default
  #4
Senior Member
 
Join Date: Aug 2011
Posts: 251
Rep Power: 7
leflix is on a distinguished road
Quote:
Originally Posted by cooljd View Post

I want to know how to implement the TVD scheme for diffusion advection equation.

Thanks.
Hi Cooljd,

check this book:
http://www.amazon.com/Introduction-C.../dp/0131274988

You will learn everything you have ever wanted to know about TVD implementation. very usefull wand clear.

leflix is offline   Reply With Quote

Old   July 22, 2012, 15:41
Default
  #5
New Member
 
Jdbaba
Join Date: Jul 2012
Posts: 5
Rep Power: 5
cooljd is on a distinguished road
Hi Leflix,

Thank you for your reply. As the name of the book suggests, it will talk more about the finite volume method. I am implementing finite difference method and I am completely new to finite volume method. Do you still suggest to go and read that book or is there any specific book for the implementation of TVD scheme in Finite difference method ?

Thanks a lot.
cooljd is offline   Reply With Quote

Old   July 23, 2012, 05:25
Default
  #6
Senior Member
 
Join Date: Aug 2011
Posts: 251
Rep Power: 7
leflix is on a distinguished road
Quote:
Originally Posted by cooljd View Post
Hi Leflix,

Thank you for your reply. As the name of the book suggests, it will talk more about the finite volume method. I am implementing finite difference method and I am completely new to finite volume method. Do you still suggest to go and read that book or is there any specific book for the implementation of TVD scheme in Finite difference method ?

Thanks a lot.
Yes you are right this book is more devoted to finite volume, but you must know that finite volume implementation is strictly equivalent to finite difference one in case of orthogonal regular grids. It will be easy for you to "translate" from finite volume indicated in the book to what you know in finite difference. Once you have understood that in finite volume phi_(e) corresponds to phi_(i+1/2) in finite difference the job is done !!

The main task is to understand how upwind-biased TVD schemes are implemented regardless the type of discretization method.

I guess there exist some books about TVD schemes using finite difference method. But if I could give you an advise, if you are not specifically interested in high-order schemes I would advise you to switch from finite difference to finite volume for CFD problems.
leflix is offline   Reply With Quote

Old   July 25, 2012, 03:34
Default
  #7
Member
 
Ren/Xingyue
Join Date: Jan 2010
Location: Nagoya , Japan
Posts: 44
Rep Power: 7
hilllike is on a distinguished road
Quote:
Originally Posted by cooljd View Post
HI I want to write a total variation diminishing code for the simple advection equation and advection diffusion transport equation. I am using excel VBA to write a code. I have use bacward difference in time and central difference implicit scheme for space. The scheme is showing a lot of oscillation so I want to use the total variation diminishing scheme. Does anyone have a sample code with discretization which I can look at and start developing code ? Thank you so much.
Please check the books 'high resolution methods for incompressible and low speed flows' and 'Riemann Solvers and Numerical Methods for Fluid Dynamics'. The second one was more popular but I like the first one, you can find some fortran codes in the first book.

Last edited by hilllike; July 25, 2012 at 03:49.
hilllike is offline   Reply With Quote

Old   July 27, 2012, 08:32
Default
  #8
Senior Member
 
duri
Join Date: May 2010
Posts: 130
Rep Power: 7
duri is on a distinguished road
Quote:
Originally Posted by cooljd View Post
Thank you for your reply.

I want to know how to implement the TVD scheme for diffusion advection equation. I knew some theory about the TVD scheme but I am having difficulty on how to start the scheme.

Thanks.
Any first order scheme is a TVD scheme. Use upwind discretization. As Leflix mentioned discretized equation of finite volume method and finite difference method looks alike on a uniform grid spacing.

The following books have some direct formulation of finite difference methods.
Computational Fluid Mechanics and Heat Transfer By John C. Tannehill, Dale Arden Anderson, Richard H. Pletcher

Computational Fluid Dynamics By T. J. Chung
duri is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculation of the Governing Equations Mihail CFX 7 September 7, 2014 06:27
Total heat release rate - variation not expected Bufacchi OpenFOAM Running, Solving & CFD 12 August 14, 2014 09:02
Solving the total energy equation dohnie OpenFOAM 21 June 13, 2014 00:44
error message cuteapathy CFX 14 March 20, 2012 07:45
WENO Code (1D Advection Equation) Carolyn Main CFD Forum 6 March 11, 2007 14:21


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