CFD Online Logo CFD Online URL
Home > Forums > Main CFD Forum

2-D convection-diffusion--finite difference method advice/reference please

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

LinkBack Thread Tools Display Modes
Old   March 15, 2010, 10:10
Default 2-D convection-diffusion--finite difference method advice/reference please
New Member
Join Date: Jan 2010
Posts: 28
Rep Power: 9
bzz77 is on a distinguished road
Sponsored Links
Hello everyone:

I would like to code a simple finite difference scheme for 2D convection-diffusion (I'm using C++). My goals are to learn C++, refresh/improve my linear algebra skills, and eventually use the code as a foundation to incorporate fluid flow considerations in other calculations.

So far I am doing OK on 1D convection-diffusion. I have come up with code for two or three different implicit (involving matrices) and explicit schemes. But I've reached the limit of my mathematical abilities and need help on proceeding with 2D. I haven't had any success with Google at finding worked examples.

I would be very grateful if someone could point me in the right direction... I would like to see a couple of detailed worked examples (e.g., that explain the matrix construction). I would be most interested in seeing an example of 2D convection-diffusion implicit in time/Crank Nicolson, with centered space. Also, while I am focusing on the simplest possible solution methods at this point (I used Gauss elimination in my 1D code), I would be interested in finding out more about any major advantages/disadvantages of common solution methods for 2D. Does anyone know of any good, detailed online resources for 2D convection-diffusion math?

Thank you for any help or advice.

Last edited by bzz77; March 15, 2010 at 10:30.
bzz77 is offline   Reply With Quote
Sponsored Links

Old   March 15, 2010, 12:04
New Member
Robin Koldeweij
Join Date: Nov 2009
Posts: 19
Rep Power: 9
RBJ is on a distinguished road
Realize that convection is a dangerous term. It is used for both advection and diffusion.

If you search advection diffusion on google / google books, I think you should be able to find some stuff
RBJ is offline   Reply With Quote

Old   March 15, 2010, 12:24
New Member
Join Date: Jan 2010
Posts: 28
Rep Power: 9
bzz77 is on a distinguished road
Thanks. I have tried searching both terms in various combinations, but no luck so far. If anyone has found any particular source useful, I'd really appreciate knowing about it. Thanks all.
bzz77 is offline   Reply With Quote


advection, convection, convection-diffusion, diffusion

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
Finite Difference Vs. Finite Volume elankov Main CFD Forum 43 December 18, 2010 17:30
convection diffusion problem ali2108 OpenFOAM 1 May 30, 2009 22:17
convection diffusion equation in 2d ali2108 ANSYS 0 May 24, 2009 13:56
Finite volume method vs finite difference method? superfool Main CFD Forum 4 October 21, 2006 14:37
What is C.V. based finite element method C-H Kuo Main CFD Forum 3 November 5, 1998 10:07

Sponsored Links

All times are GMT -4. The time now is 14:48.