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

1D advection-diffusion--need to benchmark my code; any suggestions?

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 21, 2010, 06:40
Default 1D advection-diffusion--need to benchmark my code; any suggestions?
  #1
New Member
 
Join Date: Jan 2010
Posts: 28
Rep Power: 7
bzz77 is on a distinguished road
Hi everyone:

I am teaching myself transport/programming, and have created a simple program for 1-D advection-diffusion (constant velocity, diffusion coefficient, central differencing, Crank-Nicolson).

I would like to check that my code is working properly and would appreciate any advice about how to go about this. I have not been successful on Google at finding code that others have written... If anyone can direct me or provide advice about getting an analytical solution, I would be very grateful. An EXCEL-based spreadsheet or a Matlab or a c++ implementation would be useful.
bzz77 is offline   Reply With Quote

Old   March 23, 2010, 09:19
Default
  #2
New Member
 
Join Date: Mar 2009
Posts: 5
Rep Power: 8
CfdLunak is on a distinguished road
Hello,

as a first step you can set diffusion coefficient zero-your initial condition should move the prescribed velocity unchanged.

Lunak
CfdLunak is offline   Reply With Quote

Reply

Tags
advection-diffusion, benchmark, burgers

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
solid kinetic theory wan xiaotao Main CFD Forum 6 August 10, 1999 18:43
CFD of turbulent flows raj calay Main CFD Forum 23 April 23, 1999 05:03
Use of an hydrodynamic model integrated in the vertical by the PHOENICS code Hafsia Zouhaier Main CFD Forum 2 March 15, 1999 09:23
public CFD Code development Heinz Wilkening Main CFD Forum 38 March 5, 1999 12:44
What kind of Cmmercial CFD code you feel well? Lans Main CFD Forum 13 October 27, 1998 11:20


All times are GMT -4. The time now is 16:05.